configure revision f7df2e56
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xorg-server 1.18.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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://bugs.freedesktop.org/enter_bug.cgi?product=xorg
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.18.4'
655PACKAGE_STRING='xorg-server 1.18.4'
656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
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_subst_vars='am__EXEEXT_FALSE
697am__EXEEXT_TRUE
698LTLIBOBJS
699DIX_CFLAGS
700BUILD_TIME
701BUILD_DATE
702RELEASE_DATE
703SYSCONFDIR
704PROJECTROOT
705WAYLAND_SCANNER
706XWAYLAND_SYS_LIBS
707XWAYLAND_LIBS
708XWAYLAND_FALSE
709XWAYLAND_TRUE
710XWAYLANDMODULES_LIBS
711XWAYLANDMODULES_CFLAGS
712XFAKESERVER_FALSE
713XFAKESERVER_TRUE
714BUILD_KDRIVEFBDEVLIB_FALSE
715BUILD_KDRIVEFBDEVLIB_TRUE
716XEPHYR_FALSE
717XEPHYR_TRUE
718KDRIVEFBDEV_FALSE
719KDRIVEFBDEV_TRUE
720TSLIB_FALSE
721TSLIB_TRUE
722KDRIVE_MOUSE_FALSE
723KDRIVE_MOUSE_TRUE
724KDRIVE_KBD_FALSE
725KDRIVE_KBD_TRUE
726KDRIVE_EVDEV_FALSE
727KDRIVE_EVDEV_TRUE
728KDRIVELINUX_FALSE
729KDRIVELINUX_TRUE
730KDRIVE_LIBS
731KDRIVE_LOCAL_LIBS
732KDRIVE_MAIN_LIB
733KDRIVE_PURE_LIBS
734KDRIVE_CFLAGS
735KDRIVE_PURE_INCS
736KDRIVE_INCS
737XEPHYR_INCS
738XEPHYR_LIBS
739XEPHYR_CFLAGS
740TSLIB_LIBS
741TSLIB_CFLAGS
742KDRIVE_FALSE
743KDRIVE_TRUE
744DMX_BUILD_USB_FALSE
745DMX_BUILD_USB_TRUE
746DMX_BUILD_LNX_FALSE
747DMX_BUILD_LNX_TRUE
748X11EXAMPLES_DEP_LIBS
749X11EXAMPLES_DEP_CFLAGS
750XRESEXAMPLES_DEP_LIBS
751XRESEXAMPLES_DEP_CFLAGS
752XTSTEXAMPLES_DEP_LIBS
753XTSTEXAMPLES_DEP_CFLAGS
754DMXXIEXAMPLES_DEP_LIBS
755DMXXIEXAMPLES_DEP_CFLAGS
756DMXXMUEXAMPLES_DEP_LIBS
757DMXXMUEXAMPLES_DEP_CFLAGS
758DMXEXAMPLES_DEP_LIBS
759DMXEXAMPLES_DEP_CFLAGS
760XDMX_SYS_LIBS
761XDMX_LIBS
762XDMX_CFLAGS
763DMX_FALSE
764DMX_TRUE
765XDMXCONFIG_DEP_LIBS
766XDMXCONFIG_DEP_CFLAGS
767DMXMODULES_LIBS
768DMXMODULES_CFLAGS
769STANDALONE_XPBPROXY_FALSE
770STANDALONE_XPBPROXY_TRUE
771XQUARTZ_SPARKLE_FALSE
772XQUARTZ_SPARKLE_TRUE
773XQUARTZ_FALSE
774XQUARTZ_TRUE
775am__fastdepOBJC_FALSE
776am__fastdepOBJC_TRUE
777OBJCDEPMODE
778OBJCFLAGS
779OBJCLINK
780OBJCCLD
781OBJC
782PSEUDORAMIX_FALSE
783PSEUDORAMIX_TRUE
784XPBPROXY_LIBS
785XPBPROXY_CFLAGS
786XQUARTZ_LIBS
787XWIN_XV_FALSE
788XWIN_XV_TRUE
789XWIN_RANDR_FALSE
790XWIN_RANDR_TRUE
791XWIN_GLX_WINDOWS_FALSE
792XWIN_GLX_WINDOWS_TRUE
793XWIN_CLIPBOARD_FALSE
794XWIN_CLIPBOARD_TRUE
795XWIN_MULTIWINDOWEXTWM_FALSE
796XWIN_MULTIWINDOWEXTWM_TRUE
797XWIN_MULTIWINDOW_FALSE
798XWIN_MULTIWINDOW_TRUE
799XWIN_FALSE
800XWIN_TRUE
801KHRONOS_SPEC_DIR
802KHRONOS_OPENGL_REGISTRY_LIBS
803KHRONOS_OPENGL_REGISTRY_CFLAGS
804PYTHON3
805XWIN_SYS_LIBS
806XWIN_SERVER_NAME
807XWIN_LIBS
808WINDOWSWM_LIBS
809WINDOWSWM_CFLAGS
810XWINMODULES_LIBS
811XWINMODULES_CFLAGS
812WINDRES
813GLAMOR_EGL_FALSE
814GLAMOR_EGL_TRUE
815GBM_LIBS
816GBM_CFLAGS
817GLAMOR_LIBS
818GLAMOR_CFLAGS
819GLAMOR_FALSE
820GLAMOR_TRUE
821XORG_DRIVER_MODESETTING_FALSE
822XORG_DRIVER_MODESETTING_TRUE
823XORG_BUS_PLATFORM_FALSE
824XORG_BUS_PLATFORM_TRUE
825DGA_FALSE
826DGA_TRUE
827SOLARIS_VT_FALSE
828SOLARIS_VT_TRUE
829LNXAPM_FALSE
830LNXAPM_TRUE
831LNXACPI_FALSE
832LNXACPI_TRUE
833LINUX_ALPHA_FALSE
834LINUX_ALPHA_TRUE
835XORG_BUS_SPARC_FALSE
836XORG_BUS_SPARC_TRUE
837XORG_BUS_BSDPCI_FALSE
838XORG_BUS_BSDPCI_TRUE
839XORG_BUS_PCI_FALSE
840XORG_BUS_PCI_TRUE
841XORG_FALSE
842XORG_TRUE
843abi_extension
844abi_xinput
845abi_videodrv
846abi_ansic
847logdir
848sysconfigdir
849extdir
850sdkdir
851driverdir
852moduledir
853DEFAULT_XDG_DATA_HOME_LOGDIR
854DEFAULT_XDG_DATA_HOME
855DEFAULT_LOGPREFIX
856DEFAULT_LOGDIR
857DEFAULT_LIBRARY_PATH
858DEFAULT_MODULE_PATH
859__XCONFIGDIR__
860XF86CONFIGFILE
861__XCONFIGFILE__
862XF86CONFIGDIR
863XORG_CFLAGS
864XORG_OS_SUBDIR
865XORG_INCS
866XORG_SYS_LIBS
867XORG_LIBS
868XORG_MODULES_LIBS
869XORG_MODULES_CFLAGS
870DGA_LIBS
871DGA_CFLAGS
872SOLARIS_INOUT_ARCH
873PCI_TXT_IDS_PATH
874PCIACCESS_LIBS
875PCIACCESS_CFLAGS
876symbol_visibility
877XNEST_SYS_LIBS
878XNEST_LIBS
879XNEST_FALSE
880XNEST_TRUE
881XNESTMODULES_LIBS
882XNESTMODULES_CFLAGS
883XVFB_SYS_LIBS
884XVFB_LIBS
885XVFB_FALSE
886XVFB_TRUE
887NO_UNDEFINED_FALSE
888NO_UNDEFINED_TRUE
889CYGWIN_FALSE
890CYGWIN_TRUE
891XORG_DRIVER_LIBS
892LD_NO_UNDEFINED_FLAG
893LD_EXPORT_SYMBOLS_FLAG
894UTILS_SYS_LIBS
895XSERVER_SYS_LIBS
896XSERVER_LIBS
897HAVE_LIBUNWIND_FALSE
898HAVE_LIBUNWIND_TRUE
899LIBUNWIND_LIBS
900LIBUNWIND_CFLAGS
901XSERVERLIBS_LIBS
902XSERVERLIBS_CFLAGS
903XSERVERCFLAGS_LIBS
904XSERVERCFLAGS_CFLAGS
905SHA1_CFLAGS
906SHA1_LIBS
907OPENSSL_LIBS
908OPENSSL_CFLAGS
909LIBSHA1_LIBS
910LIBSHA1_CFLAGS
911MAIN_LIB
912OS_LIB
913DIX_LIB
914DEBUG_FALSE
915DEBUG_TRUE
916VENDOR_NAME_SHORT
917DRI_DRIVER_PATH
918BASE_FONT_PATH
919SERVER_MISC_CONFIG_PATH
920COMPILEDDEFAULTFONTPATH
921XF86VIDMODE_FALSE
922XF86VIDMODE_TRUE
923XDMAUTH_FALSE
924XDMAUTH_TRUE
925XDMCP_FALSE
926XDMCP_TRUE
927XDMCP_LIBS
928XDMCP_CFLAGS
929XKB_DFLT_OPTIONS
930XKB_DFLT_VARIANT
931XKB_DFLT_LAYOUT
932XKB_DFLT_MODEL
933XKB_DFLT_RULES
934XKB_COMPILED_DIR
935XKM_OUTPUT_DIR
936XKB_BIN_DIRECTORY
937XKB_BASE_DIRECTORY
938INT10MODULE_FALSE
939INT10MODULE_TRUE
940VBE_FALSE
941VBE_TRUE
942VGAHW_FALSE
943VGAHW_TRUE
944XF86UTILS_FALSE
945XF86UTILS_TRUE
946DPMSExtension_FALSE
947DPMSExtension_TRUE
948XF86BIGFONT_FALSE
949XF86BIGFONT_TRUE
950DBE_FALSE
951DBE_TRUE
952XCSECURITY_FALSE
953XCSECURITY_TRUE
954SELINUX_LIBS
955SELINUX_CFLAGS
956XSELINUX_FALSE
957XSELINUX_TRUE
958XACE_FALSE
959XACE_TRUE
960XINERAMA_FALSE
961XINERAMA_TRUE
962PRESENT_FALSE
963PRESENT_TRUE
964GLX_SYS_LIBS
965GLX_DEFINES
966AIGLX_DRI_LOADER_FALSE
967AIGLX_DRI_LOADER_TRUE
968GLX_FALSE
969GLX_TRUE
970GL_LIBS
971GL_CFLAGS
972XLIB_LIBS
973XLIB_CFLAGS
974DRI2_AIGLX_FALSE
975DRI2_AIGLX_TRUE
976LIBDRM_LIBS
977LIBDRM_CFLAGS
978DRI3_FALSE
979DRI3_TRUE
980XSHMFENCE_FALSE
981XSHMFENCE_TRUE
982XSHMFENCE_LIBS
983XSHMFENCE_CFLAGS
984BUSFAULT_FALSE
985BUSFAULT_TRUE
986DRI3PROTO_LIBS
987DRI3PROTO_CFLAGS
988DRI2_FALSE
989DRI2_TRUE
990DRI2PROTO_LIBS
991DRI2PROTO_CFLAGS
992DRI_FALSE
993DRI_TRUE
994CLIENTIDS_FALSE
995CLIENTIDS_TRUE
996RES_FALSE
997RES_TRUE
998SCREENSAVER_FALSE
999SCREENSAVER_TRUE
1000RECORD_FALSE
1001RECORD_TRUE
1002MITSHM_FALSE
1003MITSHM_TRUE
1004COMPOSITE_FALSE
1005COMPOSITE_TRUE
1006XVMC_FALSE
1007XVMC_TRUE
1008XV_FALSE
1009XV_TRUE
1010CONFIG_WSCONS_FALSE
1011CONFIG_WSCONS_TRUE
1012NEED_DBUS_FALSE
1013NEED_DBUS_TRUE
1014SUID_WRAPPER_FALSE
1015SUID_WRAPPER_TRUE
1016SUID_WRAPPER_DIR
1017SYSTEMD_LOGIND_FALSE
1018SYSTEMD_LOGIND_TRUE
1019CONFIG_HAL_FALSE
1020CONFIG_HAL_TRUE
1021HAL_LIBS
1022HAL_CFLAGS
1023HAVE_DBUS_FALSE
1024HAVE_DBUS_TRUE
1025DBUS_LIBS
1026DBUS_CFLAGS
1027CONFIG_UDEV_KMS_FALSE
1028CONFIG_UDEV_KMS_TRUE
1029CONFIG_UDEV_FALSE
1030CONFIG_UDEV_TRUE
1031UDEV_LIBS
1032UDEV_CFLAGS
1033HAVE_SYSTEMD_DAEMON_FALSE
1034HAVE_SYSTEMD_DAEMON_TRUE
1035SYSTEMD_DAEMON_LIBS
1036SYSTEMD_DAEMON_CFLAGS
1037SDK_REQUIRED_MODULES
1038PIXMAN_LIBS
1039PIXMAN_CFLAGS
1040INT10_STUB_FALSE
1041INT10_STUB_TRUE
1042INT10_X86EMU_FALSE
1043INT10_X86EMU_TRUE
1044INT10_VM86_FALSE
1045INT10_VM86_TRUE
1046SECURE_RPC_FALSE
1047SECURE_RPC_TRUE
1048INSTALL_SETUID_FALSE
1049INSTALL_SETUID_TRUE
1050XQUARTZ_SPARKLE_FEED_URL
1051XQUARTZ_SPARKLE
1052BUNDLE_VERSION_STRING
1053BUNDLE_VERSION
1054BUNDLE_ID_PREFIX
1055APPLE_APPLICATION_NAME
1056APPLE_APPLICATIONS_DIR
1057FONT100DPIDIR
1058FONT75DPIDIR
1059FONTTYPE1DIR
1060FONTTTFDIR
1061FONTOTFDIR
1062FONTMISCDIR
1063FONTROOTDIR
1064SPARC64_VIDEO_FALSE
1065SPARC64_VIDEO_TRUE
1066PPC_VIDEO_FALSE
1067PPC_VIDEO_TRUE
1068I386_VIDEO_FALSE
1069I386_VIDEO_TRUE
1070ARM_VIDEO_FALSE
1071ARM_VIDEO_TRUE
1072ALPHA_VIDEO_FALSE
1073ALPHA_VIDEO_TRUE
1074GLX_ARCH_DEFINES
1075BSD_KQUEUE_APM_FALSE
1076BSD_KQUEUE_APM_TRUE
1077BSD_APM_FALSE
1078BSD_APM_TRUE
1079FREEBSD_KLDLOAD_FALSE
1080FREEBSD_KLDLOAD_TRUE
1081FBDEVHW_FALSE
1082FBDEVHW_TRUE
1083AGP_FALSE
1084AGP_TRUE
1085LIBOBJS
1086DLOPEN_LIBS
1087SPECIAL_DTRACE_OBJECTS_FALSE
1088SPECIAL_DTRACE_OBJECTS_TRUE
1089XSERVER_DTRACE_FALSE
1090XSERVER_DTRACE_TRUE
1091DTRACE
1092TRADITIONALCPPFLAGS
1093RAWCPPFLAGS
1094RAWCPP
1095YFLAGS
1096YACC
1097LEXLIB
1098LEX_OUTPUT_ROOT
1099LEX
1100LT_SYS_LIBRARY_PATH
1101OTOOL64
1102OTOOL
1103LIPO
1104NMEDIT
1105DSYMUTIL
1106MANIFEST_TOOL
1107RANLIB
1108ac_ct_AR
1109AR
1110NM
1111ac_ct_DUMPBIN
1112DUMPBIN
1113LD
1114FGREP
1115LIBTOOL
1116OBJDUMP
1117DLLTOOL
1118AS
1119LN_S
1120am__fastdepCCAS_FALSE
1121am__fastdepCCAS_TRUE
1122CCASDEPMODE
1123CCASFLAGS
1124CCAS
1125HAVE_LD_WRAP_FALSE
1126HAVE_LD_WRAP_TRUE
1127ENABLE_UNIT_TESTS_FALSE
1128ENABLE_UNIT_TESTS_TRUE
1129XORG_MALLOC_DEBUG_ENV
1130HAVE_XSLTPROC_FALSE
1131HAVE_XSLTPROC_TRUE
1132XSLTPROC
1133HAVE_FOP_FALSE
1134HAVE_FOP_TRUE
1135FOP
1136HAVE_XMLTO_FALSE
1137HAVE_XMLTO_TRUE
1138HAVE_XMLTO_TEXT_FALSE
1139HAVE_XMLTO_TEXT_TRUE
1140XMLTO
1141ENABLE_DEVEL_DOCS_FALSE
1142ENABLE_DEVEL_DOCS_TRUE
1143ENABLE_DOCS_FALSE
1144ENABLE_DOCS_TRUE
1145HAVE_STYLESHEETS_FALSE
1146HAVE_STYLESHEETS_TRUE
1147XSL_STYLESHEET
1148STYLESHEET_SRCDIR
1149XORG_SGML_PATH
1150HAVE_DOXYGEN_FALSE
1151HAVE_DOXYGEN_TRUE
1152HAVE_DOT_FALSE
1153HAVE_DOT_TRUE
1154HAVE_DOT
1155DOT
1156DOXYGEN
1157MAN_SUBSTS
1158XORG_MAN_PAGE
1159ADMIN_MAN_DIR
1160DRIVER_MAN_DIR
1161MISC_MAN_DIR
1162FILE_MAN_DIR
1163LIB_MAN_DIR
1164APP_MAN_DIR
1165ADMIN_MAN_SUFFIX
1166DRIVER_MAN_SUFFIX
1167MISC_MAN_SUFFIX
1168FILE_MAN_SUFFIX
1169LIB_MAN_SUFFIX
1170APP_MAN_SUFFIX
1171SED
1172host_os
1173host_vendor
1174host_cpu
1175host
1176build_os
1177build_vendor
1178build_cpu
1179build
1180INSTALL_CMD
1181PKG_CONFIG_LIBDIR
1182PKG_CONFIG_PATH
1183PKG_CONFIG
1184CHANGELOG_CMD
1185STRICT_CFLAGS
1186CWARNFLAGS
1187BASE_CFLAGS
1188EGREP
1189GREP
1190CPP
1191am__fastdepCC_FALSE
1192am__fastdepCC_TRUE
1193CCDEPMODE
1194am__nodep
1195AMDEPBACKSLASH
1196AMDEP_FALSE
1197AMDEP_TRUE
1198am__quote
1199am__include
1200DEPDIR
1201OBJEXT
1202EXEEXT
1203ac_ct_CC
1204CPPFLAGS
1205LDFLAGS
1206CFLAGS
1207CC
1208AM_BACKSLASH
1209AM_DEFAULT_VERBOSITY
1210AM_DEFAULT_V
1211AM_V
1212am__untar
1213am__tar
1214AMTAR
1215am__leading_dot
1216SET_MAKE
1217AWK
1218mkdir_p
1219MKDIR_P
1220INSTALL_STRIP_PROGRAM
1221STRIP
1222install_sh
1223MAKEINFO
1224AUTOHEADER
1225AUTOMAKE
1226AUTOCONF
1227ACLOCAL
1228VERSION
1229PACKAGE
1230CYGPATH_W
1231am__isrc
1232INSTALL_DATA
1233INSTALL_SCRIPT
1234INSTALL_PROGRAM
1235target_alias
1236host_alias
1237build_alias
1238LIBS
1239ECHO_T
1240ECHO_N
1241ECHO_C
1242DEFS
1243mandir
1244localedir
1245libdir
1246psdir
1247pdfdir
1248dvidir
1249htmldir
1250infodir
1251docdir
1252oldincludedir
1253includedir
1254localstatedir
1255sharedstatedir
1256sysconfdir
1257datadir
1258datarootdir
1259libexecdir
1260sbindir
1261bindir
1262program_transform_name
1263prefix
1264exec_prefix
1265PACKAGE_URL
1266PACKAGE_BUGREPORT
1267PACKAGE_STRING
1268PACKAGE_VERSION
1269PACKAGE_TARNAME
1270PACKAGE_NAME
1271PATH_SEPARATOR
1272SHELL'
1273ac_subst_files=''
1274ac_user_opts='
1275enable_option_checking
1276enable_silent_rules
1277enable_dependency_tracking
1278enable_selective_werror
1279enable_strict_compilation
1280with_doxygen
1281enable_docs
1282enable_devel_docs
1283with_xmlto
1284with_fop
1285with_xsltproc
1286enable_unit_tests
1287enable_static
1288enable_shared
1289with_pic
1290enable_fast_install
1291with_aix_soname
1292with_gnu_ld
1293with_sysroot
1294enable_libtool_lock
1295enable_largefile
1296with_dtrace
1297enable_werror
1298enable_debug
1299enable_use_sigio_by_default
1300with_int10
1301with_vendor_name
1302with_vendor_name_short
1303with_vendor_web
1304with_module_dir
1305with_log_dir
1306with_builder_addr
1307with_os_name
1308with_os_vendor
1309with_builderstring
1310enable_listen_tcp
1311enable_listen_unix
1312enable_listen_local
1313with_fontrootdir
1314with_fontmiscdir
1315with_fontotfdir
1316with_fontttfdir
1317with_fonttype1dir
1318with_font75dpidir
1319with_font100dpidir
1320with_default_font_path
1321with_xkb_path
1322with_xkb_output
1323with_default_xkb_rules
1324with_default_xkb_model
1325with_default_xkb_layout
1326with_default_xkb_variant
1327with_default_xkb_options
1328with_serverconfig_path
1329with_apple_applications_dir
1330with_apple_application_name
1331with_bundle_id_prefix
1332with_bundle_version
1333with_bundle_version_string
1334enable_sparkle
1335with_sparkle_feed_url
1336enable_visibility
1337enable_aiglx
1338with_khronos_spec_dir
1339enable_composite
1340enable_mitshm
1341enable_xres
1342enable_record
1343enable_xv
1344enable_xvmc
1345enable_dga
1346enable_screensaver
1347enable_xdmcp
1348enable_xdm_auth_1
1349enable_glx
1350enable_dri
1351enable_dri2
1352enable_dri3
1353enable_present
1354enable_xinerama
1355enable_xf86vidmode
1356enable_xace
1357enable_xselinux
1358enable_xcsecurity
1359enable_tslib
1360enable_dbe
1361enable_xf86bigfont
1362enable_dpms
1363enable_config_udev
1364enable_config_udev_kms
1365enable_config_hal
1366enable_config_wscons
1367enable_xfree86_utils
1368enable_vgahw
1369enable_vbe
1370enable_int10_module
1371enable_windowswm
1372enable_libdrm
1373enable_clientids
1374enable_pciaccess
1375enable_linux_acpi
1376enable_linux_apm
1377enable_systemd_logind
1378enable_suid_wrapper
1379enable_xorg
1380enable_dmx
1381enable_xvfb
1382enable_xnest
1383enable_xquartz
1384enable_xwayland
1385enable_standalone_xpbproxy
1386enable_xwin
1387enable_glamor
1388enable_kdrive
1389enable_xephyr
1390enable_xfake
1391enable_xfbdev
1392enable_kdrive_kbd
1393enable_kdrive_mouse
1394enable_kdrive_evdev
1395enable_libunwind
1396enable_xshmfence
1397enable_install_setuid
1398enable_unix_transport
1399enable_tcp_transport
1400enable_ipv6
1401enable_local_transport
1402enable_secure_rpc
1403with_systemd_daemon
1404with_shared_memory_dir
1405enable_xtrans_send_fds
1406with_xkb_bin_directory
1407with_sha1
1408'
1409      ac_precious_vars='build_alias
1410host_alias
1411target_alias
1412CC
1413CFLAGS
1414LDFLAGS
1415LIBS
1416CPPFLAGS
1417CPP
1418PKG_CONFIG
1419PKG_CONFIG_PATH
1420PKG_CONFIG_LIBDIR
1421DOXYGEN
1422DOT
1423XMLTO
1424FOP
1425XSLTPROC
1426XORG_MALLOC_DEBUG_ENV
1427CCAS
1428CCASFLAGS
1429LT_SYS_LIBRARY_PATH
1430YACC
1431YFLAGS
1432PIXMAN_CFLAGS
1433PIXMAN_LIBS
1434SYSTEMD_DAEMON_CFLAGS
1435SYSTEMD_DAEMON_LIBS
1436UDEV_CFLAGS
1437UDEV_LIBS
1438DBUS_CFLAGS
1439DBUS_LIBS
1440HAL_CFLAGS
1441HAL_LIBS
1442DRI2PROTO_CFLAGS
1443DRI2PROTO_LIBS
1444DRI3PROTO_CFLAGS
1445DRI3PROTO_LIBS
1446XSHMFENCE_CFLAGS
1447XSHMFENCE_LIBS
1448LIBDRM_CFLAGS
1449LIBDRM_LIBS
1450XLIB_CFLAGS
1451XLIB_LIBS
1452GL_CFLAGS
1453GL_LIBS
1454SELINUX_CFLAGS
1455SELINUX_LIBS
1456XDMCP_CFLAGS
1457XDMCP_LIBS
1458LIBSHA1_CFLAGS
1459LIBSHA1_LIBS
1460OPENSSL_CFLAGS
1461OPENSSL_LIBS
1462XSERVERCFLAGS_CFLAGS
1463XSERVERCFLAGS_LIBS
1464XSERVERLIBS_CFLAGS
1465XSERVERLIBS_LIBS
1466LIBUNWIND_CFLAGS
1467LIBUNWIND_LIBS
1468XNESTMODULES_CFLAGS
1469XNESTMODULES_LIBS
1470PCIACCESS_CFLAGS
1471PCIACCESS_LIBS
1472DGA_CFLAGS
1473DGA_LIBS
1474XORG_MODULES_CFLAGS
1475XORG_MODULES_LIBS
1476GLAMOR_CFLAGS
1477GLAMOR_LIBS
1478GBM_CFLAGS
1479GBM_LIBS
1480XWINMODULES_CFLAGS
1481XWINMODULES_LIBS
1482WINDOWSWM_CFLAGS
1483WINDOWSWM_LIBS
1484KHRONOS_OPENGL_REGISTRY_CFLAGS
1485KHRONOS_OPENGL_REGISTRY_LIBS
1486XPBPROXY_CFLAGS
1487XPBPROXY_LIBS
1488DMXMODULES_CFLAGS
1489DMXMODULES_LIBS
1490XDMXCONFIG_DEP_CFLAGS
1491XDMXCONFIG_DEP_LIBS
1492DMXEXAMPLES_DEP_CFLAGS
1493DMXEXAMPLES_DEP_LIBS
1494DMXXMUEXAMPLES_DEP_CFLAGS
1495DMXXMUEXAMPLES_DEP_LIBS
1496DMXXIEXAMPLES_DEP_CFLAGS
1497DMXXIEXAMPLES_DEP_LIBS
1498XTSTEXAMPLES_DEP_CFLAGS
1499XTSTEXAMPLES_DEP_LIBS
1500XRESEXAMPLES_DEP_CFLAGS
1501XRESEXAMPLES_DEP_LIBS
1502X11EXAMPLES_DEP_CFLAGS
1503X11EXAMPLES_DEP_LIBS
1504TSLIB_CFLAGS
1505TSLIB_LIBS
1506XEPHYR_CFLAGS
1507XEPHYR_LIBS
1508XWAYLANDMODULES_CFLAGS
1509XWAYLANDMODULES_LIBS'
1510
1511
1512# Initialize some variables set by options.
1513ac_init_help=
1514ac_init_version=false
1515ac_unrecognized_opts=
1516ac_unrecognized_sep=
1517# The variables have the same names as the options, with
1518# dashes changed to underlines.
1519cache_file=/dev/null
1520exec_prefix=NONE
1521no_create=
1522no_recursion=
1523prefix=NONE
1524program_prefix=NONE
1525program_suffix=NONE
1526program_transform_name=s,x,x,
1527silent=
1528site=
1529srcdir=
1530verbose=
1531x_includes=NONE
1532x_libraries=NONE
1533
1534# Installation directory options.
1535# These are left unexpanded so users can "make install exec_prefix=/foo"
1536# and all the variables that are supposed to be based on exec_prefix
1537# by default will actually change.
1538# Use braces instead of parens because sh, perl, etc. also accept them.
1539# (The list follows the same order as the GNU Coding Standards.)
1540bindir='${exec_prefix}/bin'
1541sbindir='${exec_prefix}/sbin'
1542libexecdir='${exec_prefix}/libexec'
1543datarootdir='${prefix}/share'
1544datadir='${datarootdir}'
1545sysconfdir='${prefix}/etc'
1546sharedstatedir='${prefix}/com'
1547localstatedir='${prefix}/var'
1548includedir='${prefix}/include'
1549oldincludedir='/usr/include'
1550docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1551infodir='${datarootdir}/info'
1552htmldir='${docdir}'
1553dvidir='${docdir}'
1554pdfdir='${docdir}'
1555psdir='${docdir}'
1556libdir='${exec_prefix}/lib'
1557localedir='${datarootdir}/locale'
1558mandir='${datarootdir}/man'
1559
1560ac_prev=
1561ac_dashdash=
1562for ac_option
1563do
1564  # If the previous option needs an argument, assign it.
1565  if test -n "$ac_prev"; then
1566    eval $ac_prev=\$ac_option
1567    ac_prev=
1568    continue
1569  fi
1570
1571  case $ac_option in
1572  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1573  *=)   ac_optarg= ;;
1574  *)    ac_optarg=yes ;;
1575  esac
1576
1577  # Accept the important Cygnus configure options, so we can diagnose typos.
1578
1579  case $ac_dashdash$ac_option in
1580  --)
1581    ac_dashdash=yes ;;
1582
1583  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1584    ac_prev=bindir ;;
1585  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1586    bindir=$ac_optarg ;;
1587
1588  -build | --build | --buil | --bui | --bu)
1589    ac_prev=build_alias ;;
1590  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1591    build_alias=$ac_optarg ;;
1592
1593  -cache-file | --cache-file | --cache-fil | --cache-fi \
1594  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1595    ac_prev=cache_file ;;
1596  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1597  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1598    cache_file=$ac_optarg ;;
1599
1600  --config-cache | -C)
1601    cache_file=config.cache ;;
1602
1603  -datadir | --datadir | --datadi | --datad)
1604    ac_prev=datadir ;;
1605  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1606    datadir=$ac_optarg ;;
1607
1608  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1609  | --dataroo | --dataro | --datar)
1610    ac_prev=datarootdir ;;
1611  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1612  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1613    datarootdir=$ac_optarg ;;
1614
1615  -disable-* | --disable-*)
1616    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1617    # Reject names that are not valid shell variable names.
1618    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1619      as_fn_error $? "invalid feature name: $ac_useropt"
1620    ac_useropt_orig=$ac_useropt
1621    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1622    case $ac_user_opts in
1623      *"
1624"enable_$ac_useropt"
1625"*) ;;
1626      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1627	 ac_unrecognized_sep=', ';;
1628    esac
1629    eval enable_$ac_useropt=no ;;
1630
1631  -docdir | --docdir | --docdi | --doc | --do)
1632    ac_prev=docdir ;;
1633  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1634    docdir=$ac_optarg ;;
1635
1636  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1637    ac_prev=dvidir ;;
1638  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1639    dvidir=$ac_optarg ;;
1640
1641  -enable-* | --enable-*)
1642    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1643    # Reject names that are not valid shell variable names.
1644    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1645      as_fn_error $? "invalid feature name: $ac_useropt"
1646    ac_useropt_orig=$ac_useropt
1647    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648    case $ac_user_opts in
1649      *"
1650"enable_$ac_useropt"
1651"*) ;;
1652      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1653	 ac_unrecognized_sep=', ';;
1654    esac
1655    eval enable_$ac_useropt=\$ac_optarg ;;
1656
1657  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1658  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1659  | --exec | --exe | --ex)
1660    ac_prev=exec_prefix ;;
1661  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1662  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1663  | --exec=* | --exe=* | --ex=*)
1664    exec_prefix=$ac_optarg ;;
1665
1666  -gas | --gas | --ga | --g)
1667    # Obsolete; use --with-gas.
1668    with_gas=yes ;;
1669
1670  -help | --help | --hel | --he | -h)
1671    ac_init_help=long ;;
1672  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1673    ac_init_help=recursive ;;
1674  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1675    ac_init_help=short ;;
1676
1677  -host | --host | --hos | --ho)
1678    ac_prev=host_alias ;;
1679  -host=* | --host=* | --hos=* | --ho=*)
1680    host_alias=$ac_optarg ;;
1681
1682  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1683    ac_prev=htmldir ;;
1684  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1685  | --ht=*)
1686    htmldir=$ac_optarg ;;
1687
1688  -includedir | --includedir | --includedi | --included | --include \
1689  | --includ | --inclu | --incl | --inc)
1690    ac_prev=includedir ;;
1691  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1692  | --includ=* | --inclu=* | --incl=* | --inc=*)
1693    includedir=$ac_optarg ;;
1694
1695  -infodir | --infodir | --infodi | --infod | --info | --inf)
1696    ac_prev=infodir ;;
1697  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1698    infodir=$ac_optarg ;;
1699
1700  -libdir | --libdir | --libdi | --libd)
1701    ac_prev=libdir ;;
1702  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1703    libdir=$ac_optarg ;;
1704
1705  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1706  | --libexe | --libex | --libe)
1707    ac_prev=libexecdir ;;
1708  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1709  | --libexe=* | --libex=* | --libe=*)
1710    libexecdir=$ac_optarg ;;
1711
1712  -localedir | --localedir | --localedi | --localed | --locale)
1713    ac_prev=localedir ;;
1714  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1715    localedir=$ac_optarg ;;
1716
1717  -localstatedir | --localstatedir | --localstatedi | --localstated \
1718  | --localstate | --localstat | --localsta | --localst | --locals)
1719    ac_prev=localstatedir ;;
1720  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1721  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1722    localstatedir=$ac_optarg ;;
1723
1724  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1725    ac_prev=mandir ;;
1726  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1727    mandir=$ac_optarg ;;
1728
1729  -nfp | --nfp | --nf)
1730    # Obsolete; use --without-fp.
1731    with_fp=no ;;
1732
1733  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1734  | --no-cr | --no-c | -n)
1735    no_create=yes ;;
1736
1737  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1738  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1739    no_recursion=yes ;;
1740
1741  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1742  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1743  | --oldin | --oldi | --old | --ol | --o)
1744    ac_prev=oldincludedir ;;
1745  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1746  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1747  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1748    oldincludedir=$ac_optarg ;;
1749
1750  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1751    ac_prev=prefix ;;
1752  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1753    prefix=$ac_optarg ;;
1754
1755  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1756  | --program-pre | --program-pr | --program-p)
1757    ac_prev=program_prefix ;;
1758  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1759  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1760    program_prefix=$ac_optarg ;;
1761
1762  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1763  | --program-suf | --program-su | --program-s)
1764    ac_prev=program_suffix ;;
1765  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1766  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1767    program_suffix=$ac_optarg ;;
1768
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    ac_prev=program_transform_name ;;
1777  -program-transform-name=* | --program-transform-name=* \
1778  | --program-transform-nam=* | --program-transform-na=* \
1779  | --program-transform-n=* | --program-transform-=* \
1780  | --program-transform=* | --program-transfor=* \
1781  | --program-transfo=* | --program-transf=* \
1782  | --program-trans=* | --program-tran=* \
1783  | --progr-tra=* | --program-tr=* | --program-t=*)
1784    program_transform_name=$ac_optarg ;;
1785
1786  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1787    ac_prev=pdfdir ;;
1788  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1789    pdfdir=$ac_optarg ;;
1790
1791  -psdir | --psdir | --psdi | --psd | --ps)
1792    ac_prev=psdir ;;
1793  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1794    psdir=$ac_optarg ;;
1795
1796  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797  | -silent | --silent | --silen | --sile | --sil)
1798    silent=yes ;;
1799
1800  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1801    ac_prev=sbindir ;;
1802  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1803  | --sbi=* | --sb=*)
1804    sbindir=$ac_optarg ;;
1805
1806  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1807  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1808  | --sharedst | --shareds | --shared | --share | --shar \
1809  | --sha | --sh)
1810    ac_prev=sharedstatedir ;;
1811  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1812  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1813  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1814  | --sha=* | --sh=*)
1815    sharedstatedir=$ac_optarg ;;
1816
1817  -site | --site | --sit)
1818    ac_prev=site ;;
1819  -site=* | --site=* | --sit=*)
1820    site=$ac_optarg ;;
1821
1822  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1823    ac_prev=srcdir ;;
1824  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1825    srcdir=$ac_optarg ;;
1826
1827  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1828  | --syscon | --sysco | --sysc | --sys | --sy)
1829    ac_prev=sysconfdir ;;
1830  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1831  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1832    sysconfdir=$ac_optarg ;;
1833
1834  -target | --target | --targe | --targ | --tar | --ta | --t)
1835    ac_prev=target_alias ;;
1836  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1837    target_alias=$ac_optarg ;;
1838
1839  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1840    verbose=yes ;;
1841
1842  -version | --version | --versio | --versi | --vers | -V)
1843    ac_init_version=: ;;
1844
1845  -with-* | --with-*)
1846    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1847    # Reject names that are not valid shell variable names.
1848    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1849      as_fn_error $? "invalid package name: $ac_useropt"
1850    ac_useropt_orig=$ac_useropt
1851    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1852    case $ac_user_opts in
1853      *"
1854"with_$ac_useropt"
1855"*) ;;
1856      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1857	 ac_unrecognized_sep=', ';;
1858    esac
1859    eval with_$ac_useropt=\$ac_optarg ;;
1860
1861  -without-* | --without-*)
1862    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1863    # Reject names that are not valid shell variable names.
1864    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1865      as_fn_error $? "invalid package name: $ac_useropt"
1866    ac_useropt_orig=$ac_useropt
1867    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1868    case $ac_user_opts in
1869      *"
1870"with_$ac_useropt"
1871"*) ;;
1872      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1873	 ac_unrecognized_sep=', ';;
1874    esac
1875    eval with_$ac_useropt=no ;;
1876
1877  --x)
1878    # Obsolete; use --with-x.
1879    with_x=yes ;;
1880
1881  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1882  | --x-incl | --x-inc | --x-in | --x-i)
1883    ac_prev=x_includes ;;
1884  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1885  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1886    x_includes=$ac_optarg ;;
1887
1888  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1889  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1890    ac_prev=x_libraries ;;
1891  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1892  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1893    x_libraries=$ac_optarg ;;
1894
1895  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1896Try \`$0 --help' for more information"
1897    ;;
1898
1899  *=*)
1900    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1901    # Reject names that are not valid shell variable names.
1902    case $ac_envvar in #(
1903      '' | [0-9]* | *[!_$as_cr_alnum]* )
1904      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1905    esac
1906    eval $ac_envvar=\$ac_optarg
1907    export $ac_envvar ;;
1908
1909  *)
1910    # FIXME: should be removed in autoconf 3.0.
1911    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1912    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1913      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1914    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1915    ;;
1916
1917  esac
1918done
1919
1920if test -n "$ac_prev"; then
1921  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1922  as_fn_error $? "missing argument to $ac_option"
1923fi
1924
1925if test -n "$ac_unrecognized_opts"; then
1926  case $enable_option_checking in
1927    no) ;;
1928    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1929    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1930  esac
1931fi
1932
1933# Check all directory arguments for consistency.
1934for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1935		datadir sysconfdir sharedstatedir localstatedir includedir \
1936		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1937		libdir localedir mandir
1938do
1939  eval ac_val=\$$ac_var
1940  # Remove trailing slashes.
1941  case $ac_val in
1942    */ )
1943      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1944      eval $ac_var=\$ac_val;;
1945  esac
1946  # Be sure to have absolute directory names.
1947  case $ac_val in
1948    [\\/$]* | ?:[\\/]* )  continue;;
1949    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1950  esac
1951  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1952done
1953
1954# There might be people who depend on the old broken behavior: `$host'
1955# used to hold the argument of --host etc.
1956# FIXME: To remove some day.
1957build=$build_alias
1958host=$host_alias
1959target=$target_alias
1960
1961# FIXME: To remove some day.
1962if test "x$host_alias" != x; then
1963  if test "x$build_alias" = x; then
1964    cross_compiling=maybe
1965  elif test "x$build_alias" != "x$host_alias"; then
1966    cross_compiling=yes
1967  fi
1968fi
1969
1970ac_tool_prefix=
1971test -n "$host_alias" && ac_tool_prefix=$host_alias-
1972
1973test "$silent" = yes && exec 6>/dev/null
1974
1975
1976ac_pwd=`pwd` && test -n "$ac_pwd" &&
1977ac_ls_di=`ls -di .` &&
1978ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1979  as_fn_error $? "working directory cannot be determined"
1980test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1981  as_fn_error $? "pwd does not report name of working directory"
1982
1983
1984# Find the source files, if location was not specified.
1985if test -z "$srcdir"; then
1986  ac_srcdir_defaulted=yes
1987  # Try the directory containing this script, then the parent directory.
1988  ac_confdir=`$as_dirname -- "$as_myself" ||
1989$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1990	 X"$as_myself" : 'X\(//\)[^/]' \| \
1991	 X"$as_myself" : 'X\(//\)$' \| \
1992	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1993$as_echo X"$as_myself" |
1994    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1995	    s//\1/
1996	    q
1997	  }
1998	  /^X\(\/\/\)[^/].*/{
1999	    s//\1/
2000	    q
2001	  }
2002	  /^X\(\/\/\)$/{
2003	    s//\1/
2004	    q
2005	  }
2006	  /^X\(\/\).*/{
2007	    s//\1/
2008	    q
2009	  }
2010	  s/.*/./; q'`
2011  srcdir=$ac_confdir
2012  if test ! -r "$srcdir/$ac_unique_file"; then
2013    srcdir=..
2014  fi
2015else
2016  ac_srcdir_defaulted=no
2017fi
2018if test ! -r "$srcdir/$ac_unique_file"; then
2019  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2020  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2021fi
2022ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2023ac_abs_confdir=`(
2024	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2025	pwd)`
2026# When building in place, set srcdir=.
2027if test "$ac_abs_confdir" = "$ac_pwd"; then
2028  srcdir=.
2029fi
2030# Remove unnecessary trailing slashes from srcdir.
2031# Double slashes in file names in object file debugging info
2032# mess up M-x gdb in Emacs.
2033case $srcdir in
2034*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2035esac
2036for ac_var in $ac_precious_vars; do
2037  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2038  eval ac_env_${ac_var}_value=\$${ac_var}
2039  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2040  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2041done
2042
2043#
2044# Report the --help message.
2045#
2046if test "$ac_init_help" = "long"; then
2047  # Omit some internal or obsolete options to make the list less imposing.
2048  # This message is too long to be a string in the A/UX 3.1 sh.
2049  cat <<_ACEOF
2050\`configure' configures xorg-server 1.18.4 to adapt to many kinds of systems.
2051
2052Usage: $0 [OPTION]... [VAR=VALUE]...
2053
2054To assign environment variables (e.g., CC, CFLAGS...), specify them as
2055VAR=VALUE.  See below for descriptions of some of the useful variables.
2056
2057Defaults for the options are specified in brackets.
2058
2059Configuration:
2060  -h, --help              display this help and exit
2061      --help=short        display options specific to this package
2062      --help=recursive    display the short help of all the included packages
2063  -V, --version           display version information and exit
2064  -q, --quiet, --silent   do not print \`checking ...' messages
2065      --cache-file=FILE   cache test results in FILE [disabled]
2066  -C, --config-cache      alias for \`--cache-file=config.cache'
2067  -n, --no-create         do not create output files
2068      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2069
2070Installation directories:
2071  --prefix=PREFIX         install architecture-independent files in PREFIX
2072                          [$ac_default_prefix]
2073  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2074                          [PREFIX]
2075
2076By default, \`make install' will install all the files in
2077\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2078an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2079for instance \`--prefix=\$HOME'.
2080
2081For better control, use the options below.
2082
2083Fine tuning of the installation directories:
2084  --bindir=DIR            user executables [EPREFIX/bin]
2085  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2086  --libexecdir=DIR        program executables [EPREFIX/libexec]
2087  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2088  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2089  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2090  --libdir=DIR            object code libraries [EPREFIX/lib]
2091  --includedir=DIR        C header files [PREFIX/include]
2092  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2093  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2094  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2095  --infodir=DIR           info documentation [DATAROOTDIR/info]
2096  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2097  --mandir=DIR            man documentation [DATAROOTDIR/man]
2098  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2099  --htmldir=DIR           html documentation [DOCDIR]
2100  --dvidir=DIR            dvi documentation [DOCDIR]
2101  --pdfdir=DIR            pdf documentation [DOCDIR]
2102  --psdir=DIR             ps documentation [DOCDIR]
2103_ACEOF
2104
2105  cat <<\_ACEOF
2106
2107Program names:
2108  --program-prefix=PREFIX            prepend PREFIX to installed program names
2109  --program-suffix=SUFFIX            append SUFFIX to installed program names
2110  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2111
2112System types:
2113  --build=BUILD     configure for building on BUILD [guessed]
2114  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2115_ACEOF
2116fi
2117
2118if test -n "$ac_init_help"; then
2119  case $ac_init_help in
2120     short | recursive ) echo "Configuration of xorg-server 1.18.4:";;
2121   esac
2122  cat <<\_ACEOF
2123
2124Optional Features:
2125  --disable-option-checking  ignore unrecognized --enable/--with options
2126  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2127  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2128  --enable-silent-rules   less verbose build output (undo: "make V=1")
2129  --disable-silent-rules  verbose build output (undo: "make V=0")
2130  --enable-dependency-tracking
2131                          do not reject slow dependency extractors
2132  --disable-dependency-tracking
2133                          speeds up one-time build
2134  --disable-selective-werror
2135                          Turn off selective compiler errors. (default:
2136                          enabled)
2137  --enable-strict-compilation
2138                          Enable all warnings from compiler and make them
2139                          errors (default: disabled)
2140  --enable-docs           Enable building the documentation (default: yes)
2141  --enable-devel-docs     Enable building the developer documentation
2142                          (default: yes)
2143  --enable-unit-tests     Enable building unit test cases (default: auto)
2144  --enable-static[=PKGS]  build static libraries [default=no]
2145  --enable-shared[=PKGS]  build shared libraries [default=yes]
2146  --enable-fast-install[=PKGS]
2147                          optimize for fast installation [default=yes]
2148  --disable-libtool-lock  avoid locking (might break parallel builds)
2149  --disable-largefile     omit support for large files
2150  --enable-werror         Obsolete - use --enable-strict-compilation instead
2151  --enable-debug          Enable debugging (default: disabled)
2152  --enable-use-sigio-by-default
2153  Enable SIGIO input handlers by default (default: $USE_SIGIO_BY_DEFAULT)
2154
2155  --enable-listen-tcp     Listen on TCP by default (default:disabled)
2156  --disable-listen-unix   Listen on Unix by default (default:enabled)
2157  --disable-listen-local  Listen on local by default (default:enabled)
2158  --enable-sparkle        Enable updating of X11.app using the Sparkle
2159                          Framework (default: disabled)
2160  --enable-visibility     Enable symbol visibility (default: auto)
2161  --enable-aiglx          Build accelerated indirect GLX (default: enabled)
2162  --disable-composite     Build Composite extension (default: enabled)
2163  --disable-mitshm        Build SHM extension (default: auto)
2164  --disable-xres          Build XRes extension (default: enabled)
2165  --disable-record        Build Record extension (default: enabled)
2166  --disable-xv            Build Xv extension (default: enabled)
2167  --disable-xvmc          Build XvMC extension (default: enabled)
2168  --disable-dga           Build DGA extension (default: auto)
2169  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2170  --disable-xdmcp         Build XDMCP extension (default: auto)
2171  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2172  --disable-glx           Build GLX extension (default: enabled)
2173  --enable-dri            Build DRI extension (default: auto)
2174  --enable-dri2           Build DRI2 extension (default: auto)
2175  --enable-dri3           Build DRI3 extension (default: auto)
2176  --disable-present       Build Present extension (default: enabled)
2177  --disable-xinerama      Build Xinerama extension (default: enabled)
2178  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2179  --disable-xace          Build X-ACE extension (default: enabled)
2180  --enable-xselinux       Build SELinux extension (default: disabled)
2181  --enable-xcsecurity     Build Security extension (default: disabled)
2182  --enable-tslib          Build kdrive tslib touchscreen support (default:
2183                          disabled)
2184  --disable-dbe           Build DBE extension (default: enabled)
2185  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2186  --disable-dpms          Build DPMS extension (default: enabled)
2187  --enable-config-udev    Build udev support (default: auto)
2188  --enable-config-udev-kms
2189                          Build udev kms support (default: auto)
2190  --disable-config-hal    Build HAL support (default: auto)
2191  --enable-config-wscons  Build wscons config support (default: auto)
2192  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2193  --enable-vgahw          Build Xorg with vga access (default: enabled)
2194  --enable-vbe            Build Xorg with VBE module (default: enabled)
2195  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2196  --enable-windowswm      Build XWin with WindowsWM extension (default: no)
2197  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2198  --disable-clientids     Build Xorg with client ID tracking (default:
2199                          enabled)
2200  --enable-pciaccess      Build Xorg with pciaccess library (default: enabled)
2201  --disable-linux-acpi    Disable building ACPI support on Linux (if
2202                          available).
2203  --disable-linux-apm     Disable building APM support on Linux (if
2204                          available).
2205  --enable-systemd-logind Build systemd-logind support (default: auto)
2206  --enable-suid-wrapper   Build suid-root wrapper for legacy driver support on
2207                          rootless xserver systems (default: no)
2208  --enable-xorg           Build Xorg server (default: auto)
2209  --enable-dmx            Build DMX server (default: no)
2210  --enable-xvfb           Build Xvfb server (default: yes)
2211  --enable-xnest          Build Xnest server (default: auto)
2212  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2213  --enable-xwayland       Build Xwayland server (default: auto)
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: no)
2220  --enable-kdrive         Build kdrive servers (default: no)
2221  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2222  --enable-xfake          Build the kdrive 'fake' server (default: auto)
2223  --enable-xfbdev         Build the kdrive framebuffer device server (default:
2224                          auto)
2225  --enable-kdrive-kbd     Build kbd driver for kdrive (default: auto)
2226  --enable-kdrive-mouse   Build mouse driver for kdrive (default: auto)
2227  --enable-kdrive-evdev   Build evdev driver for kdrive (default: auto)
2228  --enable-libunwind      Use libunwind for backtracing (default: auto)
2229  --disable-xshmfence     Disable xshmfence (default: auto)
2230  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2231                          (default: auto)
2232  --enable-unix-transport Enable UNIX domain socket transport
2233  --enable-tcp-transport  Enable TCP socket transport
2234  --enable-ipv6           Enable IPv6 support
2235  --enable-local-transport
2236                          Enable os-specific local transport
2237  --enable-secure-rpc     Enable Secure RPC
2238  --disable-xtrans-send-fds
2239                          Use Xtrans support for fd passing (default: auto)
2240
2241Optional Packages:
2242  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2243  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2244  --with-doxygen          Use doxygen to regenerate documentation (default:
2245                          auto)
2246  --with-xmlto            Use xmlto to regenerate documentation (default:
2247                          auto)
2248  --with-fop              Use fop to regenerate documentation (default: auto)
2249  --with-xsltproc         Use xsltproc for the transformation of XML documents
2250                          (default: auto)
2251  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2252                          both]
2253  --with-aix-soname=aix|svr4|both
2254                          shared library versioning (aka "SONAME") variant to
2255                          provide on AIX, [default=aix].
2256  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2257  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2258                          compiler's sysroot if not specified).
2259  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2260                          found)
2261  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2262  --with-vendor-name=VENDOR
2263                          Vendor string reported by the server
2264  --with-vendor-name-short=VENDOR
2265                          Short version of vendor string reported by the
2266                          server
2267  --with-vendor-web=URL   Vendor web address reported by the server
2268  --with-module-dir=DIR   Directory where modules are installed (default:
2269                          $libdir/xorg/modules)
2270  --with-log-dir=DIR      Directory where log files are kept (default:
2271                          $localstatedir/log)
2272  --with-builder-addr=ADDRESS
2273                          Builder address (default:
2274                          xorg@lists.freedesktop.org)
2275  --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2276  --with-os-vendor=OSVENDOR
2277                          Name of OS vendor
2278  --with-builderstring=BUILDERSTRING
2279                          Additional builder string
2280  --with-fontrootdir=DIR  Path to root directory for font files
2281  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2282  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2283  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2284  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2285  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2286  --with-font100dpidir=DIR
2287                          Path to 100dpi files [FONTROOTDIR/100dpi]
2288  --with-default-font-path=PATH
2289                          Comma separated list of font dirs
2290  --with-xkb-path=PATH    Path to XKB base dir (default: ${datadir}/X11/xkb)
2291  --with-xkb-output=PATH  Path to XKB output dir (default:
2292                          ${datadir}/X11/xkb/compiled)
2293  --with-default-xkb-rules=RULES
2294                          Keyboard ruleset (default: base/evdev)
2295  --with-default-xkb-model=MODEL
2296                          Keyboard model (default: pc105)
2297  --with-default-xkb-layout=LAYOUT
2298                          Keyboard layout (default: us)
2299  --with-default-xkb-variant=VARIANT
2300                          Keyboard variant (default: (none))
2301  --with-default-xkb-options=OPTIONS
2302                          Keyboard layout options (default: (none))
2303  --with-serverconfig-path=PATH
2304                          Directory where ancillary server config files are
2305                          installed (default: ${libdir}/xorg)
2306  --with-apple-applications-dir=PATH
2307                          Path to the Applications directory (default:
2308                          /Applications/Utilities)
2309  --with-apple-application-name=NAME
2310                          Name for the .app (default: X11)
2311  --with-bundle-id-prefix=RDNS_PREFIX
2312                          Prefix to use for bundle identifiers (default:
2313                          org.x)
2314  --with-bundle-version=VERSION
2315                          Version to use for X11.app's CFBundleVersion
2316                          (default: 1.18.4)
2317  --with-bundle-version-string=VERSION
2318                          Version to use for X11.app's
2319                          CFBundleShortVersionString (default: 1.18.4)
2320  --with-sparkle-feed-url=URL
2321                          URL for the Sparkle feed (default:
2322                          https://www.xquartz.org/releases/sparkle/release.xml)
2323  --with-khronos-spec-dir=PATH
2324                          Path to Khronos OpenGL registry database files
2325                          (default: auto)
2326  --with-systemd-daemon   support systemd socket activation (default: auto)
2327  --with-shared-memory-dir=PATH
2328                          Path to directory in a world-writable temporary
2329                          directory for anonymous shared memory (default:
2330                          auto)
2331  --with-xkb-bin-directory=DIR
2332                          Directory containing xkbcomp program (default:
2333                          ${bindir})
2334  --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
2335                          choose SHA1 implementation
2336
2337Some influential environment variables:
2338  CC          C compiler command
2339  CFLAGS      C compiler flags
2340  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2341              nonstandard directory <lib dir>
2342  LIBS        libraries to pass to the linker, e.g. -l<library>
2343  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2344              you have headers in a nonstandard directory <include dir>
2345  CPP         C preprocessor
2346  PKG_CONFIG  path to pkg-config utility
2347  PKG_CONFIG_PATH
2348              directories to add to pkg-config's search path
2349  PKG_CONFIG_LIBDIR
2350              path overriding pkg-config's built-in search path
2351  DOXYGEN     Path to doxygen command
2352  DOT         Path to the dot graphics utility
2353  XMLTO       Path to xmlto command
2354  FOP         Path to fop command
2355  XSLTPROC    Path to xsltproc command
2356  XORG_MALLOC_DEBUG_ENV
2357              Environment variables to enable memory checking in tests
2358  CCAS        assembler compiler command (defaults to CC)
2359  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2360  LT_SYS_LIBRARY_PATH
2361              User-defined run-time library search path.
2362  YACC        The `Yet Another Compiler Compiler' implementation to use.
2363              Defaults to the first program found out of: `bison -y', `byacc',
2364              `yacc'.
2365  YFLAGS      The list of arguments that will be passed by default to $YACC.
2366              This script will default YFLAGS to the empty string to avoid a
2367              default value of `-d' given by some make applications.
2368  PIXMAN_CFLAGS
2369              C compiler flags for PIXMAN, overriding pkg-config
2370  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2371  SYSTEMD_DAEMON_CFLAGS
2372              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2373  SYSTEMD_DAEMON_LIBS
2374              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2375  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2376  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2377  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2378  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2379  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2380  HAL_LIBS    linker flags for HAL, overriding pkg-config
2381  DRI2PROTO_CFLAGS
2382              C compiler flags for DRI2PROTO, overriding pkg-config
2383  DRI2PROTO_LIBS
2384              linker flags for DRI2PROTO, overriding pkg-config
2385  DRI3PROTO_CFLAGS
2386              C compiler flags for DRI3PROTO, overriding pkg-config
2387  DRI3PROTO_LIBS
2388              linker flags for DRI3PROTO, overriding pkg-config
2389  XSHMFENCE_CFLAGS
2390              C compiler flags for XSHMFENCE, overriding pkg-config
2391  XSHMFENCE_LIBS
2392              linker flags for XSHMFENCE, overriding pkg-config
2393  LIBDRM_CFLAGS
2394              C compiler flags for LIBDRM, overriding pkg-config
2395  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2396  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2397  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2398  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2399  GL_LIBS     linker flags for GL, overriding pkg-config
2400  SELINUX_CFLAGS
2401              C compiler flags for SELINUX, overriding pkg-config
2402  SELINUX_LIBS
2403              linker flags for SELINUX, overriding pkg-config
2404  XDMCP_CFLAGS
2405              C compiler flags for XDMCP, overriding pkg-config
2406  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2407  LIBSHA1_CFLAGS
2408              C compiler flags for LIBSHA1, overriding pkg-config
2409  LIBSHA1_LIBS
2410              linker flags for LIBSHA1, overriding pkg-config
2411  OPENSSL_CFLAGS
2412              C compiler flags for OPENSSL, overriding pkg-config
2413  OPENSSL_LIBS
2414              linker flags for OPENSSL, overriding pkg-config
2415  XSERVERCFLAGS_CFLAGS
2416              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2417  XSERVERCFLAGS_LIBS
2418              linker flags for XSERVERCFLAGS, overriding pkg-config
2419  XSERVERLIBS_CFLAGS
2420              C compiler flags for XSERVERLIBS, overriding pkg-config
2421  XSERVERLIBS_LIBS
2422              linker flags for XSERVERLIBS, overriding pkg-config
2423  LIBUNWIND_CFLAGS
2424              C compiler flags for LIBUNWIND, overriding pkg-config
2425  LIBUNWIND_LIBS
2426              linker flags for LIBUNWIND, overriding pkg-config
2427  XNESTMODULES_CFLAGS
2428              C compiler flags for XNESTMODULES, overriding pkg-config
2429  XNESTMODULES_LIBS
2430              linker flags for XNESTMODULES, overriding pkg-config
2431  PCIACCESS_CFLAGS
2432              C compiler flags for PCIACCESS, overriding pkg-config
2433  PCIACCESS_LIBS
2434              linker flags for PCIACCESS, overriding pkg-config
2435  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2436  DGA_LIBS    linker flags for DGA, overriding pkg-config
2437  XORG_MODULES_CFLAGS
2438              C compiler flags for XORG_MODULES, overriding pkg-config
2439  XORG_MODULES_LIBS
2440              linker flags for XORG_MODULES, overriding pkg-config
2441  GLAMOR_CFLAGS
2442              C compiler flags for GLAMOR, overriding pkg-config
2443  GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config
2444  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2445  GBM_LIBS    linker flags for GBM, overriding pkg-config
2446  XWINMODULES_CFLAGS
2447              C compiler flags for XWINMODULES, overriding pkg-config
2448  XWINMODULES_LIBS
2449              linker flags for XWINMODULES, overriding pkg-config
2450  WINDOWSWM_CFLAGS
2451              C compiler flags for WINDOWSWM, overriding pkg-config
2452  WINDOWSWM_LIBS
2453              linker flags for WINDOWSWM, overriding pkg-config
2454  KHRONOS_OPENGL_REGISTRY_CFLAGS
2455              C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2456              pkg-config
2457  KHRONOS_OPENGL_REGISTRY_LIBS
2458              linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2459  XPBPROXY_CFLAGS
2460              C compiler flags for XPBPROXY, overriding pkg-config
2461  XPBPROXY_LIBS
2462              linker flags for XPBPROXY, overriding pkg-config
2463  DMXMODULES_CFLAGS
2464              C compiler flags for DMXMODULES, overriding pkg-config
2465  DMXMODULES_LIBS
2466              linker flags for DMXMODULES, overriding pkg-config
2467  XDMXCONFIG_DEP_CFLAGS
2468              C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2469  XDMXCONFIG_DEP_LIBS
2470              linker flags for XDMXCONFIG_DEP, overriding pkg-config
2471  DMXEXAMPLES_DEP_CFLAGS
2472              C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2473  DMXEXAMPLES_DEP_LIBS
2474              linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2475  DMXXMUEXAMPLES_DEP_CFLAGS
2476              C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2477  DMXXMUEXAMPLES_DEP_LIBS
2478              linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2479  DMXXIEXAMPLES_DEP_CFLAGS
2480              C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2481  DMXXIEXAMPLES_DEP_LIBS
2482              linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2483  XTSTEXAMPLES_DEP_CFLAGS
2484              C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2485  XTSTEXAMPLES_DEP_LIBS
2486              linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2487  XRESEXAMPLES_DEP_CFLAGS
2488              C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2489  XRESEXAMPLES_DEP_LIBS
2490              linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2491  X11EXAMPLES_DEP_CFLAGS
2492              C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2493  X11EXAMPLES_DEP_LIBS
2494              linker flags for X11EXAMPLES_DEP, overriding pkg-config
2495  TSLIB_CFLAGS
2496              C compiler flags for TSLIB, overriding pkg-config
2497  TSLIB_LIBS  linker flags for TSLIB, overriding pkg-config
2498  XEPHYR_CFLAGS
2499              C compiler flags for XEPHYR, overriding pkg-config
2500  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2501  XWAYLANDMODULES_CFLAGS
2502              C compiler flags for XWAYLANDMODULES, overriding pkg-config
2503  XWAYLANDMODULES_LIBS
2504              linker flags for XWAYLANDMODULES, overriding pkg-config
2505
2506Use these variables to override the choices made by `configure' or to help
2507it to find libraries and programs with nonstandard names/locations.
2508
2509Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
2510_ACEOF
2511ac_status=$?
2512fi
2513
2514if test "$ac_init_help" = "recursive"; then
2515  # If there are subdirs, report their specific --help.
2516  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2517    test -d "$ac_dir" ||
2518      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2519      continue
2520    ac_builddir=.
2521
2522case "$ac_dir" in
2523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2524*)
2525  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2526  # A ".." for each directory in $ac_dir_suffix.
2527  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2528  case $ac_top_builddir_sub in
2529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2531  esac ;;
2532esac
2533ac_abs_top_builddir=$ac_pwd
2534ac_abs_builddir=$ac_pwd$ac_dir_suffix
2535# for backward compatibility:
2536ac_top_builddir=$ac_top_build_prefix
2537
2538case $srcdir in
2539  .)  # We are building in place.
2540    ac_srcdir=.
2541    ac_top_srcdir=$ac_top_builddir_sub
2542    ac_abs_top_srcdir=$ac_pwd ;;
2543  [\\/]* | ?:[\\/]* )  # Absolute name.
2544    ac_srcdir=$srcdir$ac_dir_suffix;
2545    ac_top_srcdir=$srcdir
2546    ac_abs_top_srcdir=$srcdir ;;
2547  *) # Relative name.
2548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2549    ac_top_srcdir=$ac_top_build_prefix$srcdir
2550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2551esac
2552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2553
2554    cd "$ac_dir" || { ac_status=$?; continue; }
2555    # Check for guested configure.
2556    if test -f "$ac_srcdir/configure.gnu"; then
2557      echo &&
2558      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2559    elif test -f "$ac_srcdir/configure"; then
2560      echo &&
2561      $SHELL "$ac_srcdir/configure" --help=recursive
2562    else
2563      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2564    fi || ac_status=$?
2565    cd "$ac_pwd" || { ac_status=$?; break; }
2566  done
2567fi
2568
2569test -n "$ac_init_help" && exit $ac_status
2570if $ac_init_version; then
2571  cat <<\_ACEOF
2572xorg-server configure 1.18.4
2573generated by GNU Autoconf 2.69
2574
2575Copyright (C) 2012 Free Software Foundation, Inc.
2576This configure script is free software; the Free Software Foundation
2577gives unlimited permission to copy, distribute and modify it.
2578_ACEOF
2579  exit
2580fi
2581
2582## ------------------------ ##
2583## Autoconf initialization. ##
2584## ------------------------ ##
2585
2586# ac_fn_c_try_compile LINENO
2587# --------------------------
2588# Try to compile conftest.$ac_ext, and return whether this succeeded.
2589ac_fn_c_try_compile ()
2590{
2591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592  rm -f conftest.$ac_objext
2593  if { { ac_try="$ac_compile"
2594case "(($ac_try" in
2595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596  *) ac_try_echo=$ac_try;;
2597esac
2598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2599$as_echo "$ac_try_echo"; } >&5
2600  (eval "$ac_compile") 2>conftest.err
2601  ac_status=$?
2602  if test -s conftest.err; then
2603    grep -v '^ *+' conftest.err >conftest.er1
2604    cat conftest.er1 >&5
2605    mv -f conftest.er1 conftest.err
2606  fi
2607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2608  test $ac_status = 0; } && {
2609	 test -z "$ac_c_werror_flag" ||
2610	 test ! -s conftest.err
2611       } && test -s conftest.$ac_objext; then :
2612  ac_retval=0
2613else
2614  $as_echo "$as_me: failed program was:" >&5
2615sed 's/^/| /' conftest.$ac_ext >&5
2616
2617	ac_retval=1
2618fi
2619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2620  as_fn_set_status $ac_retval
2621
2622} # ac_fn_c_try_compile
2623
2624# ac_fn_c_try_cpp LINENO
2625# ----------------------
2626# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2627ac_fn_c_try_cpp ()
2628{
2629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630  if { { ac_try="$ac_cpp conftest.$ac_ext"
2631case "(($ac_try" in
2632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633  *) ac_try_echo=$ac_try;;
2634esac
2635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636$as_echo "$ac_try_echo"; } >&5
2637  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2638  ac_status=$?
2639  if test -s conftest.err; then
2640    grep -v '^ *+' conftest.err >conftest.er1
2641    cat conftest.er1 >&5
2642    mv -f conftest.er1 conftest.err
2643  fi
2644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645  test $ac_status = 0; } > conftest.i && {
2646	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2647	 test ! -s conftest.err
2648       }; then :
2649  ac_retval=0
2650else
2651  $as_echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654    ac_retval=1
2655fi
2656  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2657  as_fn_set_status $ac_retval
2658
2659} # ac_fn_c_try_cpp
2660
2661# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2662# -------------------------------------------------------
2663# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2664# the include files in INCLUDES and setting the cache variable VAR
2665# accordingly.
2666ac_fn_c_check_header_mongrel ()
2667{
2668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669  if eval \${$3+:} false; then :
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671$as_echo_n "checking for $2... " >&6; }
2672if eval \${$3+:} false; then :
2673  $as_echo_n "(cached) " >&6
2674fi
2675eval ac_res=\$$3
2676	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2677$as_echo "$ac_res" >&6; }
2678else
2679  # Is the header compilable?
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2681$as_echo_n "checking $2 usability... " >&6; }
2682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683/* end confdefs.h.  */
2684$4
2685#include <$2>
2686_ACEOF
2687if ac_fn_c_try_compile "$LINENO"; then :
2688  ac_header_compiler=yes
2689else
2690  ac_header_compiler=no
2691fi
2692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2694$as_echo "$ac_header_compiler" >&6; }
2695
2696# Is the header present?
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2698$as_echo_n "checking $2 presence... " >&6; }
2699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700/* end confdefs.h.  */
2701#include <$2>
2702_ACEOF
2703if ac_fn_c_try_cpp "$LINENO"; then :
2704  ac_header_preproc=yes
2705else
2706  ac_header_preproc=no
2707fi
2708rm -f conftest.err conftest.i conftest.$ac_ext
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2710$as_echo "$ac_header_preproc" >&6; }
2711
2712# So?  What about this header?
2713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2714  yes:no: )
2715    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2716$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2717    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2719    ;;
2720  no:yes:* )
2721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2722$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2724$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2725    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2726$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2728$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2730$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2731( $as_echo "## ---------------------------------------------------------------------- ##
2732## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2733## ---------------------------------------------------------------------- ##"
2734     ) | sed "s/^/$as_me: WARNING:     /" >&2
2735    ;;
2736esac
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2738$as_echo_n "checking for $2... " >&6; }
2739if eval \${$3+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  eval "$3=\$ac_header_compiler"
2743fi
2744eval ac_res=\$$3
2745	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746$as_echo "$ac_res" >&6; }
2747fi
2748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2749
2750} # ac_fn_c_check_header_mongrel
2751
2752# ac_fn_c_try_run LINENO
2753# ----------------------
2754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2755# that executables *can* be run.
2756ac_fn_c_try_run ()
2757{
2758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2759  if { { ac_try="$ac_link"
2760case "(($ac_try" in
2761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762  *) ac_try_echo=$ac_try;;
2763esac
2764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765$as_echo "$ac_try_echo"; } >&5
2766  (eval "$ac_link") 2>&5
2767  ac_status=$?
2768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2770  { { case "(($ac_try" in
2771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772  *) ac_try_echo=$ac_try;;
2773esac
2774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775$as_echo "$ac_try_echo"; } >&5
2776  (eval "$ac_try") 2>&5
2777  ac_status=$?
2778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779  test $ac_status = 0; }; }; then :
2780  ac_retval=0
2781else
2782  $as_echo "$as_me: program exited with status $ac_status" >&5
2783       $as_echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786       ac_retval=$ac_status
2787fi
2788  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790  as_fn_set_status $ac_retval
2791
2792} # ac_fn_c_try_run
2793
2794# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2795# -------------------------------------------------------
2796# Tests whether HEADER exists and can be compiled using the include files in
2797# INCLUDES, setting the cache variable VAR accordingly.
2798ac_fn_c_check_header_compile ()
2799{
2800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802$as_echo_n "checking for $2... " >&6; }
2803if eval \${$3+:} false; then :
2804  $as_echo_n "(cached) " >&6
2805else
2806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h.  */
2808$4
2809#include <$2>
2810_ACEOF
2811if ac_fn_c_try_compile "$LINENO"; then :
2812  eval "$3=yes"
2813else
2814  eval "$3=no"
2815fi
2816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817fi
2818eval ac_res=\$$3
2819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2820$as_echo "$ac_res" >&6; }
2821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2822
2823} # ac_fn_c_check_header_compile
2824
2825# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2826# ---------------------------------------------
2827# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2828# accordingly.
2829ac_fn_c_check_decl ()
2830{
2831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2832  as_decl_name=`echo $2|sed 's/ *(.*//'`
2833  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2835$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2836if eval \${$3+:} false; then :
2837  $as_echo_n "(cached) " >&6
2838else
2839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840/* end confdefs.h.  */
2841$4
2842int
2843main ()
2844{
2845#ifndef $as_decl_name
2846#ifdef __cplusplus
2847  (void) $as_decl_use;
2848#else
2849  (void) $as_decl_name;
2850#endif
2851#endif
2852
2853  ;
2854  return 0;
2855}
2856_ACEOF
2857if ac_fn_c_try_compile "$LINENO"; then :
2858  eval "$3=yes"
2859else
2860  eval "$3=no"
2861fi
2862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863fi
2864eval ac_res=\$$3
2865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2866$as_echo "$ac_res" >&6; }
2867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868
2869} # ac_fn_c_check_decl
2870
2871# ac_fn_c_try_link LINENO
2872# -----------------------
2873# Try to link conftest.$ac_ext, and return whether this succeeded.
2874ac_fn_c_try_link ()
2875{
2876  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2877  rm -f conftest.$ac_objext conftest$ac_exeext
2878  if { { ac_try="$ac_link"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885  (eval "$ac_link") 2>conftest.err
2886  ac_status=$?
2887  if test -s conftest.err; then
2888    grep -v '^ *+' conftest.err >conftest.er1
2889    cat conftest.er1 >&5
2890    mv -f conftest.er1 conftest.err
2891  fi
2892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893  test $ac_status = 0; } && {
2894	 test -z "$ac_c_werror_flag" ||
2895	 test ! -s conftest.err
2896       } && test -s conftest$ac_exeext && {
2897	 test "$cross_compiling" = yes ||
2898	 test -x conftest$ac_exeext
2899       }; then :
2900  ac_retval=0
2901else
2902  $as_echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905	ac_retval=1
2906fi
2907  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2908  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2909  # interfere with the next link command; also delete a directory that is
2910  # left behind by Apple's compiler.  We do this before executing the actions.
2911  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2913  as_fn_set_status $ac_retval
2914
2915} # ac_fn_c_try_link
2916
2917# ac_fn_c_check_func LINENO FUNC VAR
2918# ----------------------------------
2919# Tests whether FUNC exists, setting the cache variable VAR accordingly
2920ac_fn_c_check_func ()
2921{
2922  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2924$as_echo_n "checking for $2... " >&6; }
2925if eval \${$3+:} false; then :
2926  $as_echo_n "(cached) " >&6
2927else
2928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h.  */
2930/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2931   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2932#define $2 innocuous_$2
2933
2934/* System header to define __stub macros and hopefully few prototypes,
2935    which can conflict with char $2 (); below.
2936    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937    <limits.h> exists even on freestanding compilers.  */
2938
2939#ifdef __STDC__
2940# include <limits.h>
2941#else
2942# include <assert.h>
2943#endif
2944
2945#undef $2
2946
2947/* Override any GCC internal prototype to avoid an error.
2948   Use char because int might match the return type of a GCC
2949   builtin and then its argument prototype would still apply.  */
2950#ifdef __cplusplus
2951extern "C"
2952#endif
2953char $2 ();
2954/* The GNU C library defines this for functions which it implements
2955    to always fail with ENOSYS.  Some functions are actually named
2956    something starting with __ and the normal name is an alias.  */
2957#if defined __stub_$2 || defined __stub___$2
2958choke me
2959#endif
2960
2961int
2962main ()
2963{
2964return $2 ();
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_link "$LINENO"; then :
2970  eval "$3=yes"
2971else
2972  eval "$3=no"
2973fi
2974rm -f core conftest.err conftest.$ac_objext \
2975    conftest$ac_exeext conftest.$ac_ext
2976fi
2977eval ac_res=\$$3
2978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2979$as_echo "$ac_res" >&6; }
2980  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2981
2982} # ac_fn_c_check_func
2983
2984# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2985# --------------------------------------------
2986# Tries to find the compile-time value of EXPR in a program that includes
2987# INCLUDES, setting VAR accordingly. Returns whether the value could be
2988# computed
2989ac_fn_c_compute_int ()
2990{
2991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2992  if test "$cross_compiling" = yes; then
2993    # Depending upon the size, compute the lo and hi bounds.
2994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995/* end confdefs.h.  */
2996$4
2997int
2998main ()
2999{
3000static int test_array [1 - 2 * !(($2) >= 0)];
3001test_array [0] = 0;
3002return test_array [0];
3003
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008if ac_fn_c_try_compile "$LINENO"; then :
3009  ac_lo=0 ac_mid=0
3010  while :; do
3011    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012/* end confdefs.h.  */
3013$4
3014int
3015main ()
3016{
3017static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3018test_array [0] = 0;
3019return test_array [0];
3020
3021  ;
3022  return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_compile "$LINENO"; then :
3026  ac_hi=$ac_mid; break
3027else
3028  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3029			if test $ac_lo -le $ac_mid; then
3030			  ac_lo= ac_hi=
3031			  break
3032			fi
3033			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3034fi
3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036  done
3037else
3038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h.  */
3040$4
3041int
3042main ()
3043{
3044static int test_array [1 - 2 * !(($2) < 0)];
3045test_array [0] = 0;
3046return test_array [0];
3047
3048  ;
3049  return 0;
3050}
3051_ACEOF
3052if ac_fn_c_try_compile "$LINENO"; then :
3053  ac_hi=-1 ac_mid=-1
3054  while :; do
3055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h.  */
3057$4
3058int
3059main ()
3060{
3061static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3062test_array [0] = 0;
3063return test_array [0];
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069if ac_fn_c_try_compile "$LINENO"; then :
3070  ac_lo=$ac_mid; break
3071else
3072  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3073			if test $ac_mid -le $ac_hi; then
3074			  ac_lo= ac_hi=
3075			  break
3076			fi
3077			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3078fi
3079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080  done
3081else
3082  ac_lo= ac_hi=
3083fi
3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085fi
3086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087# Binary search between lo and hi bounds.
3088while test "x$ac_lo" != "x$ac_hi"; do
3089  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091/* end confdefs.h.  */
3092$4
3093int
3094main ()
3095{
3096static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3097test_array [0] = 0;
3098return test_array [0];
3099
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104if ac_fn_c_try_compile "$LINENO"; then :
3105  ac_hi=$ac_mid
3106else
3107  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3108fi
3109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110done
3111case $ac_lo in #((
3112?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3113'') ac_retval=1 ;;
3114esac
3115  else
3116    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117/* end confdefs.h.  */
3118$4
3119static long int longval () { return $2; }
3120static unsigned long int ulongval () { return $2; }
3121#include <stdio.h>
3122#include <stdlib.h>
3123int
3124main ()
3125{
3126
3127  FILE *f = fopen ("conftest.val", "w");
3128  if (! f)
3129    return 1;
3130  if (($2) < 0)
3131    {
3132      long int i = longval ();
3133      if (i != ($2))
3134	return 1;
3135      fprintf (f, "%ld", i);
3136    }
3137  else
3138    {
3139      unsigned long int i = ulongval ();
3140      if (i != ($2))
3141	return 1;
3142      fprintf (f, "%lu", i);
3143    }
3144  /* Do not output a trailing newline, as this causes \r\n confusion
3145     on some platforms.  */
3146  return ferror (f) || fclose (f) != 0;
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152if ac_fn_c_try_run "$LINENO"; then :
3153  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3154else
3155  ac_retval=1
3156fi
3157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3158  conftest.$ac_objext conftest.beam conftest.$ac_ext
3159rm -f conftest.val
3160
3161  fi
3162  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3163  as_fn_set_status $ac_retval
3164
3165} # ac_fn_c_compute_int
3166
3167# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3168# -------------------------------------------
3169# Tests whether TYPE exists after having included INCLUDES, setting cache
3170# variable VAR accordingly.
3171ac_fn_c_check_type ()
3172{
3173  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3175$as_echo_n "checking for $2... " >&6; }
3176if eval \${$3+:} false; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  eval "$3=no"
3180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h.  */
3182$4
3183int
3184main ()
3185{
3186if (sizeof ($2))
3187	 return 0;
3188  ;
3189  return 0;
3190}
3191_ACEOF
3192if ac_fn_c_try_compile "$LINENO"; then :
3193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h.  */
3195$4
3196int
3197main ()
3198{
3199if (sizeof (($2)))
3200	    return 0;
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205if ac_fn_c_try_compile "$LINENO"; then :
3206
3207else
3208  eval "$3=yes"
3209fi
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211fi
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214eval ac_res=\$$3
3215	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3216$as_echo "$ac_res" >&6; }
3217  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3218
3219} # ac_fn_c_check_type
3220
3221# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3222# ----------------------------------------------------
3223# Tries to find if the field MEMBER exists in type AGGR, after including
3224# INCLUDES, setting cache variable VAR accordingly.
3225ac_fn_c_check_member ()
3226{
3227  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3229$as_echo_n "checking for $2.$3... " >&6; }
3230if eval \${$4+:} false; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h.  */
3235$5
3236int
3237main ()
3238{
3239static $2 ac_aggr;
3240if (ac_aggr.$3)
3241return 0;
3242  ;
3243  return 0;
3244}
3245_ACEOF
3246if ac_fn_c_try_compile "$LINENO"; then :
3247  eval "$4=yes"
3248else
3249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250/* end confdefs.h.  */
3251$5
3252int
3253main ()
3254{
3255static $2 ac_aggr;
3256if (sizeof ac_aggr.$3)
3257return 0;
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263  eval "$4=yes"
3264else
3265  eval "$4=no"
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268fi
3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270fi
3271eval ac_res=\$$4
3272	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3273$as_echo "$ac_res" >&6; }
3274  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3275
3276} # ac_fn_c_check_member
3277cat >config.log <<_ACEOF
3278This file contains any messages produced by compilers while
3279running configure, to aid debugging if configure makes a mistake.
3280
3281It was created by xorg-server $as_me 1.18.4, which was
3282generated by GNU Autoconf 2.69.  Invocation command line was
3283
3284  $ $0 $@
3285
3286_ACEOF
3287exec 5>>config.log
3288{
3289cat <<_ASUNAME
3290## --------- ##
3291## Platform. ##
3292## --------- ##
3293
3294hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3295uname -m = `(uname -m) 2>/dev/null || echo unknown`
3296uname -r = `(uname -r) 2>/dev/null || echo unknown`
3297uname -s = `(uname -s) 2>/dev/null || echo unknown`
3298uname -v = `(uname -v) 2>/dev/null || echo unknown`
3299
3300/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3301/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3302
3303/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3304/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3305/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3306/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3307/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3308/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3309/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3310
3311_ASUNAME
3312
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318    $as_echo "PATH: $as_dir"
3319  done
3320IFS=$as_save_IFS
3321
3322} >&5
3323
3324cat >&5 <<_ACEOF
3325
3326
3327## ----------- ##
3328## Core tests. ##
3329## ----------- ##
3330
3331_ACEOF
3332
3333
3334# Keep a trace of the command line.
3335# Strip out --no-create and --no-recursion so they do not pile up.
3336# Strip out --silent because we don't want to record it for future runs.
3337# Also quote any args containing shell meta-characters.
3338# Make two passes to allow for proper duplicate-argument suppression.
3339ac_configure_args=
3340ac_configure_args0=
3341ac_configure_args1=
3342ac_must_keep_next=false
3343for ac_pass in 1 2
3344do
3345  for ac_arg
3346  do
3347    case $ac_arg in
3348    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3349    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3350    | -silent | --silent | --silen | --sile | --sil)
3351      continue ;;
3352    *\'*)
3353      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3354    esac
3355    case $ac_pass in
3356    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3357    2)
3358      as_fn_append ac_configure_args1 " '$ac_arg'"
3359      if test $ac_must_keep_next = true; then
3360	ac_must_keep_next=false # Got value, back to normal.
3361      else
3362	case $ac_arg in
3363	  *=* | --config-cache | -C | -disable-* | --disable-* \
3364	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3365	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3366	  | -with-* | --with-* | -without-* | --without-* | --x)
3367	    case "$ac_configure_args0 " in
3368	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3369	    esac
3370	    ;;
3371	  -* ) ac_must_keep_next=true ;;
3372	esac
3373      fi
3374      as_fn_append ac_configure_args " '$ac_arg'"
3375      ;;
3376    esac
3377  done
3378done
3379{ ac_configure_args0=; unset ac_configure_args0;}
3380{ ac_configure_args1=; unset ac_configure_args1;}
3381
3382# When interrupted or exit'd, cleanup temporary files, and complete
3383# config.log.  We remove comments because anyway the quotes in there
3384# would cause problems or look ugly.
3385# WARNING: Use '\'' to represent an apostrophe within the trap.
3386# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3387trap 'exit_status=$?
3388  # Save into config.log some information that might help in debugging.
3389  {
3390    echo
3391
3392    $as_echo "## ---------------- ##
3393## Cache variables. ##
3394## ---------------- ##"
3395    echo
3396    # The following way of writing the cache mishandles newlines in values,
3397(
3398  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3399    eval ac_val=\$$ac_var
3400    case $ac_val in #(
3401    *${as_nl}*)
3402      case $ac_var in #(
3403      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3404$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3405      esac
3406      case $ac_var in #(
3407      _ | IFS | as_nl) ;; #(
3408      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3409      *) { eval $ac_var=; unset $ac_var;} ;;
3410      esac ;;
3411    esac
3412  done
3413  (set) 2>&1 |
3414    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3415    *${as_nl}ac_space=\ *)
3416      sed -n \
3417	"s/'\''/'\''\\\\'\'''\''/g;
3418	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3419      ;; #(
3420    *)
3421      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3422      ;;
3423    esac |
3424    sort
3425)
3426    echo
3427
3428    $as_echo "## ----------------- ##
3429## Output variables. ##
3430## ----------------- ##"
3431    echo
3432    for ac_var in $ac_subst_vars
3433    do
3434      eval ac_val=\$$ac_var
3435      case $ac_val in
3436      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3437      esac
3438      $as_echo "$ac_var='\''$ac_val'\''"
3439    done | sort
3440    echo
3441
3442    if test -n "$ac_subst_files"; then
3443      $as_echo "## ------------------- ##
3444## File substitutions. ##
3445## ------------------- ##"
3446      echo
3447      for ac_var in $ac_subst_files
3448      do
3449	eval ac_val=\$$ac_var
3450	case $ac_val in
3451	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3452	esac
3453	$as_echo "$ac_var='\''$ac_val'\''"
3454      done | sort
3455      echo
3456    fi
3457
3458    if test -s confdefs.h; then
3459      $as_echo "## ----------- ##
3460## confdefs.h. ##
3461## ----------- ##"
3462      echo
3463      cat confdefs.h
3464      echo
3465    fi
3466    test "$ac_signal" != 0 &&
3467      $as_echo "$as_me: caught signal $ac_signal"
3468    $as_echo "$as_me: exit $exit_status"
3469  } >&5
3470  rm -f core *.core core.conftest.* &&
3471    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3472    exit $exit_status
3473' 0
3474for ac_signal in 1 2 13 15; do
3475  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3476done
3477ac_signal=0
3478
3479# confdefs.h avoids OS command line length limits that DEFS can exceed.
3480rm -f -r conftest* confdefs.h
3481
3482$as_echo "/* confdefs.h */" > confdefs.h
3483
3484# Predefined preprocessor variables.
3485
3486cat >>confdefs.h <<_ACEOF
3487#define PACKAGE_NAME "$PACKAGE_NAME"
3488_ACEOF
3489
3490cat >>confdefs.h <<_ACEOF
3491#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3492_ACEOF
3493
3494cat >>confdefs.h <<_ACEOF
3495#define PACKAGE_VERSION "$PACKAGE_VERSION"
3496_ACEOF
3497
3498cat >>confdefs.h <<_ACEOF
3499#define PACKAGE_STRING "$PACKAGE_STRING"
3500_ACEOF
3501
3502cat >>confdefs.h <<_ACEOF
3503#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3504_ACEOF
3505
3506cat >>confdefs.h <<_ACEOF
3507#define PACKAGE_URL "$PACKAGE_URL"
3508_ACEOF
3509
3510
3511# Let the site file select an alternate cache file if it wants to.
3512# Prefer an explicitly selected file to automatically selected ones.
3513ac_site_file1=NONE
3514ac_site_file2=NONE
3515if test -n "$CONFIG_SITE"; then
3516  # We do not want a PATH search for config.site.
3517  case $CONFIG_SITE in #((
3518    -*)  ac_site_file1=./$CONFIG_SITE;;
3519    */*) ac_site_file1=$CONFIG_SITE;;
3520    *)   ac_site_file1=./$CONFIG_SITE;;
3521  esac
3522elif test "x$prefix" != xNONE; then
3523  ac_site_file1=$prefix/share/config.site
3524  ac_site_file2=$prefix/etc/config.site
3525else
3526  ac_site_file1=$ac_default_prefix/share/config.site
3527  ac_site_file2=$ac_default_prefix/etc/config.site
3528fi
3529for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3530do
3531  test "x$ac_site_file" = xNONE && continue
3532  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3533    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3534$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3535    sed 's/^/| /' "$ac_site_file" >&5
3536    . "$ac_site_file" \
3537      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error $? "failed to load site script $ac_site_file
3540See \`config.log' for more details" "$LINENO" 5; }
3541  fi
3542done
3543
3544if test -r "$cache_file"; then
3545  # Some versions of bash will fail to source /dev/null (special files
3546  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3547  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3548    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3549$as_echo "$as_me: loading cache $cache_file" >&6;}
3550    case $cache_file in
3551      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3552      *)                      . "./$cache_file";;
3553    esac
3554  fi
3555else
3556  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3557$as_echo "$as_me: creating cache $cache_file" >&6;}
3558  >$cache_file
3559fi
3560
3561# Check that the precious variables saved in the cache have kept the same
3562# value.
3563ac_cache_corrupted=false
3564for ac_var in $ac_precious_vars; do
3565  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3566  eval ac_new_set=\$ac_env_${ac_var}_set
3567  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3568  eval ac_new_val=\$ac_env_${ac_var}_value
3569  case $ac_old_set,$ac_new_set in
3570    set,)
3571      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3572$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3573      ac_cache_corrupted=: ;;
3574    ,set)
3575      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3576$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3577      ac_cache_corrupted=: ;;
3578    ,);;
3579    *)
3580      if test "x$ac_old_val" != "x$ac_new_val"; then
3581	# differences in whitespace do not lead to failure.
3582	ac_old_val_w=`echo x $ac_old_val`
3583	ac_new_val_w=`echo x $ac_new_val`
3584	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3585	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3586$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3587	  ac_cache_corrupted=:
3588	else
3589	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3590$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3591	  eval $ac_var=\$ac_old_val
3592	fi
3593	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3594$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3595	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3596$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3597      fi;;
3598  esac
3599  # Pass precious variables to config.status.
3600  if test "$ac_new_set" = set; then
3601    case $ac_new_val in
3602    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3603    *) ac_arg=$ac_var=$ac_new_val ;;
3604    esac
3605    case " $ac_configure_args " in
3606      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3607      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3608    esac
3609  fi
3610done
3611if $ac_cache_corrupted; then
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3615$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3616  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3617fi
3618## -------------------- ##
3619## Main body of script. ##
3620## -------------------- ##
3621
3622ac_ext=c
3623ac_cpp='$CPP $CPPFLAGS'
3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628
3629RELEASE_DATE="2016-07-19"
3630RELEASE_NAME="Skordalia"
3631
3632
3633am__api_version='1.15'
3634
3635ac_aux_dir=
3636for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3637  if test -f "$ac_dir/install-sh"; then
3638    ac_aux_dir=$ac_dir
3639    ac_install_sh="$ac_aux_dir/install-sh -c"
3640    break
3641  elif test -f "$ac_dir/install.sh"; then
3642    ac_aux_dir=$ac_dir
3643    ac_install_sh="$ac_aux_dir/install.sh -c"
3644    break
3645  elif test -f "$ac_dir/shtool"; then
3646    ac_aux_dir=$ac_dir
3647    ac_install_sh="$ac_aux_dir/shtool install -c"
3648    break
3649  fi
3650done
3651if test -z "$ac_aux_dir"; then
3652  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3653fi
3654
3655# These three variables are undocumented and unsupported,
3656# and are intended to be withdrawn in a future Autoconf release.
3657# They can cause serious problems if a builder's source tree is in a directory
3658# whose full name contains unusual characters.
3659ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3660ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3661ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3662
3663
3664# Find a good install program.  We prefer a C program (faster),
3665# so one script is as good as another.  But avoid the broken or
3666# incompatible versions:
3667# SysV /etc/install, /usr/sbin/install
3668# SunOS /usr/etc/install
3669# IRIX /sbin/install
3670# AIX /bin/install
3671# AmigaOS /C/install, which installs bootblocks on floppy discs
3672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3675# OS/2's system install, which has a completely different semantic
3676# ./install, which can be erroneously created by make from ./install.sh.
3677# Reject install programs that cannot install multiple files.
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3679$as_echo_n "checking for a BSD-compatible install... " >&6; }
3680if test -z "$INSTALL"; then
3681if ${ac_cv_path_install+:} false; then :
3682  $as_echo_n "(cached) " >&6
3683else
3684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689    # Account for people who put trailing slashes in PATH elements.
3690case $as_dir/ in #((
3691  ./ | .// | /[cC]/* | \
3692  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3693  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3694  /usr/ucb/* ) ;;
3695  *)
3696    # OSF1 and SCO ODT 3.0 have their own names for install.
3697    # Don't use installbsd from OSF since it installs stuff as root
3698    # by default.
3699    for ac_prog in ginstall scoinst install; do
3700      for ac_exec_ext in '' $ac_executable_extensions; do
3701	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3702	  if test $ac_prog = install &&
3703	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704	    # AIX install.  It has an incompatible calling convention.
3705	    :
3706	  elif test $ac_prog = install &&
3707	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3708	    # program-specific install script used by HP pwplus--don't use.
3709	    :
3710	  else
3711	    rm -rf conftest.one conftest.two conftest.dir
3712	    echo one > conftest.one
3713	    echo two > conftest.two
3714	    mkdir conftest.dir
3715	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3716	      test -s conftest.one && test -s conftest.two &&
3717	      test -s conftest.dir/conftest.one &&
3718	      test -s conftest.dir/conftest.two
3719	    then
3720	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3721	      break 3
3722	    fi
3723	  fi
3724	fi
3725      done
3726    done
3727    ;;
3728esac
3729
3730  done
3731IFS=$as_save_IFS
3732
3733rm -rf conftest.one conftest.two conftest.dir
3734
3735fi
3736  if test "${ac_cv_path_install+set}" = set; then
3737    INSTALL=$ac_cv_path_install
3738  else
3739    # As a last resort, use the slow shell script.  Don't cache a
3740    # value for INSTALL within a source directory, because that will
3741    # break other packages using the cache if that directory is
3742    # removed, or if the value is a relative name.
3743    INSTALL=$ac_install_sh
3744  fi
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3747$as_echo "$INSTALL" >&6; }
3748
3749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3750# It thinks the first close brace ends the variable substitution.
3751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3752
3753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3754
3755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3756
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3758$as_echo_n "checking whether build environment is sane... " >&6; }
3759# Reject unsafe characters in $srcdir or the absolute working directory
3760# name.  Accept space and tab only in the latter.
3761am_lf='
3762'
3763case `pwd` in
3764  *[\\\"\#\$\&\'\`$am_lf]*)
3765    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3766esac
3767case $srcdir in
3768  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3769    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3770esac
3771
3772# Do 'set' in a subshell so we don't clobber the current shell's
3773# arguments.  Must try -L first in case configure is actually a
3774# symlink; some systems play weird games with the mod time of symlinks
3775# (eg FreeBSD returns the mod time of the symlink's containing
3776# directory).
3777if (
3778   am_has_slept=no
3779   for am_try in 1 2; do
3780     echo "timestamp, slept: $am_has_slept" > conftest.file
3781     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3782     if test "$*" = "X"; then
3783	# -L didn't work.
3784	set X `ls -t "$srcdir/configure" conftest.file`
3785     fi
3786     if test "$*" != "X $srcdir/configure conftest.file" \
3787	&& test "$*" != "X conftest.file $srcdir/configure"; then
3788
3789	# If neither matched, then we have a broken ls.  This can happen
3790	# if, for instance, CONFIG_SHELL is bash and it inherits a
3791	# broken ls alias from the environment.  This has actually
3792	# happened.  Such a system could not be considered "sane".
3793	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3794  alias in your environment" "$LINENO" 5
3795     fi
3796     if test "$2" = conftest.file || test $am_try -eq 2; then
3797       break
3798     fi
3799     # Just in case.
3800     sleep 1
3801     am_has_slept=yes
3802   done
3803   test "$2" = conftest.file
3804   )
3805then
3806   # Ok.
3807   :
3808else
3809   as_fn_error $? "newly created file is older than distributed files!
3810Check your system clock" "$LINENO" 5
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3813$as_echo "yes" >&6; }
3814# If we didn't sleep, we still need to ensure time stamps of config.status and
3815# generated files are strictly newer.
3816am_sleep_pid=
3817if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3818  ( sleep 1 ) &
3819  am_sleep_pid=$!
3820fi
3821
3822rm -f conftest.file
3823
3824test "$program_prefix" != NONE &&
3825  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3826# Use a double $ so make ignores it.
3827test "$program_suffix" != NONE &&
3828  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3829# Double any \ or $.
3830# By default was `s,x,x', remove it if useless.
3831ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3832program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3833
3834# Expand $ac_aux_dir to an absolute path.
3835am_aux_dir=`cd "$ac_aux_dir" && pwd`
3836
3837if test x"${MISSING+set}" != xset; then
3838  case $am_aux_dir in
3839  *\ * | *\	*)
3840    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3841  *)
3842    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3843  esac
3844fi
3845# Use eval to expand $SHELL
3846if eval "$MISSING --is-lightweight"; then
3847  am_missing_run="$MISSING "
3848else
3849  am_missing_run=
3850  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3851$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3852fi
3853
3854if test x"${install_sh+set}" != xset; then
3855  case $am_aux_dir in
3856  *\ * | *\	*)
3857    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3858  *)
3859    install_sh="\${SHELL} $am_aux_dir/install-sh"
3860  esac
3861fi
3862
3863# Installed binaries are usually stripped using 'strip' when the user
3864# run "make install-strip".  However 'strip' might not be the right
3865# tool to use in cross-compilation environments, therefore Automake
3866# will honor the 'STRIP' environment variable to overrule this program.
3867if test "$cross_compiling" != no; then
3868  if test -n "$ac_tool_prefix"; then
3869  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3870set dummy ${ac_tool_prefix}strip; ac_word=$2
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872$as_echo_n "checking for $ac_word... " >&6; }
3873if ${ac_cv_prog_STRIP+:} false; then :
3874  $as_echo_n "(cached) " >&6
3875else
3876  if test -n "$STRIP"; then
3877  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882  IFS=$as_save_IFS
3883  test -z "$as_dir" && as_dir=.
3884    for ac_exec_ext in '' $ac_executable_extensions; do
3885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888    break 2
3889  fi
3890done
3891  done
3892IFS=$as_save_IFS
3893
3894fi
3895fi
3896STRIP=$ac_cv_prog_STRIP
3897if test -n "$STRIP"; then
3898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3899$as_echo "$STRIP" >&6; }
3900else
3901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902$as_echo "no" >&6; }
3903fi
3904
3905
3906fi
3907if test -z "$ac_cv_prog_STRIP"; then
3908  ac_ct_STRIP=$STRIP
3909  # Extract the first word of "strip", so it can be a program name with args.
3910set dummy strip; ac_word=$2
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
3913if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  if test -n "$ac_ct_STRIP"; then
3917  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3918else
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922  IFS=$as_save_IFS
3923  test -z "$as_dir" && as_dir=.
3924    for ac_exec_ext in '' $ac_executable_extensions; do
3925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926    ac_cv_prog_ac_ct_STRIP="strip"
3927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928    break 2
3929  fi
3930done
3931  done
3932IFS=$as_save_IFS
3933
3934fi
3935fi
3936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3937if test -n "$ac_ct_STRIP"; then
3938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3939$as_echo "$ac_ct_STRIP" >&6; }
3940else
3941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942$as_echo "no" >&6; }
3943fi
3944
3945  if test "x$ac_ct_STRIP" = x; then
3946    STRIP=":"
3947  else
3948    case $cross_compiling:$ac_tool_warned in
3949yes:)
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3952ac_tool_warned=yes ;;
3953esac
3954    STRIP=$ac_ct_STRIP
3955  fi
3956else
3957  STRIP="$ac_cv_prog_STRIP"
3958fi
3959
3960fi
3961INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3964$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3965if test -z "$MKDIR_P"; then
3966  if ${ac_cv_path_mkdir+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3971do
3972  IFS=$as_save_IFS
3973  test -z "$as_dir" && as_dir=.
3974    for ac_prog in mkdir gmkdir; do
3975	 for ac_exec_ext in '' $ac_executable_extensions; do
3976	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3977	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3978	     'mkdir (GNU coreutils) '* | \
3979	     'mkdir (coreutils) '* | \
3980	     'mkdir (fileutils) '4.1*)
3981	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3982	       break 3;;
3983	   esac
3984	 done
3985       done
3986  done
3987IFS=$as_save_IFS
3988
3989fi
3990
3991  test -d ./--version && rmdir ./--version
3992  if test "${ac_cv_path_mkdir+set}" = set; then
3993    MKDIR_P="$ac_cv_path_mkdir -p"
3994  else
3995    # As a last resort, use the slow shell script.  Don't cache a
3996    # value for MKDIR_P within a source directory, because that will
3997    # break other packages using the cache if that directory is
3998    # removed, or if the value is a relative name.
3999    MKDIR_P="$ac_install_sh -d"
4000  fi
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4003$as_echo "$MKDIR_P" >&6; }
4004
4005for ac_prog in gawk mawk nawk awk
4006do
4007  # Extract the first word of "$ac_prog", so it can be a program name with args.
4008set dummy $ac_prog; ac_word=$2
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010$as_echo_n "checking for $ac_word... " >&6; }
4011if ${ac_cv_prog_AWK+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if test -n "$AWK"; then
4015  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020  IFS=$as_save_IFS
4021  test -z "$as_dir" && as_dir=.
4022    for ac_exec_ext in '' $ac_executable_extensions; do
4023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024    ac_cv_prog_AWK="$ac_prog"
4025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026    break 2
4027  fi
4028done
4029  done
4030IFS=$as_save_IFS
4031
4032fi
4033fi
4034AWK=$ac_cv_prog_AWK
4035if test -n "$AWK"; then
4036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4037$as_echo "$AWK" >&6; }
4038else
4039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040$as_echo "no" >&6; }
4041fi
4042
4043
4044  test -n "$AWK" && break
4045done
4046
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4048$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4049set x ${MAKE-make}
4050ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4051if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  cat >conftest.make <<\_ACEOF
4055SHELL = /bin/sh
4056all:
4057	@echo '@@@%%%=$(MAKE)=@@@%%%'
4058_ACEOF
4059# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4060case `${MAKE-make} -f conftest.make 2>/dev/null` in
4061  *@@@%%%=?*=@@@%%%*)
4062    eval ac_cv_prog_make_${ac_make}_set=yes;;
4063  *)
4064    eval ac_cv_prog_make_${ac_make}_set=no;;
4065esac
4066rm -f conftest.make
4067fi
4068if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070$as_echo "yes" >&6; }
4071  SET_MAKE=
4072else
4073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074$as_echo "no" >&6; }
4075  SET_MAKE="MAKE=${MAKE-make}"
4076fi
4077
4078rm -rf .tst 2>/dev/null
4079mkdir .tst 2>/dev/null
4080if test -d .tst; then
4081  am__leading_dot=.
4082else
4083  am__leading_dot=_
4084fi
4085rmdir .tst 2>/dev/null
4086
4087# Check whether --enable-silent-rules was given.
4088if test "${enable_silent_rules+set}" = set; then :
4089  enableval=$enable_silent_rules;
4090fi
4091
4092case $enable_silent_rules in # (((
4093  yes) AM_DEFAULT_VERBOSITY=0;;
4094   no) AM_DEFAULT_VERBOSITY=1;;
4095    *) AM_DEFAULT_VERBOSITY=1;;
4096esac
4097am_make=${MAKE-make}
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4099$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4100if ${am_cv_make_support_nested_variables+:} false; then :
4101  $as_echo_n "(cached) " >&6
4102else
4103  if $as_echo 'TRUE=$(BAR$(V))
4104BAR0=false
4105BAR1=true
4106V=1
4107am__doit:
4108	@$(TRUE)
4109.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4110  am_cv_make_support_nested_variables=yes
4111else
4112  am_cv_make_support_nested_variables=no
4113fi
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4116$as_echo "$am_cv_make_support_nested_variables" >&6; }
4117if test $am_cv_make_support_nested_variables = yes; then
4118    AM_V='$(V)'
4119  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4120else
4121  AM_V=$AM_DEFAULT_VERBOSITY
4122  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4123fi
4124AM_BACKSLASH='\'
4125
4126if test "`cd $srcdir && pwd`" != "`pwd`"; then
4127  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4128  # is not polluted with repeated "-I."
4129  am__isrc=' -I$(srcdir)'
4130  # test to see if srcdir already configured
4131  if test -f $srcdir/config.status; then
4132    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4133  fi
4134fi
4135
4136# test whether we have cygpath
4137if test -z "$CYGPATH_W"; then
4138  if (cygpath --version) >/dev/null 2>/dev/null; then
4139    CYGPATH_W='cygpath -w'
4140  else
4141    CYGPATH_W=echo
4142  fi
4143fi
4144
4145
4146# Define the identity of the package.
4147 PACKAGE='xorg-server'
4148 VERSION='1.18.4'
4149
4150
4151cat >>confdefs.h <<_ACEOF
4152#define PACKAGE "$PACKAGE"
4153_ACEOF
4154
4155
4156cat >>confdefs.h <<_ACEOF
4157#define VERSION "$VERSION"
4158_ACEOF
4159
4160# Some tools Automake needs.
4161
4162ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4163
4164
4165AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4166
4167
4168AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4169
4170
4171AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4172
4173
4174MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4175
4176# For better backward compatibility.  To be removed once Automake 1.9.x
4177# dies out for good.  For more background, see:
4178# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4179# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4180mkdir_p='$(MKDIR_P)'
4181
4182# We need awk for the "check" target (and possibly the TAP driver).  The
4183# system "awk" is bad on some platforms.
4184# Always define AMTAR for backward compatibility.  Yes, it's still used
4185# in the wild :-(  We should find a proper way to deprecate it ...
4186AMTAR='$${TAR-tar}'
4187
4188
4189# We'll loop over all known methods to create a tar archive until one works.
4190_am_tools='gnutar  pax cpio none'
4191
4192am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4193
4194
4195
4196
4197
4198
4199# POSIX will say in a future version that running "rm -f" with no argument
4200# is OK; and we want to be able to make that assumption in our Makefile
4201# recipes.  So use an aggressive probe to check that the usage we want is
4202# actually supported "in the wild" to an acceptable degree.
4203# See automake bug#10828.
4204# To make any issue more visible, cause the running configure to be aborted
4205# by default if the 'rm' program in use doesn't match our expectations; the
4206# user can still override this though.
4207if rm -f && rm -fr && rm -rf; then : OK; else
4208  cat >&2 <<'END'
4209Oops!
4210
4211Your 'rm' program seems unable to run without file operands specified
4212on the command line, even when the '-f' option is present.  This is contrary
4213to the behaviour of most rm programs out there, and not conforming with
4214the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4215
4216Please tell bug-automake@gnu.org about your system, including the value
4217of your $PATH and any error possibly output before this message.  This
4218can help us improve future automake versions.
4219
4220END
4221  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4222    echo 'Configuration will proceed anyway, since you have set the' >&2
4223    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4224    echo >&2
4225  else
4226    cat >&2 <<'END'
4227Aborting the configuration process, to ensure you take notice of the issue.
4228
4229You can download and install GNU coreutils to get an 'rm' implementation
4230that behaves properly: <http://www.gnu.org/software/coreutils/>.
4231
4232If you want to complete the configuration process using your problematic
4233'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4234to "yes", and re-run configure.
4235
4236END
4237    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4238  fi
4239fi
4240
4241DEPDIR="${am__leading_dot}deps"
4242
4243ac_config_commands="$ac_config_commands depfiles"
4244
4245
4246am_make=${MAKE-make}
4247cat > confinc << 'END'
4248am__doit:
4249	@echo this is the am__doit target
4250.PHONY: am__doit
4251END
4252# If we don't find an include directive, just comment out the code.
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4254$as_echo_n "checking for style of include used by $am_make... " >&6; }
4255am__include="#"
4256am__quote=
4257_am_result=none
4258# First try GNU make style include.
4259echo "include confinc" > confmf
4260# Ignore all kinds of additional output from 'make'.
4261case `$am_make -s -f confmf 2> /dev/null` in #(
4262*the\ am__doit\ target*)
4263  am__include=include
4264  am__quote=
4265  _am_result=GNU
4266  ;;
4267esac
4268# Now try BSD make style include.
4269if test "$am__include" = "#"; then
4270   echo '.include "confinc"' > confmf
4271   case `$am_make -s -f confmf 2> /dev/null` in #(
4272   *the\ am__doit\ target*)
4273     am__include=.include
4274     am__quote="\""
4275     _am_result=BSD
4276     ;;
4277   esac
4278fi
4279
4280
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4282$as_echo "$_am_result" >&6; }
4283rm -f confinc confmf
4284
4285# Check whether --enable-dependency-tracking was given.
4286if test "${enable_dependency_tracking+set}" = set; then :
4287  enableval=$enable_dependency_tracking;
4288fi
4289
4290if test "x$enable_dependency_tracking" != xno; then
4291  am_depcomp="$ac_aux_dir/depcomp"
4292  AMDEPBACKSLASH='\'
4293  am__nodep='_no'
4294fi
4295 if test "x$enable_dependency_tracking" != xno; then
4296  AMDEP_TRUE=
4297  AMDEP_FALSE='#'
4298else
4299  AMDEP_TRUE='#'
4300  AMDEP_FALSE=
4301fi
4302
4303
4304ac_ext=c
4305ac_cpp='$CPP $CPPFLAGS'
4306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309if test -n "$ac_tool_prefix"; then
4310  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4311set dummy ${ac_tool_prefix}gcc; ac_word=$2
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313$as_echo_n "checking for $ac_word... " >&6; }
4314if ${ac_cv_prog_CC+:} false; then :
4315  $as_echo_n "(cached) " >&6
4316else
4317  if test -n "$CC"; then
4318  ac_cv_prog_CC="$CC" # Let the user override the test.
4319else
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323  IFS=$as_save_IFS
4324  test -z "$as_dir" && as_dir=.
4325    for ac_exec_ext in '' $ac_executable_extensions; do
4326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329    break 2
4330  fi
4331done
4332  done
4333IFS=$as_save_IFS
4334
4335fi
4336fi
4337CC=$ac_cv_prog_CC
4338if test -n "$CC"; then
4339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4340$as_echo "$CC" >&6; }
4341else
4342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343$as_echo "no" >&6; }
4344fi
4345
4346
4347fi
4348if test -z "$ac_cv_prog_CC"; then
4349  ac_ct_CC=$CC
4350  # Extract the first word of "gcc", so it can be a program name with args.
4351set dummy gcc; ac_word=$2
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353$as_echo_n "checking for $ac_word... " >&6; }
4354if ${ac_cv_prog_ac_ct_CC+:} false; then :
4355  $as_echo_n "(cached) " >&6
4356else
4357  if test -n "$ac_ct_CC"; then
4358  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363  IFS=$as_save_IFS
4364  test -z "$as_dir" && as_dir=.
4365    for ac_exec_ext in '' $ac_executable_extensions; do
4366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367    ac_cv_prog_ac_ct_CC="gcc"
4368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369    break 2
4370  fi
4371done
4372  done
4373IFS=$as_save_IFS
4374
4375fi
4376fi
4377ac_ct_CC=$ac_cv_prog_ac_ct_CC
4378if test -n "$ac_ct_CC"; then
4379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4380$as_echo "$ac_ct_CC" >&6; }
4381else
4382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383$as_echo "no" >&6; }
4384fi
4385
4386  if test "x$ac_ct_CC" = x; then
4387    CC=""
4388  else
4389    case $cross_compiling:$ac_tool_warned in
4390yes:)
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393ac_tool_warned=yes ;;
4394esac
4395    CC=$ac_ct_CC
4396  fi
4397else
4398  CC="$ac_cv_prog_CC"
4399fi
4400
4401if test -z "$CC"; then
4402          if test -n "$ac_tool_prefix"; then
4403    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4404set dummy ${ac_tool_prefix}cc; ac_word=$2
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if ${ac_cv_prog_CC+:} false; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  if test -n "$CC"; then
4411  ac_cv_prog_CC="$CC" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420    ac_cv_prog_CC="${ac_tool_prefix}cc"
4421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425  done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430CC=$ac_cv_prog_CC
4431if test -n "$CC"; then
4432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4433$as_echo "$CC" >&6; }
4434else
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
4438
4439
4440  fi
4441fi
4442if test -z "$CC"; then
4443  # Extract the first word of "cc", so it can be a program name with args.
4444set dummy cc; ac_word=$2
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446$as_echo_n "checking for $ac_word... " >&6; }
4447if ${ac_cv_prog_CC+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  if test -n "$CC"; then
4451  ac_cv_prog_CC="$CC" # Let the user override the test.
4452else
4453  ac_prog_rejected=no
4454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455for as_dir in $PATH
4456do
4457  IFS=$as_save_IFS
4458  test -z "$as_dir" && as_dir=.
4459    for ac_exec_ext in '' $ac_executable_extensions; do
4460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4462       ac_prog_rejected=yes
4463       continue
4464     fi
4465    ac_cv_prog_CC="cc"
4466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467    break 2
4468  fi
4469done
4470  done
4471IFS=$as_save_IFS
4472
4473if test $ac_prog_rejected = yes; then
4474  # We found a bogon in the path, so make sure we never use it.
4475  set dummy $ac_cv_prog_CC
4476  shift
4477  if test $# != 0; then
4478    # We chose a different compiler from the bogus one.
4479    # However, it has the same basename, so the bogon will be chosen
4480    # first if we set CC to just the basename; use the full file name.
4481    shift
4482    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4483  fi
4484fi
4485fi
4486fi
4487CC=$ac_cv_prog_CC
4488if test -n "$CC"; then
4489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4490$as_echo "$CC" >&6; }
4491else
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493$as_echo "no" >&6; }
4494fi
4495
4496
4497fi
4498if test -z "$CC"; then
4499  if test -n "$ac_tool_prefix"; then
4500  for ac_prog in cl.exe
4501  do
4502    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505$as_echo_n "checking for $ac_word... " >&6; }
4506if ${ac_cv_prog_CC+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  if test -n "$CC"; then
4510  ac_cv_prog_CC="$CC" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515  IFS=$as_save_IFS
4516  test -z "$as_dir" && as_dir=.
4517    for ac_exec_ext in '' $ac_executable_extensions; do
4518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521    break 2
4522  fi
4523done
4524  done
4525IFS=$as_save_IFS
4526
4527fi
4528fi
4529CC=$ac_cv_prog_CC
4530if test -n "$CC"; then
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4532$as_echo "$CC" >&6; }
4533else
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536fi
4537
4538
4539    test -n "$CC" && break
4540  done
4541fi
4542if test -z "$CC"; then
4543  ac_ct_CC=$CC
4544  for ac_prog in cl.exe
4545do
4546  # Extract the first word of "$ac_prog", so it can be a program name with args.
4547set dummy $ac_prog; ac_word=$2
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549$as_echo_n "checking for $ac_word... " >&6; }
4550if ${ac_cv_prog_ac_ct_CC+:} false; then :
4551  $as_echo_n "(cached) " >&6
4552else
4553  if test -n "$ac_ct_CC"; then
4554  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559  IFS=$as_save_IFS
4560  test -z "$as_dir" && as_dir=.
4561    for ac_exec_ext in '' $ac_executable_extensions; do
4562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563    ac_cv_prog_ac_ct_CC="$ac_prog"
4564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565    break 2
4566  fi
4567done
4568  done
4569IFS=$as_save_IFS
4570
4571fi
4572fi
4573ac_ct_CC=$ac_cv_prog_ac_ct_CC
4574if test -n "$ac_ct_CC"; then
4575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4576$as_echo "$ac_ct_CC" >&6; }
4577else
4578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579$as_echo "no" >&6; }
4580fi
4581
4582
4583  test -n "$ac_ct_CC" && break
4584done
4585
4586  if test "x$ac_ct_CC" = x; then
4587    CC=""
4588  else
4589    case $cross_compiling:$ac_tool_warned in
4590yes:)
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593ac_tool_warned=yes ;;
4594esac
4595    CC=$ac_ct_CC
4596  fi
4597fi
4598
4599fi
4600
4601
4602test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604as_fn_error $? "no acceptable C compiler found in \$PATH
4605See \`config.log' for more details" "$LINENO" 5; }
4606
4607# Provide some information about the compiler.
4608$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4609set X $ac_compile
4610ac_compiler=$2
4611for ac_option in --version -v -V -qversion; do
4612  { { ac_try="$ac_compiler $ac_option >&5"
4613case "(($ac_try" in
4614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615  *) ac_try_echo=$ac_try;;
4616esac
4617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618$as_echo "$ac_try_echo"; } >&5
4619  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4620  ac_status=$?
4621  if test -s conftest.err; then
4622    sed '10a\
4623... rest of stderr output deleted ...
4624         10q' conftest.err >conftest.er1
4625    cat conftest.er1 >&5
4626  fi
4627  rm -f conftest.er1 conftest.err
4628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629  test $ac_status = 0; }
4630done
4631
4632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634
4635int
4636main ()
4637{
4638
4639  ;
4640  return 0;
4641}
4642_ACEOF
4643ac_clean_files_save=$ac_clean_files
4644ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4645# Try to create an executable without -o first, disregard a.out.
4646# It will help us diagnose broken compilers, and finding out an intuition
4647# of exeext.
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4649$as_echo_n "checking whether the C compiler works... " >&6; }
4650ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4651
4652# The possible output files:
4653ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4654
4655ac_rmfiles=
4656for ac_file in $ac_files
4657do
4658  case $ac_file in
4659    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4660    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4661  esac
4662done
4663rm -f $ac_rmfiles
4664
4665if { { ac_try="$ac_link_default"
4666case "(($ac_try" in
4667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668  *) ac_try_echo=$ac_try;;
4669esac
4670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671$as_echo "$ac_try_echo"; } >&5
4672  (eval "$ac_link_default") 2>&5
4673  ac_status=$?
4674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675  test $ac_status = 0; }; then :
4676  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4677# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4678# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4679# so that the user can short-circuit this test for compilers unknown to
4680# Autoconf.
4681for ac_file in $ac_files ''
4682do
4683  test -f "$ac_file" || continue
4684  case $ac_file in
4685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4686	;;
4687    [ab].out )
4688	# We found the default executable, but exeext='' is most
4689	# certainly right.
4690	break;;
4691    *.* )
4692	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4693	then :; else
4694	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4695	fi
4696	# We set ac_cv_exeext here because the later test for it is not
4697	# safe: cross compilers may not add the suffix if given an `-o'
4698	# argument, so we may need to know it at that point already.
4699	# Even if this section looks crufty: it has the advantage of
4700	# actually working.
4701	break;;
4702    * )
4703	break;;
4704  esac
4705done
4706test "$ac_cv_exeext" = no && ac_cv_exeext=
4707
4708else
4709  ac_file=''
4710fi
4711if test -z "$ac_file"; then :
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714$as_echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
4717{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4719as_fn_error 77 "C compiler cannot create executables
4720See \`config.log' for more details" "$LINENO" 5; }
4721else
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4723$as_echo "yes" >&6; }
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4726$as_echo_n "checking for C compiler default output file name... " >&6; }
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4728$as_echo "$ac_file" >&6; }
4729ac_exeext=$ac_cv_exeext
4730
4731rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4732ac_clean_files=$ac_clean_files_save
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4734$as_echo_n "checking for suffix of executables... " >&6; }
4735if { { ac_try="$ac_link"
4736case "(($ac_try" in
4737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738  *) ac_try_echo=$ac_try;;
4739esac
4740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4741$as_echo "$ac_try_echo"; } >&5
4742  (eval "$ac_link") 2>&5
4743  ac_status=$?
4744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4745  test $ac_status = 0; }; then :
4746  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4747# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4748# work properly (i.e., refer to `conftest.exe'), while it won't with
4749# `rm'.
4750for ac_file in conftest.exe conftest conftest.*; do
4751  test -f "$ac_file" || continue
4752  case $ac_file in
4753    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4754    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4755	  break;;
4756    * ) break;;
4757  esac
4758done
4759else
4760  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4762as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4763See \`config.log' for more details" "$LINENO" 5; }
4764fi
4765rm -f conftest conftest$ac_cv_exeext
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4767$as_echo "$ac_cv_exeext" >&6; }
4768
4769rm -f conftest.$ac_ext
4770EXEEXT=$ac_cv_exeext
4771ac_exeext=$EXEEXT
4772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h.  */
4774#include <stdio.h>
4775int
4776main ()
4777{
4778FILE *f = fopen ("conftest.out", "w");
4779 return ferror (f) || fclose (f) != 0;
4780
4781  ;
4782  return 0;
4783}
4784_ACEOF
4785ac_clean_files="$ac_clean_files conftest.out"
4786# Check that the compiler produces executables we can run.  If not, either
4787# the compiler is broken, or we cross compile.
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4789$as_echo_n "checking whether we are cross compiling... " >&6; }
4790if test "$cross_compiling" != yes; then
4791  { { ac_try="$ac_link"
4792case "(($ac_try" in
4793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794  *) ac_try_echo=$ac_try;;
4795esac
4796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797$as_echo "$ac_try_echo"; } >&5
4798  (eval "$ac_link") 2>&5
4799  ac_status=$?
4800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801  test $ac_status = 0; }
4802  if { ac_try='./conftest$ac_cv_exeext'
4803  { { case "(($ac_try" in
4804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805  *) ac_try_echo=$ac_try;;
4806esac
4807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808$as_echo "$ac_try_echo"; } >&5
4809  (eval "$ac_try") 2>&5
4810  ac_status=$?
4811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812  test $ac_status = 0; }; }; then
4813    cross_compiling=no
4814  else
4815    if test "$cross_compiling" = maybe; then
4816	cross_compiling=yes
4817    else
4818	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4820as_fn_error $? "cannot run C compiled programs.
4821If you meant to cross compile, use \`--host'.
4822See \`config.log' for more details" "$LINENO" 5; }
4823    fi
4824  fi
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4827$as_echo "$cross_compiling" >&6; }
4828
4829rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4830ac_clean_files=$ac_clean_files_save
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4832$as_echo_n "checking for suffix of object files... " >&6; }
4833if ${ac_cv_objext+:} false; then :
4834  $as_echo_n "(cached) " >&6
4835else
4836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h.  */
4838
4839int
4840main ()
4841{
4842
4843  ;
4844  return 0;
4845}
4846_ACEOF
4847rm -f conftest.o conftest.obj
4848if { { ac_try="$ac_compile"
4849case "(($ac_try" in
4850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851  *) ac_try_echo=$ac_try;;
4852esac
4853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4854$as_echo "$ac_try_echo"; } >&5
4855  (eval "$ac_compile") 2>&5
4856  ac_status=$?
4857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4858  test $ac_status = 0; }; then :
4859  for ac_file in conftest.o conftest.obj conftest.*; do
4860  test -f "$ac_file" || continue;
4861  case $ac_file in
4862    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4863    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4864       break;;
4865  esac
4866done
4867else
4868  $as_echo "$as_me: failed program was:" >&5
4869sed 's/^/| /' conftest.$ac_ext >&5
4870
4871{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4873as_fn_error $? "cannot compute suffix of object files: cannot compile
4874See \`config.log' for more details" "$LINENO" 5; }
4875fi
4876rm -f conftest.$ac_cv_objext conftest.$ac_ext
4877fi
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4879$as_echo "$ac_cv_objext" >&6; }
4880OBJEXT=$ac_cv_objext
4881ac_objext=$OBJEXT
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4883$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4884if ${ac_cv_c_compiler_gnu+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888/* end confdefs.h.  */
4889
4890int
4891main ()
4892{
4893#ifndef __GNUC__
4894       choke me
4895#endif
4896
4897  ;
4898  return 0;
4899}
4900_ACEOF
4901if ac_fn_c_try_compile "$LINENO"; then :
4902  ac_compiler_gnu=yes
4903else
4904  ac_compiler_gnu=no
4905fi
4906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907ac_cv_c_compiler_gnu=$ac_compiler_gnu
4908
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4911$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4912if test $ac_compiler_gnu = yes; then
4913  GCC=yes
4914else
4915  GCC=
4916fi
4917ac_test_CFLAGS=${CFLAGS+set}
4918ac_save_CFLAGS=$CFLAGS
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4920$as_echo_n "checking whether $CC accepts -g... " >&6; }
4921if ${ac_cv_prog_cc_g+:} false; then :
4922  $as_echo_n "(cached) " >&6
4923else
4924  ac_save_c_werror_flag=$ac_c_werror_flag
4925   ac_c_werror_flag=yes
4926   ac_cv_prog_cc_g=no
4927   CFLAGS="-g"
4928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930
4931int
4932main ()
4933{
4934
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940  ac_cv_prog_cc_g=yes
4941else
4942  CFLAGS=""
4943      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h.  */
4945
4946int
4947main ()
4948{
4949
4950  ;
4951  return 0;
4952}
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955
4956else
4957  ac_c_werror_flag=$ac_save_c_werror_flag
4958	 CFLAGS="-g"
4959	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960/* end confdefs.h.  */
4961
4962int
4963main ()
4964{
4965
4966  ;
4967  return 0;
4968}
4969_ACEOF
4970if ac_fn_c_try_compile "$LINENO"; then :
4971  ac_cv_prog_cc_g=yes
4972fi
4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974fi
4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976fi
4977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978   ac_c_werror_flag=$ac_save_c_werror_flag
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4981$as_echo "$ac_cv_prog_cc_g" >&6; }
4982if test "$ac_test_CFLAGS" = set; then
4983  CFLAGS=$ac_save_CFLAGS
4984elif test $ac_cv_prog_cc_g = yes; then
4985  if test "$GCC" = yes; then
4986    CFLAGS="-g -O2"
4987  else
4988    CFLAGS="-g"
4989  fi
4990else
4991  if test "$GCC" = yes; then
4992    CFLAGS="-O2"
4993  else
4994    CFLAGS=
4995  fi
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4998$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4999if ${ac_cv_prog_cc_c89+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  ac_cv_prog_cc_c89=no
5003ac_save_CC=$CC
5004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006#include <stdarg.h>
5007#include <stdio.h>
5008struct stat;
5009/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5010struct buf { int x; };
5011FILE * (*rcsopen) (struct buf *, struct stat *, int);
5012static char *e (p, i)
5013     char **p;
5014     int i;
5015{
5016  return p[i];
5017}
5018static char *f (char * (*g) (char **, int), char **p, ...)
5019{
5020  char *s;
5021  va_list v;
5022  va_start (v,p);
5023  s = g (p, va_arg (v,int));
5024  va_end (v);
5025  return s;
5026}
5027
5028/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5029   function prototypes and stuff, but not '\xHH' hex character constants.
5030   These don't provoke an error unfortunately, instead are silently treated
5031   as 'x'.  The following induces an error, until -std is added to get
5032   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5033   array size at least.  It's necessary to write '\x00'==0 to get something
5034   that's true only with -std.  */
5035int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5036
5037/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5038   inside strings and character constants.  */
5039#define FOO(x) 'x'
5040int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5041
5042int test (int i, double x);
5043struct s1 {int (*f) (int a);};
5044struct s2 {int (*f) (double a);};
5045int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5046int argc;
5047char **argv;
5048int
5049main ()
5050{
5051return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5057	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5058do
5059  CC="$ac_save_CC $ac_arg"
5060  if ac_fn_c_try_compile "$LINENO"; then :
5061  ac_cv_prog_cc_c89=$ac_arg
5062fi
5063rm -f core conftest.err conftest.$ac_objext
5064  test "x$ac_cv_prog_cc_c89" != "xno" && break
5065done
5066rm -f conftest.$ac_ext
5067CC=$ac_save_CC
5068
5069fi
5070# AC_CACHE_VAL
5071case "x$ac_cv_prog_cc_c89" in
5072  x)
5073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5074$as_echo "none needed" >&6; } ;;
5075  xno)
5076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5077$as_echo "unsupported" >&6; } ;;
5078  *)
5079    CC="$CC $ac_cv_prog_cc_c89"
5080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5081$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5082esac
5083if test "x$ac_cv_prog_cc_c89" != xno; then :
5084
5085fi
5086
5087ac_ext=c
5088ac_cpp='$CPP $CPPFLAGS'
5089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092
5093ac_ext=c
5094ac_cpp='$CPP $CPPFLAGS'
5095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5099$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5100if ${am_cv_prog_cc_c_o+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h.  */
5105
5106int
5107main ()
5108{
5109
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114  # Make sure it works both with $CC and with simple cc.
5115  # Following AC_PROG_CC_C_O, we do the test twice because some
5116  # compilers refuse to overwrite an existing .o file with -o,
5117  # though they will create one.
5118  am_cv_prog_cc_c_o=yes
5119  for am_i in 1 2; do
5120    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5121   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5122   ac_status=$?
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); } \
5125         && test -f conftest2.$ac_objext; then
5126      : OK
5127    else
5128      am_cv_prog_cc_c_o=no
5129      break
5130    fi
5131  done
5132  rm -f core conftest*
5133  unset am_i
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5136$as_echo "$am_cv_prog_cc_c_o" >&6; }
5137if test "$am_cv_prog_cc_c_o" != yes; then
5138   # Losing compiler, so override with the script.
5139   # FIXME: It is wrong to rewrite CC.
5140   # But if we don't then we get into trouble of one sort or another.
5141   # A longer-term fix would be to have automake use am__CC in this case,
5142   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5143   CC="$am_aux_dir/compile $CC"
5144fi
5145ac_ext=c
5146ac_cpp='$CPP $CPPFLAGS'
5147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149ac_compiler_gnu=$ac_cv_c_compiler_gnu
5150
5151
5152depcc="$CC"   am_compiler_list=
5153
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5155$as_echo_n "checking dependency style of $depcc... " >&6; }
5156if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5157  $as_echo_n "(cached) " >&6
5158else
5159  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5160  # We make a subdir and do the tests there.  Otherwise we can end up
5161  # making bogus files that we don't know about and never remove.  For
5162  # instance it was reported that on HP-UX the gcc test will end up
5163  # making a dummy file named 'D' -- because '-MD' means "put the output
5164  # in D".
5165  rm -rf conftest.dir
5166  mkdir conftest.dir
5167  # Copy depcomp to subdir because otherwise we won't find it if we're
5168  # using a relative directory.
5169  cp "$am_depcomp" conftest.dir
5170  cd conftest.dir
5171  # We will build objects and dependencies in a subdirectory because
5172  # it helps to detect inapplicable dependency modes.  For instance
5173  # both Tru64's cc and ICC support -MD to output dependencies as a
5174  # side effect of compilation, but ICC will put the dependencies in
5175  # the current directory while Tru64 will put them in the object
5176  # directory.
5177  mkdir sub
5178
5179  am_cv_CC_dependencies_compiler_type=none
5180  if test "$am_compiler_list" = ""; then
5181     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5182  fi
5183  am__universal=false
5184  case " $depcc " in #(
5185     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5186     esac
5187
5188  for depmode in $am_compiler_list; do
5189    # Setup a source with many dependencies, because some compilers
5190    # like to wrap large dependency lists on column 80 (with \), and
5191    # we should not choose a depcomp mode which is confused by this.
5192    #
5193    # We need to recreate these files for each test, as the compiler may
5194    # overwrite some of them when testing with obscure command lines.
5195    # This happens at least with the AIX C compiler.
5196    : > sub/conftest.c
5197    for i in 1 2 3 4 5 6; do
5198      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5199      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5200      # Solaris 10 /bin/sh.
5201      echo '/* dummy */' > sub/conftst$i.h
5202    done
5203    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5204
5205    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5206    # mode.  It turns out that the SunPro C++ compiler does not properly
5207    # handle '-M -o', and we need to detect this.  Also, some Intel
5208    # versions had trouble with output in subdirs.
5209    am__obj=sub/conftest.${OBJEXT-o}
5210    am__minus_obj="-o $am__obj"
5211    case $depmode in
5212    gcc)
5213      # This depmode causes a compiler race in universal mode.
5214      test "$am__universal" = false || continue
5215      ;;
5216    nosideeffect)
5217      # After this tag, mechanisms are not by side-effect, so they'll
5218      # only be used when explicitly requested.
5219      if test "x$enable_dependency_tracking" = xyes; then
5220	continue
5221      else
5222	break
5223      fi
5224      ;;
5225    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5226      # This compiler won't grok '-c -o', but also, the minuso test has
5227      # not run yet.  These depmodes are late enough in the game, and
5228      # so weak that their functioning should not be impacted.
5229      am__obj=conftest.${OBJEXT-o}
5230      am__minus_obj=
5231      ;;
5232    none) break ;;
5233    esac
5234    if depmode=$depmode \
5235       source=sub/conftest.c object=$am__obj \
5236       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5237       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5238         >/dev/null 2>conftest.err &&
5239       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5240       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5241       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5242       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5243      # icc doesn't choke on unknown options, it will just issue warnings
5244      # or remarks (even with -Werror).  So we grep stderr for any message
5245      # that says an option was ignored or not supported.
5246      # When given -MP, icc 7.0 and 7.1 complain thusly:
5247      #   icc: Command line warning: ignoring option '-M'; no argument required
5248      # The diagnosis changed in icc 8.0:
5249      #   icc: Command line remark: option '-MP' not supported
5250      if (grep 'ignoring option' conftest.err ||
5251          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5252        am_cv_CC_dependencies_compiler_type=$depmode
5253        break
5254      fi
5255    fi
5256  done
5257
5258  cd ..
5259  rm -rf conftest.dir
5260else
5261  am_cv_CC_dependencies_compiler_type=none
5262fi
5263
5264fi
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5266$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5267CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5268
5269 if
5270  test "x$enable_dependency_tracking" != xno \
5271  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5272  am__fastdepCC_TRUE=
5273  am__fastdepCC_FALSE='#'
5274else
5275  am__fastdepCC_TRUE='#'
5276  am__fastdepCC_FALSE=
5277fi
5278
5279
5280
5281ac_ext=c
5282ac_cpp='$CPP $CPPFLAGS'
5283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5287$as_echo_n "checking how to run the C preprocessor... " >&6; }
5288# On Suns, sometimes $CPP names a directory.
5289if test -n "$CPP" && test -d "$CPP"; then
5290  CPP=
5291fi
5292if test -z "$CPP"; then
5293  if ${ac_cv_prog_CPP+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296      # Double quotes because CPP needs to be expanded
5297    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5298    do
5299      ac_preproc_ok=false
5300for ac_c_preproc_warn_flag in '' yes
5301do
5302  # Use a header file that comes with gcc, so configuring glibc
5303  # with a fresh cross-compiler works.
5304  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5305  # <limits.h> exists even on freestanding compilers.
5306  # On the NeXT, cc -E runs the code through the compiler's parser,
5307  # not just through cpp. "Syntax error" is here to catch this case.
5308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h.  */
5310#ifdef __STDC__
5311# include <limits.h>
5312#else
5313# include <assert.h>
5314#endif
5315		     Syntax error
5316_ACEOF
5317if ac_fn_c_try_cpp "$LINENO"; then :
5318
5319else
5320  # Broken: fails on valid input.
5321continue
5322fi
5323rm -f conftest.err conftest.i conftest.$ac_ext
5324
5325  # OK, works on sane cases.  Now check whether nonexistent headers
5326  # can be detected and how.
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329#include <ac_nonexistent.h>
5330_ACEOF
5331if ac_fn_c_try_cpp "$LINENO"; then :
5332  # Broken: success on invalid input.
5333continue
5334else
5335  # Passes both tests.
5336ac_preproc_ok=:
5337break
5338fi
5339rm -f conftest.err conftest.i conftest.$ac_ext
5340
5341done
5342# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5343rm -f conftest.i conftest.err conftest.$ac_ext
5344if $ac_preproc_ok; then :
5345  break
5346fi
5347
5348    done
5349    ac_cv_prog_CPP=$CPP
5350
5351fi
5352  CPP=$ac_cv_prog_CPP
5353else
5354  ac_cv_prog_CPP=$CPP
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5357$as_echo "$CPP" >&6; }
5358ac_preproc_ok=false
5359for ac_c_preproc_warn_flag in '' yes
5360do
5361  # Use a header file that comes with gcc, so configuring glibc
5362  # with a fresh cross-compiler works.
5363  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364  # <limits.h> exists even on freestanding compilers.
5365  # On the NeXT, cc -E runs the code through the compiler's parser,
5366  # not just through cpp. "Syntax error" is here to catch this case.
5367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h.  */
5369#ifdef __STDC__
5370# include <limits.h>
5371#else
5372# include <assert.h>
5373#endif
5374		     Syntax error
5375_ACEOF
5376if ac_fn_c_try_cpp "$LINENO"; then :
5377
5378else
5379  # Broken: fails on valid input.
5380continue
5381fi
5382rm -f conftest.err conftest.i conftest.$ac_ext
5383
5384  # OK, works on sane cases.  Now check whether nonexistent headers
5385  # can be detected and how.
5386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388#include <ac_nonexistent.h>
5389_ACEOF
5390if ac_fn_c_try_cpp "$LINENO"; then :
5391  # Broken: success on invalid input.
5392continue
5393else
5394  # Passes both tests.
5395ac_preproc_ok=:
5396break
5397fi
5398rm -f conftest.err conftest.i conftest.$ac_ext
5399
5400done
5401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5402rm -f conftest.i conftest.err conftest.$ac_ext
5403if $ac_preproc_ok; then :
5404
5405else
5406  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5408as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5409See \`config.log' for more details" "$LINENO" 5; }
5410fi
5411
5412ac_ext=c
5413ac_cpp='$CPP $CPPFLAGS'
5414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5420$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5421if ${ac_cv_path_GREP+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  if test -z "$GREP"; then
5425  ac_path_GREP_found=false
5426  # Loop through the user's path and test for each of PROGNAME-LIST
5427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5429do
5430  IFS=$as_save_IFS
5431  test -z "$as_dir" && as_dir=.
5432    for ac_prog in grep ggrep; do
5433    for ac_exec_ext in '' $ac_executable_extensions; do
5434      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5435      as_fn_executable_p "$ac_path_GREP" || continue
5436# Check for GNU ac_path_GREP and select it if it is found.
5437  # Check for GNU $ac_path_GREP
5438case `"$ac_path_GREP" --version 2>&1` in
5439*GNU*)
5440  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5441*)
5442  ac_count=0
5443  $as_echo_n 0123456789 >"conftest.in"
5444  while :
5445  do
5446    cat "conftest.in" "conftest.in" >"conftest.tmp"
5447    mv "conftest.tmp" "conftest.in"
5448    cp "conftest.in" "conftest.nl"
5449    $as_echo 'GREP' >> "conftest.nl"
5450    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452    as_fn_arith $ac_count + 1 && ac_count=$as_val
5453    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5454      # Best one so far, save it but keep looking for a better one
5455      ac_cv_path_GREP="$ac_path_GREP"
5456      ac_path_GREP_max=$ac_count
5457    fi
5458    # 10*(2^10) chars as input seems more than enough
5459    test $ac_count -gt 10 && break
5460  done
5461  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462esac
5463
5464      $ac_path_GREP_found && break 3
5465    done
5466  done
5467  done
5468IFS=$as_save_IFS
5469  if test -z "$ac_cv_path_GREP"; then
5470    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5471  fi
5472else
5473  ac_cv_path_GREP=$GREP
5474fi
5475
5476fi
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5478$as_echo "$ac_cv_path_GREP" >&6; }
5479 GREP="$ac_cv_path_GREP"
5480
5481
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5483$as_echo_n "checking for egrep... " >&6; }
5484if ${ac_cv_path_EGREP+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5488   then ac_cv_path_EGREP="$GREP -E"
5489   else
5490     if test -z "$EGREP"; then
5491  ac_path_EGREP_found=false
5492  # Loop through the user's path and test for each of PROGNAME-LIST
5493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498    for ac_prog in egrep; do
5499    for ac_exec_ext in '' $ac_executable_extensions; do
5500      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5501      as_fn_executable_p "$ac_path_EGREP" || continue
5502# Check for GNU ac_path_EGREP and select it if it is found.
5503  # Check for GNU $ac_path_EGREP
5504case `"$ac_path_EGREP" --version 2>&1` in
5505*GNU*)
5506  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5507*)
5508  ac_count=0
5509  $as_echo_n 0123456789 >"conftest.in"
5510  while :
5511  do
5512    cat "conftest.in" "conftest.in" >"conftest.tmp"
5513    mv "conftest.tmp" "conftest.in"
5514    cp "conftest.in" "conftest.nl"
5515    $as_echo 'EGREP' >> "conftest.nl"
5516    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5517    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5518    as_fn_arith $ac_count + 1 && ac_count=$as_val
5519    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5520      # Best one so far, save it but keep looking for a better one
5521      ac_cv_path_EGREP="$ac_path_EGREP"
5522      ac_path_EGREP_max=$ac_count
5523    fi
5524    # 10*(2^10) chars as input seems more than enough
5525    test $ac_count -gt 10 && break
5526  done
5527  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5528esac
5529
5530      $ac_path_EGREP_found && break 3
5531    done
5532  done
5533  done
5534IFS=$as_save_IFS
5535  if test -z "$ac_cv_path_EGREP"; then
5536    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5537  fi
5538else
5539  ac_cv_path_EGREP=$EGREP
5540fi
5541
5542   fi
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5545$as_echo "$ac_cv_path_EGREP" >&6; }
5546 EGREP="$ac_cv_path_EGREP"
5547
5548
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5550$as_echo_n "checking for ANSI C header files... " >&6; }
5551if ${ac_cv_header_stdc+:} false; then :
5552  $as_echo_n "(cached) " >&6
5553else
5554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h.  */
5556#include <stdlib.h>
5557#include <stdarg.h>
5558#include <string.h>
5559#include <float.h>
5560
5561int
5562main ()
5563{
5564
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569if ac_fn_c_try_compile "$LINENO"; then :
5570  ac_cv_header_stdc=yes
5571else
5572  ac_cv_header_stdc=no
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575
5576if test $ac_cv_header_stdc = yes; then
5577  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h.  */
5580#include <string.h>
5581
5582_ACEOF
5583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584  $EGREP "memchr" >/dev/null 2>&1; then :
5585
5586else
5587  ac_cv_header_stdc=no
5588fi
5589rm -f conftest*
5590
5591fi
5592
5593if test $ac_cv_header_stdc = yes; then
5594  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h.  */
5597#include <stdlib.h>
5598
5599_ACEOF
5600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601  $EGREP "free" >/dev/null 2>&1; then :
5602
5603else
5604  ac_cv_header_stdc=no
5605fi
5606rm -f conftest*
5607
5608fi
5609
5610if test $ac_cv_header_stdc = yes; then
5611  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5612  if test "$cross_compiling" = yes; then :
5613  :
5614else
5615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617#include <ctype.h>
5618#include <stdlib.h>
5619#if ((' ' & 0x0FF) == 0x020)
5620# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5621# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5622#else
5623# define ISLOWER(c) \
5624		   (('a' <= (c) && (c) <= 'i') \
5625		     || ('j' <= (c) && (c) <= 'r') \
5626		     || ('s' <= (c) && (c) <= 'z'))
5627# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5628#endif
5629
5630#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5631int
5632main ()
5633{
5634  int i;
5635  for (i = 0; i < 256; i++)
5636    if (XOR (islower (i), ISLOWER (i))
5637	|| toupper (i) != TOUPPER (i))
5638      return 2;
5639  return 0;
5640}
5641_ACEOF
5642if ac_fn_c_try_run "$LINENO"; then :
5643
5644else
5645  ac_cv_header_stdc=no
5646fi
5647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5648  conftest.$ac_objext conftest.beam conftest.$ac_ext
5649fi
5650
5651fi
5652fi
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5654$as_echo "$ac_cv_header_stdc" >&6; }
5655if test $ac_cv_header_stdc = yes; then
5656
5657$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5658
5659fi
5660
5661# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5662for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5663		  inttypes.h stdint.h unistd.h
5664do :
5665  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5666ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5667"
5668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5669  cat >>confdefs.h <<_ACEOF
5670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5671_ACEOF
5672
5673fi
5674
5675done
5676
5677
5678
5679  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5680if test "x$ac_cv_header_minix_config_h" = xyes; then :
5681  MINIX=yes
5682else
5683  MINIX=
5684fi
5685
5686
5687  if test "$MINIX" = yes; then
5688
5689$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5690
5691
5692$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5693
5694
5695$as_echo "#define _MINIX 1" >>confdefs.h
5696
5697  fi
5698
5699
5700  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5701$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5702if ${ac_cv_safe_to_define___extensions__+:} false; then :
5703  $as_echo_n "(cached) " >&6
5704else
5705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h.  */
5707
5708#         define __EXTENSIONS__ 1
5709          $ac_includes_default
5710int
5711main ()
5712{
5713
5714  ;
5715  return 0;
5716}
5717_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then :
5719  ac_cv_safe_to_define___extensions__=yes
5720else
5721  ac_cv_safe_to_define___extensions__=no
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5726$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5727  test $ac_cv_safe_to_define___extensions__ = yes &&
5728    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5729
5730  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5731
5732  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5733
5734  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5735
5736  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5737
5738
5739
5740# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5753$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5754if ${ac_cv_prog_cc_c99+:} false; then :
5755  $as_echo_n "(cached) " >&6
5756else
5757  ac_cv_prog_cc_c99=no
5758ac_save_CC=$CC
5759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761#include <stdarg.h>
5762#include <stdbool.h>
5763#include <stdlib.h>
5764#include <wchar.h>
5765#include <stdio.h>
5766
5767// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5768#define debug(...) fprintf (stderr, __VA_ARGS__)
5769#define showlist(...) puts (#__VA_ARGS__)
5770#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5771static void
5772test_varargs_macros (void)
5773{
5774  int x = 1234;
5775  int y = 5678;
5776  debug ("Flag");
5777  debug ("X = %d\n", x);
5778  showlist (The first, second, and third items.);
5779  report (x>y, "x is %d but y is %d", x, y);
5780}
5781
5782// Check long long types.
5783#define BIG64 18446744073709551615ull
5784#define BIG32 4294967295ul
5785#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5786#if !BIG_OK
5787  your preprocessor is broken;
5788#endif
5789#if BIG_OK
5790#else
5791  your preprocessor is broken;
5792#endif
5793static long long int bignum = -9223372036854775807LL;
5794static unsigned long long int ubignum = BIG64;
5795
5796struct incomplete_array
5797{
5798  int datasize;
5799  double data[];
5800};
5801
5802struct named_init {
5803  int number;
5804  const wchar_t *name;
5805  double average;
5806};
5807
5808typedef const char *ccp;
5809
5810static inline int
5811test_restrict (ccp restrict text)
5812{
5813  // See if C++-style comments work.
5814  // Iterate through items via the restricted pointer.
5815  // Also check for declarations in for loops.
5816  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5817    continue;
5818  return 0;
5819}
5820
5821// Check varargs and va_copy.
5822static void
5823test_varargs (const char *format, ...)
5824{
5825  va_list args;
5826  va_start (args, format);
5827  va_list args_copy;
5828  va_copy (args_copy, args);
5829
5830  const char *str;
5831  int number;
5832  float fnumber;
5833
5834  while (*format)
5835    {
5836      switch (*format++)
5837	{
5838	case 's': // string
5839	  str = va_arg (args_copy, const char *);
5840	  break;
5841	case 'd': // int
5842	  number = va_arg (args_copy, int);
5843	  break;
5844	case 'f': // float
5845	  fnumber = va_arg (args_copy, double);
5846	  break;
5847	default:
5848	  break;
5849	}
5850    }
5851  va_end (args_copy);
5852  va_end (args);
5853}
5854
5855int
5856main ()
5857{
5858
5859  // Check bool.
5860  _Bool success = false;
5861
5862  // Check restrict.
5863  if (test_restrict ("String literal") == 0)
5864    success = true;
5865  char *restrict newvar = "Another string";
5866
5867  // Check varargs.
5868  test_varargs ("s, d' f .", "string", 65, 34.234);
5869  test_varargs_macros ();
5870
5871  // Check flexible array members.
5872  struct incomplete_array *ia =
5873    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5874  ia->datasize = 10;
5875  for (int i = 0; i < ia->datasize; ++i)
5876    ia->data[i] = i * 1.234;
5877
5878  // Check named initializers.
5879  struct named_init ni = {
5880    .number = 34,
5881    .name = L"Test wide string",
5882    .average = 543.34343,
5883  };
5884
5885  ni.number = 58;
5886
5887  int dynamic_array[ni.number];
5888  dynamic_array[ni.number - 1] = 543;
5889
5890  // work around unused variable warnings
5891  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5892	  || dynamic_array[ni.number - 1] != 543);
5893
5894  ;
5895  return 0;
5896}
5897_ACEOF
5898for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5899do
5900  CC="$ac_save_CC $ac_arg"
5901  if ac_fn_c_try_compile "$LINENO"; then :
5902  ac_cv_prog_cc_c99=$ac_arg
5903fi
5904rm -f core conftest.err conftest.$ac_objext
5905  test "x$ac_cv_prog_cc_c99" != "xno" && break
5906done
5907rm -f conftest.$ac_ext
5908CC=$ac_save_CC
5909
5910fi
5911# AC_CACHE_VAL
5912case "x$ac_cv_prog_cc_c99" in
5913  x)
5914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5915$as_echo "none needed" >&6; } ;;
5916  xno)
5917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5918$as_echo "unsupported" >&6; } ;;
5919  *)
5920    CC="$CC $ac_cv_prog_cc_c99"
5921    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5922$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5923esac
5924if test "x$ac_cv_prog_cc_c99" != xno; then :
5925
5926fi
5927
5928
5929
5930
5931
5932
5933ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
5934if test "x$ac_cv_have_decl___clang__" = xyes; then :
5935  CLANGCC="yes"
5936else
5937  CLANGCC="no"
5938fi
5939
5940ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5941if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5942  INTELCC="yes"
5943else
5944  INTELCC="no"
5945fi
5946
5947ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5948if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5949  SUNCC="yes"
5950else
5951  SUNCC="no"
5952fi
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5963	if test -n "$ac_tool_prefix"; then
5964  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5965set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967$as_echo_n "checking for $ac_word... " >&6; }
5968if ${ac_cv_path_PKG_CONFIG+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  case $PKG_CONFIG in
5972  [\\/]* | ?:[\\/]*)
5973  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5974  ;;
5975  *)
5976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979  IFS=$as_save_IFS
5980  test -z "$as_dir" && as_dir=.
5981    for ac_exec_ext in '' $ac_executable_extensions; do
5982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985    break 2
5986  fi
5987done
5988  done
5989IFS=$as_save_IFS
5990
5991  ;;
5992esac
5993fi
5994PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5995if test -n "$PKG_CONFIG"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5997$as_echo "$PKG_CONFIG" >&6; }
5998else
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004fi
6005if test -z "$ac_cv_path_PKG_CONFIG"; then
6006  ac_pt_PKG_CONFIG=$PKG_CONFIG
6007  # Extract the first word of "pkg-config", so it can be a program name with args.
6008set dummy pkg-config; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
6011if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  case $ac_pt_PKG_CONFIG in
6015  [\\/]* | ?:[\\/]*)
6016  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6017  ;;
6018  *)
6019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022  IFS=$as_save_IFS
6023  test -z "$as_dir" && as_dir=.
6024    for ac_exec_ext in '' $ac_executable_extensions; do
6025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031  done
6032IFS=$as_save_IFS
6033
6034  ;;
6035esac
6036fi
6037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6038if test -n "$ac_pt_PKG_CONFIG"; then
6039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6040$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6041else
6042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045
6046  if test "x$ac_pt_PKG_CONFIG" = x; then
6047    PKG_CONFIG=""
6048  else
6049    case $cross_compiling:$ac_tool_warned in
6050yes:)
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053ac_tool_warned=yes ;;
6054esac
6055    PKG_CONFIG=$ac_pt_PKG_CONFIG
6056  fi
6057else
6058  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6059fi
6060
6061fi
6062if test -n "$PKG_CONFIG"; then
6063	_pkg_min_version=0.9.0
6064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6065$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6066	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6068$as_echo "yes" >&6; }
6069	else
6070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072		PKG_CONFIG=""
6073	fi
6074fi
6075# Make sure we can run config.sub.
6076$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6077  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6078
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6080$as_echo_n "checking build system type... " >&6; }
6081if ${ac_cv_build+:} false; then :
6082  $as_echo_n "(cached) " >&6
6083else
6084  ac_build_alias=$build_alias
6085test "x$ac_build_alias" = x &&
6086  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6087test "x$ac_build_alias" = x &&
6088  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6089ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6090  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6091
6092fi
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6094$as_echo "$ac_cv_build" >&6; }
6095case $ac_cv_build in
6096*-*-*) ;;
6097*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6098esac
6099build=$ac_cv_build
6100ac_save_IFS=$IFS; IFS='-'
6101set x $ac_cv_build
6102shift
6103build_cpu=$1
6104build_vendor=$2
6105shift; shift
6106# Remember, the first character of IFS is used to create $*,
6107# except with old shells:
6108build_os=$*
6109IFS=$ac_save_IFS
6110case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6111
6112
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6114$as_echo_n "checking host system type... " >&6; }
6115if ${ac_cv_host+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  if test "x$host_alias" = x; then
6119  ac_cv_host=$ac_cv_build
6120else
6121  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6122    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6123fi
6124
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6127$as_echo "$ac_cv_host" >&6; }
6128case $ac_cv_host in
6129*-*-*) ;;
6130*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6131esac
6132host=$ac_cv_host
6133ac_save_IFS=$IFS; IFS='-'
6134set x $ac_cv_host
6135shift
6136host_cpu=$1
6137host_vendor=$2
6138shift; shift
6139# Remember, the first character of IFS is used to create $*,
6140# except with old shells:
6141host_os=$*
6142IFS=$ac_save_IFS
6143case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6144
6145
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6147$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6148if ${ac_cv_path_SED+:} false; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6152     for ac_i in 1 2 3 4 5 6 7; do
6153       ac_script="$ac_script$as_nl$ac_script"
6154     done
6155     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6156     { ac_script=; unset ac_script;}
6157     if test -z "$SED"; then
6158  ac_path_SED_found=false
6159  # Loop through the user's path and test for each of PROGNAME-LIST
6160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163  IFS=$as_save_IFS
6164  test -z "$as_dir" && as_dir=.
6165    for ac_prog in sed gsed; do
6166    for ac_exec_ext in '' $ac_executable_extensions; do
6167      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6168      as_fn_executable_p "$ac_path_SED" || continue
6169# Check for GNU ac_path_SED and select it if it is found.
6170  # Check for GNU $ac_path_SED
6171case `"$ac_path_SED" --version 2>&1` in
6172*GNU*)
6173  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6174*)
6175  ac_count=0
6176  $as_echo_n 0123456789 >"conftest.in"
6177  while :
6178  do
6179    cat "conftest.in" "conftest.in" >"conftest.tmp"
6180    mv "conftest.tmp" "conftest.in"
6181    cp "conftest.in" "conftest.nl"
6182    $as_echo '' >> "conftest.nl"
6183    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6184    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6185    as_fn_arith $ac_count + 1 && ac_count=$as_val
6186    if test $ac_count -gt ${ac_path_SED_max-0}; then
6187      # Best one so far, save it but keep looking for a better one
6188      ac_cv_path_SED="$ac_path_SED"
6189      ac_path_SED_max=$ac_count
6190    fi
6191    # 10*(2^10) chars as input seems more than enough
6192    test $ac_count -gt 10 && break
6193  done
6194  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6195esac
6196
6197      $ac_path_SED_found && break 3
6198    done
6199  done
6200  done
6201IFS=$as_save_IFS
6202  if test -z "$ac_cv_path_SED"; then
6203    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6204  fi
6205else
6206  ac_cv_path_SED=$SED
6207fi
6208
6209fi
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6211$as_echo "$ac_cv_path_SED" >&6; }
6212 SED="$ac_cv_path_SED"
6213  rm -f conftest.sed
6214
6215
6216
6217
6218
6219
6220# Check whether --enable-selective-werror was given.
6221if test "${enable_selective_werror+set}" = set; then :
6222  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6223else
6224  SELECTIVE_WERROR=yes
6225fi
6226
6227
6228
6229
6230
6231# -v is too short to test reliably with XORG_TESTSET_CFLAG
6232if test "x$SUNCC" = "xyes"; then
6233    BASE_CFLAGS="-v"
6234else
6235    BASE_CFLAGS=""
6236fi
6237
6238# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252xorg_testset_save_CFLAGS="$CFLAGS"
6253
6254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6259  $as_echo_n "(cached) " >&6
6260else
6261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263int i;
6264_ACEOF
6265if ac_fn_c_try_compile "$LINENO"; then :
6266  xorg_cv_cc_flag_unknown_warning_option=yes
6267else
6268  xorg_cv_cc_flag_unknown_warning_option=no
6269fi
6270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6275	CFLAGS="$xorg_testset_save_CFLAGS"
6276fi
6277
6278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281	fi
6282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289/* end confdefs.h.  */
6290int i;
6291_ACEOF
6292if ac_fn_c_try_compile "$LINENO"; then :
6293  xorg_cv_cc_flag_unused_command_line_argument=yes
6294else
6295  xorg_cv_cc_flag_unused_command_line_argument=no
6296fi
6297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298fi
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6302	CFLAGS="$xorg_testset_save_CFLAGS"
6303fi
6304
6305found="no"
6306
6307	if test $found = "no" ; then
6308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6310		fi
6311
6312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6314		fi
6315
6316		CFLAGS="$CFLAGS -Wall"
6317
6318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6319$as_echo_n "checking if $CC supports -Wall... " >&6; }
6320		cacheid=xorg_cv_cc_flag__Wall
6321		if eval \${$cacheid+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326int i;
6327int
6328main ()
6329{
6330
6331  ;
6332  return 0;
6333}
6334_ACEOF
6335if ac_fn_c_try_link "$LINENO"; then :
6336  eval $cacheid=yes
6337else
6338  eval $cacheid=no
6339fi
6340rm -f core conftest.err conftest.$ac_objext \
6341    conftest$ac_exeext conftest.$ac_ext
6342fi
6343
6344
6345		CFLAGS="$xorg_testset_save_CFLAGS"
6346
6347		eval supported=\$$cacheid
6348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6349$as_echo "$supported" >&6; }
6350		if test "$supported" = "yes" ; then
6351			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6352			found="yes"
6353		fi
6354	fi
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370xorg_testset_save_CFLAGS="$CFLAGS"
6371
6372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381int i;
6382_ACEOF
6383if ac_fn_c_try_compile "$LINENO"; then :
6384  xorg_cv_cc_flag_unknown_warning_option=yes
6385else
6386  xorg_cv_cc_flag_unknown_warning_option=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6393	CFLAGS="$xorg_testset_save_CFLAGS"
6394fi
6395
6396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6399	fi
6400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6404  $as_echo_n "(cached) " >&6
6405else
6406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408int i;
6409_ACEOF
6410if ac_fn_c_try_compile "$LINENO"; then :
6411  xorg_cv_cc_flag_unused_command_line_argument=yes
6412else
6413  xorg_cv_cc_flag_unused_command_line_argument=no
6414fi
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416fi
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6420	CFLAGS="$xorg_testset_save_CFLAGS"
6421fi
6422
6423found="no"
6424
6425	if test $found = "no" ; then
6426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6428		fi
6429
6430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6432		fi
6433
6434		CFLAGS="$CFLAGS -Wpointer-arith"
6435
6436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6437$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
6438		cacheid=xorg_cv_cc_flag__Wpointer_arith
6439		if eval \${$cacheid+:} false; then :
6440  $as_echo_n "(cached) " >&6
6441else
6442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445int
6446main ()
6447{
6448
6449  ;
6450  return 0;
6451}
6452_ACEOF
6453if ac_fn_c_try_link "$LINENO"; then :
6454  eval $cacheid=yes
6455else
6456  eval $cacheid=no
6457fi
6458rm -f core conftest.err conftest.$ac_objext \
6459    conftest$ac_exeext conftest.$ac_ext
6460fi
6461
6462
6463		CFLAGS="$xorg_testset_save_CFLAGS"
6464
6465		eval supported=\$$cacheid
6466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6467$as_echo "$supported" >&6; }
6468		if test "$supported" = "yes" ; then
6469			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6470			found="yes"
6471		fi
6472	fi
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488xorg_testset_save_CFLAGS="$CFLAGS"
6489
6490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6495  $as_echo_n "(cached) " >&6
6496else
6497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499int i;
6500_ACEOF
6501if ac_fn_c_try_compile "$LINENO"; then :
6502  xorg_cv_cc_flag_unknown_warning_option=yes
6503else
6504  xorg_cv_cc_flag_unknown_warning_option=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507fi
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6511	CFLAGS="$xorg_testset_save_CFLAGS"
6512fi
6513
6514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517	fi
6518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6522  $as_echo_n "(cached) " >&6
6523else
6524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h.  */
6526int i;
6527_ACEOF
6528if ac_fn_c_try_compile "$LINENO"; then :
6529  xorg_cv_cc_flag_unused_command_line_argument=yes
6530else
6531  xorg_cv_cc_flag_unused_command_line_argument=no
6532fi
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6538	CFLAGS="$xorg_testset_save_CFLAGS"
6539fi
6540
6541found="no"
6542
6543	if test $found = "no" ; then
6544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6546		fi
6547
6548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6550		fi
6551
6552		CFLAGS="$CFLAGS -Wmissing-declarations"
6553
6554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6555$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
6556		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6557		if eval \${$cacheid+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561/* end confdefs.h.  */
6562int i;
6563int
6564main ()
6565{
6566
6567  ;
6568  return 0;
6569}
6570_ACEOF
6571if ac_fn_c_try_link "$LINENO"; then :
6572  eval $cacheid=yes
6573else
6574  eval $cacheid=no
6575fi
6576rm -f core conftest.err conftest.$ac_objext \
6577    conftest$ac_exeext conftest.$ac_ext
6578fi
6579
6580
6581		CFLAGS="$xorg_testset_save_CFLAGS"
6582
6583		eval supported=\$$cacheid
6584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6585$as_echo "$supported" >&6; }
6586		if test "$supported" = "yes" ; then
6587			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6588			found="yes"
6589		fi
6590	fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606xorg_testset_save_CFLAGS="$CFLAGS"
6607
6608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617int i;
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620  xorg_cv_cc_flag_unknown_warning_option=yes
6621else
6622  xorg_cv_cc_flag_unknown_warning_option=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625fi
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6629	CFLAGS="$xorg_testset_save_CFLAGS"
6630fi
6631
6632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6635	fi
6636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6640  $as_echo_n "(cached) " >&6
6641else
6642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h.  */
6644int i;
6645_ACEOF
6646if ac_fn_c_try_compile "$LINENO"; then :
6647  xorg_cv_cc_flag_unused_command_line_argument=yes
6648else
6649  xorg_cv_cc_flag_unused_command_line_argument=no
6650fi
6651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652fi
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6656	CFLAGS="$xorg_testset_save_CFLAGS"
6657fi
6658
6659found="no"
6660
6661	if test $found = "no" ; then
6662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6664		fi
6665
6666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6668		fi
6669
6670		CFLAGS="$CFLAGS -Wformat=2"
6671
6672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6673$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
6674		cacheid=xorg_cv_cc_flag__Wformat_2
6675		if eval \${$cacheid+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h.  */
6680int i;
6681int
6682main ()
6683{
6684
6685  ;
6686  return 0;
6687}
6688_ACEOF
6689if ac_fn_c_try_link "$LINENO"; then :
6690  eval $cacheid=yes
6691else
6692  eval $cacheid=no
6693fi
6694rm -f core conftest.err conftest.$ac_objext \
6695    conftest$ac_exeext conftest.$ac_ext
6696fi
6697
6698
6699		CFLAGS="$xorg_testset_save_CFLAGS"
6700
6701		eval supported=\$$cacheid
6702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6703$as_echo "$supported" >&6; }
6704		if test "$supported" = "yes" ; then
6705			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6706			found="yes"
6707		fi
6708	fi
6709
6710	if test $found = "no" ; then
6711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713		fi
6714
6715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717		fi
6718
6719		CFLAGS="$CFLAGS -Wformat"
6720
6721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6722$as_echo_n "checking if $CC supports -Wformat... " >&6; }
6723		cacheid=xorg_cv_cc_flag__Wformat
6724		if eval \${$cacheid+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729int i;
6730int
6731main ()
6732{
6733
6734  ;
6735  return 0;
6736}
6737_ACEOF
6738if ac_fn_c_try_link "$LINENO"; then :
6739  eval $cacheid=yes
6740else
6741  eval $cacheid=no
6742fi
6743rm -f core conftest.err conftest.$ac_objext \
6744    conftest$ac_exeext conftest.$ac_ext
6745fi
6746
6747
6748		CFLAGS="$xorg_testset_save_CFLAGS"
6749
6750		eval supported=\$$cacheid
6751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6752$as_echo "$supported" >&6; }
6753		if test "$supported" = "yes" ; then
6754			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6755			found="yes"
6756		fi
6757	fi
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775xorg_testset_save_CFLAGS="$CFLAGS"
6776
6777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786int i;
6787_ACEOF
6788if ac_fn_c_try_compile "$LINENO"; then :
6789  xorg_cv_cc_flag_unknown_warning_option=yes
6790else
6791  xorg_cv_cc_flag_unknown_warning_option=no
6792fi
6793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794fi
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6798	CFLAGS="$xorg_testset_save_CFLAGS"
6799fi
6800
6801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804	fi
6805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813int i;
6814_ACEOF
6815if ac_fn_c_try_compile "$LINENO"; then :
6816  xorg_cv_cc_flag_unused_command_line_argument=yes
6817else
6818  xorg_cv_cc_flag_unused_command_line_argument=no
6819fi
6820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6825	CFLAGS="$xorg_testset_save_CFLAGS"
6826fi
6827
6828found="no"
6829
6830	if test $found = "no" ; then
6831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833		fi
6834
6835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6837		fi
6838
6839		CFLAGS="$CFLAGS -Wstrict-prototypes"
6840
6841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6842$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
6843		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6844		if eval \${$cacheid+:} false; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849int i;
6850int
6851main ()
6852{
6853
6854  ;
6855  return 0;
6856}
6857_ACEOF
6858if ac_fn_c_try_link "$LINENO"; then :
6859  eval $cacheid=yes
6860else
6861  eval $cacheid=no
6862fi
6863rm -f core conftest.err conftest.$ac_objext \
6864    conftest$ac_exeext conftest.$ac_ext
6865fi
6866
6867
6868		CFLAGS="$xorg_testset_save_CFLAGS"
6869
6870		eval supported=\$$cacheid
6871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6872$as_echo "$supported" >&6; }
6873		if test "$supported" = "yes" ; then
6874			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6875			found="yes"
6876		fi
6877	fi
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893xorg_testset_save_CFLAGS="$CFLAGS"
6894
6895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903/* end confdefs.h.  */
6904int i;
6905_ACEOF
6906if ac_fn_c_try_compile "$LINENO"; then :
6907  xorg_cv_cc_flag_unknown_warning_option=yes
6908else
6909  xorg_cv_cc_flag_unknown_warning_option=no
6910fi
6911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912fi
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6916	CFLAGS="$xorg_testset_save_CFLAGS"
6917fi
6918
6919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922	fi
6923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6927  $as_echo_n "(cached) " >&6
6928else
6929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931int i;
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"; then :
6934  xorg_cv_cc_flag_unused_command_line_argument=yes
6935else
6936  xorg_cv_cc_flag_unused_command_line_argument=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6943	CFLAGS="$xorg_testset_save_CFLAGS"
6944fi
6945
6946found="no"
6947
6948	if test $found = "no" ; then
6949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951		fi
6952
6953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6955		fi
6956
6957		CFLAGS="$CFLAGS -Wmissing-prototypes"
6958
6959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6960$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
6961		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6962		if eval \${$cacheid+:} false; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966/* end confdefs.h.  */
6967int i;
6968int
6969main ()
6970{
6971
6972  ;
6973  return 0;
6974}
6975_ACEOF
6976if ac_fn_c_try_link "$LINENO"; then :
6977  eval $cacheid=yes
6978else
6979  eval $cacheid=no
6980fi
6981rm -f core conftest.err conftest.$ac_objext \
6982    conftest$ac_exeext conftest.$ac_ext
6983fi
6984
6985
6986		CFLAGS="$xorg_testset_save_CFLAGS"
6987
6988		eval supported=\$$cacheid
6989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6990$as_echo "$supported" >&6; }
6991		if test "$supported" = "yes" ; then
6992			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6993			found="yes"
6994		fi
6995	fi
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011xorg_testset_save_CFLAGS="$CFLAGS"
7012
7013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022int i;
7023_ACEOF
7024if ac_fn_c_try_compile "$LINENO"; then :
7025  xorg_cv_cc_flag_unknown_warning_option=yes
7026else
7027  xorg_cv_cc_flag_unknown_warning_option=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030fi
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7034	CFLAGS="$xorg_testset_save_CFLAGS"
7035fi
7036
7037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040	fi
7041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049int i;
7050_ACEOF
7051if ac_fn_c_try_compile "$LINENO"; then :
7052  xorg_cv_cc_flag_unused_command_line_argument=yes
7053else
7054  xorg_cv_cc_flag_unused_command_line_argument=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057fi
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7061	CFLAGS="$xorg_testset_save_CFLAGS"
7062fi
7063
7064found="no"
7065
7066	if test $found = "no" ; then
7067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069		fi
7070
7071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7073		fi
7074
7075		CFLAGS="$CFLAGS -Wnested-externs"
7076
7077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7078$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
7079		cacheid=xorg_cv_cc_flag__Wnested_externs
7080		if eval \${$cacheid+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085int i;
7086int
7087main ()
7088{
7089
7090  ;
7091  return 0;
7092}
7093_ACEOF
7094if ac_fn_c_try_link "$LINENO"; then :
7095  eval $cacheid=yes
7096else
7097  eval $cacheid=no
7098fi
7099rm -f core conftest.err conftest.$ac_objext \
7100    conftest$ac_exeext conftest.$ac_ext
7101fi
7102
7103
7104		CFLAGS="$xorg_testset_save_CFLAGS"
7105
7106		eval supported=\$$cacheid
7107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7108$as_echo "$supported" >&6; }
7109		if test "$supported" = "yes" ; then
7110			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7111			found="yes"
7112		fi
7113	fi
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129xorg_testset_save_CFLAGS="$CFLAGS"
7130
7131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7136  $as_echo_n "(cached) " >&6
7137else
7138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139/* end confdefs.h.  */
7140int i;
7141_ACEOF
7142if ac_fn_c_try_compile "$LINENO"; then :
7143  xorg_cv_cc_flag_unknown_warning_option=yes
7144else
7145  xorg_cv_cc_flag_unknown_warning_option=no
7146fi
7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7152	CFLAGS="$xorg_testset_save_CFLAGS"
7153fi
7154
7155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7158	fi
7159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167int i;
7168_ACEOF
7169if ac_fn_c_try_compile "$LINENO"; then :
7170  xorg_cv_cc_flag_unused_command_line_argument=yes
7171else
7172  xorg_cv_cc_flag_unused_command_line_argument=no
7173fi
7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7179	CFLAGS="$xorg_testset_save_CFLAGS"
7180fi
7181
7182found="no"
7183
7184	if test $found = "no" ; then
7185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7187		fi
7188
7189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7191		fi
7192
7193		CFLAGS="$CFLAGS -Wbad-function-cast"
7194
7195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7196$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
7197		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7198		if eval \${$cacheid+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203int i;
7204int
7205main ()
7206{
7207
7208  ;
7209  return 0;
7210}
7211_ACEOF
7212if ac_fn_c_try_link "$LINENO"; then :
7213  eval $cacheid=yes
7214else
7215  eval $cacheid=no
7216fi
7217rm -f core conftest.err conftest.$ac_objext \
7218    conftest$ac_exeext conftest.$ac_ext
7219fi
7220
7221
7222		CFLAGS="$xorg_testset_save_CFLAGS"
7223
7224		eval supported=\$$cacheid
7225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7226$as_echo "$supported" >&6; }
7227		if test "$supported" = "yes" ; then
7228			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7229			found="yes"
7230		fi
7231	fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247xorg_testset_save_CFLAGS="$CFLAGS"
7248
7249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257/* end confdefs.h.  */
7258int i;
7259_ACEOF
7260if ac_fn_c_try_compile "$LINENO"; then :
7261  xorg_cv_cc_flag_unknown_warning_option=yes
7262else
7263  xorg_cv_cc_flag_unknown_warning_option=no
7264fi
7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266fi
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7270	CFLAGS="$xorg_testset_save_CFLAGS"
7271fi
7272
7273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7276	fi
7277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285int i;
7286_ACEOF
7287if ac_fn_c_try_compile "$LINENO"; then :
7288  xorg_cv_cc_flag_unused_command_line_argument=yes
7289else
7290  xorg_cv_cc_flag_unused_command_line_argument=no
7291fi
7292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293fi
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7297	CFLAGS="$xorg_testset_save_CFLAGS"
7298fi
7299
7300found="no"
7301
7302	if test $found = "no" ; then
7303		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305		fi
7306
7307		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309		fi
7310
7311		CFLAGS="$CFLAGS -Wold-style-definition"
7312
7313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7314$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
7315		cacheid=xorg_cv_cc_flag__Wold_style_definition
7316		if eval \${$cacheid+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321int i;
7322int
7323main ()
7324{
7325
7326  ;
7327  return 0;
7328}
7329_ACEOF
7330if ac_fn_c_try_link "$LINENO"; then :
7331  eval $cacheid=yes
7332else
7333  eval $cacheid=no
7334fi
7335rm -f core conftest.err conftest.$ac_objext \
7336    conftest$ac_exeext conftest.$ac_ext
7337fi
7338
7339
7340		CFLAGS="$xorg_testset_save_CFLAGS"
7341
7342		eval supported=\$$cacheid
7343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7344$as_echo "$supported" >&6; }
7345		if test "$supported" = "yes" ; then
7346			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7347			found="yes"
7348		fi
7349	fi
7350
7351	if test $found = "no" ; then
7352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354		fi
7355
7356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358		fi
7359
7360		CFLAGS="$CFLAGS -fd"
7361
7362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7363$as_echo_n "checking if $CC supports -fd... " >&6; }
7364		cacheid=xorg_cv_cc_flag__fd
7365		if eval \${$cacheid+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h.  */
7370int i;
7371int
7372main ()
7373{
7374
7375  ;
7376  return 0;
7377}
7378_ACEOF
7379if ac_fn_c_try_link "$LINENO"; then :
7380  eval $cacheid=yes
7381else
7382  eval $cacheid=no
7383fi
7384rm -f core conftest.err conftest.$ac_objext \
7385    conftest$ac_exeext conftest.$ac_ext
7386fi
7387
7388
7389		CFLAGS="$xorg_testset_save_CFLAGS"
7390
7391		eval supported=\$$cacheid
7392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7393$as_echo "$supported" >&6; }
7394		if test "$supported" = "yes" ; then
7395			BASE_CFLAGS="$BASE_CFLAGS -fd"
7396			found="yes"
7397		fi
7398	fi
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414xorg_testset_save_CFLAGS="$CFLAGS"
7415
7416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7421  $as_echo_n "(cached) " >&6
7422else
7423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424/* end confdefs.h.  */
7425int i;
7426_ACEOF
7427if ac_fn_c_try_compile "$LINENO"; then :
7428  xorg_cv_cc_flag_unknown_warning_option=yes
7429else
7430  xorg_cv_cc_flag_unknown_warning_option=no
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7437	CFLAGS="$xorg_testset_save_CFLAGS"
7438fi
7439
7440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443	fi
7444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452int i;
7453_ACEOF
7454if ac_fn_c_try_compile "$LINENO"; then :
7455  xorg_cv_cc_flag_unused_command_line_argument=yes
7456else
7457  xorg_cv_cc_flag_unused_command_line_argument=no
7458fi
7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7464	CFLAGS="$xorg_testset_save_CFLAGS"
7465fi
7466
7467found="no"
7468
7469	if test $found = "no" ; then
7470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7472		fi
7473
7474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7476		fi
7477
7478		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7479
7480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7481$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7482		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7483		if eval \${$cacheid+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488int i;
7489int
7490main ()
7491{
7492
7493  ;
7494  return 0;
7495}
7496_ACEOF
7497if ac_fn_c_try_link "$LINENO"; then :
7498  eval $cacheid=yes
7499else
7500  eval $cacheid=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext \
7503    conftest$ac_exeext conftest.$ac_ext
7504fi
7505
7506
7507		CFLAGS="$xorg_testset_save_CFLAGS"
7508
7509		eval supported=\$$cacheid
7510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7511$as_echo "$supported" >&6; }
7512		if test "$supported" = "yes" ; then
7513			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7514			found="yes"
7515		fi
7516	fi
7517
7518
7519
7520
7521
7522# This chunk adds additional warnings that could catch undesired effects.
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536xorg_testset_save_CFLAGS="$CFLAGS"
7537
7538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7543  $as_echo_n "(cached) " >&6
7544else
7545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546/* end confdefs.h.  */
7547int i;
7548_ACEOF
7549if ac_fn_c_try_compile "$LINENO"; then :
7550  xorg_cv_cc_flag_unknown_warning_option=yes
7551else
7552  xorg_cv_cc_flag_unknown_warning_option=no
7553fi
7554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555fi
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7559	CFLAGS="$xorg_testset_save_CFLAGS"
7560fi
7561
7562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565	fi
7566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7570  $as_echo_n "(cached) " >&6
7571else
7572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h.  */
7574int i;
7575_ACEOF
7576if ac_fn_c_try_compile "$LINENO"; then :
7577  xorg_cv_cc_flag_unused_command_line_argument=yes
7578else
7579  xorg_cv_cc_flag_unused_command_line_argument=no
7580fi
7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582fi
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7586	CFLAGS="$xorg_testset_save_CFLAGS"
7587fi
7588
7589found="no"
7590
7591	if test $found = "no" ; then
7592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594		fi
7595
7596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598		fi
7599
7600		CFLAGS="$CFLAGS -Wunused"
7601
7602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7603$as_echo_n "checking if $CC supports -Wunused... " >&6; }
7604		cacheid=xorg_cv_cc_flag__Wunused
7605		if eval \${$cacheid+:} false; then :
7606  $as_echo_n "(cached) " >&6
7607else
7608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609/* end confdefs.h.  */
7610int i;
7611int
7612main ()
7613{
7614
7615  ;
7616  return 0;
7617}
7618_ACEOF
7619if ac_fn_c_try_link "$LINENO"; then :
7620  eval $cacheid=yes
7621else
7622  eval $cacheid=no
7623fi
7624rm -f core conftest.err conftest.$ac_objext \
7625    conftest$ac_exeext conftest.$ac_ext
7626fi
7627
7628
7629		CFLAGS="$xorg_testset_save_CFLAGS"
7630
7631		eval supported=\$$cacheid
7632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7633$as_echo "$supported" >&6; }
7634		if test "$supported" = "yes" ; then
7635			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7636			found="yes"
7637		fi
7638	fi
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654xorg_testset_save_CFLAGS="$CFLAGS"
7655
7656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7661  $as_echo_n "(cached) " >&6
7662else
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665int i;
7666_ACEOF
7667if ac_fn_c_try_compile "$LINENO"; then :
7668  xorg_cv_cc_flag_unknown_warning_option=yes
7669else
7670  xorg_cv_cc_flag_unknown_warning_option=no
7671fi
7672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673fi
7674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7677	CFLAGS="$xorg_testset_save_CFLAGS"
7678fi
7679
7680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683	fi
7684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7688  $as_echo_n "(cached) " >&6
7689else
7690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h.  */
7692int i;
7693_ACEOF
7694if ac_fn_c_try_compile "$LINENO"; then :
7695  xorg_cv_cc_flag_unused_command_line_argument=yes
7696else
7697  xorg_cv_cc_flag_unused_command_line_argument=no
7698fi
7699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7704	CFLAGS="$xorg_testset_save_CFLAGS"
7705fi
7706
7707found="no"
7708
7709	if test $found = "no" ; then
7710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712		fi
7713
7714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7716		fi
7717
7718		CFLAGS="$CFLAGS -Wuninitialized"
7719
7720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7721$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
7722		cacheid=xorg_cv_cc_flag__Wuninitialized
7723		if eval \${$cacheid+:} false; then :
7724  $as_echo_n "(cached) " >&6
7725else
7726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727/* end confdefs.h.  */
7728int i;
7729int
7730main ()
7731{
7732
7733  ;
7734  return 0;
7735}
7736_ACEOF
7737if ac_fn_c_try_link "$LINENO"; then :
7738  eval $cacheid=yes
7739else
7740  eval $cacheid=no
7741fi
7742rm -f core conftest.err conftest.$ac_objext \
7743    conftest$ac_exeext conftest.$ac_ext
7744fi
7745
7746
7747		CFLAGS="$xorg_testset_save_CFLAGS"
7748
7749		eval supported=\$$cacheid
7750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7751$as_echo "$supported" >&6; }
7752		if test "$supported" = "yes" ; then
7753			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7754			found="yes"
7755		fi
7756	fi
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772xorg_testset_save_CFLAGS="$CFLAGS"
7773
7774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783int i;
7784_ACEOF
7785if ac_fn_c_try_compile "$LINENO"; then :
7786  xorg_cv_cc_flag_unknown_warning_option=yes
7787else
7788  xorg_cv_cc_flag_unknown_warning_option=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791fi
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7795	CFLAGS="$xorg_testset_save_CFLAGS"
7796fi
7797
7798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801	fi
7802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7806  $as_echo_n "(cached) " >&6
7807else
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810int i;
7811_ACEOF
7812if ac_fn_c_try_compile "$LINENO"; then :
7813  xorg_cv_cc_flag_unused_command_line_argument=yes
7814else
7815  xorg_cv_cc_flag_unused_command_line_argument=no
7816fi
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7822	CFLAGS="$xorg_testset_save_CFLAGS"
7823fi
7824
7825found="no"
7826
7827	if test $found = "no" ; then
7828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830		fi
7831
7832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7834		fi
7835
7836		CFLAGS="$CFLAGS -Wshadow"
7837
7838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7839$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
7840		cacheid=xorg_cv_cc_flag__Wshadow
7841		if eval \${$cacheid+:} false; then :
7842  $as_echo_n "(cached) " >&6
7843else
7844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h.  */
7846int i;
7847int
7848main ()
7849{
7850
7851  ;
7852  return 0;
7853}
7854_ACEOF
7855if ac_fn_c_try_link "$LINENO"; then :
7856  eval $cacheid=yes
7857else
7858  eval $cacheid=no
7859fi
7860rm -f core conftest.err conftest.$ac_objext \
7861    conftest$ac_exeext conftest.$ac_ext
7862fi
7863
7864
7865		CFLAGS="$xorg_testset_save_CFLAGS"
7866
7867		eval supported=\$$cacheid
7868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7869$as_echo "$supported" >&6; }
7870		if test "$supported" = "yes" ; then
7871			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7872			found="yes"
7873		fi
7874	fi
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890xorg_testset_save_CFLAGS="$CFLAGS"
7891
7892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900/* end confdefs.h.  */
7901int i;
7902_ACEOF
7903if ac_fn_c_try_compile "$LINENO"; then :
7904  xorg_cv_cc_flag_unknown_warning_option=yes
7905else
7906  xorg_cv_cc_flag_unknown_warning_option=no
7907fi
7908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909fi
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7913	CFLAGS="$xorg_testset_save_CFLAGS"
7914fi
7915
7916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919	fi
7920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7924  $as_echo_n "(cached) " >&6
7925else
7926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h.  */
7928int i;
7929_ACEOF
7930if ac_fn_c_try_compile "$LINENO"; then :
7931  xorg_cv_cc_flag_unused_command_line_argument=yes
7932else
7933  xorg_cv_cc_flag_unused_command_line_argument=no
7934fi
7935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936fi
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7940	CFLAGS="$xorg_testset_save_CFLAGS"
7941fi
7942
7943found="no"
7944
7945	if test $found = "no" ; then
7946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948		fi
7949
7950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7952		fi
7953
7954		CFLAGS="$CFLAGS -Wmissing-noreturn"
7955
7956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7957$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
7958		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7959		if eval \${$cacheid+:} false; then :
7960  $as_echo_n "(cached) " >&6
7961else
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h.  */
7964int i;
7965int
7966main ()
7967{
7968
7969  ;
7970  return 0;
7971}
7972_ACEOF
7973if ac_fn_c_try_link "$LINENO"; then :
7974  eval $cacheid=yes
7975else
7976  eval $cacheid=no
7977fi
7978rm -f core conftest.err conftest.$ac_objext \
7979    conftest$ac_exeext conftest.$ac_ext
7980fi
7981
7982
7983		CFLAGS="$xorg_testset_save_CFLAGS"
7984
7985		eval supported=\$$cacheid
7986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7987$as_echo "$supported" >&6; }
7988		if test "$supported" = "yes" ; then
7989			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7990			found="yes"
7991		fi
7992	fi
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008xorg_testset_save_CFLAGS="$CFLAGS"
8009
8010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8015  $as_echo_n "(cached) " >&6
8016else
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019int i;
8020_ACEOF
8021if ac_fn_c_try_compile "$LINENO"; then :
8022  xorg_cv_cc_flag_unknown_warning_option=yes
8023else
8024  xorg_cv_cc_flag_unknown_warning_option=no
8025fi
8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8031	CFLAGS="$xorg_testset_save_CFLAGS"
8032fi
8033
8034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037	fi
8038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8042  $as_echo_n "(cached) " >&6
8043else
8044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045/* end confdefs.h.  */
8046int i;
8047_ACEOF
8048if ac_fn_c_try_compile "$LINENO"; then :
8049  xorg_cv_cc_flag_unused_command_line_argument=yes
8050else
8051  xorg_cv_cc_flag_unused_command_line_argument=no
8052fi
8053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054fi
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8058	CFLAGS="$xorg_testset_save_CFLAGS"
8059fi
8060
8061found="no"
8062
8063	if test $found = "no" ; then
8064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066		fi
8067
8068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8070		fi
8071
8072		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8073
8074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8075$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8076		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8077		if eval \${$cacheid+:} false; then :
8078  $as_echo_n "(cached) " >&6
8079else
8080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081/* end confdefs.h.  */
8082int i;
8083int
8084main ()
8085{
8086
8087  ;
8088  return 0;
8089}
8090_ACEOF
8091if ac_fn_c_try_link "$LINENO"; then :
8092  eval $cacheid=yes
8093else
8094  eval $cacheid=no
8095fi
8096rm -f core conftest.err conftest.$ac_objext \
8097    conftest$ac_exeext conftest.$ac_ext
8098fi
8099
8100
8101		CFLAGS="$xorg_testset_save_CFLAGS"
8102
8103		eval supported=\$$cacheid
8104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8105$as_echo "$supported" >&6; }
8106		if test "$supported" = "yes" ; then
8107			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8108			found="yes"
8109		fi
8110	fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126xorg_testset_save_CFLAGS="$CFLAGS"
8127
8128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h.  */
8137int i;
8138_ACEOF
8139if ac_fn_c_try_compile "$LINENO"; then :
8140  xorg_cv_cc_flag_unknown_warning_option=yes
8141else
8142  xorg_cv_cc_flag_unknown_warning_option=no
8143fi
8144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8149	CFLAGS="$xorg_testset_save_CFLAGS"
8150fi
8151
8152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8155	fi
8156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8160  $as_echo_n "(cached) " >&6
8161else
8162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163/* end confdefs.h.  */
8164int i;
8165_ACEOF
8166if ac_fn_c_try_compile "$LINENO"; then :
8167  xorg_cv_cc_flag_unused_command_line_argument=yes
8168else
8169  xorg_cv_cc_flag_unused_command_line_argument=no
8170fi
8171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8176	CFLAGS="$xorg_testset_save_CFLAGS"
8177fi
8178
8179found="no"
8180
8181	if test $found = "no" ; then
8182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184		fi
8185
8186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188		fi
8189
8190		CFLAGS="$CFLAGS -Wredundant-decls"
8191
8192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8193$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
8194		cacheid=xorg_cv_cc_flag__Wredundant_decls
8195		if eval \${$cacheid+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199/* end confdefs.h.  */
8200int i;
8201int
8202main ()
8203{
8204
8205  ;
8206  return 0;
8207}
8208_ACEOF
8209if ac_fn_c_try_link "$LINENO"; then :
8210  eval $cacheid=yes
8211else
8212  eval $cacheid=no
8213fi
8214rm -f core conftest.err conftest.$ac_objext \
8215    conftest$ac_exeext conftest.$ac_ext
8216fi
8217
8218
8219		CFLAGS="$xorg_testset_save_CFLAGS"
8220
8221		eval supported=\$$cacheid
8222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8223$as_echo "$supported" >&6; }
8224		if test "$supported" = "yes" ; then
8225			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8226			found="yes"
8227		fi
8228	fi
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244xorg_testset_save_CFLAGS="$CFLAGS"
8245
8246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254/* end confdefs.h.  */
8255int i;
8256_ACEOF
8257if ac_fn_c_try_compile "$LINENO"; then :
8258  xorg_cv_cc_flag_unknown_warning_option=yes
8259else
8260  xorg_cv_cc_flag_unknown_warning_option=no
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8267	CFLAGS="$xorg_testset_save_CFLAGS"
8268fi
8269
8270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273	fi
8274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8278  $as_echo_n "(cached) " >&6
8279else
8280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h.  */
8282int i;
8283_ACEOF
8284if ac_fn_c_try_compile "$LINENO"; then :
8285  xorg_cv_cc_flag_unused_command_line_argument=yes
8286else
8287  xorg_cv_cc_flag_unused_command_line_argument=no
8288fi
8289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290fi
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8294	CFLAGS="$xorg_testset_save_CFLAGS"
8295fi
8296
8297found="no"
8298
8299	if test $found = "no" ; then
8300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302		fi
8303
8304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306		fi
8307
8308		CFLAGS="$CFLAGS -Wlogical-op"
8309
8310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8311$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
8312		cacheid=xorg_cv_cc_flag__Wlogical_op
8313		if eval \${$cacheid+:} false; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317/* end confdefs.h.  */
8318int i;
8319int
8320main ()
8321{
8322
8323  ;
8324  return 0;
8325}
8326_ACEOF
8327if ac_fn_c_try_link "$LINENO"; then :
8328  eval $cacheid=yes
8329else
8330  eval $cacheid=no
8331fi
8332rm -f core conftest.err conftest.$ac_objext \
8333    conftest$ac_exeext conftest.$ac_ext
8334fi
8335
8336
8337		CFLAGS="$xorg_testset_save_CFLAGS"
8338
8339		eval supported=\$$cacheid
8340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8341$as_echo "$supported" >&6; }
8342		if test "$supported" = "yes" ; then
8343			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8344			found="yes"
8345		fi
8346	fi
8347
8348
8349
8350# These are currently disabled because they are noisy.  They will be enabled
8351# in the future once the codebase is sufficiently modernized to silence
8352# them.  For now, I don't want them to drown out the other warnings.
8353# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8354# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8355# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8356
8357# Turn some warnings into errors, so we don't accidently get successful builds
8358# when there are problems that should be fixed.
8359
8360if test "x$SELECTIVE_WERROR" = "xyes" ; then
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374xorg_testset_save_CFLAGS="$CFLAGS"
8375
8376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h.  */
8385int i;
8386_ACEOF
8387if ac_fn_c_try_compile "$LINENO"; then :
8388  xorg_cv_cc_flag_unknown_warning_option=yes
8389else
8390  xorg_cv_cc_flag_unknown_warning_option=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393fi
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403	fi
8404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h.  */
8412int i;
8413_ACEOF
8414if ac_fn_c_try_compile "$LINENO"; then :
8415  xorg_cv_cc_flag_unused_command_line_argument=yes
8416else
8417  xorg_cv_cc_flag_unused_command_line_argument=no
8418fi
8419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420fi
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8424	CFLAGS="$xorg_testset_save_CFLAGS"
8425fi
8426
8427found="no"
8428
8429	if test $found = "no" ; then
8430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432		fi
8433
8434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436		fi
8437
8438		CFLAGS="$CFLAGS -Werror=implicit"
8439
8440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8441$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
8442		cacheid=xorg_cv_cc_flag__Werror_implicit
8443		if eval \${$cacheid+:} false; then :
8444  $as_echo_n "(cached) " >&6
8445else
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448int i;
8449int
8450main ()
8451{
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457if ac_fn_c_try_link "$LINENO"; then :
8458  eval $cacheid=yes
8459else
8460  eval $cacheid=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext \
8463    conftest$ac_exeext conftest.$ac_ext
8464fi
8465
8466
8467		CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469		eval supported=\$$cacheid
8470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471$as_echo "$supported" >&6; }
8472		if test "$supported" = "yes" ; then
8473			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8474			found="yes"
8475		fi
8476	fi
8477
8478	if test $found = "no" ; then
8479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8481		fi
8482
8483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8485		fi
8486
8487		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8488
8489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
8490$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8491		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8492		if eval \${$cacheid+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h.  */
8497int i;
8498int
8499main ()
8500{
8501
8502  ;
8503  return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_link "$LINENO"; then :
8507  eval $cacheid=yes
8508else
8509  eval $cacheid=no
8510fi
8511rm -f core conftest.err conftest.$ac_objext \
8512    conftest$ac_exeext conftest.$ac_ext
8513fi
8514
8515
8516		CFLAGS="$xorg_testset_save_CFLAGS"
8517
8518		eval supported=\$$cacheid
8519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8520$as_echo "$supported" >&6; }
8521		if test "$supported" = "yes" ; then
8522			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8523			found="yes"
8524		fi
8525	fi
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541xorg_testset_save_CFLAGS="$CFLAGS"
8542
8543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553_ACEOF
8554if ac_fn_c_try_compile "$LINENO"; then :
8555  xorg_cv_cc_flag_unknown_warning_option=yes
8556else
8557  xorg_cv_cc_flag_unknown_warning_option=no
8558fi
8559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8564	CFLAGS="$xorg_testset_save_CFLAGS"
8565fi
8566
8567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8570	fi
8571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8575  $as_echo_n "(cached) " >&6
8576else
8577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579int i;
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"; then :
8582  xorg_cv_cc_flag_unused_command_line_argument=yes
8583else
8584  xorg_cv_cc_flag_unused_command_line_argument=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8591	CFLAGS="$xorg_testset_save_CFLAGS"
8592fi
8593
8594found="no"
8595
8596	if test $found = "no" ; then
8597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599		fi
8600
8601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8603		fi
8604
8605		CFLAGS="$CFLAGS -Werror=nonnull"
8606
8607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8608$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
8609		cacheid=xorg_cv_cc_flag__Werror_nonnull
8610		if eval \${$cacheid+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616int
8617main ()
8618{
8619
8620  ;
8621  return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_link "$LINENO"; then :
8625  eval $cacheid=yes
8626else
8627  eval $cacheid=no
8628fi
8629rm -f core conftest.err conftest.$ac_objext \
8630    conftest$ac_exeext conftest.$ac_ext
8631fi
8632
8633
8634		CFLAGS="$xorg_testset_save_CFLAGS"
8635
8636		eval supported=\$$cacheid
8637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8638$as_echo "$supported" >&6; }
8639		if test "$supported" = "yes" ; then
8640			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8641			found="yes"
8642		fi
8643	fi
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659xorg_testset_save_CFLAGS="$CFLAGS"
8660
8661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8666  $as_echo_n "(cached) " >&6
8667else
8668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h.  */
8670int i;
8671_ACEOF
8672if ac_fn_c_try_compile "$LINENO"; then :
8673  xorg_cv_cc_flag_unknown_warning_option=yes
8674else
8675  xorg_cv_cc_flag_unknown_warning_option=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678fi
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8682	CFLAGS="$xorg_testset_save_CFLAGS"
8683fi
8684
8685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8688	fi
8689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h.  */
8697int i;
8698_ACEOF
8699if ac_fn_c_try_compile "$LINENO"; then :
8700  xorg_cv_cc_flag_unused_command_line_argument=yes
8701else
8702  xorg_cv_cc_flag_unused_command_line_argument=no
8703fi
8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705fi
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8709	CFLAGS="$xorg_testset_save_CFLAGS"
8710fi
8711
8712found="no"
8713
8714	if test $found = "no" ; then
8715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717		fi
8718
8719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721		fi
8722
8723		CFLAGS="$CFLAGS -Werror=init-self"
8724
8725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8726$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
8727		cacheid=xorg_cv_cc_flag__Werror_init_self
8728		if eval \${$cacheid+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734int
8735main ()
8736{
8737
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742if ac_fn_c_try_link "$LINENO"; then :
8743  eval $cacheid=yes
8744else
8745  eval $cacheid=no
8746fi
8747rm -f core conftest.err conftest.$ac_objext \
8748    conftest$ac_exeext conftest.$ac_ext
8749fi
8750
8751
8752		CFLAGS="$xorg_testset_save_CFLAGS"
8753
8754		eval supported=\$$cacheid
8755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8756$as_echo "$supported" >&6; }
8757		if test "$supported" = "yes" ; then
8758			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8759			found="yes"
8760		fi
8761	fi
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777xorg_testset_save_CFLAGS="$CFLAGS"
8778
8779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8784  $as_echo_n "(cached) " >&6
8785else
8786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788int i;
8789_ACEOF
8790if ac_fn_c_try_compile "$LINENO"; then :
8791  xorg_cv_cc_flag_unknown_warning_option=yes
8792else
8793  xorg_cv_cc_flag_unknown_warning_option=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796fi
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8800	CFLAGS="$xorg_testset_save_CFLAGS"
8801fi
8802
8803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8806	fi
8807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8811  $as_echo_n "(cached) " >&6
8812else
8813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815int i;
8816_ACEOF
8817if ac_fn_c_try_compile "$LINENO"; then :
8818  xorg_cv_cc_flag_unused_command_line_argument=yes
8819else
8820  xorg_cv_cc_flag_unused_command_line_argument=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823fi
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8827	CFLAGS="$xorg_testset_save_CFLAGS"
8828fi
8829
8830found="no"
8831
8832	if test $found = "no" ; then
8833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835		fi
8836
8837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8839		fi
8840
8841		CFLAGS="$CFLAGS -Werror=main"
8842
8843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8844$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
8845		cacheid=xorg_cv_cc_flag__Werror_main
8846		if eval \${$cacheid+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852int
8853main ()
8854{
8855
8856  ;
8857  return 0;
8858}
8859_ACEOF
8860if ac_fn_c_try_link "$LINENO"; then :
8861  eval $cacheid=yes
8862else
8863  eval $cacheid=no
8864fi
8865rm -f core conftest.err conftest.$ac_objext \
8866    conftest$ac_exeext conftest.$ac_ext
8867fi
8868
8869
8870		CFLAGS="$xorg_testset_save_CFLAGS"
8871
8872		eval supported=\$$cacheid
8873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8874$as_echo "$supported" >&6; }
8875		if test "$supported" = "yes" ; then
8876			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8877			found="yes"
8878		fi
8879	fi
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895xorg_testset_save_CFLAGS="$CFLAGS"
8896
8897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905/* end confdefs.h.  */
8906int i;
8907_ACEOF
8908if ac_fn_c_try_compile "$LINENO"; then :
8909  xorg_cv_cc_flag_unknown_warning_option=yes
8910else
8911  xorg_cv_cc_flag_unknown_warning_option=no
8912fi
8913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8918	CFLAGS="$xorg_testset_save_CFLAGS"
8919fi
8920
8921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8924	fi
8925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934_ACEOF
8935if ac_fn_c_try_compile "$LINENO"; then :
8936  xorg_cv_cc_flag_unused_command_line_argument=yes
8937else
8938  xorg_cv_cc_flag_unused_command_line_argument=no
8939fi
8940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8945	CFLAGS="$xorg_testset_save_CFLAGS"
8946fi
8947
8948found="no"
8949
8950	if test $found = "no" ; then
8951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8953		fi
8954
8955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8957		fi
8958
8959		CFLAGS="$CFLAGS -Werror=missing-braces"
8960
8961		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8962$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
8963		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8964		if eval \${$cacheid+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h.  */
8969int i;
8970int
8971main ()
8972{
8973
8974  ;
8975  return 0;
8976}
8977_ACEOF
8978if ac_fn_c_try_link "$LINENO"; then :
8979  eval $cacheid=yes
8980else
8981  eval $cacheid=no
8982fi
8983rm -f core conftest.err conftest.$ac_objext \
8984    conftest$ac_exeext conftest.$ac_ext
8985fi
8986
8987
8988		CFLAGS="$xorg_testset_save_CFLAGS"
8989
8990		eval supported=\$$cacheid
8991		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8992$as_echo "$supported" >&6; }
8993		if test "$supported" = "yes" ; then
8994			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8995			found="yes"
8996		fi
8997	fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013xorg_testset_save_CFLAGS="$CFLAGS"
9014
9015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9020  $as_echo_n "(cached) " >&6
9021else
9022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023/* end confdefs.h.  */
9024int i;
9025_ACEOF
9026if ac_fn_c_try_compile "$LINENO"; then :
9027  xorg_cv_cc_flag_unknown_warning_option=yes
9028else
9029  xorg_cv_cc_flag_unknown_warning_option=no
9030fi
9031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032fi
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9036	CFLAGS="$xorg_testset_save_CFLAGS"
9037fi
9038
9039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9042	fi
9043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051int i;
9052_ACEOF
9053if ac_fn_c_try_compile "$LINENO"; then :
9054  xorg_cv_cc_flag_unused_command_line_argument=yes
9055else
9056  xorg_cv_cc_flag_unused_command_line_argument=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9063	CFLAGS="$xorg_testset_save_CFLAGS"
9064fi
9065
9066found="no"
9067
9068	if test $found = "no" ; then
9069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071		fi
9072
9073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9075		fi
9076
9077		CFLAGS="$CFLAGS -Werror=sequence-point"
9078
9079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9080$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
9081		cacheid=xorg_cv_cc_flag__Werror_sequence_point
9082		if eval \${$cacheid+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088int
9089main ()
9090{
9091
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"; then :
9097  eval $cacheid=yes
9098else
9099  eval $cacheid=no
9100fi
9101rm -f core conftest.err conftest.$ac_objext \
9102    conftest$ac_exeext conftest.$ac_ext
9103fi
9104
9105
9106		CFLAGS="$xorg_testset_save_CFLAGS"
9107
9108		eval supported=\$$cacheid
9109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9110$as_echo "$supported" >&6; }
9111		if test "$supported" = "yes" ; then
9112			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9113			found="yes"
9114		fi
9115	fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131xorg_testset_save_CFLAGS="$CFLAGS"
9132
9133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9138  $as_echo_n "(cached) " >&6
9139else
9140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h.  */
9142int i;
9143_ACEOF
9144if ac_fn_c_try_compile "$LINENO"; then :
9145  xorg_cv_cc_flag_unknown_warning_option=yes
9146else
9147  xorg_cv_cc_flag_unknown_warning_option=no
9148fi
9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9154	CFLAGS="$xorg_testset_save_CFLAGS"
9155fi
9156
9157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9160	fi
9161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170_ACEOF
9171if ac_fn_c_try_compile "$LINENO"; then :
9172  xorg_cv_cc_flag_unused_command_line_argument=yes
9173else
9174  xorg_cv_cc_flag_unused_command_line_argument=no
9175fi
9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177fi
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9181	CFLAGS="$xorg_testset_save_CFLAGS"
9182fi
9183
9184found="no"
9185
9186	if test $found = "no" ; then
9187		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9189		fi
9190
9191		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9193		fi
9194
9195		CFLAGS="$CFLAGS -Werror=return-type"
9196
9197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9198$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
9199		cacheid=xorg_cv_cc_flag__Werror_return_type
9200		if eval \${$cacheid+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205int i;
9206int
9207main ()
9208{
9209
9210  ;
9211  return 0;
9212}
9213_ACEOF
9214if ac_fn_c_try_link "$LINENO"; then :
9215  eval $cacheid=yes
9216else
9217  eval $cacheid=no
9218fi
9219rm -f core conftest.err conftest.$ac_objext \
9220    conftest$ac_exeext conftest.$ac_ext
9221fi
9222
9223
9224		CFLAGS="$xorg_testset_save_CFLAGS"
9225
9226		eval supported=\$$cacheid
9227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9228$as_echo "$supported" >&6; }
9229		if test "$supported" = "yes" ; then
9230			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9231			found="yes"
9232		fi
9233	fi
9234
9235	if test $found = "no" ; then
9236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238		fi
9239
9240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9242		fi
9243
9244		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9245
9246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9247$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9248		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9249		if eval \${$cacheid+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h.  */
9254int i;
9255int
9256main ()
9257{
9258
9259  ;
9260  return 0;
9261}
9262_ACEOF
9263if ac_fn_c_try_link "$LINENO"; then :
9264  eval $cacheid=yes
9265else
9266  eval $cacheid=no
9267fi
9268rm -f core conftest.err conftest.$ac_objext \
9269    conftest$ac_exeext conftest.$ac_ext
9270fi
9271
9272
9273		CFLAGS="$xorg_testset_save_CFLAGS"
9274
9275		eval supported=\$$cacheid
9276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9277$as_echo "$supported" >&6; }
9278		if test "$supported" = "yes" ; then
9279			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9280			found="yes"
9281		fi
9282	fi
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298xorg_testset_save_CFLAGS="$CFLAGS"
9299
9300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9305  $as_echo_n "(cached) " >&6
9306else
9307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308/* end confdefs.h.  */
9309int i;
9310_ACEOF
9311if ac_fn_c_try_compile "$LINENO"; then :
9312  xorg_cv_cc_flag_unknown_warning_option=yes
9313else
9314  xorg_cv_cc_flag_unknown_warning_option=no
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317fi
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9321	CFLAGS="$xorg_testset_save_CFLAGS"
9322fi
9323
9324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327	fi
9328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9332  $as_echo_n "(cached) " >&6
9333else
9334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336int i;
9337_ACEOF
9338if ac_fn_c_try_compile "$LINENO"; then :
9339  xorg_cv_cc_flag_unused_command_line_argument=yes
9340else
9341  xorg_cv_cc_flag_unused_command_line_argument=no
9342fi
9343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344fi
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9348	CFLAGS="$xorg_testset_save_CFLAGS"
9349fi
9350
9351found="no"
9352
9353	if test $found = "no" ; then
9354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356		fi
9357
9358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9360		fi
9361
9362		CFLAGS="$CFLAGS -Werror=trigraphs"
9363
9364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9365$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
9366		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9367		if eval \${$cacheid+:} false; then :
9368  $as_echo_n "(cached) " >&6
9369else
9370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h.  */
9372int i;
9373int
9374main ()
9375{
9376
9377  ;
9378  return 0;
9379}
9380_ACEOF
9381if ac_fn_c_try_link "$LINENO"; then :
9382  eval $cacheid=yes
9383else
9384  eval $cacheid=no
9385fi
9386rm -f core conftest.err conftest.$ac_objext \
9387    conftest$ac_exeext conftest.$ac_ext
9388fi
9389
9390
9391		CFLAGS="$xorg_testset_save_CFLAGS"
9392
9393		eval supported=\$$cacheid
9394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9395$as_echo "$supported" >&6; }
9396		if test "$supported" = "yes" ; then
9397			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9398			found="yes"
9399		fi
9400	fi
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416xorg_testset_save_CFLAGS="$CFLAGS"
9417
9418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9423  $as_echo_n "(cached) " >&6
9424else
9425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h.  */
9427int i;
9428_ACEOF
9429if ac_fn_c_try_compile "$LINENO"; then :
9430  xorg_cv_cc_flag_unknown_warning_option=yes
9431else
9432  xorg_cv_cc_flag_unknown_warning_option=no
9433fi
9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9439	CFLAGS="$xorg_testset_save_CFLAGS"
9440fi
9441
9442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445	fi
9446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9450  $as_echo_n "(cached) " >&6
9451else
9452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h.  */
9454int i;
9455_ACEOF
9456if ac_fn_c_try_compile "$LINENO"; then :
9457  xorg_cv_cc_flag_unused_command_line_argument=yes
9458else
9459  xorg_cv_cc_flag_unused_command_line_argument=no
9460fi
9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462fi
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9466	CFLAGS="$xorg_testset_save_CFLAGS"
9467fi
9468
9469found="no"
9470
9471	if test $found = "no" ; then
9472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474		fi
9475
9476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9478		fi
9479
9480		CFLAGS="$CFLAGS -Werror=array-bounds"
9481
9482		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9483$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
9484		cacheid=xorg_cv_cc_flag__Werror_array_bounds
9485		if eval \${$cacheid+:} false; then :
9486  $as_echo_n "(cached) " >&6
9487else
9488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490int i;
9491int
9492main ()
9493{
9494
9495  ;
9496  return 0;
9497}
9498_ACEOF
9499if ac_fn_c_try_link "$LINENO"; then :
9500  eval $cacheid=yes
9501else
9502  eval $cacheid=no
9503fi
9504rm -f core conftest.err conftest.$ac_objext \
9505    conftest$ac_exeext conftest.$ac_ext
9506fi
9507
9508
9509		CFLAGS="$xorg_testset_save_CFLAGS"
9510
9511		eval supported=\$$cacheid
9512		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9513$as_echo "$supported" >&6; }
9514		if test "$supported" = "yes" ; then
9515			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9516			found="yes"
9517		fi
9518	fi
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534xorg_testset_save_CFLAGS="$CFLAGS"
9535
9536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9541  $as_echo_n "(cached) " >&6
9542else
9543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544/* end confdefs.h.  */
9545int i;
9546_ACEOF
9547if ac_fn_c_try_compile "$LINENO"; then :
9548  xorg_cv_cc_flag_unknown_warning_option=yes
9549else
9550  xorg_cv_cc_flag_unknown_warning_option=no
9551fi
9552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9557	CFLAGS="$xorg_testset_save_CFLAGS"
9558fi
9559
9560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563	fi
9564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9568  $as_echo_n "(cached) " >&6
9569else
9570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571/* end confdefs.h.  */
9572int i;
9573_ACEOF
9574if ac_fn_c_try_compile "$LINENO"; then :
9575  xorg_cv_cc_flag_unused_command_line_argument=yes
9576else
9577  xorg_cv_cc_flag_unused_command_line_argument=no
9578fi
9579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9580fi
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9584	CFLAGS="$xorg_testset_save_CFLAGS"
9585fi
9586
9587found="no"
9588
9589	if test $found = "no" ; then
9590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9592		fi
9593
9594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596		fi
9597
9598		CFLAGS="$CFLAGS -Werror=write-strings"
9599
9600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9601$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
9602		cacheid=xorg_cv_cc_flag__Werror_write_strings
9603		if eval \${$cacheid+:} false; then :
9604  $as_echo_n "(cached) " >&6
9605else
9606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609int
9610main ()
9611{
9612
9613  ;
9614  return 0;
9615}
9616_ACEOF
9617if ac_fn_c_try_link "$LINENO"; then :
9618  eval $cacheid=yes
9619else
9620  eval $cacheid=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext \
9623    conftest$ac_exeext conftest.$ac_ext
9624fi
9625
9626
9627		CFLAGS="$xorg_testset_save_CFLAGS"
9628
9629		eval supported=\$$cacheid
9630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9631$as_echo "$supported" >&6; }
9632		if test "$supported" = "yes" ; then
9633			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9634			found="yes"
9635		fi
9636	fi
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652xorg_testset_save_CFLAGS="$CFLAGS"
9653
9654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9659  $as_echo_n "(cached) " >&6
9660else
9661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h.  */
9663int i;
9664_ACEOF
9665if ac_fn_c_try_compile "$LINENO"; then :
9666  xorg_cv_cc_flag_unknown_warning_option=yes
9667else
9668  xorg_cv_cc_flag_unknown_warning_option=no
9669fi
9670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671fi
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9675	CFLAGS="$xorg_testset_save_CFLAGS"
9676fi
9677
9678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681	fi
9682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9686  $as_echo_n "(cached) " >&6
9687else
9688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689/* end confdefs.h.  */
9690int i;
9691_ACEOF
9692if ac_fn_c_try_compile "$LINENO"; then :
9693  xorg_cv_cc_flag_unused_command_line_argument=yes
9694else
9695  xorg_cv_cc_flag_unused_command_line_argument=no
9696fi
9697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698fi
9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9701	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9702	CFLAGS="$xorg_testset_save_CFLAGS"
9703fi
9704
9705found="no"
9706
9707	if test $found = "no" ; then
9708		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710		fi
9711
9712		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9714		fi
9715
9716		CFLAGS="$CFLAGS -Werror=address"
9717
9718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9719$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
9720		cacheid=xorg_cv_cc_flag__Werror_address
9721		if eval \${$cacheid+:} false; then :
9722  $as_echo_n "(cached) " >&6
9723else
9724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h.  */
9726int i;
9727int
9728main ()
9729{
9730
9731  ;
9732  return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_link "$LINENO"; then :
9736  eval $cacheid=yes
9737else
9738  eval $cacheid=no
9739fi
9740rm -f core conftest.err conftest.$ac_objext \
9741    conftest$ac_exeext conftest.$ac_ext
9742fi
9743
9744
9745		CFLAGS="$xorg_testset_save_CFLAGS"
9746
9747		eval supported=\$$cacheid
9748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9749$as_echo "$supported" >&6; }
9750		if test "$supported" = "yes" ; then
9751			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9752			found="yes"
9753		fi
9754	fi
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770xorg_testset_save_CFLAGS="$CFLAGS"
9771
9772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9773	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9777  $as_echo_n "(cached) " >&6
9778else
9779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780/* end confdefs.h.  */
9781int i;
9782_ACEOF
9783if ac_fn_c_try_compile "$LINENO"; then :
9784  xorg_cv_cc_flag_unknown_warning_option=yes
9785else
9786  xorg_cv_cc_flag_unknown_warning_option=no
9787fi
9788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9793	CFLAGS="$xorg_testset_save_CFLAGS"
9794fi
9795
9796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799	fi
9800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9804  $as_echo_n "(cached) " >&6
9805else
9806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807/* end confdefs.h.  */
9808int i;
9809_ACEOF
9810if ac_fn_c_try_compile "$LINENO"; then :
9811  xorg_cv_cc_flag_unused_command_line_argument=yes
9812else
9813  xorg_cv_cc_flag_unused_command_line_argument=no
9814fi
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816fi
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9820	CFLAGS="$xorg_testset_save_CFLAGS"
9821fi
9822
9823found="no"
9824
9825	if test $found = "no" ; then
9826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828		fi
9829
9830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9832		fi
9833
9834		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9835
9836		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9837$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9838		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9839		if eval \${$cacheid+:} false; then :
9840  $as_echo_n "(cached) " >&6
9841else
9842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h.  */
9844int i;
9845int
9846main ()
9847{
9848
9849  ;
9850  return 0;
9851}
9852_ACEOF
9853if ac_fn_c_try_link "$LINENO"; then :
9854  eval $cacheid=yes
9855else
9856  eval $cacheid=no
9857fi
9858rm -f core conftest.err conftest.$ac_objext \
9859    conftest$ac_exeext conftest.$ac_ext
9860fi
9861
9862
9863		CFLAGS="$xorg_testset_save_CFLAGS"
9864
9865		eval supported=\$$cacheid
9866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9867$as_echo "$supported" >&6; }
9868		if test "$supported" = "yes" ; then
9869			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9870			found="yes"
9871		fi
9872	fi
9873
9874	if test $found = "no" ; then
9875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877		fi
9878
9879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881		fi
9882
9883		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9884
9885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9886$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9887		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9888		if eval \${$cacheid+:} false; then :
9889  $as_echo_n "(cached) " >&6
9890else
9891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892/* end confdefs.h.  */
9893int i;
9894int
9895main ()
9896{
9897
9898  ;
9899  return 0;
9900}
9901_ACEOF
9902if ac_fn_c_try_link "$LINENO"; then :
9903  eval $cacheid=yes
9904else
9905  eval $cacheid=no
9906fi
9907rm -f core conftest.err conftest.$ac_objext \
9908    conftest$ac_exeext conftest.$ac_ext
9909fi
9910
9911
9912		CFLAGS="$xorg_testset_save_CFLAGS"
9913
9914		eval supported=\$$cacheid
9915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9916$as_echo "$supported" >&6; }
9917		if test "$supported" = "yes" ; then
9918			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9919			found="yes"
9920		fi
9921	fi
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937xorg_testset_save_CFLAGS="$CFLAGS"
9938
9939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9944  $as_echo_n "(cached) " >&6
9945else
9946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947/* end confdefs.h.  */
9948int i;
9949_ACEOF
9950if ac_fn_c_try_compile "$LINENO"; then :
9951  xorg_cv_cc_flag_unknown_warning_option=yes
9952else
9953  xorg_cv_cc_flag_unknown_warning_option=no
9954fi
9955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956fi
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9960	CFLAGS="$xorg_testset_save_CFLAGS"
9961fi
9962
9963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966	fi
9967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9971  $as_echo_n "(cached) " >&6
9972else
9973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975int i;
9976_ACEOF
9977if ac_fn_c_try_compile "$LINENO"; then :
9978  xorg_cv_cc_flag_unused_command_line_argument=yes
9979else
9980  xorg_cv_cc_flag_unused_command_line_argument=no
9981fi
9982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9983fi
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9987	CFLAGS="$xorg_testset_save_CFLAGS"
9988fi
9989
9990found="no"
9991
9992	if test $found = "no" ; then
9993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9995		fi
9996
9997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9999		fi
10000
10001		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10002
10003		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10004$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10005		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10006		if eval \${$cacheid+:} false; then :
10007  $as_echo_n "(cached) " >&6
10008else
10009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h.  */
10011int i;
10012int
10013main ()
10014{
10015
10016  ;
10017  return 0;
10018}
10019_ACEOF
10020if ac_fn_c_try_link "$LINENO"; then :
10021  eval $cacheid=yes
10022else
10023  eval $cacheid=no
10024fi
10025rm -f core conftest.err conftest.$ac_objext \
10026    conftest$ac_exeext conftest.$ac_ext
10027fi
10028
10029
10030		CFLAGS="$xorg_testset_save_CFLAGS"
10031
10032		eval supported=\$$cacheid
10033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10034$as_echo "$supported" >&6; }
10035		if test "$supported" = "yes" ; then
10036			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10037			found="yes"
10038		fi
10039	fi
10040
10041 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10042else
10043{ $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
10044$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;}
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058xorg_testset_save_CFLAGS="$CFLAGS"
10059
10060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070_ACEOF
10071if ac_fn_c_try_compile "$LINENO"; then :
10072  xorg_cv_cc_flag_unknown_warning_option=yes
10073else
10074  xorg_cv_cc_flag_unknown_warning_option=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10077fi
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10081	CFLAGS="$xorg_testset_save_CFLAGS"
10082fi
10083
10084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10087	fi
10088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10092  $as_echo_n "(cached) " >&6
10093else
10094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095/* end confdefs.h.  */
10096int i;
10097_ACEOF
10098if ac_fn_c_try_compile "$LINENO"; then :
10099  xorg_cv_cc_flag_unused_command_line_argument=yes
10100else
10101  xorg_cv_cc_flag_unused_command_line_argument=no
10102fi
10103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104fi
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10108	CFLAGS="$xorg_testset_save_CFLAGS"
10109fi
10110
10111found="no"
10112
10113	if test $found = "no" ; then
10114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116		fi
10117
10118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120		fi
10121
10122		CFLAGS="$CFLAGS -Wimplicit"
10123
10124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10125$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
10126		cacheid=xorg_cv_cc_flag__Wimplicit
10127		if eval \${$cacheid+:} false; then :
10128  $as_echo_n "(cached) " >&6
10129else
10130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131/* end confdefs.h.  */
10132int i;
10133int
10134main ()
10135{
10136
10137  ;
10138  return 0;
10139}
10140_ACEOF
10141if ac_fn_c_try_link "$LINENO"; then :
10142  eval $cacheid=yes
10143else
10144  eval $cacheid=no
10145fi
10146rm -f core conftest.err conftest.$ac_objext \
10147    conftest$ac_exeext conftest.$ac_ext
10148fi
10149
10150
10151		CFLAGS="$xorg_testset_save_CFLAGS"
10152
10153		eval supported=\$$cacheid
10154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10155$as_echo "$supported" >&6; }
10156		if test "$supported" = "yes" ; then
10157			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10158			found="yes"
10159		fi
10160	fi
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176xorg_testset_save_CFLAGS="$CFLAGS"
10177
10178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10183  $as_echo_n "(cached) " >&6
10184else
10185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187int i;
10188_ACEOF
10189if ac_fn_c_try_compile "$LINENO"; then :
10190  xorg_cv_cc_flag_unknown_warning_option=yes
10191else
10192  xorg_cv_cc_flag_unknown_warning_option=no
10193fi
10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195fi
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10199	CFLAGS="$xorg_testset_save_CFLAGS"
10200fi
10201
10202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205	fi
10206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10210  $as_echo_n "(cached) " >&6
10211else
10212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213/* end confdefs.h.  */
10214int i;
10215_ACEOF
10216if ac_fn_c_try_compile "$LINENO"; then :
10217  xorg_cv_cc_flag_unused_command_line_argument=yes
10218else
10219  xorg_cv_cc_flag_unused_command_line_argument=no
10220fi
10221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222fi
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10226	CFLAGS="$xorg_testset_save_CFLAGS"
10227fi
10228
10229found="no"
10230
10231	if test $found = "no" ; then
10232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234		fi
10235
10236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10238		fi
10239
10240		CFLAGS="$CFLAGS -Wnonnull"
10241
10242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10243$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
10244		cacheid=xorg_cv_cc_flag__Wnonnull
10245		if eval \${$cacheid+:} false; then :
10246  $as_echo_n "(cached) " >&6
10247else
10248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249/* end confdefs.h.  */
10250int i;
10251int
10252main ()
10253{
10254
10255  ;
10256  return 0;
10257}
10258_ACEOF
10259if ac_fn_c_try_link "$LINENO"; then :
10260  eval $cacheid=yes
10261else
10262  eval $cacheid=no
10263fi
10264rm -f core conftest.err conftest.$ac_objext \
10265    conftest$ac_exeext conftest.$ac_ext
10266fi
10267
10268
10269		CFLAGS="$xorg_testset_save_CFLAGS"
10270
10271		eval supported=\$$cacheid
10272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10273$as_echo "$supported" >&6; }
10274		if test "$supported" = "yes" ; then
10275			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10276			found="yes"
10277		fi
10278	fi
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294xorg_testset_save_CFLAGS="$CFLAGS"
10295
10296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10301  $as_echo_n "(cached) " >&6
10302else
10303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304/* end confdefs.h.  */
10305int i;
10306_ACEOF
10307if ac_fn_c_try_compile "$LINENO"; then :
10308  xorg_cv_cc_flag_unknown_warning_option=yes
10309else
10310  xorg_cv_cc_flag_unknown_warning_option=no
10311fi
10312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313fi
10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10317	CFLAGS="$xorg_testset_save_CFLAGS"
10318fi
10319
10320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323	fi
10324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10328  $as_echo_n "(cached) " >&6
10329else
10330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h.  */
10332int i;
10333_ACEOF
10334if ac_fn_c_try_compile "$LINENO"; then :
10335  xorg_cv_cc_flag_unused_command_line_argument=yes
10336else
10337  xorg_cv_cc_flag_unused_command_line_argument=no
10338fi
10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340fi
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10344	CFLAGS="$xorg_testset_save_CFLAGS"
10345fi
10346
10347found="no"
10348
10349	if test $found = "no" ; then
10350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352		fi
10353
10354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10356		fi
10357
10358		CFLAGS="$CFLAGS -Winit-self"
10359
10360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10361$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
10362		cacheid=xorg_cv_cc_flag__Winit_self
10363		if eval \${$cacheid+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368int i;
10369int
10370main ()
10371{
10372
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378  eval $cacheid=yes
10379else
10380  eval $cacheid=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext \
10383    conftest$ac_exeext conftest.$ac_ext
10384fi
10385
10386
10387		CFLAGS="$xorg_testset_save_CFLAGS"
10388
10389		eval supported=\$$cacheid
10390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10391$as_echo "$supported" >&6; }
10392		if test "$supported" = "yes" ; then
10393			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10394			found="yes"
10395		fi
10396	fi
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412xorg_testset_save_CFLAGS="$CFLAGS"
10413
10414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10419  $as_echo_n "(cached) " >&6
10420else
10421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h.  */
10423int i;
10424_ACEOF
10425if ac_fn_c_try_compile "$LINENO"; then :
10426  xorg_cv_cc_flag_unknown_warning_option=yes
10427else
10428  xorg_cv_cc_flag_unknown_warning_option=no
10429fi
10430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431fi
10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10435	CFLAGS="$xorg_testset_save_CFLAGS"
10436fi
10437
10438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441	fi
10442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450int i;
10451_ACEOF
10452if ac_fn_c_try_compile "$LINENO"; then :
10453  xorg_cv_cc_flag_unused_command_line_argument=yes
10454else
10455  xorg_cv_cc_flag_unused_command_line_argument=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458fi
10459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10462	CFLAGS="$xorg_testset_save_CFLAGS"
10463fi
10464
10465found="no"
10466
10467	if test $found = "no" ; then
10468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470		fi
10471
10472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10474		fi
10475
10476		CFLAGS="$CFLAGS -Wmain"
10477
10478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10479$as_echo_n "checking if $CC supports -Wmain... " >&6; }
10480		cacheid=xorg_cv_cc_flag__Wmain
10481		if eval \${$cacheid+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485/* end confdefs.h.  */
10486int i;
10487int
10488main ()
10489{
10490
10491  ;
10492  return 0;
10493}
10494_ACEOF
10495if ac_fn_c_try_link "$LINENO"; then :
10496  eval $cacheid=yes
10497else
10498  eval $cacheid=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext \
10501    conftest$ac_exeext conftest.$ac_ext
10502fi
10503
10504
10505		CFLAGS="$xorg_testset_save_CFLAGS"
10506
10507		eval supported=\$$cacheid
10508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10509$as_echo "$supported" >&6; }
10510		if test "$supported" = "yes" ; then
10511			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10512			found="yes"
10513		fi
10514	fi
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530xorg_testset_save_CFLAGS="$CFLAGS"
10531
10532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10537  $as_echo_n "(cached) " >&6
10538else
10539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h.  */
10541int i;
10542_ACEOF
10543if ac_fn_c_try_compile "$LINENO"; then :
10544  xorg_cv_cc_flag_unknown_warning_option=yes
10545else
10546  xorg_cv_cc_flag_unknown_warning_option=no
10547fi
10548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549fi
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10553	CFLAGS="$xorg_testset_save_CFLAGS"
10554fi
10555
10556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10559	fi
10560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10564  $as_echo_n "(cached) " >&6
10565else
10566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567/* end confdefs.h.  */
10568int i;
10569_ACEOF
10570if ac_fn_c_try_compile "$LINENO"; then :
10571  xorg_cv_cc_flag_unused_command_line_argument=yes
10572else
10573  xorg_cv_cc_flag_unused_command_line_argument=no
10574fi
10575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576fi
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10580	CFLAGS="$xorg_testset_save_CFLAGS"
10581fi
10582
10583found="no"
10584
10585	if test $found = "no" ; then
10586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10588		fi
10589
10590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10592		fi
10593
10594		CFLAGS="$CFLAGS -Wmissing-braces"
10595
10596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10597$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
10598		cacheid=xorg_cv_cc_flag__Wmissing_braces
10599		if eval \${$cacheid+:} false; then :
10600  $as_echo_n "(cached) " >&6
10601else
10602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603/* end confdefs.h.  */
10604int i;
10605int
10606main ()
10607{
10608
10609  ;
10610  return 0;
10611}
10612_ACEOF
10613if ac_fn_c_try_link "$LINENO"; then :
10614  eval $cacheid=yes
10615else
10616  eval $cacheid=no
10617fi
10618rm -f core conftest.err conftest.$ac_objext \
10619    conftest$ac_exeext conftest.$ac_ext
10620fi
10621
10622
10623		CFLAGS="$xorg_testset_save_CFLAGS"
10624
10625		eval supported=\$$cacheid
10626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10627$as_echo "$supported" >&6; }
10628		if test "$supported" = "yes" ; then
10629			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10630			found="yes"
10631		fi
10632	fi
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648xorg_testset_save_CFLAGS="$CFLAGS"
10649
10650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10655  $as_echo_n "(cached) " >&6
10656else
10657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658/* end confdefs.h.  */
10659int i;
10660_ACEOF
10661if ac_fn_c_try_compile "$LINENO"; then :
10662  xorg_cv_cc_flag_unknown_warning_option=yes
10663else
10664  xorg_cv_cc_flag_unknown_warning_option=no
10665fi
10666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667fi
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10671	CFLAGS="$xorg_testset_save_CFLAGS"
10672fi
10673
10674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10677	fi
10678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10682  $as_echo_n "(cached) " >&6
10683else
10684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h.  */
10686int i;
10687_ACEOF
10688if ac_fn_c_try_compile "$LINENO"; then :
10689  xorg_cv_cc_flag_unused_command_line_argument=yes
10690else
10691  xorg_cv_cc_flag_unused_command_line_argument=no
10692fi
10693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694fi
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10698	CFLAGS="$xorg_testset_save_CFLAGS"
10699fi
10700
10701found="no"
10702
10703	if test $found = "no" ; then
10704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10706		fi
10707
10708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10710		fi
10711
10712		CFLAGS="$CFLAGS -Wsequence-point"
10713
10714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10715$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
10716		cacheid=xorg_cv_cc_flag__Wsequence_point
10717		if eval \${$cacheid+:} false; then :
10718  $as_echo_n "(cached) " >&6
10719else
10720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721/* end confdefs.h.  */
10722int i;
10723int
10724main ()
10725{
10726
10727  ;
10728  return 0;
10729}
10730_ACEOF
10731if ac_fn_c_try_link "$LINENO"; then :
10732  eval $cacheid=yes
10733else
10734  eval $cacheid=no
10735fi
10736rm -f core conftest.err conftest.$ac_objext \
10737    conftest$ac_exeext conftest.$ac_ext
10738fi
10739
10740
10741		CFLAGS="$xorg_testset_save_CFLAGS"
10742
10743		eval supported=\$$cacheid
10744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10745$as_echo "$supported" >&6; }
10746		if test "$supported" = "yes" ; then
10747			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10748			found="yes"
10749		fi
10750	fi
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766xorg_testset_save_CFLAGS="$CFLAGS"
10767
10768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10773  $as_echo_n "(cached) " >&6
10774else
10775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776/* end confdefs.h.  */
10777int i;
10778_ACEOF
10779if ac_fn_c_try_compile "$LINENO"; then :
10780  xorg_cv_cc_flag_unknown_warning_option=yes
10781else
10782  xorg_cv_cc_flag_unknown_warning_option=no
10783fi
10784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785fi
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10789	CFLAGS="$xorg_testset_save_CFLAGS"
10790fi
10791
10792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10795	fi
10796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10800  $as_echo_n "(cached) " >&6
10801else
10802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803/* end confdefs.h.  */
10804int i;
10805_ACEOF
10806if ac_fn_c_try_compile "$LINENO"; then :
10807  xorg_cv_cc_flag_unused_command_line_argument=yes
10808else
10809  xorg_cv_cc_flag_unused_command_line_argument=no
10810fi
10811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10812fi
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10816	CFLAGS="$xorg_testset_save_CFLAGS"
10817fi
10818
10819found="no"
10820
10821	if test $found = "no" ; then
10822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10824		fi
10825
10826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10828		fi
10829
10830		CFLAGS="$CFLAGS -Wreturn-type"
10831
10832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10833$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
10834		cacheid=xorg_cv_cc_flag__Wreturn_type
10835		if eval \${$cacheid+:} false; then :
10836  $as_echo_n "(cached) " >&6
10837else
10838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839/* end confdefs.h.  */
10840int i;
10841int
10842main ()
10843{
10844
10845  ;
10846  return 0;
10847}
10848_ACEOF
10849if ac_fn_c_try_link "$LINENO"; then :
10850  eval $cacheid=yes
10851else
10852  eval $cacheid=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext \
10855    conftest$ac_exeext conftest.$ac_ext
10856fi
10857
10858
10859		CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861		eval supported=\$$cacheid
10862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863$as_echo "$supported" >&6; }
10864		if test "$supported" = "yes" ; then
10865			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10866			found="yes"
10867		fi
10868	fi
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884xorg_testset_save_CFLAGS="$CFLAGS"
10885
10886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894/* end confdefs.h.  */
10895int i;
10896_ACEOF
10897if ac_fn_c_try_compile "$LINENO"; then :
10898  xorg_cv_cc_flag_unknown_warning_option=yes
10899else
10900  xorg_cv_cc_flag_unknown_warning_option=no
10901fi
10902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10903fi
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10907	CFLAGS="$xorg_testset_save_CFLAGS"
10908fi
10909
10910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10913	fi
10914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10918  $as_echo_n "(cached) " >&6
10919else
10920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h.  */
10922int i;
10923_ACEOF
10924if ac_fn_c_try_compile "$LINENO"; then :
10925  xorg_cv_cc_flag_unused_command_line_argument=yes
10926else
10927  xorg_cv_cc_flag_unused_command_line_argument=no
10928fi
10929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930fi
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10934	CFLAGS="$xorg_testset_save_CFLAGS"
10935fi
10936
10937found="no"
10938
10939	if test $found = "no" ; then
10940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942		fi
10943
10944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10946		fi
10947
10948		CFLAGS="$CFLAGS -Wtrigraphs"
10949
10950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10951$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
10952		cacheid=xorg_cv_cc_flag__Wtrigraphs
10953		if eval \${$cacheid+:} false; then :
10954  $as_echo_n "(cached) " >&6
10955else
10956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957/* end confdefs.h.  */
10958int i;
10959int
10960main ()
10961{
10962
10963  ;
10964  return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968  eval $cacheid=yes
10969else
10970  eval $cacheid=no
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973    conftest$ac_exeext conftest.$ac_ext
10974fi
10975
10976
10977		CFLAGS="$xorg_testset_save_CFLAGS"
10978
10979		eval supported=\$$cacheid
10980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10981$as_echo "$supported" >&6; }
10982		if test "$supported" = "yes" ; then
10983			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10984			found="yes"
10985		fi
10986	fi
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002xorg_testset_save_CFLAGS="$CFLAGS"
11003
11004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012/* end confdefs.h.  */
11013int i;
11014_ACEOF
11015if ac_fn_c_try_compile "$LINENO"; then :
11016  xorg_cv_cc_flag_unknown_warning_option=yes
11017else
11018  xorg_cv_cc_flag_unknown_warning_option=no
11019fi
11020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11025	CFLAGS="$xorg_testset_save_CFLAGS"
11026fi
11027
11028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11031	fi
11032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11036  $as_echo_n "(cached) " >&6
11037else
11038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h.  */
11040int i;
11041_ACEOF
11042if ac_fn_c_try_compile "$LINENO"; then :
11043  xorg_cv_cc_flag_unused_command_line_argument=yes
11044else
11045  xorg_cv_cc_flag_unused_command_line_argument=no
11046fi
11047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048fi
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11052	CFLAGS="$xorg_testset_save_CFLAGS"
11053fi
11054
11055found="no"
11056
11057	if test $found = "no" ; then
11058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11060		fi
11061
11062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11064		fi
11065
11066		CFLAGS="$CFLAGS -Warray-bounds"
11067
11068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11069$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
11070		cacheid=xorg_cv_cc_flag__Warray_bounds
11071		if eval \${$cacheid+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075/* end confdefs.h.  */
11076int i;
11077int
11078main ()
11079{
11080
11081  ;
11082  return 0;
11083}
11084_ACEOF
11085if ac_fn_c_try_link "$LINENO"; then :
11086  eval $cacheid=yes
11087else
11088  eval $cacheid=no
11089fi
11090rm -f core conftest.err conftest.$ac_objext \
11091    conftest$ac_exeext conftest.$ac_ext
11092fi
11093
11094
11095		CFLAGS="$xorg_testset_save_CFLAGS"
11096
11097		eval supported=\$$cacheid
11098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11099$as_echo "$supported" >&6; }
11100		if test "$supported" = "yes" ; then
11101			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11102			found="yes"
11103		fi
11104	fi
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120xorg_testset_save_CFLAGS="$CFLAGS"
11121
11122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11127  $as_echo_n "(cached) " >&6
11128else
11129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130/* end confdefs.h.  */
11131int i;
11132_ACEOF
11133if ac_fn_c_try_compile "$LINENO"; then :
11134  xorg_cv_cc_flag_unknown_warning_option=yes
11135else
11136  xorg_cv_cc_flag_unknown_warning_option=no
11137fi
11138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139fi
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11143	CFLAGS="$xorg_testset_save_CFLAGS"
11144fi
11145
11146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11149	fi
11150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11154  $as_echo_n "(cached) " >&6
11155else
11156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157/* end confdefs.h.  */
11158int i;
11159_ACEOF
11160if ac_fn_c_try_compile "$LINENO"; then :
11161  xorg_cv_cc_flag_unused_command_line_argument=yes
11162else
11163  xorg_cv_cc_flag_unused_command_line_argument=no
11164fi
11165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166fi
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11170	CFLAGS="$xorg_testset_save_CFLAGS"
11171fi
11172
11173found="no"
11174
11175	if test $found = "no" ; then
11176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11178		fi
11179
11180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11182		fi
11183
11184		CFLAGS="$CFLAGS -Wwrite-strings"
11185
11186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11187$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
11188		cacheid=xorg_cv_cc_flag__Wwrite_strings
11189		if eval \${$cacheid+:} false; then :
11190  $as_echo_n "(cached) " >&6
11191else
11192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193/* end confdefs.h.  */
11194int i;
11195int
11196main ()
11197{
11198
11199  ;
11200  return 0;
11201}
11202_ACEOF
11203if ac_fn_c_try_link "$LINENO"; then :
11204  eval $cacheid=yes
11205else
11206  eval $cacheid=no
11207fi
11208rm -f core conftest.err conftest.$ac_objext \
11209    conftest$ac_exeext conftest.$ac_ext
11210fi
11211
11212
11213		CFLAGS="$xorg_testset_save_CFLAGS"
11214
11215		eval supported=\$$cacheid
11216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11217$as_echo "$supported" >&6; }
11218		if test "$supported" = "yes" ; then
11219			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11220			found="yes"
11221		fi
11222	fi
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238xorg_testset_save_CFLAGS="$CFLAGS"
11239
11240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11245  $as_echo_n "(cached) " >&6
11246else
11247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h.  */
11249int i;
11250_ACEOF
11251if ac_fn_c_try_compile "$LINENO"; then :
11252  xorg_cv_cc_flag_unknown_warning_option=yes
11253else
11254  xorg_cv_cc_flag_unknown_warning_option=no
11255fi
11256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11257fi
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11261	CFLAGS="$xorg_testset_save_CFLAGS"
11262fi
11263
11264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11267	fi
11268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275/* end confdefs.h.  */
11276int i;
11277_ACEOF
11278if ac_fn_c_try_compile "$LINENO"; then :
11279  xorg_cv_cc_flag_unused_command_line_argument=yes
11280else
11281  xorg_cv_cc_flag_unused_command_line_argument=no
11282fi
11283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284fi
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11288	CFLAGS="$xorg_testset_save_CFLAGS"
11289fi
11290
11291found="no"
11292
11293	if test $found = "no" ; then
11294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11296		fi
11297
11298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11300		fi
11301
11302		CFLAGS="$CFLAGS -Waddress"
11303
11304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11305$as_echo_n "checking if $CC supports -Waddress... " >&6; }
11306		cacheid=xorg_cv_cc_flag__Waddress
11307		if eval \${$cacheid+:} false; then :
11308  $as_echo_n "(cached) " >&6
11309else
11310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h.  */
11312int i;
11313int
11314main ()
11315{
11316
11317  ;
11318  return 0;
11319}
11320_ACEOF
11321if ac_fn_c_try_link "$LINENO"; then :
11322  eval $cacheid=yes
11323else
11324  eval $cacheid=no
11325fi
11326rm -f core conftest.err conftest.$ac_objext \
11327    conftest$ac_exeext conftest.$ac_ext
11328fi
11329
11330
11331		CFLAGS="$xorg_testset_save_CFLAGS"
11332
11333		eval supported=\$$cacheid
11334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11335$as_echo "$supported" >&6; }
11336		if test "$supported" = "yes" ; then
11337			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11338			found="yes"
11339		fi
11340	fi
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356xorg_testset_save_CFLAGS="$CFLAGS"
11357
11358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11363  $as_echo_n "(cached) " >&6
11364else
11365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366/* end confdefs.h.  */
11367int i;
11368_ACEOF
11369if ac_fn_c_try_compile "$LINENO"; then :
11370  xorg_cv_cc_flag_unknown_warning_option=yes
11371else
11372  xorg_cv_cc_flag_unknown_warning_option=no
11373fi
11374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375fi
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11379	CFLAGS="$xorg_testset_save_CFLAGS"
11380fi
11381
11382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11385	fi
11386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h.  */
11394int i;
11395_ACEOF
11396if ac_fn_c_try_compile "$LINENO"; then :
11397  xorg_cv_cc_flag_unused_command_line_argument=yes
11398else
11399  xorg_cv_cc_flag_unused_command_line_argument=no
11400fi
11401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11406	CFLAGS="$xorg_testset_save_CFLAGS"
11407fi
11408
11409found="no"
11410
11411	if test $found = "no" ; then
11412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11414		fi
11415
11416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11418		fi
11419
11420		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11421
11422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11423$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11424		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11425		if eval \${$cacheid+:} false; then :
11426  $as_echo_n "(cached) " >&6
11427else
11428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429/* end confdefs.h.  */
11430int i;
11431int
11432main ()
11433{
11434
11435  ;
11436  return 0;
11437}
11438_ACEOF
11439if ac_fn_c_try_link "$LINENO"; then :
11440  eval $cacheid=yes
11441else
11442  eval $cacheid=no
11443fi
11444rm -f core conftest.err conftest.$ac_objext \
11445    conftest$ac_exeext conftest.$ac_ext
11446fi
11447
11448
11449		CFLAGS="$xorg_testset_save_CFLAGS"
11450
11451		eval supported=\$$cacheid
11452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11453$as_echo "$supported" >&6; }
11454		if test "$supported" = "yes" ; then
11455			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11456			found="yes"
11457		fi
11458	fi
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474xorg_testset_save_CFLAGS="$CFLAGS"
11475
11476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484/* end confdefs.h.  */
11485int i;
11486_ACEOF
11487if ac_fn_c_try_compile "$LINENO"; then :
11488  xorg_cv_cc_flag_unknown_warning_option=yes
11489else
11490  xorg_cv_cc_flag_unknown_warning_option=no
11491fi
11492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493fi
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11497	CFLAGS="$xorg_testset_save_CFLAGS"
11498fi
11499
11500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11503	fi
11504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511/* end confdefs.h.  */
11512int i;
11513_ACEOF
11514if ac_fn_c_try_compile "$LINENO"; then :
11515  xorg_cv_cc_flag_unused_command_line_argument=yes
11516else
11517  xorg_cv_cc_flag_unused_command_line_argument=no
11518fi
11519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11524	CFLAGS="$xorg_testset_save_CFLAGS"
11525fi
11526
11527found="no"
11528
11529	if test $found = "no" ; then
11530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11532		fi
11533
11534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11536		fi
11537
11538		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11539
11540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11541$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11542		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11543		if eval \${$cacheid+:} false; then :
11544  $as_echo_n "(cached) " >&6
11545else
11546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547/* end confdefs.h.  */
11548int i;
11549int
11550main ()
11551{
11552
11553  ;
11554  return 0;
11555}
11556_ACEOF
11557if ac_fn_c_try_link "$LINENO"; then :
11558  eval $cacheid=yes
11559else
11560  eval $cacheid=no
11561fi
11562rm -f core conftest.err conftest.$ac_objext \
11563    conftest$ac_exeext conftest.$ac_ext
11564fi
11565
11566
11567		CFLAGS="$xorg_testset_save_CFLAGS"
11568
11569		eval supported=\$$cacheid
11570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11571$as_echo "$supported" >&6; }
11572		if test "$supported" = "yes" ; then
11573			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11574			found="yes"
11575		fi
11576	fi
11577
11578
11579fi
11580
11581
11582
11583
11584
11585
11586
11587		CWARNFLAGS="$BASE_CFLAGS"
11588		if  test "x$GCC" = xyes ; then
11589		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11590		fi
11591
11592
11593
11594
11595
11596
11597
11598
11599# Check whether --enable-strict-compilation was given.
11600if test "${enable_strict_compilation+set}" = set; then :
11601  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11602else
11603  STRICT_COMPILE=no
11604fi
11605
11606
11607
11608
11609
11610
11611STRICT_CFLAGS=""
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625xorg_testset_save_CFLAGS="$CFLAGS"
11626
11627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11632  $as_echo_n "(cached) " >&6
11633else
11634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635/* end confdefs.h.  */
11636int i;
11637_ACEOF
11638if ac_fn_c_try_compile "$LINENO"; then :
11639  xorg_cv_cc_flag_unknown_warning_option=yes
11640else
11641  xorg_cv_cc_flag_unknown_warning_option=no
11642fi
11643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644fi
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11648	CFLAGS="$xorg_testset_save_CFLAGS"
11649fi
11650
11651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11654	fi
11655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11659  $as_echo_n "(cached) " >&6
11660else
11661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662/* end confdefs.h.  */
11663int i;
11664_ACEOF
11665if ac_fn_c_try_compile "$LINENO"; then :
11666  xorg_cv_cc_flag_unused_command_line_argument=yes
11667else
11668  xorg_cv_cc_flag_unused_command_line_argument=no
11669fi
11670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11675	CFLAGS="$xorg_testset_save_CFLAGS"
11676fi
11677
11678found="no"
11679
11680	if test $found = "no" ; then
11681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11683		fi
11684
11685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11687		fi
11688
11689		CFLAGS="$CFLAGS -pedantic"
11690
11691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11692$as_echo_n "checking if $CC supports -pedantic... " >&6; }
11693		cacheid=xorg_cv_cc_flag__pedantic
11694		if eval \${$cacheid+:} false; then :
11695  $as_echo_n "(cached) " >&6
11696else
11697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h.  */
11699int i;
11700int
11701main ()
11702{
11703
11704  ;
11705  return 0;
11706}
11707_ACEOF
11708if ac_fn_c_try_link "$LINENO"; then :
11709  eval $cacheid=yes
11710else
11711  eval $cacheid=no
11712fi
11713rm -f core conftest.err conftest.$ac_objext \
11714    conftest$ac_exeext conftest.$ac_ext
11715fi
11716
11717
11718		CFLAGS="$xorg_testset_save_CFLAGS"
11719
11720		eval supported=\$$cacheid
11721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11722$as_echo "$supported" >&6; }
11723		if test "$supported" = "yes" ; then
11724			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11725			found="yes"
11726		fi
11727	fi
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743xorg_testset_save_CFLAGS="$CFLAGS"
11744
11745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11750  $as_echo_n "(cached) " >&6
11751else
11752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753/* end confdefs.h.  */
11754int i;
11755_ACEOF
11756if ac_fn_c_try_compile "$LINENO"; then :
11757  xorg_cv_cc_flag_unknown_warning_option=yes
11758else
11759  xorg_cv_cc_flag_unknown_warning_option=no
11760fi
11761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762fi
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11766	CFLAGS="$xorg_testset_save_CFLAGS"
11767fi
11768
11769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11772	fi
11773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11777  $as_echo_n "(cached) " >&6
11778else
11779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780/* end confdefs.h.  */
11781int i;
11782_ACEOF
11783if ac_fn_c_try_compile "$LINENO"; then :
11784  xorg_cv_cc_flag_unused_command_line_argument=yes
11785else
11786  xorg_cv_cc_flag_unused_command_line_argument=no
11787fi
11788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789fi
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11793	CFLAGS="$xorg_testset_save_CFLAGS"
11794fi
11795
11796found="no"
11797
11798	if test $found = "no" ; then
11799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11801		fi
11802
11803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11805		fi
11806
11807		CFLAGS="$CFLAGS -Werror"
11808
11809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11810$as_echo_n "checking if $CC supports -Werror... " >&6; }
11811		cacheid=xorg_cv_cc_flag__Werror
11812		if eval \${$cacheid+:} false; then :
11813  $as_echo_n "(cached) " >&6
11814else
11815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816/* end confdefs.h.  */
11817int i;
11818int
11819main ()
11820{
11821
11822  ;
11823  return 0;
11824}
11825_ACEOF
11826if ac_fn_c_try_link "$LINENO"; then :
11827  eval $cacheid=yes
11828else
11829  eval $cacheid=no
11830fi
11831rm -f core conftest.err conftest.$ac_objext \
11832    conftest$ac_exeext conftest.$ac_ext
11833fi
11834
11835
11836		CFLAGS="$xorg_testset_save_CFLAGS"
11837
11838		eval supported=\$$cacheid
11839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11840$as_echo "$supported" >&6; }
11841		if test "$supported" = "yes" ; then
11842			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11843			found="yes"
11844		fi
11845	fi
11846
11847	if test $found = "no" ; then
11848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11850		fi
11851
11852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11854		fi
11855
11856		CFLAGS="$CFLAGS -errwarn"
11857
11858		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11859$as_echo_n "checking if $CC supports -errwarn... " >&6; }
11860		cacheid=xorg_cv_cc_flag__errwarn
11861		if eval \${$cacheid+:} false; then :
11862  $as_echo_n "(cached) " >&6
11863else
11864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865/* end confdefs.h.  */
11866int i;
11867int
11868main ()
11869{
11870
11871  ;
11872  return 0;
11873}
11874_ACEOF
11875if ac_fn_c_try_link "$LINENO"; then :
11876  eval $cacheid=yes
11877else
11878  eval $cacheid=no
11879fi
11880rm -f core conftest.err conftest.$ac_objext \
11881    conftest$ac_exeext conftest.$ac_ext
11882fi
11883
11884
11885		CFLAGS="$xorg_testset_save_CFLAGS"
11886
11887		eval supported=\$$cacheid
11888		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11889$as_echo "$supported" >&6; }
11890		if test "$supported" = "yes" ; then
11891			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11892			found="yes"
11893		fi
11894	fi
11895
11896
11897
11898# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11899# activate it with -Werror, so we add it here explicitly.
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913xorg_testset_save_CFLAGS="$CFLAGS"
11914
11915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11920  $as_echo_n "(cached) " >&6
11921else
11922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923/* end confdefs.h.  */
11924int i;
11925_ACEOF
11926if ac_fn_c_try_compile "$LINENO"; then :
11927  xorg_cv_cc_flag_unknown_warning_option=yes
11928else
11929  xorg_cv_cc_flag_unknown_warning_option=no
11930fi
11931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11936	CFLAGS="$xorg_testset_save_CFLAGS"
11937fi
11938
11939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11942	fi
11943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11947  $as_echo_n "(cached) " >&6
11948else
11949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950/* end confdefs.h.  */
11951int i;
11952_ACEOF
11953if ac_fn_c_try_compile "$LINENO"; then :
11954  xorg_cv_cc_flag_unused_command_line_argument=yes
11955else
11956  xorg_cv_cc_flag_unused_command_line_argument=no
11957fi
11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959fi
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11963	CFLAGS="$xorg_testset_save_CFLAGS"
11964fi
11965
11966found="no"
11967
11968	if test $found = "no" ; then
11969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11971		fi
11972
11973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11975		fi
11976
11977		CFLAGS="$CFLAGS -Werror=attributes"
11978
11979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11980$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11981		cacheid=xorg_cv_cc_flag__Werror_attributes
11982		if eval \${$cacheid+:} false; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986/* end confdefs.h.  */
11987int i;
11988int
11989main ()
11990{
11991
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_link "$LINENO"; then :
11997  eval $cacheid=yes
11998else
11999  eval $cacheid=no
12000fi
12001rm -f core conftest.err conftest.$ac_objext \
12002    conftest$ac_exeext conftest.$ac_ext
12003fi
12004
12005
12006		CFLAGS="$xorg_testset_save_CFLAGS"
12007
12008		eval supported=\$$cacheid
12009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12010$as_echo "$supported" >&6; }
12011		if test "$supported" = "yes" ; then
12012			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12013			found="yes"
12014		fi
12015	fi
12016
12017
12018
12019if test "x$STRICT_COMPILE" = "xyes"; then
12020    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12021    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12022fi
12023
12024
12025
12026
12027
12028
12029cat >>confdefs.h <<_ACEOF
12030#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12031_ACEOF
12032
12033	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12034	if test "x$PVM" = "x"; then
12035		PVM="0"
12036	fi
12037
12038cat >>confdefs.h <<_ACEOF
12039#define PACKAGE_VERSION_MINOR $PVM
12040_ACEOF
12041
12042	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12043	if test "x$PVP" = "x"; then
12044		PVP="0"
12045	fi
12046
12047cat >>confdefs.h <<_ACEOF
12048#define PACKAGE_VERSION_PATCHLEVEL $PVP
12049_ACEOF
12050
12051
12052
12053CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
12054mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12055|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
12056echo 'git directory not found: installing possibly empty changelog.' >&2)"
12057
12058
12059
12060
12061macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12062INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12063mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12064|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
12065echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
12066
12067
12068
12069
12070
12071
12072if test x$APP_MAN_SUFFIX = x    ; then
12073    APP_MAN_SUFFIX=1
12074fi
12075if test x$APP_MAN_DIR = x    ; then
12076    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12077fi
12078
12079if test x$LIB_MAN_SUFFIX = x    ; then
12080    LIB_MAN_SUFFIX=3
12081fi
12082if test x$LIB_MAN_DIR = x    ; then
12083    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12084fi
12085
12086if test x$FILE_MAN_SUFFIX = x    ; then
12087    case $host_os in
12088	solaris*)	FILE_MAN_SUFFIX=4  ;;
12089	*)		FILE_MAN_SUFFIX=5  ;;
12090    esac
12091fi
12092if test x$FILE_MAN_DIR = x    ; then
12093    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12094fi
12095
12096if test x$MISC_MAN_SUFFIX = x    ; then
12097    case $host_os in
12098	solaris*)	MISC_MAN_SUFFIX=5  ;;
12099	*)		MISC_MAN_SUFFIX=7  ;;
12100    esac
12101fi
12102if test x$MISC_MAN_DIR = x    ; then
12103    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12104fi
12105
12106if test x$DRIVER_MAN_SUFFIX = x    ; then
12107    case $host_os in
12108	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
12109	*)		DRIVER_MAN_SUFFIX=4  ;;
12110    esac
12111fi
12112if test x$DRIVER_MAN_DIR = x    ; then
12113    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12114fi
12115
12116if test x$ADMIN_MAN_SUFFIX = x    ; then
12117    case $host_os in
12118	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
12119	*)		ADMIN_MAN_SUFFIX=8  ;;
12120    esac
12121fi
12122if test x$ADMIN_MAN_DIR = x    ; then
12123    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12124fi
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140XORG_MAN_PAGE="X Version 11"
12141
12142MAN_SUBSTS="\
12143	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12144	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12145	-e 's|__xservername__|Xorg|g' \
12146	-e 's|__xconfigfile__|xorg.conf|g' \
12147	-e 's|__projectroot__|\$(prefix)|g' \
12148	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12149	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12150	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12151	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12152	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12153	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12154	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12155
12156
12157
12158# Check whether --enable-silent-rules was given.
12159if test "${enable_silent_rules+set}" = set; then :
12160  enableval=$enable_silent_rules;
12161fi
12162
12163case $enable_silent_rules in # (((
12164  yes) AM_DEFAULT_VERBOSITY=0;;
12165   no) AM_DEFAULT_VERBOSITY=1;;
12166    *) AM_DEFAULT_VERBOSITY=0;;
12167esac
12168am_make=${MAKE-make}
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12170$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12171if ${am_cv_make_support_nested_variables+:} false; then :
12172  $as_echo_n "(cached) " >&6
12173else
12174  if $as_echo 'TRUE=$(BAR$(V))
12175BAR0=false
12176BAR1=true
12177V=1
12178am__doit:
12179	@$(TRUE)
12180.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12181  am_cv_make_support_nested_variables=yes
12182else
12183  am_cv_make_support_nested_variables=no
12184fi
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12187$as_echo "$am_cv_make_support_nested_variables" >&6; }
12188if test $am_cv_make_support_nested_variables = yes; then
12189    AM_V='$(V)'
12190  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12191else
12192  AM_V=$AM_DEFAULT_VERBOSITY
12193  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12194fi
12195AM_BACKSLASH='\'
12196
12197
12198
12199
12200
12201
12202
12203# Check whether --with-doxygen was given.
12204if test "${with_doxygen+set}" = set; then :
12205  withval=$with_doxygen; use_doxygen=$withval
12206else
12207  use_doxygen=auto
12208fi
12209
12210
12211
12212if test "x$use_doxygen" = x"auto"; then
12213   # Extract the first word of "doxygen", so it can be a program name with args.
12214set dummy doxygen; ac_word=$2
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216$as_echo_n "checking for $ac_word... " >&6; }
12217if ${ac_cv_path_DOXYGEN+:} false; then :
12218  $as_echo_n "(cached) " >&6
12219else
12220  case $DOXYGEN in
12221  [\\/]* | ?:[\\/]*)
12222  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12223  ;;
12224  *)
12225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226for as_dir in $PATH
12227do
12228  IFS=$as_save_IFS
12229  test -z "$as_dir" && as_dir=.
12230    for ac_exec_ext in '' $ac_executable_extensions; do
12231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234    break 2
12235  fi
12236done
12237  done
12238IFS=$as_save_IFS
12239
12240  ;;
12241esac
12242fi
12243DOXYGEN=$ac_cv_path_DOXYGEN
12244if test -n "$DOXYGEN"; then
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12246$as_echo "$DOXYGEN" >&6; }
12247else
12248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249$as_echo "no" >&6; }
12250fi
12251
12252
12253   if test "x$DOXYGEN" = "x"; then
12254        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
12255$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
12256	have_doxygen=no
12257   else
12258        have_doxygen=yes
12259   fi
12260elif test "x$use_doxygen" = x"yes" ; then
12261   # Extract the first word of "doxygen", so it can be a program name with args.
12262set dummy doxygen; ac_word=$2
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264$as_echo_n "checking for $ac_word... " >&6; }
12265if ${ac_cv_path_DOXYGEN+:} false; then :
12266  $as_echo_n "(cached) " >&6
12267else
12268  case $DOXYGEN in
12269  [\\/]* | ?:[\\/]*)
12270  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12271  ;;
12272  *)
12273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274for as_dir in $PATH
12275do
12276  IFS=$as_save_IFS
12277  test -z "$as_dir" && as_dir=.
12278    for ac_exec_ext in '' $ac_executable_extensions; do
12279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12280    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282    break 2
12283  fi
12284done
12285  done
12286IFS=$as_save_IFS
12287
12288  ;;
12289esac
12290fi
12291DOXYGEN=$ac_cv_path_DOXYGEN
12292if test -n "$DOXYGEN"; then
12293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12294$as_echo "$DOXYGEN" >&6; }
12295else
12296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300
12301   if test "x$DOXYGEN" = "x"; then
12302        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
12303   fi
12304   have_doxygen=yes
12305elif test "x$use_doxygen" = x"no" ; then
12306   if test "x$DOXYGEN" != "x"; then
12307      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
12308$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
12309   fi
12310   have_doxygen=no
12311else
12312   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
12313fi
12314if test "$have_doxygen" = yes; then
12315    # scrape the doxygen version
12316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
12317$as_echo_n "checking the doxygen version... " >&6; }
12318    doxygen_version=`$DOXYGEN --version 2>/dev/null`
12319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
12320$as_echo "$doxygen_version" >&6; }
12321    as_arg_v1=$doxygen_version
12322as_arg_v2=1.6.1
12323awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12324case $? in #(
12325  1) :
12326    if test "x$use_doxygen" = xauto; then
12327            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
12328$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
12329            have_doxygen=no
12330        else
12331            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
12332        fi ;; #(
12333  0) :
12334     ;; #(
12335  2) :
12336     ;; #(
12337  *) :
12338     ;;
12339esac
12340fi
12341
12342HAVE_DOT=no
12343if test "x$have_doxygen" = "xyes"; then
12344  # Extract the first word of "dot", so it can be a program name with args.
12345set dummy dot; ac_word=$2
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if ${ac_cv_path_DOT+:} false; then :
12349  $as_echo_n "(cached) " >&6
12350else
12351  case $DOT in
12352  [\\/]* | ?:[\\/]*)
12353  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
12354  ;;
12355  *)
12356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $PATH
12358do
12359  IFS=$as_save_IFS
12360  test -z "$as_dir" && as_dir=.
12361    for ac_exec_ext in '' $ac_executable_extensions; do
12362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12363    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
12364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365    break 2
12366  fi
12367done
12368  done
12369IFS=$as_save_IFS
12370
12371  ;;
12372esac
12373fi
12374DOT=$ac_cv_path_DOT
12375if test -n "$DOT"; then
12376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12377$as_echo "$DOT" >&6; }
12378else
12379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384    if test "x$DOT" != "x"; then
12385      HAVE_DOT=yes
12386    fi
12387fi
12388
12389
12390 if test "$HAVE_DOT" = "yes"; then
12391  HAVE_DOT_TRUE=
12392  HAVE_DOT_FALSE='#'
12393else
12394  HAVE_DOT_TRUE='#'
12395  HAVE_DOT_FALSE=
12396fi
12397
12398 if test "$have_doxygen" = yes; then
12399  HAVE_DOXYGEN_TRUE=
12400  HAVE_DOXYGEN_FALSE='#'
12401else
12402  HAVE_DOXYGEN_TRUE='#'
12403  HAVE_DOXYGEN_FALSE=
12404fi
12405
12406
12407
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
12409$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
12410XORG_SGML_PATH=
12411if test -n "$PKG_CONFIG" && \
12412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
12413  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
12414  ac_status=$?
12415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12416  test $ac_status = 0; }; then
12417  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12418else
12419  :
12420
12421fi
12422
12423# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12424# the path and the name of the doc stylesheet
12425if test "x$XORG_SGML_PATH" != "x" ; then
12426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12427$as_echo "$XORG_SGML_PATH" >&6; }
12428   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12429   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12430else
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
12433fi
12434
12435
12436
12437
12438 if test "x$XSL_STYLESHEET" != "x"; then
12439  HAVE_STYLESHEETS_TRUE=
12440  HAVE_STYLESHEETS_FALSE='#'
12441else
12442  HAVE_STYLESHEETS_TRUE='#'
12443  HAVE_STYLESHEETS_FALSE=
12444fi
12445
12446
12447
12448
12449# Check whether --enable-docs was given.
12450if test "${enable_docs+set}" = set; then :
12451  enableval=$enable_docs; build_docs=$enableval
12452else
12453  build_docs=yes
12454fi
12455
12456
12457 if test x$build_docs = xyes; then
12458  ENABLE_DOCS_TRUE=
12459  ENABLE_DOCS_FALSE='#'
12460else
12461  ENABLE_DOCS_TRUE='#'
12462  ENABLE_DOCS_FALSE=
12463fi
12464
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
12466$as_echo_n "checking whether to build documentation... " >&6; }
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
12468$as_echo "$build_docs" >&6; }
12469
12470
12471
12472# Check whether --enable-devel-docs was given.
12473if test "${enable_devel_docs+set}" = set; then :
12474  enableval=$enable_devel_docs; build_devel_docs=$enableval
12475else
12476  build_devel_docs=yes
12477fi
12478
12479
12480 if test x$build_devel_docs = xyes; then
12481  ENABLE_DEVEL_DOCS_TRUE=
12482  ENABLE_DEVEL_DOCS_FALSE='#'
12483else
12484  ENABLE_DEVEL_DOCS_TRUE='#'
12485  ENABLE_DEVEL_DOCS_FALSE=
12486fi
12487
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
12489$as_echo_n "checking whether to build developer documentation... " >&6; }
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
12491$as_echo "$build_devel_docs" >&6; }
12492
12493
12494
12495
12496
12497# Check whether --with-xmlto was given.
12498if test "${with_xmlto+set}" = set; then :
12499  withval=$with_xmlto; use_xmlto=$withval
12500else
12501  use_xmlto=auto
12502fi
12503
12504
12505
12506if test "x$use_xmlto" = x"auto"; then
12507   # Extract the first word of "xmlto", so it can be a program name with args.
12508set dummy xmlto; ac_word=$2
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510$as_echo_n "checking for $ac_word... " >&6; }
12511if ${ac_cv_path_XMLTO+:} false; then :
12512  $as_echo_n "(cached) " >&6
12513else
12514  case $XMLTO in
12515  [\\/]* | ?:[\\/]*)
12516  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12517  ;;
12518  *)
12519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
12521do
12522  IFS=$as_save_IFS
12523  test -z "$as_dir" && as_dir=.
12524    for ac_exec_ext in '' $ac_executable_extensions; do
12525  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12526    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528    break 2
12529  fi
12530done
12531  done
12532IFS=$as_save_IFS
12533
12534  ;;
12535esac
12536fi
12537XMLTO=$ac_cv_path_XMLTO
12538if test -n "$XMLTO"; then
12539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12540$as_echo "$XMLTO" >&6; }
12541else
12542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543$as_echo "no" >&6; }
12544fi
12545
12546
12547   if test "x$XMLTO" = "x"; then
12548        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
12549$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
12550	have_xmlto=no
12551   else
12552        have_xmlto=yes
12553   fi
12554elif test "x$use_xmlto" = x"yes" ; then
12555   # Extract the first word of "xmlto", so it can be a program name with args.
12556set dummy xmlto; ac_word=$2
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558$as_echo_n "checking for $ac_word... " >&6; }
12559if ${ac_cv_path_XMLTO+:} false; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  case $XMLTO in
12563  [\\/]* | ?:[\\/]*)
12564  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12565  ;;
12566  *)
12567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568for as_dir in $PATH
12569do
12570  IFS=$as_save_IFS
12571  test -z "$as_dir" && as_dir=.
12572    for ac_exec_ext in '' $ac_executable_extensions; do
12573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576    break 2
12577  fi
12578done
12579  done
12580IFS=$as_save_IFS
12581
12582  ;;
12583esac
12584fi
12585XMLTO=$ac_cv_path_XMLTO
12586if test -n "$XMLTO"; then
12587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12588$as_echo "$XMLTO" >&6; }
12589else
12590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591$as_echo "no" >&6; }
12592fi
12593
12594
12595   if test "x$XMLTO" = "x"; then
12596        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
12597   fi
12598   have_xmlto=yes
12599elif test "x$use_xmlto" = x"no" ; then
12600   if test "x$XMLTO" != "x"; then
12601      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12602$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12603   fi
12604   have_xmlto=no
12605else
12606   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12607fi
12608
12609# Test for a minimum version of xmlto, if provided.
12610if test "$have_xmlto" = yes; then
12611    # scrape the xmlto version
12612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12613$as_echo_n "checking the xmlto version... " >&6; }
12614    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12616$as_echo "$xmlto_version" >&6; }
12617    as_arg_v1=$xmlto_version
12618as_arg_v2=0.0.20
12619awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12620case $? in #(
12621  1) :
12622    if test "x$use_xmlto" = xauto; then
12623            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
12624$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
12625            have_xmlto=no
12626        else
12627            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
12628        fi ;; #(
12629  0) :
12630     ;; #(
12631  2) :
12632     ;; #(
12633  *) :
12634     ;;
12635esac
12636fi
12637
12638# Test for the ability of xmlto to generate a text target
12639have_xmlto_text=no
12640cat > conftest.xml << "EOF"
12641EOF
12642if test "$have_xmlto" = yes; then :
12643  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12644  have_xmlto_text=yes
12645else
12646  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12647$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
12648fi
12649fi
12650rm -f conftest.xml
12651 if test $have_xmlto_text = yes; then
12652  HAVE_XMLTO_TEXT_TRUE=
12653  HAVE_XMLTO_TEXT_FALSE='#'
12654else
12655  HAVE_XMLTO_TEXT_TRUE='#'
12656  HAVE_XMLTO_TEXT_FALSE=
12657fi
12658
12659 if test "$have_xmlto" = yes; then
12660  HAVE_XMLTO_TRUE=
12661  HAVE_XMLTO_FALSE='#'
12662else
12663  HAVE_XMLTO_TRUE='#'
12664  HAVE_XMLTO_FALSE=
12665fi
12666
12667
12668
12669
12670
12671
12672# Check whether --with-fop was given.
12673if test "${with_fop+set}" = set; then :
12674  withval=$with_fop; use_fop=$withval
12675else
12676  use_fop=auto
12677fi
12678
12679
12680
12681if test "x$use_fop" = x"auto"; then
12682   # Extract the first word of "fop", so it can be a program name with args.
12683set dummy fop; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
12686if ${ac_cv_path_FOP+:} false; then :
12687  $as_echo_n "(cached) " >&6
12688else
12689  case $FOP in
12690  [\\/]* | ?:[\\/]*)
12691  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12692  ;;
12693  *)
12694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695for as_dir in $PATH
12696do
12697  IFS=$as_save_IFS
12698  test -z "$as_dir" && as_dir=.
12699    for ac_exec_ext in '' $ac_executable_extensions; do
12700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703    break 2
12704  fi
12705done
12706  done
12707IFS=$as_save_IFS
12708
12709  ;;
12710esac
12711fi
12712FOP=$ac_cv_path_FOP
12713if test -n "$FOP"; then
12714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12715$as_echo "$FOP" >&6; }
12716else
12717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
12719fi
12720
12721
12722   if test "x$FOP" = "x"; then
12723        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12724$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12725	have_fop=no
12726   else
12727        have_fop=yes
12728   fi
12729elif test "x$use_fop" = x"yes" ; then
12730   # Extract the first word of "fop", so it can be a program name with args.
12731set dummy fop; ac_word=$2
12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733$as_echo_n "checking for $ac_word... " >&6; }
12734if ${ac_cv_path_FOP+:} false; then :
12735  $as_echo_n "(cached) " >&6
12736else
12737  case $FOP in
12738  [\\/]* | ?:[\\/]*)
12739  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12740  ;;
12741  *)
12742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12743for as_dir in $PATH
12744do
12745  IFS=$as_save_IFS
12746  test -z "$as_dir" && as_dir=.
12747    for ac_exec_ext in '' $ac_executable_extensions; do
12748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12749    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12751    break 2
12752  fi
12753done
12754  done
12755IFS=$as_save_IFS
12756
12757  ;;
12758esac
12759fi
12760FOP=$ac_cv_path_FOP
12761if test -n "$FOP"; then
12762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12763$as_echo "$FOP" >&6; }
12764else
12765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
12767fi
12768
12769
12770   if test "x$FOP" = "x"; then
12771        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12772   fi
12773   have_fop=yes
12774elif test "x$use_fop" = x"no" ; then
12775   if test "x$FOP" != "x"; then
12776      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12777$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12778   fi
12779   have_fop=no
12780else
12781   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12782fi
12783
12784# Test for a minimum version of fop, if provided.
12785
12786 if test "$have_fop" = yes; then
12787  HAVE_FOP_TRUE=
12788  HAVE_FOP_FALSE='#'
12789else
12790  HAVE_FOP_TRUE='#'
12791  HAVE_FOP_FALSE=
12792fi
12793
12794
12795
12796
12797# Preserves the interface, should it be implemented later
12798
12799
12800
12801# Check whether --with-xsltproc was given.
12802if test "${with_xsltproc+set}" = set; then :
12803  withval=$with_xsltproc; use_xsltproc=$withval
12804else
12805  use_xsltproc=auto
12806fi
12807
12808
12809
12810if test "x$use_xsltproc" = x"auto"; then
12811   # Extract the first word of "xsltproc", so it can be a program name with args.
12812set dummy xsltproc; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if ${ac_cv_path_XSLTPROC+:} false; then :
12816  $as_echo_n "(cached) " >&6
12817else
12818  case $XSLTPROC in
12819  [\\/]* | ?:[\\/]*)
12820  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12821  ;;
12822  *)
12823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824for as_dir in $PATH
12825do
12826  IFS=$as_save_IFS
12827  test -z "$as_dir" && as_dir=.
12828    for ac_exec_ext in '' $ac_executable_extensions; do
12829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832    break 2
12833  fi
12834done
12835  done
12836IFS=$as_save_IFS
12837
12838  ;;
12839esac
12840fi
12841XSLTPROC=$ac_cv_path_XSLTPROC
12842if test -n "$XSLTPROC"; then
12843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12844$as_echo "$XSLTPROC" >&6; }
12845else
12846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
12848fi
12849
12850
12851   if test "x$XSLTPROC" = "x"; then
12852        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
12853$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
12854	have_xsltproc=no
12855   else
12856        have_xsltproc=yes
12857   fi
12858elif test "x$use_xsltproc" = x"yes" ; then
12859   # Extract the first word of "xsltproc", so it can be a program name with args.
12860set dummy xsltproc; ac_word=$2
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862$as_echo_n "checking for $ac_word... " >&6; }
12863if ${ac_cv_path_XSLTPROC+:} false; then :
12864  $as_echo_n "(cached) " >&6
12865else
12866  case $XSLTPROC in
12867  [\\/]* | ?:[\\/]*)
12868  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12869  ;;
12870  *)
12871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872for as_dir in $PATH
12873do
12874  IFS=$as_save_IFS
12875  test -z "$as_dir" && as_dir=.
12876    for ac_exec_ext in '' $ac_executable_extensions; do
12877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12878    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880    break 2
12881  fi
12882done
12883  done
12884IFS=$as_save_IFS
12885
12886  ;;
12887esac
12888fi
12889XSLTPROC=$ac_cv_path_XSLTPROC
12890if test -n "$XSLTPROC"; then
12891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12892$as_echo "$XSLTPROC" >&6; }
12893else
12894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
12896fi
12897
12898
12899   if test "x$XSLTPROC" = "x"; then
12900        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
12901   fi
12902   have_xsltproc=yes
12903elif test "x$use_xsltproc" = x"no" ; then
12904   if test "x$XSLTPROC" != "x"; then
12905      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
12906$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
12907   fi
12908   have_xsltproc=no
12909else
12910   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
12911fi
12912
12913 if test "$have_xsltproc" = yes; then
12914  HAVE_XSLTPROC_TRUE=
12915  HAVE_XSLTPROC_FALSE='#'
12916else
12917  HAVE_XSLTPROC_TRUE='#'
12918  HAVE_XSLTPROC_FALSE=
12919fi
12920
12921
12922
12923
12924
12925
12926
12927# Check for different types of support on different platforms
12928case $host_os in
12929    solaris*)
12930        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
12931$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
12932if ${ac_cv_lib_umem_umem_alloc+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935  ac_check_lib_save_LIBS=$LIBS
12936LIBS="-lumem  $LIBS"
12937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938/* end confdefs.h.  */
12939
12940/* Override any GCC internal prototype to avoid an error.
12941   Use char because int might match the return type of a GCC
12942   builtin and then its argument prototype would still apply.  */
12943#ifdef __cplusplus
12944extern "C"
12945#endif
12946char umem_alloc ();
12947int
12948main ()
12949{
12950return umem_alloc ();
12951  ;
12952  return 0;
12953}
12954_ACEOF
12955if ac_fn_c_try_link "$LINENO"; then :
12956  ac_cv_lib_umem_umem_alloc=yes
12957else
12958  ac_cv_lib_umem_umem_alloc=no
12959fi
12960rm -f core conftest.err conftest.$ac_objext \
12961    conftest$ac_exeext conftest.$ac_ext
12962LIBS=$ac_check_lib_save_LIBS
12963fi
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
12965$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
12966if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
12967  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
12968fi
12969
12970        ;;
12971    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
12972        # both directly and inverted, so should not be 0 or 255.
12973        malloc_debug_env='MALLOC_PERTURB_=15'
12974        ;;
12975    darwin*)
12976        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
12977        ;;
12978    *bsd*)
12979        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
12980        ;;
12981esac
12982
12983# User supplied flags override default flags
12984if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
12985    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
12986fi
12987
12988XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
12989
12990
12991
12992
12993
12994
12995
12996# Check whether --enable-unit-tests was given.
12997if test "${enable_unit_tests+set}" = set; then :
12998  enableval=$enable_unit_tests; enable_unit_tests=$enableval
12999else
13000  enable_unit_tests=auto
13001fi
13002
13003
13004 if test "x$enable_unit_tests" != xno; then
13005  ENABLE_UNIT_TESTS_TRUE=
13006  ENABLE_UNIT_TESTS_FALSE='#'
13007else
13008  ENABLE_UNIT_TESTS_TRUE='#'
13009  ENABLE_UNIT_TESTS_FALSE=
13010fi
13011
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
13013$as_echo_n "checking whether to build unit test cases... " >&6; }
13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
13015$as_echo "$enable_unit_tests" >&6; }
13016
13017
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5
13019$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; }
13020if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then :
13021  $as_echo_n "(cached) " >&6
13022else
13023
13024      ax_save_FLAGS=$LDFLAGS
13025      LDFLAGS="-Wl,-wrap,exit"
13026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027/* end confdefs.h.  */
13028#include <stdlib.h>
13029                      void __wrap_exit(int status) { return; }
13030int
13031main ()
13032{
13033exit(0);
13034  ;
13035  return 0;
13036}
13037_ACEOF
13038if ac_fn_c_try_link "$LINENO"; then :
13039  xorg_cv_linker_flags__Wl__wrap_exit=yes
13040else
13041  xorg_cv_linker_flags__Wl__wrap_exit=no
13042fi
13043rm -f core conftest.err conftest.$ac_objext \
13044    conftest$ac_exeext conftest.$ac_ext
13045      LDFLAGS=$ax_save_FLAGS
13046fi
13047
13048eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
13050$as_echo "$xorg_check_linker_flags" >&6; }
13051if test "x$xorg_check_linker_flags" = xyes; then
13052	have_ld_wrap=yes
13053else
13054	have_ld_wrap=no
13055fi
13056
13057# Not having ld wrap when unit testing has been explicitly requested is an error
13058if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then
13059  if test "x$have_ld_wrap" = x"no"; then
13060    as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5
13061  fi
13062fi
13063 if test "$have_ld_wrap" = yes; then
13064  HAVE_LD_WRAP_TRUE=
13065  HAVE_LD_WRAP_FALSE='#'
13066else
13067  HAVE_LD_WRAP_TRUE='#'
13068  HAVE_LD_WRAP_FALSE=
13069fi
13070
13071#
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086ac_config_headers="$ac_config_headers include/do-not-use-config.h"
13087
13088ac_config_headers="$ac_config_headers include/xorg-server.h"
13089
13090ac_config_headers="$ac_config_headers include/dix-config.h"
13091
13092ac_config_headers="$ac_config_headers include/xorg-config.h"
13093
13094ac_config_headers="$ac_config_headers include/xkb-config.h"
13095
13096ac_config_headers="$ac_config_headers include/xwin-config.h"
13097
13098ac_config_headers="$ac_config_headers include/kdrive-config.h"
13099
13100ac_config_headers="$ac_config_headers include/version-config.h"
13101
13102
13103# By default we simply use the C compiler to build assembly code.
13104
13105test "${CCAS+set}" = set || CCAS=$CC
13106test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
13107
13108
13109
13110depcc="$CCAS"   am_compiler_list=
13111
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13113$as_echo_n "checking dependency style of $depcc... " >&6; }
13114if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
13115  $as_echo_n "(cached) " >&6
13116else
13117  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13118  # We make a subdir and do the tests there.  Otherwise we can end up
13119  # making bogus files that we don't know about and never remove.  For
13120  # instance it was reported that on HP-UX the gcc test will end up
13121  # making a dummy file named 'D' -- because '-MD' means "put the output
13122  # in D".
13123  rm -rf conftest.dir
13124  mkdir conftest.dir
13125  # Copy depcomp to subdir because otherwise we won't find it if we're
13126  # using a relative directory.
13127  cp "$am_depcomp" conftest.dir
13128  cd conftest.dir
13129  # We will build objects and dependencies in a subdirectory because
13130  # it helps to detect inapplicable dependency modes.  For instance
13131  # both Tru64's cc and ICC support -MD to output dependencies as a
13132  # side effect of compilation, but ICC will put the dependencies in
13133  # the current directory while Tru64 will put them in the object
13134  # directory.
13135  mkdir sub
13136
13137  am_cv_CCAS_dependencies_compiler_type=none
13138  if test "$am_compiler_list" = ""; then
13139     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13140  fi
13141  am__universal=false
13142
13143
13144  for depmode in $am_compiler_list; do
13145    # Setup a source with many dependencies, because some compilers
13146    # like to wrap large dependency lists on column 80 (with \), and
13147    # we should not choose a depcomp mode which is confused by this.
13148    #
13149    # We need to recreate these files for each test, as the compiler may
13150    # overwrite some of them when testing with obscure command lines.
13151    # This happens at least with the AIX C compiler.
13152    : > sub/conftest.c
13153    for i in 1 2 3 4 5 6; do
13154      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13155      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13156      # Solaris 10 /bin/sh.
13157      echo '/* dummy */' > sub/conftst$i.h
13158    done
13159    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13160
13161    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13162    # mode.  It turns out that the SunPro C++ compiler does not properly
13163    # handle '-M -o', and we need to detect this.  Also, some Intel
13164    # versions had trouble with output in subdirs.
13165    am__obj=sub/conftest.${OBJEXT-o}
13166    am__minus_obj="-o $am__obj"
13167    case $depmode in
13168    gcc)
13169      # This depmode causes a compiler race in universal mode.
13170      test "$am__universal" = false || continue
13171      ;;
13172    nosideeffect)
13173      # After this tag, mechanisms are not by side-effect, so they'll
13174      # only be used when explicitly requested.
13175      if test "x$enable_dependency_tracking" = xyes; then
13176	continue
13177      else
13178	break
13179      fi
13180      ;;
13181    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13182      # This compiler won't grok '-c -o', but also, the minuso test has
13183      # not run yet.  These depmodes are late enough in the game, and
13184      # so weak that their functioning should not be impacted.
13185      am__obj=conftest.${OBJEXT-o}
13186      am__minus_obj=
13187      ;;
13188    none) break ;;
13189    esac
13190    if depmode=$depmode \
13191       source=sub/conftest.c object=$am__obj \
13192       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13193       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13194         >/dev/null 2>conftest.err &&
13195       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13196       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13197       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13198       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13199      # icc doesn't choke on unknown options, it will just issue warnings
13200      # or remarks (even with -Werror).  So we grep stderr for any message
13201      # that says an option was ignored or not supported.
13202      # When given -MP, icc 7.0 and 7.1 complain thusly:
13203      #   icc: Command line warning: ignoring option '-M'; no argument required
13204      # The diagnosis changed in icc 8.0:
13205      #   icc: Command line remark: option '-MP' not supported
13206      if (grep 'ignoring option' conftest.err ||
13207          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13208        am_cv_CCAS_dependencies_compiler_type=$depmode
13209        break
13210      fi
13211    fi
13212  done
13213
13214  cd ..
13215  rm -rf conftest.dir
13216else
13217  am_cv_CCAS_dependencies_compiler_type=none
13218fi
13219
13220fi
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
13222$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
13223CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
13224
13225 if
13226  test "x$enable_dependency_tracking" != xno \
13227  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
13228  am__fastdepCCAS_TRUE=
13229  am__fastdepCCAS_FALSE='#'
13230else
13231  am__fastdepCCAS_TRUE='#'
13232  am__fastdepCCAS_FALSE=
13233fi
13234
13235
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13237$as_echo_n "checking whether ln -s works... " >&6; }
13238LN_S=$as_ln_s
13239if test "$LN_S" = "ln -s"; then
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13241$as_echo "yes" >&6; }
13242else
13243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13244$as_echo "no, using $LN_S" >&6; }
13245fi
13246
13247
13248case `pwd` in
13249  *\ * | *\	*)
13250    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13251$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13252esac
13253
13254
13255
13256macro_version='2.4.6'
13257macro_revision='2.4.6'
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271ltmain=$ac_aux_dir/ltmain.sh
13272
13273# Backslashify metacharacters that are still active within
13274# double-quoted strings.
13275sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13276
13277# Same as above, but do not quote variable references.
13278double_quote_subst='s/\(["`\\]\)/\\\1/g'
13279
13280# Sed substitution to delay expansion of an escaped shell variable in a
13281# double_quote_subst'ed string.
13282delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13283
13284# Sed substitution to delay expansion of an escaped single quote.
13285delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13286
13287# Sed substitution to avoid accidental globbing in evaled expressions
13288no_glob_subst='s/\*/\\\*/g'
13289
13290ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13291ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13292ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13293
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13295$as_echo_n "checking how to print strings... " >&6; }
13296# Test print first, because it will be a builtin if present.
13297if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13298   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13299  ECHO='print -r --'
13300elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13301  ECHO='printf %s\n'
13302else
13303  # Use this function as a fallback that always works.
13304  func_fallback_echo ()
13305  {
13306    eval 'cat <<_LTECHO_EOF
13307$1
13308_LTECHO_EOF'
13309  }
13310  ECHO='func_fallback_echo'
13311fi
13312
13313# func_echo_all arg...
13314# Invoke $ECHO with all args, space-separated.
13315func_echo_all ()
13316{
13317    $ECHO ""
13318}
13319
13320case $ECHO in
13321  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13322$as_echo "printf" >&6; } ;;
13323  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13324$as_echo "print -r" >&6; } ;;
13325  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13326$as_echo "cat" >&6; } ;;
13327esac
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13343$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13344if ${ac_cv_path_SED+:} false; then :
13345  $as_echo_n "(cached) " >&6
13346else
13347            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13348     for ac_i in 1 2 3 4 5 6 7; do
13349       ac_script="$ac_script$as_nl$ac_script"
13350     done
13351     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13352     { ac_script=; unset ac_script;}
13353     if test -z "$SED"; then
13354  ac_path_SED_found=false
13355  # Loop through the user's path and test for each of PROGNAME-LIST
13356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357for as_dir in $PATH
13358do
13359  IFS=$as_save_IFS
13360  test -z "$as_dir" && as_dir=.
13361    for ac_prog in sed gsed; do
13362    for ac_exec_ext in '' $ac_executable_extensions; do
13363      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13364      as_fn_executable_p "$ac_path_SED" || continue
13365# Check for GNU ac_path_SED and select it if it is found.
13366  # Check for GNU $ac_path_SED
13367case `"$ac_path_SED" --version 2>&1` in
13368*GNU*)
13369  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13370*)
13371  ac_count=0
13372  $as_echo_n 0123456789 >"conftest.in"
13373  while :
13374  do
13375    cat "conftest.in" "conftest.in" >"conftest.tmp"
13376    mv "conftest.tmp" "conftest.in"
13377    cp "conftest.in" "conftest.nl"
13378    $as_echo '' >> "conftest.nl"
13379    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13381    as_fn_arith $ac_count + 1 && ac_count=$as_val
13382    if test $ac_count -gt ${ac_path_SED_max-0}; then
13383      # Best one so far, save it but keep looking for a better one
13384      ac_cv_path_SED="$ac_path_SED"
13385      ac_path_SED_max=$ac_count
13386    fi
13387    # 10*(2^10) chars as input seems more than enough
13388    test $ac_count -gt 10 && break
13389  done
13390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13391esac
13392
13393      $ac_path_SED_found && break 3
13394    done
13395  done
13396  done
13397IFS=$as_save_IFS
13398  if test -z "$ac_cv_path_SED"; then
13399    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13400  fi
13401else
13402  ac_cv_path_SED=$SED
13403fi
13404
13405fi
13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13407$as_echo "$ac_cv_path_SED" >&6; }
13408 SED="$ac_cv_path_SED"
13409  rm -f conftest.sed
13410
13411test -z "$SED" && SED=sed
13412Xsed="$SED -e 1s/^X//"
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13425$as_echo_n "checking for fgrep... " >&6; }
13426if ${ac_cv_path_FGREP+:} false; then :
13427  $as_echo_n "(cached) " >&6
13428else
13429  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13430   then ac_cv_path_FGREP="$GREP -F"
13431   else
13432     if test -z "$FGREP"; then
13433  ac_path_FGREP_found=false
13434  # Loop through the user's path and test for each of PROGNAME-LIST
13435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13437do
13438  IFS=$as_save_IFS
13439  test -z "$as_dir" && as_dir=.
13440    for ac_prog in fgrep; do
13441    for ac_exec_ext in '' $ac_executable_extensions; do
13442      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13443      as_fn_executable_p "$ac_path_FGREP" || continue
13444# Check for GNU ac_path_FGREP and select it if it is found.
13445  # Check for GNU $ac_path_FGREP
13446case `"$ac_path_FGREP" --version 2>&1` in
13447*GNU*)
13448  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13449*)
13450  ac_count=0
13451  $as_echo_n 0123456789 >"conftest.in"
13452  while :
13453  do
13454    cat "conftest.in" "conftest.in" >"conftest.tmp"
13455    mv "conftest.tmp" "conftest.in"
13456    cp "conftest.in" "conftest.nl"
13457    $as_echo 'FGREP' >> "conftest.nl"
13458    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13459    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13460    as_fn_arith $ac_count + 1 && ac_count=$as_val
13461    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13462      # Best one so far, save it but keep looking for a better one
13463      ac_cv_path_FGREP="$ac_path_FGREP"
13464      ac_path_FGREP_max=$ac_count
13465    fi
13466    # 10*(2^10) chars as input seems more than enough
13467    test $ac_count -gt 10 && break
13468  done
13469  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13470esac
13471
13472      $ac_path_FGREP_found && break 3
13473    done
13474  done
13475  done
13476IFS=$as_save_IFS
13477  if test -z "$ac_cv_path_FGREP"; then
13478    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13479  fi
13480else
13481  ac_cv_path_FGREP=$FGREP
13482fi
13483
13484   fi
13485fi
13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13487$as_echo "$ac_cv_path_FGREP" >&6; }
13488 FGREP="$ac_cv_path_FGREP"
13489
13490
13491test -z "$GREP" && GREP=grep
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511# Check whether --with-gnu-ld was given.
13512if test "${with_gnu_ld+set}" = set; then :
13513  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13514else
13515  with_gnu_ld=no
13516fi
13517
13518ac_prog=ld
13519if test yes = "$GCC"; then
13520  # Check if gcc -print-prog-name=ld gives a path.
13521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13522$as_echo_n "checking for ld used by $CC... " >&6; }
13523  case $host in
13524  *-*-mingw*)
13525    # gcc leaves a trailing carriage return, which upsets mingw
13526    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13527  *)
13528    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13529  esac
13530  case $ac_prog in
13531    # Accept absolute paths.
13532    [\\/]* | ?:[\\/]*)
13533      re_direlt='/[^/][^/]*/\.\./'
13534      # Canonicalize the pathname of ld
13535      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13536      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13537	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13538      done
13539      test -z "$LD" && LD=$ac_prog
13540      ;;
13541  "")
13542    # If it fails, then pretend we aren't using GCC.
13543    ac_prog=ld
13544    ;;
13545  *)
13546    # If it is relative, then search for the first ld in PATH.
13547    with_gnu_ld=unknown
13548    ;;
13549  esac
13550elif test yes = "$with_gnu_ld"; then
13551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13552$as_echo_n "checking for GNU ld... " >&6; }
13553else
13554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13555$as_echo_n "checking for non-GNU ld... " >&6; }
13556fi
13557if ${lt_cv_path_LD+:} false; then :
13558  $as_echo_n "(cached) " >&6
13559else
13560  if test -z "$LD"; then
13561  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13562  for ac_dir in $PATH; do
13563    IFS=$lt_save_ifs
13564    test -z "$ac_dir" && ac_dir=.
13565    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13566      lt_cv_path_LD=$ac_dir/$ac_prog
13567      # Check to see if the program is GNU ld.  I'd rather use --version,
13568      # but apparently some variants of GNU ld only accept -v.
13569      # Break only if it was the GNU/non-GNU ld that we prefer.
13570      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13571      *GNU* | *'with BFD'*)
13572	test no != "$with_gnu_ld" && break
13573	;;
13574      *)
13575	test yes != "$with_gnu_ld" && break
13576	;;
13577      esac
13578    fi
13579  done
13580  IFS=$lt_save_ifs
13581else
13582  lt_cv_path_LD=$LD # Let the user override the test with a path.
13583fi
13584fi
13585
13586LD=$lt_cv_path_LD
13587if test -n "$LD"; then
13588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13589$as_echo "$LD" >&6; }
13590else
13591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592$as_echo "no" >&6; }
13593fi
13594test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13596$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13597if ${lt_cv_prog_gnu_ld+:} false; then :
13598  $as_echo_n "(cached) " >&6
13599else
13600  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13601case `$LD -v 2>&1 </dev/null` in
13602*GNU* | *'with BFD'*)
13603  lt_cv_prog_gnu_ld=yes
13604  ;;
13605*)
13606  lt_cv_prog_gnu_ld=no
13607  ;;
13608esac
13609fi
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13611$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13612with_gnu_ld=$lt_cv_prog_gnu_ld
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13623$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13624if ${lt_cv_path_NM+:} false; then :
13625  $as_echo_n "(cached) " >&6
13626else
13627  if test -n "$NM"; then
13628  # Let the user override the test.
13629  lt_cv_path_NM=$NM
13630else
13631  lt_nm_to_check=${ac_tool_prefix}nm
13632  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13633    lt_nm_to_check="$lt_nm_to_check nm"
13634  fi
13635  for lt_tmp_nm in $lt_nm_to_check; do
13636    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13637    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13638      IFS=$lt_save_ifs
13639      test -z "$ac_dir" && ac_dir=.
13640      tmp_nm=$ac_dir/$lt_tmp_nm
13641      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
13642	# Check to see if the nm accepts a BSD-compat flag.
13643	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
13644	#   nm: unknown option "B" ignored
13645	# Tru64's nm complains that /dev/null is an invalid object file
13646	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
13647	case $build_os in
13648	mingw*) lt_bad_file=conftest.nm/nofile ;;
13649	*) lt_bad_file=/dev/null ;;
13650	esac
13651	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
13652	*$lt_bad_file* | *'Invalid file or object type'*)
13653	  lt_cv_path_NM="$tmp_nm -B"
13654	  break 2
13655	  ;;
13656	*)
13657	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13658	  */dev/null*)
13659	    lt_cv_path_NM="$tmp_nm -p"
13660	    break 2
13661	    ;;
13662	  *)
13663	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13664	    continue # so that we can try to find one that supports BSD flags
13665	    ;;
13666	  esac
13667	  ;;
13668	esac
13669      fi
13670    done
13671    IFS=$lt_save_ifs
13672  done
13673  : ${lt_cv_path_NM=no}
13674fi
13675fi
13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13677$as_echo "$lt_cv_path_NM" >&6; }
13678if test no != "$lt_cv_path_NM"; then
13679  NM=$lt_cv_path_NM
13680else
13681  # Didn't find any BSD compatible name lister, look for dumpbin.
13682  if test -n "$DUMPBIN"; then :
13683    # Let the user override the test.
13684  else
13685    if test -n "$ac_tool_prefix"; then
13686  for ac_prog in dumpbin "link -dump"
13687  do
13688    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691$as_echo_n "checking for $ac_word... " >&6; }
13692if ${ac_cv_prog_DUMPBIN+:} false; then :
13693  $as_echo_n "(cached) " >&6
13694else
13695  if test -n "$DUMPBIN"; then
13696  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13697else
13698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699for as_dir in $PATH
13700do
13701  IFS=$as_save_IFS
13702  test -z "$as_dir" && as_dir=.
13703    for ac_exec_ext in '' $ac_executable_extensions; do
13704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13705    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13707    break 2
13708  fi
13709done
13710  done
13711IFS=$as_save_IFS
13712
13713fi
13714fi
13715DUMPBIN=$ac_cv_prog_DUMPBIN
13716if test -n "$DUMPBIN"; then
13717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13718$as_echo "$DUMPBIN" >&6; }
13719else
13720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721$as_echo "no" >&6; }
13722fi
13723
13724
13725    test -n "$DUMPBIN" && break
13726  done
13727fi
13728if test -z "$DUMPBIN"; then
13729  ac_ct_DUMPBIN=$DUMPBIN
13730  for ac_prog in dumpbin "link -dump"
13731do
13732  # Extract the first word of "$ac_prog", so it can be a program name with args.
13733set dummy $ac_prog; ac_word=$2
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735$as_echo_n "checking for $ac_word... " >&6; }
13736if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13737  $as_echo_n "(cached) " >&6
13738else
13739  if test -n "$ac_ct_DUMPBIN"; then
13740  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13741else
13742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743for as_dir in $PATH
13744do
13745  IFS=$as_save_IFS
13746  test -z "$as_dir" && as_dir=.
13747    for ac_exec_ext in '' $ac_executable_extensions; do
13748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751    break 2
13752  fi
13753done
13754  done
13755IFS=$as_save_IFS
13756
13757fi
13758fi
13759ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13760if test -n "$ac_ct_DUMPBIN"; then
13761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13762$as_echo "$ac_ct_DUMPBIN" >&6; }
13763else
13764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765$as_echo "no" >&6; }
13766fi
13767
13768
13769  test -n "$ac_ct_DUMPBIN" && break
13770done
13771
13772  if test "x$ac_ct_DUMPBIN" = x; then
13773    DUMPBIN=":"
13774  else
13775    case $cross_compiling:$ac_tool_warned in
13776yes:)
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13779ac_tool_warned=yes ;;
13780esac
13781    DUMPBIN=$ac_ct_DUMPBIN
13782  fi
13783fi
13784
13785    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
13786    *COFF*)
13787      DUMPBIN="$DUMPBIN -symbols -headers"
13788      ;;
13789    *)
13790      DUMPBIN=:
13791      ;;
13792    esac
13793  fi
13794
13795  if test : != "$DUMPBIN"; then
13796    NM=$DUMPBIN
13797  fi
13798fi
13799test -z "$NM" && NM=nm
13800
13801
13802
13803
13804
13805
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13807$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13808if ${lt_cv_nm_interface+:} false; then :
13809  $as_echo_n "(cached) " >&6
13810else
13811  lt_cv_nm_interface="BSD nm"
13812  echo "int some_variable = 0;" > conftest.$ac_ext
13813  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13814  (eval "$ac_compile" 2>conftest.err)
13815  cat conftest.err >&5
13816  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13817  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13818  cat conftest.err >&5
13819  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13820  cat conftest.out >&5
13821  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13822    lt_cv_nm_interface="MS dumpbin"
13823  fi
13824  rm -f conftest*
13825fi
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13827$as_echo "$lt_cv_nm_interface" >&6; }
13828
13829# find the maximum length of command line arguments
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13831$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13832if ${lt_cv_sys_max_cmd_len+:} false; then :
13833  $as_echo_n "(cached) " >&6
13834else
13835    i=0
13836  teststring=ABCD
13837
13838  case $build_os in
13839  msdosdjgpp*)
13840    # On DJGPP, this test can blow up pretty badly due to problems in libc
13841    # (any single argument exceeding 2000 bytes causes a buffer overrun
13842    # during glob expansion).  Even if it were fixed, the result of this
13843    # check would be larger than it should be.
13844    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13845    ;;
13846
13847  gnu*)
13848    # Under GNU Hurd, this test is not required because there is
13849    # no limit to the length of command line arguments.
13850    # Libtool will interpret -1 as no limit whatsoever
13851    lt_cv_sys_max_cmd_len=-1;
13852    ;;
13853
13854  cygwin* | mingw* | cegcc*)
13855    # On Win9x/ME, this test blows up -- it succeeds, but takes
13856    # about 5 minutes as the teststring grows exponentially.
13857    # Worse, since 9x/ME are not pre-emptively multitasking,
13858    # you end up with a "frozen" computer, even though with patience
13859    # the test eventually succeeds (with a max line length of 256k).
13860    # Instead, let's just punt: use the minimum linelength reported by
13861    # all of the supported platforms: 8192 (on NT/2K/XP).
13862    lt_cv_sys_max_cmd_len=8192;
13863    ;;
13864
13865  mint*)
13866    # On MiNT this can take a long time and run out of memory.
13867    lt_cv_sys_max_cmd_len=8192;
13868    ;;
13869
13870  amigaos*)
13871    # On AmigaOS with pdksh, this test takes hours, literally.
13872    # So we just punt and use a minimum line length of 8192.
13873    lt_cv_sys_max_cmd_len=8192;
13874    ;;
13875
13876  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
13877    # This has been around since 386BSD, at least.  Likely further.
13878    if test -x /sbin/sysctl; then
13879      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13880    elif test -x /usr/sbin/sysctl; then
13881      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13882    else
13883      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13884    fi
13885    # And add a safety zone
13886    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13887    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13888    ;;
13889
13890  interix*)
13891    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13892    lt_cv_sys_max_cmd_len=196608
13893    ;;
13894
13895  os2*)
13896    # The test takes a long time on OS/2.
13897    lt_cv_sys_max_cmd_len=8192
13898    ;;
13899
13900  osf*)
13901    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13902    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13903    # nice to cause kernel panics so lets avoid the loop below.
13904    # First set a reasonable default.
13905    lt_cv_sys_max_cmd_len=16384
13906    #
13907    if test -x /sbin/sysconfig; then
13908      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13909        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13910      esac
13911    fi
13912    ;;
13913  sco3.2v5*)
13914    lt_cv_sys_max_cmd_len=102400
13915    ;;
13916  sysv5* | sco5v6* | sysv4.2uw2*)
13917    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13918    if test -n "$kargmax"; then
13919      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13920    else
13921      lt_cv_sys_max_cmd_len=32768
13922    fi
13923    ;;
13924  *)
13925    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13926    if test -n "$lt_cv_sys_max_cmd_len" && \
13927       test undefined != "$lt_cv_sys_max_cmd_len"; then
13928      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13929      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13930    else
13931      # Make teststring a little bigger before we do anything with it.
13932      # a 1K string should be a reasonable start.
13933      for i in 1 2 3 4 5 6 7 8; do
13934        teststring=$teststring$teststring
13935      done
13936      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13937      # If test is not a shell built-in, we'll probably end up computing a
13938      # maximum length that is only half of the actual maximum length, but
13939      # we can't tell.
13940      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13941	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13942	      test 17 != "$i" # 1/2 MB should be enough
13943      do
13944        i=`expr $i + 1`
13945        teststring=$teststring$teststring
13946      done
13947      # Only check the string length outside the loop.
13948      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13949      teststring=
13950      # Add a significant safety factor because C++ compilers can tack on
13951      # massive amounts of additional arguments before passing them to the
13952      # linker.  It appears as though 1/2 is a usable value.
13953      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13954    fi
13955    ;;
13956  esac
13957
13958fi
13959
13960if test -n "$lt_cv_sys_max_cmd_len"; then
13961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13962$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13963else
13964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13965$as_echo "none" >&6; }
13966fi
13967max_cmd_len=$lt_cv_sys_max_cmd_len
13968
13969
13970
13971
13972
13973
13974: ${CP="cp -f"}
13975: ${MV="mv -f"}
13976: ${RM="rm -f"}
13977
13978if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13979  lt_unset=unset
13980else
13981  lt_unset=false
13982fi
13983
13984
13985
13986
13987
13988# test EBCDIC or ASCII
13989case `echo X|tr X '\101'` in
13990 A) # ASCII based system
13991    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13992  lt_SP2NL='tr \040 \012'
13993  lt_NL2SP='tr \015\012 \040\040'
13994  ;;
13995 *) # EBCDIC based system
13996  lt_SP2NL='tr \100 \n'
13997  lt_NL2SP='tr \r\n \100\100'
13998  ;;
13999esac
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
14010$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
14011if ${lt_cv_to_host_file_cmd+:} false; then :
14012  $as_echo_n "(cached) " >&6
14013else
14014  case $host in
14015  *-*-mingw* )
14016    case $build in
14017      *-*-mingw* ) # actually msys
14018        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
14019        ;;
14020      *-*-cygwin* )
14021        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
14022        ;;
14023      * ) # otherwise, assume *nix
14024        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
14025        ;;
14026    esac
14027    ;;
14028  *-*-cygwin* )
14029    case $build in
14030      *-*-mingw* ) # actually msys
14031        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
14032        ;;
14033      *-*-cygwin* )
14034        lt_cv_to_host_file_cmd=func_convert_file_noop
14035        ;;
14036      * ) # otherwise, assume *nix
14037        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
14038        ;;
14039    esac
14040    ;;
14041  * ) # unhandled hosts (and "normal" native builds)
14042    lt_cv_to_host_file_cmd=func_convert_file_noop
14043    ;;
14044esac
14045
14046fi
14047
14048to_host_file_cmd=$lt_cv_to_host_file_cmd
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
14050$as_echo "$lt_cv_to_host_file_cmd" >&6; }
14051
14052
14053
14054
14055
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
14057$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
14058if ${lt_cv_to_tool_file_cmd+:} false; then :
14059  $as_echo_n "(cached) " >&6
14060else
14061  #assume ordinary cross tools, or native build.
14062lt_cv_to_tool_file_cmd=func_convert_file_noop
14063case $host in
14064  *-*-mingw* )
14065    case $build in
14066      *-*-mingw* ) # actually msys
14067        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
14068        ;;
14069    esac
14070    ;;
14071esac
14072
14073fi
14074
14075to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
14077$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
14078
14079
14080
14081
14082
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14084$as_echo_n "checking for $LD option to reload object files... " >&6; }
14085if ${lt_cv_ld_reload_flag+:} false; then :
14086  $as_echo_n "(cached) " >&6
14087else
14088  lt_cv_ld_reload_flag='-r'
14089fi
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14091$as_echo "$lt_cv_ld_reload_flag" >&6; }
14092reload_flag=$lt_cv_ld_reload_flag
14093case $reload_flag in
14094"" | " "*) ;;
14095*) reload_flag=" $reload_flag" ;;
14096esac
14097reload_cmds='$LD$reload_flag -o $output$reload_objs'
14098case $host_os in
14099  cygwin* | mingw* | pw32* | cegcc*)
14100    if test yes != "$GCC"; then
14101      reload_cmds=false
14102    fi
14103    ;;
14104  darwin*)
14105    if test yes = "$GCC"; then
14106      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
14107    else
14108      reload_cmds='$LD$reload_flag -o $output$reload_objs'
14109    fi
14110    ;;
14111esac
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121if test -n "$ac_tool_prefix"; then
14122  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14123set dummy ${ac_tool_prefix}objdump; ac_word=$2
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14125$as_echo_n "checking for $ac_word... " >&6; }
14126if ${ac_cv_prog_OBJDUMP+:} false; then :
14127  $as_echo_n "(cached) " >&6
14128else
14129  if test -n "$OBJDUMP"; then
14130  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14131else
14132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133for as_dir in $PATH
14134do
14135  IFS=$as_save_IFS
14136  test -z "$as_dir" && as_dir=.
14137    for ac_exec_ext in '' $ac_executable_extensions; do
14138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14139    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14141    break 2
14142  fi
14143done
14144  done
14145IFS=$as_save_IFS
14146
14147fi
14148fi
14149OBJDUMP=$ac_cv_prog_OBJDUMP
14150if test -n "$OBJDUMP"; then
14151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14152$as_echo "$OBJDUMP" >&6; }
14153else
14154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14155$as_echo "no" >&6; }
14156fi
14157
14158
14159fi
14160if test -z "$ac_cv_prog_OBJDUMP"; then
14161  ac_ct_OBJDUMP=$OBJDUMP
14162  # Extract the first word of "objdump", so it can be a program name with args.
14163set dummy objdump; ac_word=$2
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14165$as_echo_n "checking for $ac_word... " >&6; }
14166if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14167  $as_echo_n "(cached) " >&6
14168else
14169  if test -n "$ac_ct_OBJDUMP"; then
14170  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14171else
14172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173for as_dir in $PATH
14174do
14175  IFS=$as_save_IFS
14176  test -z "$as_dir" && as_dir=.
14177    for ac_exec_ext in '' $ac_executable_extensions; do
14178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14179    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14181    break 2
14182  fi
14183done
14184  done
14185IFS=$as_save_IFS
14186
14187fi
14188fi
14189ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14190if test -n "$ac_ct_OBJDUMP"; then
14191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14192$as_echo "$ac_ct_OBJDUMP" >&6; }
14193else
14194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195$as_echo "no" >&6; }
14196fi
14197
14198  if test "x$ac_ct_OBJDUMP" = x; then
14199    OBJDUMP="false"
14200  else
14201    case $cross_compiling:$ac_tool_warned in
14202yes:)
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14205ac_tool_warned=yes ;;
14206esac
14207    OBJDUMP=$ac_ct_OBJDUMP
14208  fi
14209else
14210  OBJDUMP="$ac_cv_prog_OBJDUMP"
14211fi
14212
14213test -z "$OBJDUMP" && OBJDUMP=objdump
14214
14215
14216
14217
14218
14219
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14221$as_echo_n "checking how to recognize dependent libraries... " >&6; }
14222if ${lt_cv_deplibs_check_method+:} false; then :
14223  $as_echo_n "(cached) " >&6
14224else
14225  lt_cv_file_magic_cmd='$MAGIC_CMD'
14226lt_cv_file_magic_test_file=
14227lt_cv_deplibs_check_method='unknown'
14228# Need to set the preceding variable on all platforms that support
14229# interlibrary dependencies.
14230# 'none' -- dependencies not supported.
14231# 'unknown' -- same as none, but documents that we really don't know.
14232# 'pass_all' -- all dependencies passed with no checks.
14233# 'test_compile' -- check by making test program.
14234# 'file_magic [[regex]]' -- check by looking for files in library path
14235# that responds to the $file_magic_cmd with a given extended regex.
14236# If you have 'file' or equivalent on your system and you're not sure
14237# whether 'pass_all' will *always* work, you probably want this one.
14238
14239case $host_os in
14240aix[4-9]*)
14241  lt_cv_deplibs_check_method=pass_all
14242  ;;
14243
14244beos*)
14245  lt_cv_deplibs_check_method=pass_all
14246  ;;
14247
14248bsdi[45]*)
14249  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14250  lt_cv_file_magic_cmd='/usr/bin/file -L'
14251  lt_cv_file_magic_test_file=/shlib/libc.so
14252  ;;
14253
14254cygwin*)
14255  # func_win32_libid is a shell function defined in ltmain.sh
14256  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14257  lt_cv_file_magic_cmd='func_win32_libid'
14258  ;;
14259
14260mingw* | pw32*)
14261  # Base MSYS/MinGW do not provide the 'file' command needed by
14262  # func_win32_libid shell function, so use a weaker test based on 'objdump',
14263  # unless we find 'file', for example because we are cross-compiling.
14264  if ( file / ) >/dev/null 2>&1; then
14265    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14266    lt_cv_file_magic_cmd='func_win32_libid'
14267  else
14268    # Keep this pattern in sync with the one in func_win32_libid.
14269    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
14270    lt_cv_file_magic_cmd='$OBJDUMP -f'
14271  fi
14272  ;;
14273
14274cegcc*)
14275  # use the weaker test based on 'objdump'. See mingw*.
14276  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14277  lt_cv_file_magic_cmd='$OBJDUMP -f'
14278  ;;
14279
14280darwin* | rhapsody*)
14281  lt_cv_deplibs_check_method=pass_all
14282  ;;
14283
14284freebsd* | dragonfly*)
14285  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14286    case $host_cpu in
14287    i*86 )
14288      # Not sure whether the presence of OpenBSD here was a mistake.
14289      # Let's accept both of them until this is cleared up.
14290      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14291      lt_cv_file_magic_cmd=/usr/bin/file
14292      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14293      ;;
14294    esac
14295  else
14296    lt_cv_deplibs_check_method=pass_all
14297  fi
14298  ;;
14299
14300haiku*)
14301  lt_cv_deplibs_check_method=pass_all
14302  ;;
14303
14304hpux10.20* | hpux11*)
14305  lt_cv_file_magic_cmd=/usr/bin/file
14306  case $host_cpu in
14307  ia64*)
14308    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14309    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14310    ;;
14311  hppa*64*)
14312    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]'
14313    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14314    ;;
14315  *)
14316    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14317    lt_cv_file_magic_test_file=/usr/lib/libc.sl
14318    ;;
14319  esac
14320  ;;
14321
14322interix[3-9]*)
14323  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14324  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14325  ;;
14326
14327irix5* | irix6* | nonstopux*)
14328  case $LD in
14329  *-32|*"-32 ") libmagic=32-bit;;
14330  *-n32|*"-n32 ") libmagic=N32;;
14331  *-64|*"-64 ") libmagic=64-bit;;
14332  *) libmagic=never-match;;
14333  esac
14334  lt_cv_deplibs_check_method=pass_all
14335  ;;
14336
14337# This must be glibc/ELF.
14338linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14339  lt_cv_deplibs_check_method=pass_all
14340  ;;
14341
14342netbsd*)
14343  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14344    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14345  else
14346    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14347  fi
14348  ;;
14349
14350newos6*)
14351  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14352  lt_cv_file_magic_cmd=/usr/bin/file
14353  lt_cv_file_magic_test_file=/usr/lib/libnls.so
14354  ;;
14355
14356*nto* | *qnx*)
14357  lt_cv_deplibs_check_method=pass_all
14358  ;;
14359
14360openbsd* | bitrig*)
14361  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14362    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14363  else
14364    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14365  fi
14366  ;;
14367
14368osf3* | osf4* | osf5*)
14369  lt_cv_deplibs_check_method=pass_all
14370  ;;
14371
14372rdos*)
14373  lt_cv_deplibs_check_method=pass_all
14374  ;;
14375
14376solaris*)
14377  lt_cv_deplibs_check_method=pass_all
14378  ;;
14379
14380sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14381  lt_cv_deplibs_check_method=pass_all
14382  ;;
14383
14384sysv4 | sysv4.3*)
14385  case $host_vendor in
14386  motorola)
14387    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]'
14388    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14389    ;;
14390  ncr)
14391    lt_cv_deplibs_check_method=pass_all
14392    ;;
14393  sequent)
14394    lt_cv_file_magic_cmd='/bin/file'
14395    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14396    ;;
14397  sni)
14398    lt_cv_file_magic_cmd='/bin/file'
14399    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14400    lt_cv_file_magic_test_file=/lib/libc.so
14401    ;;
14402  siemens)
14403    lt_cv_deplibs_check_method=pass_all
14404    ;;
14405  pc)
14406    lt_cv_deplibs_check_method=pass_all
14407    ;;
14408  esac
14409  ;;
14410
14411tpf*)
14412  lt_cv_deplibs_check_method=pass_all
14413  ;;
14414os2*)
14415  lt_cv_deplibs_check_method=pass_all
14416  ;;
14417esac
14418
14419fi
14420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14421$as_echo "$lt_cv_deplibs_check_method" >&6; }
14422
14423file_magic_glob=
14424want_nocaseglob=no
14425if test "$build" = "$host"; then
14426  case $host_os in
14427  mingw* | pw32*)
14428    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
14429      want_nocaseglob=yes
14430    else
14431      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
14432    fi
14433    ;;
14434  esac
14435fi
14436
14437file_magic_cmd=$lt_cv_file_magic_cmd
14438deplibs_check_method=$lt_cv_deplibs_check_method
14439test -z "$deplibs_check_method" && deplibs_check_method=unknown
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462if test -n "$ac_tool_prefix"; then
14463  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14464set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14466$as_echo_n "checking for $ac_word... " >&6; }
14467if ${ac_cv_prog_DLLTOOL+:} false; then :
14468  $as_echo_n "(cached) " >&6
14469else
14470  if test -n "$DLLTOOL"; then
14471  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14472else
14473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14474for as_dir in $PATH
14475do
14476  IFS=$as_save_IFS
14477  test -z "$as_dir" && as_dir=.
14478    for ac_exec_ext in '' $ac_executable_extensions; do
14479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14480    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14482    break 2
14483  fi
14484done
14485  done
14486IFS=$as_save_IFS
14487
14488fi
14489fi
14490DLLTOOL=$ac_cv_prog_DLLTOOL
14491if test -n "$DLLTOOL"; then
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14493$as_echo "$DLLTOOL" >&6; }
14494else
14495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496$as_echo "no" >&6; }
14497fi
14498
14499
14500fi
14501if test -z "$ac_cv_prog_DLLTOOL"; then
14502  ac_ct_DLLTOOL=$DLLTOOL
14503  # Extract the first word of "dlltool", so it can be a program name with args.
14504set dummy dlltool; ac_word=$2
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14506$as_echo_n "checking for $ac_word... " >&6; }
14507if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510  if test -n "$ac_ct_DLLTOOL"; then
14511  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14512else
14513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14514for as_dir in $PATH
14515do
14516  IFS=$as_save_IFS
14517  test -z "$as_dir" && as_dir=.
14518    for ac_exec_ext in '' $ac_executable_extensions; do
14519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14520    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14522    break 2
14523  fi
14524done
14525  done
14526IFS=$as_save_IFS
14527
14528fi
14529fi
14530ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14531if test -n "$ac_ct_DLLTOOL"; then
14532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14533$as_echo "$ac_ct_DLLTOOL" >&6; }
14534else
14535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14536$as_echo "no" >&6; }
14537fi
14538
14539  if test "x$ac_ct_DLLTOOL" = x; then
14540    DLLTOOL="false"
14541  else
14542    case $cross_compiling:$ac_tool_warned in
14543yes:)
14544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14546ac_tool_warned=yes ;;
14547esac
14548    DLLTOOL=$ac_ct_DLLTOOL
14549  fi
14550else
14551  DLLTOOL="$ac_cv_prog_DLLTOOL"
14552fi
14553
14554test -z "$DLLTOOL" && DLLTOOL=dlltool
14555
14556
14557
14558
14559
14560
14561
14562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
14563$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
14564if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
14565  $as_echo_n "(cached) " >&6
14566else
14567  lt_cv_sharedlib_from_linklib_cmd='unknown'
14568
14569case $host_os in
14570cygwin* | mingw* | pw32* | cegcc*)
14571  # two different shell functions defined in ltmain.sh;
14572  # decide which one to use based on capabilities of $DLLTOOL
14573  case `$DLLTOOL --help 2>&1` in
14574  *--identify-strict*)
14575    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
14576    ;;
14577  *)
14578    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
14579    ;;
14580  esac
14581  ;;
14582*)
14583  # fallback: assume linklib IS sharedlib
14584  lt_cv_sharedlib_from_linklib_cmd=$ECHO
14585  ;;
14586esac
14587
14588fi
14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
14590$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
14591sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
14592test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
14593
14594
14595
14596
14597
14598
14599
14600if test -n "$ac_tool_prefix"; then
14601  for ac_prog in ar
14602  do
14603    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14606$as_echo_n "checking for $ac_word... " >&6; }
14607if ${ac_cv_prog_AR+:} false; then :
14608  $as_echo_n "(cached) " >&6
14609else
14610  if test -n "$AR"; then
14611  ac_cv_prog_AR="$AR" # Let the user override the test.
14612else
14613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614for as_dir in $PATH
14615do
14616  IFS=$as_save_IFS
14617  test -z "$as_dir" && as_dir=.
14618    for ac_exec_ext in '' $ac_executable_extensions; do
14619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14620    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
14621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14622    break 2
14623  fi
14624done
14625  done
14626IFS=$as_save_IFS
14627
14628fi
14629fi
14630AR=$ac_cv_prog_AR
14631if test -n "$AR"; then
14632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14633$as_echo "$AR" >&6; }
14634else
14635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636$as_echo "no" >&6; }
14637fi
14638
14639
14640    test -n "$AR" && break
14641  done
14642fi
14643if test -z "$AR"; then
14644  ac_ct_AR=$AR
14645  for ac_prog in ar
14646do
14647  # Extract the first word of "$ac_prog", so it can be a program name with args.
14648set dummy $ac_prog; ac_word=$2
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14650$as_echo_n "checking for $ac_word... " >&6; }
14651if ${ac_cv_prog_ac_ct_AR+:} false; then :
14652  $as_echo_n "(cached) " >&6
14653else
14654  if test -n "$ac_ct_AR"; then
14655  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14656else
14657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14658for as_dir in $PATH
14659do
14660  IFS=$as_save_IFS
14661  test -z "$as_dir" && as_dir=.
14662    for ac_exec_ext in '' $ac_executable_extensions; do
14663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14664    ac_cv_prog_ac_ct_AR="$ac_prog"
14665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14666    break 2
14667  fi
14668done
14669  done
14670IFS=$as_save_IFS
14671
14672fi
14673fi
14674ac_ct_AR=$ac_cv_prog_ac_ct_AR
14675if test -n "$ac_ct_AR"; then
14676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14677$as_echo "$ac_ct_AR" >&6; }
14678else
14679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14680$as_echo "no" >&6; }
14681fi
14682
14683
14684  test -n "$ac_ct_AR" && break
14685done
14686
14687  if test "x$ac_ct_AR" = x; then
14688    AR="false"
14689  else
14690    case $cross_compiling:$ac_tool_warned in
14691yes:)
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14694ac_tool_warned=yes ;;
14695esac
14696    AR=$ac_ct_AR
14697  fi
14698fi
14699
14700: ${AR=ar}
14701: ${AR_FLAGS=cru}
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
14714$as_echo_n "checking for archiver @FILE support... " >&6; }
14715if ${lt_cv_ar_at_file+:} false; then :
14716  $as_echo_n "(cached) " >&6
14717else
14718  lt_cv_ar_at_file=no
14719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720/* end confdefs.h.  */
14721
14722int
14723main ()
14724{
14725
14726  ;
14727  return 0;
14728}
14729_ACEOF
14730if ac_fn_c_try_compile "$LINENO"; then :
14731  echo conftest.$ac_objext > conftest.lst
14732      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
14733      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14734  (eval $lt_ar_try) 2>&5
14735  ac_status=$?
14736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14737  test $ac_status = 0; }
14738      if test 0 -eq "$ac_status"; then
14739	# Ensure the archiver fails upon bogus file names.
14740	rm -f conftest.$ac_objext libconftest.a
14741	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14742  (eval $lt_ar_try) 2>&5
14743  ac_status=$?
14744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14745  test $ac_status = 0; }
14746	if test 0 -ne "$ac_status"; then
14747          lt_cv_ar_at_file=@
14748        fi
14749      fi
14750      rm -f conftest.* libconftest.a
14751
14752fi
14753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754
14755fi
14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
14757$as_echo "$lt_cv_ar_at_file" >&6; }
14758
14759if test no = "$lt_cv_ar_at_file"; then
14760  archiver_list_spec=
14761else
14762  archiver_list_spec=$lt_cv_ar_at_file
14763fi
14764
14765
14766
14767
14768
14769
14770
14771if test -n "$ac_tool_prefix"; then
14772  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14773set dummy ${ac_tool_prefix}strip; ac_word=$2
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775$as_echo_n "checking for $ac_word... " >&6; }
14776if ${ac_cv_prog_STRIP+:} false; then :
14777  $as_echo_n "(cached) " >&6
14778else
14779  if test -n "$STRIP"; then
14780  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14781else
14782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783for as_dir in $PATH
14784do
14785  IFS=$as_save_IFS
14786  test -z "$as_dir" && as_dir=.
14787    for ac_exec_ext in '' $ac_executable_extensions; do
14788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14789    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14791    break 2
14792  fi
14793done
14794  done
14795IFS=$as_save_IFS
14796
14797fi
14798fi
14799STRIP=$ac_cv_prog_STRIP
14800if test -n "$STRIP"; then
14801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14802$as_echo "$STRIP" >&6; }
14803else
14804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805$as_echo "no" >&6; }
14806fi
14807
14808
14809fi
14810if test -z "$ac_cv_prog_STRIP"; then
14811  ac_ct_STRIP=$STRIP
14812  # Extract the first word of "strip", so it can be a program name with args.
14813set dummy strip; ac_word=$2
14814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14815$as_echo_n "checking for $ac_word... " >&6; }
14816if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14817  $as_echo_n "(cached) " >&6
14818else
14819  if test -n "$ac_ct_STRIP"; then
14820  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14821else
14822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14823for as_dir in $PATH
14824do
14825  IFS=$as_save_IFS
14826  test -z "$as_dir" && as_dir=.
14827    for ac_exec_ext in '' $ac_executable_extensions; do
14828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14829    ac_cv_prog_ac_ct_STRIP="strip"
14830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14831    break 2
14832  fi
14833done
14834  done
14835IFS=$as_save_IFS
14836
14837fi
14838fi
14839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14840if test -n "$ac_ct_STRIP"; then
14841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14842$as_echo "$ac_ct_STRIP" >&6; }
14843else
14844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14845$as_echo "no" >&6; }
14846fi
14847
14848  if test "x$ac_ct_STRIP" = x; then
14849    STRIP=":"
14850  else
14851    case $cross_compiling:$ac_tool_warned in
14852yes:)
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14855ac_tool_warned=yes ;;
14856esac
14857    STRIP=$ac_ct_STRIP
14858  fi
14859else
14860  STRIP="$ac_cv_prog_STRIP"
14861fi
14862
14863test -z "$STRIP" && STRIP=:
14864
14865
14866
14867
14868
14869
14870if test -n "$ac_tool_prefix"; then
14871  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14872set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14874$as_echo_n "checking for $ac_word... " >&6; }
14875if ${ac_cv_prog_RANLIB+:} false; then :
14876  $as_echo_n "(cached) " >&6
14877else
14878  if test -n "$RANLIB"; then
14879  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14880else
14881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882for as_dir in $PATH
14883do
14884  IFS=$as_save_IFS
14885  test -z "$as_dir" && as_dir=.
14886    for ac_exec_ext in '' $ac_executable_extensions; do
14887  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14890    break 2
14891  fi
14892done
14893  done
14894IFS=$as_save_IFS
14895
14896fi
14897fi
14898RANLIB=$ac_cv_prog_RANLIB
14899if test -n "$RANLIB"; then
14900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14901$as_echo "$RANLIB" >&6; }
14902else
14903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904$as_echo "no" >&6; }
14905fi
14906
14907
14908fi
14909if test -z "$ac_cv_prog_RANLIB"; then
14910  ac_ct_RANLIB=$RANLIB
14911  # Extract the first word of "ranlib", so it can be a program name with args.
14912set dummy ranlib; ac_word=$2
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14914$as_echo_n "checking for $ac_word... " >&6; }
14915if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14916  $as_echo_n "(cached) " >&6
14917else
14918  if test -n "$ac_ct_RANLIB"; then
14919  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14920else
14921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922for as_dir in $PATH
14923do
14924  IFS=$as_save_IFS
14925  test -z "$as_dir" && as_dir=.
14926    for ac_exec_ext in '' $ac_executable_extensions; do
14927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14928    ac_cv_prog_ac_ct_RANLIB="ranlib"
14929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14930    break 2
14931  fi
14932done
14933  done
14934IFS=$as_save_IFS
14935
14936fi
14937fi
14938ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14939if test -n "$ac_ct_RANLIB"; then
14940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14941$as_echo "$ac_ct_RANLIB" >&6; }
14942else
14943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944$as_echo "no" >&6; }
14945fi
14946
14947  if test "x$ac_ct_RANLIB" = x; then
14948    RANLIB=":"
14949  else
14950    case $cross_compiling:$ac_tool_warned in
14951yes:)
14952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14954ac_tool_warned=yes ;;
14955esac
14956    RANLIB=$ac_ct_RANLIB
14957  fi
14958else
14959  RANLIB="$ac_cv_prog_RANLIB"
14960fi
14961
14962test -z "$RANLIB" && RANLIB=:
14963
14964
14965
14966
14967
14968
14969# Determine commands to create old-style static archives.
14970old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14971old_postinstall_cmds='chmod 644 $oldlib'
14972old_postuninstall_cmds=
14973
14974if test -n "$RANLIB"; then
14975  case $host_os in
14976  bitrig* | openbsd*)
14977    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14978    ;;
14979  *)
14980    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14981    ;;
14982  esac
14983  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14984fi
14985
14986case $host_os in
14987  darwin*)
14988    lock_old_archive_extraction=yes ;;
14989  *)
14990    lock_old_archive_extraction=no ;;
14991esac
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031# If no C compiler was specified, use CC.
15032LTCC=${LTCC-"$CC"}
15033
15034# If no C compiler flags were specified, use CFLAGS.
15035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15036
15037# Allow CC to be a program name with arguments.
15038compiler=$CC
15039
15040
15041# Check for command to grab the raw symbol name followed by C symbol from nm.
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15043$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15044if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15045  $as_echo_n "(cached) " >&6
15046else
15047
15048# These are sane defaults that work on at least a few old systems.
15049# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15050
15051# Character class describing NM global symbol codes.
15052symcode='[BCDEGRST]'
15053
15054# Regexp to match symbols that can be accessed directly from C.
15055sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15056
15057# Define system-specific variables.
15058case $host_os in
15059aix*)
15060  symcode='[BCDT]'
15061  ;;
15062cygwin* | mingw* | pw32* | cegcc*)
15063  symcode='[ABCDGISTW]'
15064  ;;
15065hpux*)
15066  if test ia64 = "$host_cpu"; then
15067    symcode='[ABCDEGRST]'
15068  fi
15069  ;;
15070irix* | nonstopux*)
15071  symcode='[BCDEGRST]'
15072  ;;
15073osf*)
15074  symcode='[BCDEGQRST]'
15075  ;;
15076solaris*)
15077  symcode='[BDRT]'
15078  ;;
15079sco3.2v5*)
15080  symcode='[DT]'
15081  ;;
15082sysv4.2uw2*)
15083  symcode='[DT]'
15084  ;;
15085sysv5* | sco5v6* | unixware* | OpenUNIX*)
15086  symcode='[ABDT]'
15087  ;;
15088sysv4)
15089  symcode='[DFNSTU]'
15090  ;;
15091esac
15092
15093# If we're using GNU nm, then use its standard symbol codes.
15094case `$NM -V 2>&1` in
15095*GNU* | *'with BFD'*)
15096  symcode='[ABCDGIRSTW]' ;;
15097esac
15098
15099if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15100  # Gets list of data symbols to import.
15101  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
15102  # Adjust the below global symbol transforms to fixup imported variables.
15103  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
15104  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
15105  lt_c_name_lib_hook="\
15106  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
15107  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
15108else
15109  # Disable hooks by default.
15110  lt_cv_sys_global_symbol_to_import=
15111  lt_cdecl_hook=
15112  lt_c_name_hook=
15113  lt_c_name_lib_hook=
15114fi
15115
15116# Transform an extracted symbol line into a proper C declaration.
15117# Some systems (esp. on ia64) link data and code symbols differently,
15118# so use this general approach.
15119lt_cv_sys_global_symbol_to_cdecl="sed -n"\
15120$lt_cdecl_hook\
15121" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
15122" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
15123
15124# Transform an extracted symbol line into symbol name and symbol address
15125lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
15126$lt_c_name_hook\
15127" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15128" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
15129
15130# Transform an extracted symbol line into symbol name with lib prefix and
15131# symbol address.
15132lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
15133$lt_c_name_lib_hook\
15134" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15135" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
15136" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
15137
15138# Handle CRLF in mingw tool chain
15139opt_cr=
15140case $build_os in
15141mingw*)
15142  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15143  ;;
15144esac
15145
15146# Try without a prefix underscore, then with it.
15147for ac_symprfx in "" "_"; do
15148
15149  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15150  symxfrm="\\1 $ac_symprfx\\2 \\2"
15151
15152  # Write the raw and C identifiers.
15153  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15154    # Fake it for dumpbin and say T for any non-static function,
15155    # D for any global variable and I for any imported variable.
15156    # Also find C++ and __fastcall symbols from MSVC++,
15157    # which start with @ or ?.
15158    lt_cv_sys_global_symbol_pipe="$AWK '"\
15159"     {last_section=section; section=\$ 3};"\
15160"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
15161"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15162"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
15163"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
15164"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
15165"     \$ 0!~/External *\|/{next};"\
15166"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15167"     {if(hide[section]) next};"\
15168"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
15169"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
15170"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
15171"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
15172"     ' prfx=^$ac_symprfx"
15173  else
15174    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15175  fi
15176  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
15177
15178  # Check to see that the pipe works correctly.
15179  pipe_works=no
15180
15181  rm -f conftest*
15182  cat > conftest.$ac_ext <<_LT_EOF
15183#ifdef __cplusplus
15184extern "C" {
15185#endif
15186char nm_test_var;
15187void nm_test_func(void);
15188void nm_test_func(void){}
15189#ifdef __cplusplus
15190}
15191#endif
15192int main(){nm_test_var='a';nm_test_func();return(0);}
15193_LT_EOF
15194
15195  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15196  (eval $ac_compile) 2>&5
15197  ac_status=$?
15198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15199  test $ac_status = 0; }; then
15200    # Now try to grab the symbols.
15201    nlist=conftest.nm
15202    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15203  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15204  ac_status=$?
15205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15206  test $ac_status = 0; } && test -s "$nlist"; then
15207      # Try sorting and uniquifying the output.
15208      if sort "$nlist" | uniq > "$nlist"T; then
15209	mv -f "$nlist"T "$nlist"
15210      else
15211	rm -f "$nlist"T
15212      fi
15213
15214      # Make sure that we snagged all the symbols we need.
15215      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15216	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15217	  cat <<_LT_EOF > conftest.$ac_ext
15218/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
15219#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
15220/* DATA imports from DLLs on WIN32 can't be const, because runtime
15221   relocations are performed -- see ld's documentation on pseudo-relocs.  */
15222# define LT_DLSYM_CONST
15223#elif defined __osf__
15224/* This system does not cope well with relocations in const data.  */
15225# define LT_DLSYM_CONST
15226#else
15227# define LT_DLSYM_CONST const
15228#endif
15229
15230#ifdef __cplusplus
15231extern "C" {
15232#endif
15233
15234_LT_EOF
15235	  # Now generate the symbol file.
15236	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15237
15238	  cat <<_LT_EOF >> conftest.$ac_ext
15239
15240/* The mapping between symbol names and symbols.  */
15241LT_DLSYM_CONST struct {
15242  const char *name;
15243  void       *address;
15244}
15245lt__PROGRAM__LTX_preloaded_symbols[] =
15246{
15247  { "@PROGRAM@", (void *) 0 },
15248_LT_EOF
15249	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15250	  cat <<\_LT_EOF >> conftest.$ac_ext
15251  {0, (void *) 0}
15252};
15253
15254/* This works around a problem in FreeBSD linker */
15255#ifdef FREEBSD_WORKAROUND
15256static const void *lt_preloaded_setup() {
15257  return lt__PROGRAM__LTX_preloaded_symbols;
15258}
15259#endif
15260
15261#ifdef __cplusplus
15262}
15263#endif
15264_LT_EOF
15265	  # Now try linking the two files.
15266	  mv conftest.$ac_objext conftstm.$ac_objext
15267	  lt_globsym_save_LIBS=$LIBS
15268	  lt_globsym_save_CFLAGS=$CFLAGS
15269	  LIBS=conftstm.$ac_objext
15270	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15271	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15272  (eval $ac_link) 2>&5
15273  ac_status=$?
15274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15275  test $ac_status = 0; } && test -s conftest$ac_exeext; then
15276	    pipe_works=yes
15277	  fi
15278	  LIBS=$lt_globsym_save_LIBS
15279	  CFLAGS=$lt_globsym_save_CFLAGS
15280	else
15281	  echo "cannot find nm_test_func in $nlist" >&5
15282	fi
15283      else
15284	echo "cannot find nm_test_var in $nlist" >&5
15285      fi
15286    else
15287      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15288    fi
15289  else
15290    echo "$progname: failed program was:" >&5
15291    cat conftest.$ac_ext >&5
15292  fi
15293  rm -rf conftest* conftst*
15294
15295  # Do not use the global_symbol_pipe unless it works.
15296  if test yes = "$pipe_works"; then
15297    break
15298  else
15299    lt_cv_sys_global_symbol_pipe=
15300  fi
15301done
15302
15303fi
15304
15305if test -z "$lt_cv_sys_global_symbol_pipe"; then
15306  lt_cv_sys_global_symbol_to_cdecl=
15307fi
15308if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15310$as_echo "failed" >&6; }
15311else
15312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15313$as_echo "ok" >&6; }
15314fi
15315
15316# Response file support.
15317if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15318  nm_file_list_spec='@'
15319elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
15320  nm_file_list_spec='@'
15321fi
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15360$as_echo_n "checking for sysroot... " >&6; }
15361
15362# Check whether --with-sysroot was given.
15363if test "${with_sysroot+set}" = set; then :
15364  withval=$with_sysroot;
15365else
15366  with_sysroot=no
15367fi
15368
15369
15370lt_sysroot=
15371case $with_sysroot in #(
15372 yes)
15373   if test yes = "$GCC"; then
15374     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
15375   fi
15376   ;; #(
15377 /*)
15378   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
15379   ;; #(
15380 no|'')
15381   ;; #(
15382 *)
15383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
15384$as_echo "$with_sysroot" >&6; }
15385   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
15386   ;;
15387esac
15388
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
15390$as_echo "${lt_sysroot:-no}" >&6; }
15391
15392
15393
15394
15395
15396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
15397$as_echo_n "checking for a working dd... " >&6; }
15398if ${ac_cv_path_lt_DD+:} false; then :
15399  $as_echo_n "(cached) " >&6
15400else
15401  printf 0123456789abcdef0123456789abcdef >conftest.i
15402cat conftest.i conftest.i >conftest2.i
15403: ${lt_DD:=$DD}
15404if test -z "$lt_DD"; then
15405  ac_path_lt_DD_found=false
15406  # Loop through the user's path and test for each of PROGNAME-LIST
15407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408for as_dir in $PATH
15409do
15410  IFS=$as_save_IFS
15411  test -z "$as_dir" && as_dir=.
15412    for ac_prog in dd; do
15413    for ac_exec_ext in '' $ac_executable_extensions; do
15414      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
15415      as_fn_executable_p "$ac_path_lt_DD" || continue
15416if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15417  cmp -s conftest.i conftest.out \
15418  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
15419fi
15420      $ac_path_lt_DD_found && break 3
15421    done
15422  done
15423  done
15424IFS=$as_save_IFS
15425  if test -z "$ac_cv_path_lt_DD"; then
15426    :
15427  fi
15428else
15429  ac_cv_path_lt_DD=$lt_DD
15430fi
15431
15432rm -f conftest.i conftest2.i conftest.out
15433fi
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
15435$as_echo "$ac_cv_path_lt_DD" >&6; }
15436
15437
15438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
15439$as_echo_n "checking how to truncate binary pipes... " >&6; }
15440if ${lt_cv_truncate_bin+:} false; then :
15441  $as_echo_n "(cached) " >&6
15442else
15443  printf 0123456789abcdef0123456789abcdef >conftest.i
15444cat conftest.i conftest.i >conftest2.i
15445lt_cv_truncate_bin=
15446if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15447  cmp -s conftest.i conftest.out \
15448  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
15449fi
15450rm -f conftest.i conftest2.i conftest.out
15451test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
15452fi
15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
15454$as_echo "$lt_cv_truncate_bin" >&6; }
15455
15456
15457
15458
15459
15460
15461
15462# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15463func_cc_basename ()
15464{
15465    for cc_temp in $*""; do
15466      case $cc_temp in
15467        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15468        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15469        \-*) ;;
15470        *) break;;
15471      esac
15472    done
15473    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15474}
15475
15476# Check whether --enable-libtool-lock was given.
15477if test "${enable_libtool_lock+set}" = set; then :
15478  enableval=$enable_libtool_lock;
15479fi
15480
15481test no = "$enable_libtool_lock" || enable_libtool_lock=yes
15482
15483# Some flags need to be propagated to the compiler or linker for good
15484# libtool support.
15485case $host in
15486ia64-*-hpux*)
15487  # Find out what ABI is being produced by ac_compile, and set mode
15488  # options accordingly.
15489  echo 'int i;' > conftest.$ac_ext
15490  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15491  (eval $ac_compile) 2>&5
15492  ac_status=$?
15493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15494  test $ac_status = 0; }; then
15495    case `/usr/bin/file conftest.$ac_objext` in
15496      *ELF-32*)
15497	HPUX_IA64_MODE=32
15498	;;
15499      *ELF-64*)
15500	HPUX_IA64_MODE=64
15501	;;
15502    esac
15503  fi
15504  rm -rf conftest*
15505  ;;
15506*-*-irix6*)
15507  # Find out what ABI is being produced by ac_compile, and set linker
15508  # options accordingly.
15509  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15511  (eval $ac_compile) 2>&5
15512  ac_status=$?
15513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15514  test $ac_status = 0; }; then
15515    if test yes = "$lt_cv_prog_gnu_ld"; then
15516      case `/usr/bin/file conftest.$ac_objext` in
15517	*32-bit*)
15518	  LD="${LD-ld} -melf32bsmip"
15519	  ;;
15520	*N32*)
15521	  LD="${LD-ld} -melf32bmipn32"
15522	  ;;
15523	*64-bit*)
15524	  LD="${LD-ld} -melf64bmip"
15525	;;
15526      esac
15527    else
15528      case `/usr/bin/file conftest.$ac_objext` in
15529	*32-bit*)
15530	  LD="${LD-ld} -32"
15531	  ;;
15532	*N32*)
15533	  LD="${LD-ld} -n32"
15534	  ;;
15535	*64-bit*)
15536	  LD="${LD-ld} -64"
15537	  ;;
15538      esac
15539    fi
15540  fi
15541  rm -rf conftest*
15542  ;;
15543
15544mips64*-*linux*)
15545  # Find out what ABI is being produced by ac_compile, and set linker
15546  # options accordingly.
15547  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15548  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15549  (eval $ac_compile) 2>&5
15550  ac_status=$?
15551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15552  test $ac_status = 0; }; then
15553    emul=elf
15554    case `/usr/bin/file conftest.$ac_objext` in
15555      *32-bit*)
15556	emul="${emul}32"
15557	;;
15558      *64-bit*)
15559	emul="${emul}64"
15560	;;
15561    esac
15562    case `/usr/bin/file conftest.$ac_objext` in
15563      *MSB*)
15564	emul="${emul}btsmip"
15565	;;
15566      *LSB*)
15567	emul="${emul}ltsmip"
15568	;;
15569    esac
15570    case `/usr/bin/file conftest.$ac_objext` in
15571      *N32*)
15572	emul="${emul}n32"
15573	;;
15574    esac
15575    LD="${LD-ld} -m $emul"
15576  fi
15577  rm -rf conftest*
15578  ;;
15579
15580x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15581s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15582  # Find out what ABI is being produced by ac_compile, and set linker
15583  # options accordingly.  Note that the listed cases only cover the
15584  # situations where additional linker options are needed (such as when
15585  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
15586  # vice versa); the common cases where no linker options are needed do
15587  # not appear in the list.
15588  echo 'int i;' > conftest.$ac_ext
15589  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15590  (eval $ac_compile) 2>&5
15591  ac_status=$?
15592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15593  test $ac_status = 0; }; then
15594    case `/usr/bin/file conftest.o` in
15595      *32-bit*)
15596	case $host in
15597	  x86_64-*kfreebsd*-gnu)
15598	    LD="${LD-ld} -m elf_i386_fbsd"
15599	    ;;
15600	  x86_64-*linux*)
15601	    case `/usr/bin/file conftest.o` in
15602	      *x86-64*)
15603		LD="${LD-ld} -m elf32_x86_64"
15604		;;
15605	      *)
15606		LD="${LD-ld} -m elf_i386"
15607		;;
15608	    esac
15609	    ;;
15610	  powerpc64le-*linux*)
15611	    LD="${LD-ld} -m elf32lppclinux"
15612	    ;;
15613	  powerpc64-*linux*)
15614	    LD="${LD-ld} -m elf32ppclinux"
15615	    ;;
15616	  s390x-*linux*)
15617	    LD="${LD-ld} -m elf_s390"
15618	    ;;
15619	  sparc64-*linux*)
15620	    LD="${LD-ld} -m elf32_sparc"
15621	    ;;
15622	esac
15623	;;
15624      *64-bit*)
15625	case $host in
15626	  x86_64-*kfreebsd*-gnu)
15627	    LD="${LD-ld} -m elf_x86_64_fbsd"
15628	    ;;
15629	  x86_64-*linux*)
15630	    LD="${LD-ld} -m elf_x86_64"
15631	    ;;
15632	  powerpcle-*linux*)
15633	    LD="${LD-ld} -m elf64lppc"
15634	    ;;
15635	  powerpc-*linux*)
15636	    LD="${LD-ld} -m elf64ppc"
15637	    ;;
15638	  s390*-*linux*|s390*-*tpf*)
15639	    LD="${LD-ld} -m elf64_s390"
15640	    ;;
15641	  sparc*-*linux*)
15642	    LD="${LD-ld} -m elf64_sparc"
15643	    ;;
15644	esac
15645	;;
15646    esac
15647  fi
15648  rm -rf conftest*
15649  ;;
15650
15651*-*-sco3.2v5*)
15652  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15653  SAVE_CFLAGS=$CFLAGS
15654  CFLAGS="$CFLAGS -belf"
15655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15656$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15657if ${lt_cv_cc_needs_belf+:} false; then :
15658  $as_echo_n "(cached) " >&6
15659else
15660  ac_ext=c
15661ac_cpp='$CPP $CPPFLAGS'
15662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15664ac_compiler_gnu=$ac_cv_c_compiler_gnu
15665
15666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667/* end confdefs.h.  */
15668
15669int
15670main ()
15671{
15672
15673  ;
15674  return 0;
15675}
15676_ACEOF
15677if ac_fn_c_try_link "$LINENO"; then :
15678  lt_cv_cc_needs_belf=yes
15679else
15680  lt_cv_cc_needs_belf=no
15681fi
15682rm -f core conftest.err conftest.$ac_objext \
15683    conftest$ac_exeext conftest.$ac_ext
15684     ac_ext=c
15685ac_cpp='$CPP $CPPFLAGS'
15686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15688ac_compiler_gnu=$ac_cv_c_compiler_gnu
15689
15690fi
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15692$as_echo "$lt_cv_cc_needs_belf" >&6; }
15693  if test yes != "$lt_cv_cc_needs_belf"; then
15694    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15695    CFLAGS=$SAVE_CFLAGS
15696  fi
15697  ;;
15698*-*solaris*)
15699  # Find out what ABI is being produced by ac_compile, and set linker
15700  # options accordingly.
15701  echo 'int i;' > conftest.$ac_ext
15702  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15703  (eval $ac_compile) 2>&5
15704  ac_status=$?
15705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15706  test $ac_status = 0; }; then
15707    case `/usr/bin/file conftest.o` in
15708    *64-bit*)
15709      case $lt_cv_prog_gnu_ld in
15710      yes*)
15711        case $host in
15712        i?86-*-solaris*|x86_64-*-solaris*)
15713          LD="${LD-ld} -m elf_x86_64"
15714          ;;
15715        sparc*-*-solaris*)
15716          LD="${LD-ld} -m elf64_sparc"
15717          ;;
15718        esac
15719        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
15720        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
15721          LD=${LD-ld}_sol2
15722        fi
15723        ;;
15724      *)
15725	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15726	  LD="${LD-ld} -64"
15727	fi
15728	;;
15729      esac
15730      ;;
15731    esac
15732  fi
15733  rm -rf conftest*
15734  ;;
15735esac
15736
15737need_locks=$enable_libtool_lock
15738
15739if test -n "$ac_tool_prefix"; then
15740  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
15741set dummy ${ac_tool_prefix}mt; ac_word=$2
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15743$as_echo_n "checking for $ac_word... " >&6; }
15744if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
15745  $as_echo_n "(cached) " >&6
15746else
15747  if test -n "$MANIFEST_TOOL"; then
15748  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
15749else
15750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15751for as_dir in $PATH
15752do
15753  IFS=$as_save_IFS
15754  test -z "$as_dir" && as_dir=.
15755    for ac_exec_ext in '' $ac_executable_extensions; do
15756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15757    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
15758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15759    break 2
15760  fi
15761done
15762  done
15763IFS=$as_save_IFS
15764
15765fi
15766fi
15767MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
15768if test -n "$MANIFEST_TOOL"; then
15769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
15770$as_echo "$MANIFEST_TOOL" >&6; }
15771else
15772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15773$as_echo "no" >&6; }
15774fi
15775
15776
15777fi
15778if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
15779  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
15780  # Extract the first word of "mt", so it can be a program name with args.
15781set dummy mt; ac_word=$2
15782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15783$as_echo_n "checking for $ac_word... " >&6; }
15784if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
15785  $as_echo_n "(cached) " >&6
15786else
15787  if test -n "$ac_ct_MANIFEST_TOOL"; then
15788  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15789else
15790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15791for as_dir in $PATH
15792do
15793  IFS=$as_save_IFS
15794  test -z "$as_dir" && as_dir=.
15795    for ac_exec_ext in '' $ac_executable_extensions; do
15796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15797    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15799    break 2
15800  fi
15801done
15802  done
15803IFS=$as_save_IFS
15804
15805fi
15806fi
15807ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15808if test -n "$ac_ct_MANIFEST_TOOL"; then
15809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15810$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
15811else
15812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15813$as_echo "no" >&6; }
15814fi
15815
15816  if test "x$ac_ct_MANIFEST_TOOL" = x; then
15817    MANIFEST_TOOL=":"
15818  else
15819    case $cross_compiling:$ac_tool_warned in
15820yes:)
15821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15823ac_tool_warned=yes ;;
15824esac
15825    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15826  fi
15827else
15828  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15829fi
15830
15831test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15833$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15834if ${lt_cv_path_mainfest_tool+:} false; then :
15835  $as_echo_n "(cached) " >&6
15836else
15837  lt_cv_path_mainfest_tool=no
15838  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15839  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15840  cat conftest.err >&5
15841  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15842    lt_cv_path_mainfest_tool=yes
15843  fi
15844  rm -f conftest*
15845fi
15846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15847$as_echo "$lt_cv_path_mainfest_tool" >&6; }
15848if test yes != "$lt_cv_path_mainfest_tool"; then
15849  MANIFEST_TOOL=:
15850fi
15851
15852
15853
15854
15855
15856
15857  case $host_os in
15858    rhapsody* | darwin*)
15859    if test -n "$ac_tool_prefix"; then
15860  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15861set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863$as_echo_n "checking for $ac_word... " >&6; }
15864if ${ac_cv_prog_DSYMUTIL+:} false; then :
15865  $as_echo_n "(cached) " >&6
15866else
15867  if test -n "$DSYMUTIL"; then
15868  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15869else
15870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871for as_dir in $PATH
15872do
15873  IFS=$as_save_IFS
15874  test -z "$as_dir" && as_dir=.
15875    for ac_exec_ext in '' $ac_executable_extensions; do
15876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15877    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15879    break 2
15880  fi
15881done
15882  done
15883IFS=$as_save_IFS
15884
15885fi
15886fi
15887DSYMUTIL=$ac_cv_prog_DSYMUTIL
15888if test -n "$DSYMUTIL"; then
15889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15890$as_echo "$DSYMUTIL" >&6; }
15891else
15892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15893$as_echo "no" >&6; }
15894fi
15895
15896
15897fi
15898if test -z "$ac_cv_prog_DSYMUTIL"; then
15899  ac_ct_DSYMUTIL=$DSYMUTIL
15900  # Extract the first word of "dsymutil", so it can be a program name with args.
15901set dummy dsymutil; ac_word=$2
15902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15903$as_echo_n "checking for $ac_word... " >&6; }
15904if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15905  $as_echo_n "(cached) " >&6
15906else
15907  if test -n "$ac_ct_DSYMUTIL"; then
15908  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15909else
15910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911for as_dir in $PATH
15912do
15913  IFS=$as_save_IFS
15914  test -z "$as_dir" && as_dir=.
15915    for ac_exec_ext in '' $ac_executable_extensions; do
15916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15917    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15919    break 2
15920  fi
15921done
15922  done
15923IFS=$as_save_IFS
15924
15925fi
15926fi
15927ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15928if test -n "$ac_ct_DSYMUTIL"; then
15929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15930$as_echo "$ac_ct_DSYMUTIL" >&6; }
15931else
15932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933$as_echo "no" >&6; }
15934fi
15935
15936  if test "x$ac_ct_DSYMUTIL" = x; then
15937    DSYMUTIL=":"
15938  else
15939    case $cross_compiling:$ac_tool_warned in
15940yes:)
15941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15943ac_tool_warned=yes ;;
15944esac
15945    DSYMUTIL=$ac_ct_DSYMUTIL
15946  fi
15947else
15948  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15949fi
15950
15951    if test -n "$ac_tool_prefix"; then
15952  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15953set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15955$as_echo_n "checking for $ac_word... " >&6; }
15956if ${ac_cv_prog_NMEDIT+:} false; then :
15957  $as_echo_n "(cached) " >&6
15958else
15959  if test -n "$NMEDIT"; then
15960  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15961else
15962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15963for as_dir in $PATH
15964do
15965  IFS=$as_save_IFS
15966  test -z "$as_dir" && as_dir=.
15967    for ac_exec_ext in '' $ac_executable_extensions; do
15968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15969    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15971    break 2
15972  fi
15973done
15974  done
15975IFS=$as_save_IFS
15976
15977fi
15978fi
15979NMEDIT=$ac_cv_prog_NMEDIT
15980if test -n "$NMEDIT"; then
15981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15982$as_echo "$NMEDIT" >&6; }
15983else
15984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985$as_echo "no" >&6; }
15986fi
15987
15988
15989fi
15990if test -z "$ac_cv_prog_NMEDIT"; then
15991  ac_ct_NMEDIT=$NMEDIT
15992  # Extract the first word of "nmedit", so it can be a program name with args.
15993set dummy nmedit; ac_word=$2
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15995$as_echo_n "checking for $ac_word... " >&6; }
15996if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15997  $as_echo_n "(cached) " >&6
15998else
15999  if test -n "$ac_ct_NMEDIT"; then
16000  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16001else
16002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16003for as_dir in $PATH
16004do
16005  IFS=$as_save_IFS
16006  test -z "$as_dir" && as_dir=.
16007    for ac_exec_ext in '' $ac_executable_extensions; do
16008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16009    ac_cv_prog_ac_ct_NMEDIT="nmedit"
16010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16011    break 2
16012  fi
16013done
16014  done
16015IFS=$as_save_IFS
16016
16017fi
16018fi
16019ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16020if test -n "$ac_ct_NMEDIT"; then
16021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
16022$as_echo "$ac_ct_NMEDIT" >&6; }
16023else
16024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025$as_echo "no" >&6; }
16026fi
16027
16028  if test "x$ac_ct_NMEDIT" = x; then
16029    NMEDIT=":"
16030  else
16031    case $cross_compiling:$ac_tool_warned in
16032yes:)
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16035ac_tool_warned=yes ;;
16036esac
16037    NMEDIT=$ac_ct_NMEDIT
16038  fi
16039else
16040  NMEDIT="$ac_cv_prog_NMEDIT"
16041fi
16042
16043    if test -n "$ac_tool_prefix"; then
16044  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16045set dummy ${ac_tool_prefix}lipo; ac_word=$2
16046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16047$as_echo_n "checking for $ac_word... " >&6; }
16048if ${ac_cv_prog_LIPO+:} false; then :
16049  $as_echo_n "(cached) " >&6
16050else
16051  if test -n "$LIPO"; then
16052  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16053else
16054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055for as_dir in $PATH
16056do
16057  IFS=$as_save_IFS
16058  test -z "$as_dir" && as_dir=.
16059    for ac_exec_ext in '' $ac_executable_extensions; do
16060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16061    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16063    break 2
16064  fi
16065done
16066  done
16067IFS=$as_save_IFS
16068
16069fi
16070fi
16071LIPO=$ac_cv_prog_LIPO
16072if test -n "$LIPO"; then
16073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
16074$as_echo "$LIPO" >&6; }
16075else
16076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077$as_echo "no" >&6; }
16078fi
16079
16080
16081fi
16082if test -z "$ac_cv_prog_LIPO"; then
16083  ac_ct_LIPO=$LIPO
16084  # Extract the first word of "lipo", so it can be a program name with args.
16085set dummy lipo; ac_word=$2
16086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16087$as_echo_n "checking for $ac_word... " >&6; }
16088if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16089  $as_echo_n "(cached) " >&6
16090else
16091  if test -n "$ac_ct_LIPO"; then
16092  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16093else
16094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16095for as_dir in $PATH
16096do
16097  IFS=$as_save_IFS
16098  test -z "$as_dir" && as_dir=.
16099    for ac_exec_ext in '' $ac_executable_extensions; do
16100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16101    ac_cv_prog_ac_ct_LIPO="lipo"
16102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16103    break 2
16104  fi
16105done
16106  done
16107IFS=$as_save_IFS
16108
16109fi
16110fi
16111ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16112if test -n "$ac_ct_LIPO"; then
16113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
16114$as_echo "$ac_ct_LIPO" >&6; }
16115else
16116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117$as_echo "no" >&6; }
16118fi
16119
16120  if test "x$ac_ct_LIPO" = x; then
16121    LIPO=":"
16122  else
16123    case $cross_compiling:$ac_tool_warned in
16124yes:)
16125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16127ac_tool_warned=yes ;;
16128esac
16129    LIPO=$ac_ct_LIPO
16130  fi
16131else
16132  LIPO="$ac_cv_prog_LIPO"
16133fi
16134
16135    if test -n "$ac_tool_prefix"; then
16136  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16137set dummy ${ac_tool_prefix}otool; ac_word=$2
16138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16139$as_echo_n "checking for $ac_word... " >&6; }
16140if ${ac_cv_prog_OTOOL+:} false; then :
16141  $as_echo_n "(cached) " >&6
16142else
16143  if test -n "$OTOOL"; then
16144  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16145else
16146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16147for as_dir in $PATH
16148do
16149  IFS=$as_save_IFS
16150  test -z "$as_dir" && as_dir=.
16151    for ac_exec_ext in '' $ac_executable_extensions; do
16152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16153    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16155    break 2
16156  fi
16157done
16158  done
16159IFS=$as_save_IFS
16160
16161fi
16162fi
16163OTOOL=$ac_cv_prog_OTOOL
16164if test -n "$OTOOL"; then
16165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16166$as_echo "$OTOOL" >&6; }
16167else
16168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16169$as_echo "no" >&6; }
16170fi
16171
16172
16173fi
16174if test -z "$ac_cv_prog_OTOOL"; then
16175  ac_ct_OTOOL=$OTOOL
16176  # Extract the first word of "otool", so it can be a program name with args.
16177set dummy otool; ac_word=$2
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16179$as_echo_n "checking for $ac_word... " >&6; }
16180if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16181  $as_echo_n "(cached) " >&6
16182else
16183  if test -n "$ac_ct_OTOOL"; then
16184  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16185else
16186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16187for as_dir in $PATH
16188do
16189  IFS=$as_save_IFS
16190  test -z "$as_dir" && as_dir=.
16191    for ac_exec_ext in '' $ac_executable_extensions; do
16192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16193    ac_cv_prog_ac_ct_OTOOL="otool"
16194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16195    break 2
16196  fi
16197done
16198  done
16199IFS=$as_save_IFS
16200
16201fi
16202fi
16203ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16204if test -n "$ac_ct_OTOOL"; then
16205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16206$as_echo "$ac_ct_OTOOL" >&6; }
16207else
16208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16209$as_echo "no" >&6; }
16210fi
16211
16212  if test "x$ac_ct_OTOOL" = x; then
16213    OTOOL=":"
16214  else
16215    case $cross_compiling:$ac_tool_warned in
16216yes:)
16217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16219ac_tool_warned=yes ;;
16220esac
16221    OTOOL=$ac_ct_OTOOL
16222  fi
16223else
16224  OTOOL="$ac_cv_prog_OTOOL"
16225fi
16226
16227    if test -n "$ac_tool_prefix"; then
16228  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16229set dummy ${ac_tool_prefix}otool64; ac_word=$2
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231$as_echo_n "checking for $ac_word... " >&6; }
16232if ${ac_cv_prog_OTOOL64+:} false; then :
16233  $as_echo_n "(cached) " >&6
16234else
16235  if test -n "$OTOOL64"; then
16236  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16237else
16238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16239for as_dir in $PATH
16240do
16241  IFS=$as_save_IFS
16242  test -z "$as_dir" && as_dir=.
16243    for ac_exec_ext in '' $ac_executable_extensions; do
16244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16245    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16247    break 2
16248  fi
16249done
16250  done
16251IFS=$as_save_IFS
16252
16253fi
16254fi
16255OTOOL64=$ac_cv_prog_OTOOL64
16256if test -n "$OTOOL64"; then
16257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16258$as_echo "$OTOOL64" >&6; }
16259else
16260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16261$as_echo "no" >&6; }
16262fi
16263
16264
16265fi
16266if test -z "$ac_cv_prog_OTOOL64"; then
16267  ac_ct_OTOOL64=$OTOOL64
16268  # Extract the first word of "otool64", so it can be a program name with args.
16269set dummy otool64; ac_word=$2
16270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16271$as_echo_n "checking for $ac_word... " >&6; }
16272if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16273  $as_echo_n "(cached) " >&6
16274else
16275  if test -n "$ac_ct_OTOOL64"; then
16276  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16277else
16278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279for as_dir in $PATH
16280do
16281  IFS=$as_save_IFS
16282  test -z "$as_dir" && as_dir=.
16283    for ac_exec_ext in '' $ac_executable_extensions; do
16284  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16285    ac_cv_prog_ac_ct_OTOOL64="otool64"
16286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16287    break 2
16288  fi
16289done
16290  done
16291IFS=$as_save_IFS
16292
16293fi
16294fi
16295ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16296if test -n "$ac_ct_OTOOL64"; then
16297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16298$as_echo "$ac_ct_OTOOL64" >&6; }
16299else
16300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301$as_echo "no" >&6; }
16302fi
16303
16304  if test "x$ac_ct_OTOOL64" = x; then
16305    OTOOL64=":"
16306  else
16307    case $cross_compiling:$ac_tool_warned in
16308yes:)
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16311ac_tool_warned=yes ;;
16312esac
16313    OTOOL64=$ac_ct_OTOOL64
16314  fi
16315else
16316  OTOOL64="$ac_cv_prog_OTOOL64"
16317fi
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16346$as_echo_n "checking for -single_module linker flag... " >&6; }
16347if ${lt_cv_apple_cc_single_mod+:} false; then :
16348  $as_echo_n "(cached) " >&6
16349else
16350  lt_cv_apple_cc_single_mod=no
16351      if test -z "$LT_MULTI_MODULE"; then
16352	# By default we will add the -single_module flag. You can override
16353	# by either setting the environment variable LT_MULTI_MODULE
16354	# non-empty at configure time, or by adding -multi_module to the
16355	# link flags.
16356	rm -rf libconftest.dylib*
16357	echo "int foo(void){return 1;}" > conftest.c
16358	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16359-dynamiclib -Wl,-single_module conftest.c" >&5
16360	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16361	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16362        _lt_result=$?
16363	# If there is a non-empty error log, and "single_module"
16364	# appears in it, assume the flag caused a linker warning
16365        if test -s conftest.err && $GREP single_module conftest.err; then
16366	  cat conftest.err >&5
16367	# Otherwise, if the output was created with a 0 exit code from
16368	# the compiler, it worked.
16369	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
16370	  lt_cv_apple_cc_single_mod=yes
16371	else
16372	  cat conftest.err >&5
16373	fi
16374	rm -rf libconftest.dylib*
16375	rm -f conftest.*
16376      fi
16377fi
16378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16379$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16380
16381    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16382$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16383if ${lt_cv_ld_exported_symbols_list+:} false; then :
16384  $as_echo_n "(cached) " >&6
16385else
16386  lt_cv_ld_exported_symbols_list=no
16387      save_LDFLAGS=$LDFLAGS
16388      echo "_main" > conftest.sym
16389      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16390      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h.  */
16392
16393int
16394main ()
16395{
16396
16397  ;
16398  return 0;
16399}
16400_ACEOF
16401if ac_fn_c_try_link "$LINENO"; then :
16402  lt_cv_ld_exported_symbols_list=yes
16403else
16404  lt_cv_ld_exported_symbols_list=no
16405fi
16406rm -f core conftest.err conftest.$ac_objext \
16407    conftest$ac_exeext conftest.$ac_ext
16408	LDFLAGS=$save_LDFLAGS
16409
16410fi
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16412$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16413
16414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16415$as_echo_n "checking for -force_load linker flag... " >&6; }
16416if ${lt_cv_ld_force_load+:} false; then :
16417  $as_echo_n "(cached) " >&6
16418else
16419  lt_cv_ld_force_load=no
16420      cat > conftest.c << _LT_EOF
16421int forced_loaded() { return 2;}
16422_LT_EOF
16423      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16424      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16425      echo "$AR cru libconftest.a conftest.o" >&5
16426      $AR cru libconftest.a conftest.o 2>&5
16427      echo "$RANLIB libconftest.a" >&5
16428      $RANLIB libconftest.a 2>&5
16429      cat > conftest.c << _LT_EOF
16430int main() { return 0;}
16431_LT_EOF
16432      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16433      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16434      _lt_result=$?
16435      if test -s conftest.err && $GREP force_load conftest.err; then
16436	cat conftest.err >&5
16437      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
16438	lt_cv_ld_force_load=yes
16439      else
16440	cat conftest.err >&5
16441      fi
16442        rm -f conftest.err libconftest.a conftest conftest.c
16443        rm -rf conftest.dSYM
16444
16445fi
16446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16447$as_echo "$lt_cv_ld_force_load" >&6; }
16448    case $host_os in
16449    rhapsody* | darwin1.[012])
16450      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
16451    darwin1.*)
16452      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16453    darwin*) # darwin 5.x on
16454      # if running on 10.5 or later, the deployment target defaults
16455      # to the OS version, if on x86, and 10.4, the deployment
16456      # target defaults to 10.4. Don't you love it?
16457      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16458	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16459	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16460	10.[012][,.]*)
16461	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16462	10.*)
16463	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16464      esac
16465    ;;
16466  esac
16467    if test yes = "$lt_cv_apple_cc_single_mod"; then
16468      _lt_dar_single_mod='$single_module'
16469    fi
16470    if test yes = "$lt_cv_ld_exported_symbols_list"; then
16471      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
16472    else
16473      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
16474    fi
16475    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
16476      _lt_dsymutil='~$DSYMUTIL $lib || :'
16477    else
16478      _lt_dsymutil=
16479    fi
16480    ;;
16481  esac
16482
16483# func_munge_path_list VARIABLE PATH
16484# -----------------------------------
16485# VARIABLE is name of variable containing _space_ separated list of
16486# directories to be munged by the contents of PATH, which is string
16487# having a format:
16488# "DIR[:DIR]:"
16489#       string "DIR[ DIR]" will be prepended to VARIABLE
16490# ":DIR[:DIR]"
16491#       string "DIR[ DIR]" will be appended to VARIABLE
16492# "DIRP[:DIRP]::[DIRA:]DIRA"
16493#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16494#       "DIRA[ DIRA]" will be appended to VARIABLE
16495# "DIR[:DIR]"
16496#       VARIABLE will be replaced by "DIR[ DIR]"
16497func_munge_path_list ()
16498{
16499    case x$2 in
16500    x)
16501        ;;
16502    *:)
16503        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16504        ;;
16505    x:*)
16506        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16507        ;;
16508    *::*)
16509        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16510        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16511        ;;
16512    *)
16513        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16514        ;;
16515    esac
16516}
16517
16518for ac_header in dlfcn.h
16519do :
16520  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16521"
16522if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16523  cat >>confdefs.h <<_ACEOF
16524#define HAVE_DLFCN_H 1
16525_ACEOF
16526
16527fi
16528
16529done
16530
16531
16532
16533
16534
16535# Set options
16536# Check whether --enable-static was given.
16537if test "${enable_static+set}" = set; then :
16538  enableval=$enable_static; p=${PACKAGE-default}
16539    case $enableval in
16540    yes) enable_static=yes ;;
16541    no) enable_static=no ;;
16542    *)
16543     enable_static=no
16544      # Look at the argument we got.  We use all the common list separators.
16545      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16546      for pkg in $enableval; do
16547	IFS=$lt_save_ifs
16548	if test "X$pkg" = "X$p"; then
16549	  enable_static=yes
16550	fi
16551      done
16552      IFS=$lt_save_ifs
16553      ;;
16554    esac
16555else
16556  enable_static=no
16557fi
16558
16559
16560
16561
16562
16563
16564
16565enable_win32_dll=yes
16566
16567case $host in
16568*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
16569  if test -n "$ac_tool_prefix"; then
16570  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16571set dummy ${ac_tool_prefix}as; ac_word=$2
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16573$as_echo_n "checking for $ac_word... " >&6; }
16574if ${ac_cv_prog_AS+:} false; then :
16575  $as_echo_n "(cached) " >&6
16576else
16577  if test -n "$AS"; then
16578  ac_cv_prog_AS="$AS" # Let the user override the test.
16579else
16580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16581for as_dir in $PATH
16582do
16583  IFS=$as_save_IFS
16584  test -z "$as_dir" && as_dir=.
16585    for ac_exec_ext in '' $ac_executable_extensions; do
16586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16587    ac_cv_prog_AS="${ac_tool_prefix}as"
16588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16589    break 2
16590  fi
16591done
16592  done
16593IFS=$as_save_IFS
16594
16595fi
16596fi
16597AS=$ac_cv_prog_AS
16598if test -n "$AS"; then
16599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
16600$as_echo "$AS" >&6; }
16601else
16602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16603$as_echo "no" >&6; }
16604fi
16605
16606
16607fi
16608if test -z "$ac_cv_prog_AS"; then
16609  ac_ct_AS=$AS
16610  # Extract the first word of "as", so it can be a program name with args.
16611set dummy as; ac_word=$2
16612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16613$as_echo_n "checking for $ac_word... " >&6; }
16614if ${ac_cv_prog_ac_ct_AS+:} false; then :
16615  $as_echo_n "(cached) " >&6
16616else
16617  if test -n "$ac_ct_AS"; then
16618  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16619else
16620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621for as_dir in $PATH
16622do
16623  IFS=$as_save_IFS
16624  test -z "$as_dir" && as_dir=.
16625    for ac_exec_ext in '' $ac_executable_extensions; do
16626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16627    ac_cv_prog_ac_ct_AS="as"
16628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16629    break 2
16630  fi
16631done
16632  done
16633IFS=$as_save_IFS
16634
16635fi
16636fi
16637ac_ct_AS=$ac_cv_prog_ac_ct_AS
16638if test -n "$ac_ct_AS"; then
16639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
16640$as_echo "$ac_ct_AS" >&6; }
16641else
16642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16643$as_echo "no" >&6; }
16644fi
16645
16646  if test "x$ac_ct_AS" = x; then
16647    AS="false"
16648  else
16649    case $cross_compiling:$ac_tool_warned in
16650yes:)
16651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16653ac_tool_warned=yes ;;
16654esac
16655    AS=$ac_ct_AS
16656  fi
16657else
16658  AS="$ac_cv_prog_AS"
16659fi
16660
16661  if test -n "$ac_tool_prefix"; then
16662  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16663set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16665$as_echo_n "checking for $ac_word... " >&6; }
16666if ${ac_cv_prog_DLLTOOL+:} false; then :
16667  $as_echo_n "(cached) " >&6
16668else
16669  if test -n "$DLLTOOL"; then
16670  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16671else
16672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16673for as_dir in $PATH
16674do
16675  IFS=$as_save_IFS
16676  test -z "$as_dir" && as_dir=.
16677    for ac_exec_ext in '' $ac_executable_extensions; do
16678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16679    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16681    break 2
16682  fi
16683done
16684  done
16685IFS=$as_save_IFS
16686
16687fi
16688fi
16689DLLTOOL=$ac_cv_prog_DLLTOOL
16690if test -n "$DLLTOOL"; then
16691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16692$as_echo "$DLLTOOL" >&6; }
16693else
16694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695$as_echo "no" >&6; }
16696fi
16697
16698
16699fi
16700if test -z "$ac_cv_prog_DLLTOOL"; then
16701  ac_ct_DLLTOOL=$DLLTOOL
16702  # Extract the first word of "dlltool", so it can be a program name with args.
16703set dummy dlltool; ac_word=$2
16704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16705$as_echo_n "checking for $ac_word... " >&6; }
16706if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16707  $as_echo_n "(cached) " >&6
16708else
16709  if test -n "$ac_ct_DLLTOOL"; then
16710  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16711else
16712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16713for as_dir in $PATH
16714do
16715  IFS=$as_save_IFS
16716  test -z "$as_dir" && as_dir=.
16717    for ac_exec_ext in '' $ac_executable_extensions; do
16718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16719    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16721    break 2
16722  fi
16723done
16724  done
16725IFS=$as_save_IFS
16726
16727fi
16728fi
16729ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16730if test -n "$ac_ct_DLLTOOL"; then
16731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16732$as_echo "$ac_ct_DLLTOOL" >&6; }
16733else
16734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16735$as_echo "no" >&6; }
16736fi
16737
16738  if test "x$ac_ct_DLLTOOL" = x; then
16739    DLLTOOL="false"
16740  else
16741    case $cross_compiling:$ac_tool_warned in
16742yes:)
16743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16745ac_tool_warned=yes ;;
16746esac
16747    DLLTOOL=$ac_ct_DLLTOOL
16748  fi
16749else
16750  DLLTOOL="$ac_cv_prog_DLLTOOL"
16751fi
16752
16753  if test -n "$ac_tool_prefix"; then
16754  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16755set dummy ${ac_tool_prefix}objdump; ac_word=$2
16756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16757$as_echo_n "checking for $ac_word... " >&6; }
16758if ${ac_cv_prog_OBJDUMP+:} false; then :
16759  $as_echo_n "(cached) " >&6
16760else
16761  if test -n "$OBJDUMP"; then
16762  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16763else
16764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16765for as_dir in $PATH
16766do
16767  IFS=$as_save_IFS
16768  test -z "$as_dir" && as_dir=.
16769    for ac_exec_ext in '' $ac_executable_extensions; do
16770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16771    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16773    break 2
16774  fi
16775done
16776  done
16777IFS=$as_save_IFS
16778
16779fi
16780fi
16781OBJDUMP=$ac_cv_prog_OBJDUMP
16782if test -n "$OBJDUMP"; then
16783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16784$as_echo "$OBJDUMP" >&6; }
16785else
16786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16787$as_echo "no" >&6; }
16788fi
16789
16790
16791fi
16792if test -z "$ac_cv_prog_OBJDUMP"; then
16793  ac_ct_OBJDUMP=$OBJDUMP
16794  # Extract the first word of "objdump", so it can be a program name with args.
16795set dummy objdump; ac_word=$2
16796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16797$as_echo_n "checking for $ac_word... " >&6; }
16798if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16799  $as_echo_n "(cached) " >&6
16800else
16801  if test -n "$ac_ct_OBJDUMP"; then
16802  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16803else
16804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16805for as_dir in $PATH
16806do
16807  IFS=$as_save_IFS
16808  test -z "$as_dir" && as_dir=.
16809    for ac_exec_ext in '' $ac_executable_extensions; do
16810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16811    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16813    break 2
16814  fi
16815done
16816  done
16817IFS=$as_save_IFS
16818
16819fi
16820fi
16821ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16822if test -n "$ac_ct_OBJDUMP"; then
16823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16824$as_echo "$ac_ct_OBJDUMP" >&6; }
16825else
16826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827$as_echo "no" >&6; }
16828fi
16829
16830  if test "x$ac_ct_OBJDUMP" = x; then
16831    OBJDUMP="false"
16832  else
16833    case $cross_compiling:$ac_tool_warned in
16834yes:)
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16837ac_tool_warned=yes ;;
16838esac
16839    OBJDUMP=$ac_ct_OBJDUMP
16840  fi
16841else
16842  OBJDUMP="$ac_cv_prog_OBJDUMP"
16843fi
16844
16845  ;;
16846esac
16847
16848test -z "$AS" && AS=as
16849
16850
16851
16852
16853
16854test -z "$DLLTOOL" && DLLTOOL=dlltool
16855
16856
16857
16858
16859
16860test -z "$OBJDUMP" && OBJDUMP=objdump
16861
16862
16863
16864
16865
16866
16867
16868        enable_dlopen=no
16869
16870
16871
16872            # Check whether --enable-shared was given.
16873if test "${enable_shared+set}" = set; then :
16874  enableval=$enable_shared; p=${PACKAGE-default}
16875    case $enableval in
16876    yes) enable_shared=yes ;;
16877    no) enable_shared=no ;;
16878    *)
16879      enable_shared=no
16880      # Look at the argument we got.  We use all the common list separators.
16881      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16882      for pkg in $enableval; do
16883	IFS=$lt_save_ifs
16884	if test "X$pkg" = "X$p"; then
16885	  enable_shared=yes
16886	fi
16887      done
16888      IFS=$lt_save_ifs
16889      ;;
16890    esac
16891else
16892  enable_shared=yes
16893fi
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905# Check whether --with-pic was given.
16906if test "${with_pic+set}" = set; then :
16907  withval=$with_pic; lt_p=${PACKAGE-default}
16908    case $withval in
16909    yes|no) pic_mode=$withval ;;
16910    *)
16911      pic_mode=default
16912      # Look at the argument we got.  We use all the common list separators.
16913      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16914      for lt_pkg in $withval; do
16915	IFS=$lt_save_ifs
16916	if test "X$lt_pkg" = "X$lt_p"; then
16917	  pic_mode=yes
16918	fi
16919      done
16920      IFS=$lt_save_ifs
16921      ;;
16922    esac
16923else
16924  pic_mode=default
16925fi
16926
16927
16928
16929
16930
16931
16932
16933
16934  # Check whether --enable-fast-install was given.
16935if test "${enable_fast_install+set}" = set; then :
16936  enableval=$enable_fast_install; p=${PACKAGE-default}
16937    case $enableval in
16938    yes) enable_fast_install=yes ;;
16939    no) enable_fast_install=no ;;
16940    *)
16941      enable_fast_install=no
16942      # Look at the argument we got.  We use all the common list separators.
16943      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16944      for pkg in $enableval; do
16945	IFS=$lt_save_ifs
16946	if test "X$pkg" = "X$p"; then
16947	  enable_fast_install=yes
16948	fi
16949      done
16950      IFS=$lt_save_ifs
16951      ;;
16952    esac
16953else
16954  enable_fast_install=yes
16955fi
16956
16957
16958
16959
16960
16961
16962
16963
16964  shared_archive_member_spec=
16965case $host,$enable_shared in
16966power*-*-aix[5-9]*,yes)
16967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16968$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
16969
16970# Check whether --with-aix-soname was given.
16971if test "${with_aix_soname+set}" = set; then :
16972  withval=$with_aix_soname; case $withval in
16973    aix|svr4|both)
16974      ;;
16975    *)
16976      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16977      ;;
16978    esac
16979    lt_cv_with_aix_soname=$with_aix_soname
16980else
16981  if ${lt_cv_with_aix_soname+:} false; then :
16982  $as_echo_n "(cached) " >&6
16983else
16984  lt_cv_with_aix_soname=aix
16985fi
16986
16987    with_aix_soname=$lt_cv_with_aix_soname
16988fi
16989
16990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16991$as_echo "$with_aix_soname" >&6; }
16992  if test aix != "$with_aix_soname"; then
16993    # For the AIX way of multilib, we name the shared archive member
16994    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16995    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16996    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16997    # the AIX toolchain works better with OBJECT_MODE set (default 32).
16998    if test 64 = "${OBJECT_MODE-32}"; then
16999      shared_archive_member_spec=shr_64
17000    else
17001      shared_archive_member_spec=shr
17002    fi
17003  fi
17004  ;;
17005*)
17006  with_aix_soname=aix
17007  ;;
17008esac
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019# This can be used to rebuild libtool when needed
17020LIBTOOL_DEPS=$ltmain
17021
17022# Always use our own libtool.
17023LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054test -z "$LN_S" && LN_S="ln -s"
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069if test -n "${ZSH_VERSION+set}"; then
17070   setopt NO_GLOB_SUBST
17071fi
17072
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
17074$as_echo_n "checking for objdir... " >&6; }
17075if ${lt_cv_objdir+:} false; then :
17076  $as_echo_n "(cached) " >&6
17077else
17078  rm -f .libs 2>/dev/null
17079mkdir .libs 2>/dev/null
17080if test -d .libs; then
17081  lt_cv_objdir=.libs
17082else
17083  # MS-DOS does not allow filenames that begin with a dot.
17084  lt_cv_objdir=_libs
17085fi
17086rmdir .libs 2>/dev/null
17087fi
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
17089$as_echo "$lt_cv_objdir" >&6; }
17090objdir=$lt_cv_objdir
17091
17092
17093
17094
17095
17096cat >>confdefs.h <<_ACEOF
17097#define LT_OBJDIR "$lt_cv_objdir/"
17098_ACEOF
17099
17100
17101
17102
17103case $host_os in
17104aix3*)
17105  # AIX sometimes has problems with the GCC collect2 program.  For some
17106  # reason, if we set the COLLECT_NAMES environment variable, the problems
17107  # vanish in a puff of smoke.
17108  if test set != "${COLLECT_NAMES+set}"; then
17109    COLLECT_NAMES=
17110    export COLLECT_NAMES
17111  fi
17112  ;;
17113esac
17114
17115# Global variables:
17116ofile=libtool
17117can_build_shared=yes
17118
17119# All known linkers require a '.a' archive for static linking (except MSVC,
17120# which needs '.lib').
17121libext=a
17122
17123with_gnu_ld=$lt_cv_prog_gnu_ld
17124
17125old_CC=$CC
17126old_CFLAGS=$CFLAGS
17127
17128# Set sane defaults for various variables
17129test -z "$CC" && CC=cc
17130test -z "$LTCC" && LTCC=$CC
17131test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
17132test -z "$LD" && LD=ld
17133test -z "$ac_objext" && ac_objext=o
17134
17135func_cc_basename $compiler
17136cc_basename=$func_cc_basename_result
17137
17138
17139# Only perform the check for file, if the check method requires it
17140test -z "$MAGIC_CMD" && MAGIC_CMD=file
17141case $deplibs_check_method in
17142file_magic*)
17143  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17144    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
17145$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
17146if ${lt_cv_path_MAGIC_CMD+:} false; then :
17147  $as_echo_n "(cached) " >&6
17148else
17149  case $MAGIC_CMD in
17150[\\/*] |  ?:[\\/]*)
17151  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17152  ;;
17153*)
17154  lt_save_MAGIC_CMD=$MAGIC_CMD
17155  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17156  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17157  for ac_dir in $ac_dummy; do
17158    IFS=$lt_save_ifs
17159    test -z "$ac_dir" && ac_dir=.
17160    if test -f "$ac_dir/${ac_tool_prefix}file"; then
17161      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
17162      if test -n "$file_magic_test_file"; then
17163	case $deplibs_check_method in
17164	"file_magic "*)
17165	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17166	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17167	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17168	    $EGREP "$file_magic_regex" > /dev/null; then
17169	    :
17170	  else
17171	    cat <<_LT_EOF 1>&2
17172
17173*** Warning: the command libtool uses to detect shared libraries,
17174*** $file_magic_cmd, produces output that libtool cannot recognize.
17175*** The result is that libtool may fail to recognize shared libraries
17176*** as such.  This will affect the creation of libtool libraries that
17177*** depend on shared libraries, but programs linked with such libtool
17178*** libraries will work regardless of this problem.  Nevertheless, you
17179*** may want to report the problem to your system manager and/or to
17180*** bug-libtool@gnu.org
17181
17182_LT_EOF
17183	  fi ;;
17184	esac
17185      fi
17186      break
17187    fi
17188  done
17189  IFS=$lt_save_ifs
17190  MAGIC_CMD=$lt_save_MAGIC_CMD
17191  ;;
17192esac
17193fi
17194
17195MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17196if test -n "$MAGIC_CMD"; then
17197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17198$as_echo "$MAGIC_CMD" >&6; }
17199else
17200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17201$as_echo "no" >&6; }
17202fi
17203
17204
17205
17206
17207
17208if test -z "$lt_cv_path_MAGIC_CMD"; then
17209  if test -n "$ac_tool_prefix"; then
17210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
17211$as_echo_n "checking for file... " >&6; }
17212if ${lt_cv_path_MAGIC_CMD+:} false; then :
17213  $as_echo_n "(cached) " >&6
17214else
17215  case $MAGIC_CMD in
17216[\\/*] |  ?:[\\/]*)
17217  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17218  ;;
17219*)
17220  lt_save_MAGIC_CMD=$MAGIC_CMD
17221  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17222  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17223  for ac_dir in $ac_dummy; do
17224    IFS=$lt_save_ifs
17225    test -z "$ac_dir" && ac_dir=.
17226    if test -f "$ac_dir/file"; then
17227      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
17228      if test -n "$file_magic_test_file"; then
17229	case $deplibs_check_method in
17230	"file_magic "*)
17231	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17232	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17233	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17234	    $EGREP "$file_magic_regex" > /dev/null; then
17235	    :
17236	  else
17237	    cat <<_LT_EOF 1>&2
17238
17239*** Warning: the command libtool uses to detect shared libraries,
17240*** $file_magic_cmd, produces output that libtool cannot recognize.
17241*** The result is that libtool may fail to recognize shared libraries
17242*** as such.  This will affect the creation of libtool libraries that
17243*** depend on shared libraries, but programs linked with such libtool
17244*** libraries will work regardless of this problem.  Nevertheless, you
17245*** may want to report the problem to your system manager and/or to
17246*** bug-libtool@gnu.org
17247
17248_LT_EOF
17249	  fi ;;
17250	esac
17251      fi
17252      break
17253    fi
17254  done
17255  IFS=$lt_save_ifs
17256  MAGIC_CMD=$lt_save_MAGIC_CMD
17257  ;;
17258esac
17259fi
17260
17261MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17262if test -n "$MAGIC_CMD"; then
17263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17264$as_echo "$MAGIC_CMD" >&6; }
17265else
17266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17267$as_echo "no" >&6; }
17268fi
17269
17270
17271  else
17272    MAGIC_CMD=:
17273  fi
17274fi
17275
17276  fi
17277  ;;
17278esac
17279
17280# Use C for the default configuration in the libtool script
17281
17282lt_save_CC=$CC
17283ac_ext=c
17284ac_cpp='$CPP $CPPFLAGS'
17285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17287ac_compiler_gnu=$ac_cv_c_compiler_gnu
17288
17289
17290# Source file extension for C test sources.
17291ac_ext=c
17292
17293# Object file extension for compiled C test sources.
17294objext=o
17295objext=$objext
17296
17297# Code to be used in simple compile tests
17298lt_simple_compile_test_code="int some_variable = 0;"
17299
17300# Code to be used in simple link tests
17301lt_simple_link_test_code='int main(){return(0);}'
17302
17303
17304
17305
17306
17307
17308
17309# If no C compiler was specified, use CC.
17310LTCC=${LTCC-"$CC"}
17311
17312# If no C compiler flags were specified, use CFLAGS.
17313LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17314
17315# Allow CC to be a program name with arguments.
17316compiler=$CC
17317
17318# Save the default compiler, since it gets overwritten when the other
17319# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
17320compiler_DEFAULT=$CC
17321
17322# save warnings/boilerplate of simple test code
17323ac_outfile=conftest.$ac_objext
17324echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17325eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17326_lt_compiler_boilerplate=`cat conftest.err`
17327$RM conftest*
17328
17329ac_outfile=conftest.$ac_objext
17330echo "$lt_simple_link_test_code" >conftest.$ac_ext
17331eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17332_lt_linker_boilerplate=`cat conftest.err`
17333$RM -r conftest*
17334
17335
17336## CAVEAT EMPTOR:
17337## There is no encapsulation within the following macros, do not change
17338## the running order or otherwise move them around unless you know exactly
17339## what you are doing...
17340if test -n "$compiler"; then
17341
17342lt_prog_compiler_no_builtin_flag=
17343
17344if test yes = "$GCC"; then
17345  case $cc_basename in
17346  nvcc*)
17347    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
17348  *)
17349    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
17350  esac
17351
17352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17353$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17354if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
17355  $as_echo_n "(cached) " >&6
17356else
17357  lt_cv_prog_compiler_rtti_exceptions=no
17358   ac_outfile=conftest.$ac_objext
17359   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17360   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
17361   # Insert the option either (1) after the last *FLAGS variable, or
17362   # (2) before a word containing "conftest.", or (3) at the end.
17363   # Note that $ac_compile itself does not contain backslashes and begins
17364   # with a dollar sign (not a hyphen), so the echo should work correctly.
17365   # The option is referenced via a variable to avoid confusing sed.
17366   lt_compile=`echo "$ac_compile" | $SED \
17367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17369   -e 's:$: $lt_compiler_flag:'`
17370   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17371   (eval "$lt_compile" 2>conftest.err)
17372   ac_status=$?
17373   cat conftest.err >&5
17374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375   if (exit $ac_status) && test -s "$ac_outfile"; then
17376     # The compiler can only warn and ignore the option if not recognized
17377     # So say no if there are warnings other than the usual output.
17378     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17379     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17380     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17381       lt_cv_prog_compiler_rtti_exceptions=yes
17382     fi
17383   fi
17384   $RM conftest*
17385
17386fi
17387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17388$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17389
17390if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
17391    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17392else
17393    :
17394fi
17395
17396fi
17397
17398
17399
17400
17401
17402
17403  lt_prog_compiler_wl=
17404lt_prog_compiler_pic=
17405lt_prog_compiler_static=
17406
17407
17408  if test yes = "$GCC"; then
17409    lt_prog_compiler_wl='-Wl,'
17410    lt_prog_compiler_static='-static'
17411
17412    case $host_os in
17413      aix*)
17414      # All AIX code is PIC.
17415      if test ia64 = "$host_cpu"; then
17416	# AIX 5 now supports IA64 processor
17417	lt_prog_compiler_static='-Bstatic'
17418      fi
17419      lt_prog_compiler_pic='-fPIC'
17420      ;;
17421
17422    amigaos*)
17423      case $host_cpu in
17424      powerpc)
17425            # see comment about AmigaOS4 .so support
17426            lt_prog_compiler_pic='-fPIC'
17427        ;;
17428      m68k)
17429            # FIXME: we need at least 68020 code to build shared libraries, but
17430            # adding the '-m68020' flag to GCC prevents building anything better,
17431            # like '-m68040'.
17432            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17433        ;;
17434      esac
17435      ;;
17436
17437    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17438      # PIC is the default for these OSes.
17439      ;;
17440
17441    mingw* | cygwin* | pw32* | os2* | cegcc*)
17442      # This hack is so that the source file can tell whether it is being
17443      # built for inclusion in a dll (and should export symbols for example).
17444      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17445      # (--disable-auto-import) libraries
17446      lt_prog_compiler_pic='-DDLL_EXPORT'
17447      case $host_os in
17448      os2*)
17449	lt_prog_compiler_static='$wl-static'
17450	;;
17451      esac
17452      ;;
17453
17454    darwin* | rhapsody*)
17455      # PIC is the default on this platform
17456      # Common symbols not allowed in MH_DYLIB files
17457      lt_prog_compiler_pic='-fno-common'
17458      ;;
17459
17460    haiku*)
17461      # PIC is the default for Haiku.
17462      # The "-static" flag exists, but is broken.
17463      lt_prog_compiler_static=
17464      ;;
17465
17466    hpux*)
17467      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17468      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17469      # sets the default TLS model and affects inlining.
17470      case $host_cpu in
17471      hppa*64*)
17472	# +Z the default
17473	;;
17474      *)
17475	lt_prog_compiler_pic='-fPIC'
17476	;;
17477      esac
17478      ;;
17479
17480    interix[3-9]*)
17481      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17482      # Instead, we relocate shared libraries at runtime.
17483      ;;
17484
17485    msdosdjgpp*)
17486      # Just because we use GCC doesn't mean we suddenly get shared libraries
17487      # on systems that don't support them.
17488      lt_prog_compiler_can_build_shared=no
17489      enable_shared=no
17490      ;;
17491
17492    *nto* | *qnx*)
17493      # QNX uses GNU C++, but need to define -shared option too, otherwise
17494      # it will coredump.
17495      lt_prog_compiler_pic='-fPIC -shared'
17496      ;;
17497
17498    sysv4*MP*)
17499      if test -d /usr/nec; then
17500	lt_prog_compiler_pic=-Kconform_pic
17501      fi
17502      ;;
17503
17504    *)
17505      lt_prog_compiler_pic='-fPIC'
17506      ;;
17507    esac
17508
17509    case $cc_basename in
17510    nvcc*) # Cuda Compiler Driver 2.2
17511      lt_prog_compiler_wl='-Xlinker '
17512      if test -n "$lt_prog_compiler_pic"; then
17513        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
17514      fi
17515      ;;
17516    esac
17517  else
17518    # PORTME Check for flag to pass linker flags through the system compiler.
17519    case $host_os in
17520    aix*)
17521      lt_prog_compiler_wl='-Wl,'
17522      if test ia64 = "$host_cpu"; then
17523	# AIX 5 now supports IA64 processor
17524	lt_prog_compiler_static='-Bstatic'
17525      else
17526	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17527      fi
17528      ;;
17529
17530    darwin* | rhapsody*)
17531      # PIC is the default on this platform
17532      # Common symbols not allowed in MH_DYLIB files
17533      lt_prog_compiler_pic='-fno-common'
17534      case $cc_basename in
17535      nagfor*)
17536        # NAG Fortran compiler
17537        lt_prog_compiler_wl='-Wl,-Wl,,'
17538        lt_prog_compiler_pic='-PIC'
17539        lt_prog_compiler_static='-Bstatic'
17540        ;;
17541      esac
17542      ;;
17543
17544    mingw* | cygwin* | pw32* | os2* | cegcc*)
17545      # This hack is so that the source file can tell whether it is being
17546      # built for inclusion in a dll (and should export symbols for example).
17547      lt_prog_compiler_pic='-DDLL_EXPORT'
17548      case $host_os in
17549      os2*)
17550	lt_prog_compiler_static='$wl-static'
17551	;;
17552      esac
17553      ;;
17554
17555    hpux9* | hpux10* | hpux11*)
17556      lt_prog_compiler_wl='-Wl,'
17557      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17558      # not for PA HP-UX.
17559      case $host_cpu in
17560      hppa*64*|ia64*)
17561	# +Z the default
17562	;;
17563      *)
17564	lt_prog_compiler_pic='+Z'
17565	;;
17566      esac
17567      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17568      lt_prog_compiler_static='$wl-a ${wl}archive'
17569      ;;
17570
17571    irix5* | irix6* | nonstopux*)
17572      lt_prog_compiler_wl='-Wl,'
17573      # PIC (with -KPIC) is the default.
17574      lt_prog_compiler_static='-non_shared'
17575      ;;
17576
17577    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17578      case $cc_basename in
17579      # old Intel for x86_64, which still supported -KPIC.
17580      ecc*)
17581	lt_prog_compiler_wl='-Wl,'
17582	lt_prog_compiler_pic='-KPIC'
17583	lt_prog_compiler_static='-static'
17584        ;;
17585      # icc used to be incompatible with GCC.
17586      # ICC 10 doesn't accept -KPIC any more.
17587      icc* | ifort*)
17588	lt_prog_compiler_wl='-Wl,'
17589	lt_prog_compiler_pic='-fPIC'
17590	lt_prog_compiler_static='-static'
17591        ;;
17592      # Lahey Fortran 8.1.
17593      lf95*)
17594	lt_prog_compiler_wl='-Wl,'
17595	lt_prog_compiler_pic='--shared'
17596	lt_prog_compiler_static='--static'
17597	;;
17598      nagfor*)
17599	# NAG Fortran compiler
17600	lt_prog_compiler_wl='-Wl,-Wl,,'
17601	lt_prog_compiler_pic='-PIC'
17602	lt_prog_compiler_static='-Bstatic'
17603	;;
17604      tcc*)
17605	# Fabrice Bellard et al's Tiny C Compiler
17606	lt_prog_compiler_wl='-Wl,'
17607	lt_prog_compiler_pic='-fPIC'
17608	lt_prog_compiler_static='-static'
17609	;;
17610      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17611        # Portland Group compilers (*not* the Pentium gcc compiler,
17612	# which looks to be a dead project)
17613	lt_prog_compiler_wl='-Wl,'
17614	lt_prog_compiler_pic='-fpic'
17615	lt_prog_compiler_static='-Bstatic'
17616        ;;
17617      ccc*)
17618        lt_prog_compiler_wl='-Wl,'
17619        # All Alpha code is PIC.
17620        lt_prog_compiler_static='-non_shared'
17621        ;;
17622      xl* | bgxl* | bgf* | mpixl*)
17623	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17624	lt_prog_compiler_wl='-Wl,'
17625	lt_prog_compiler_pic='-qpic'
17626	lt_prog_compiler_static='-qstaticlink'
17627	;;
17628      *)
17629	case `$CC -V 2>&1 | sed 5q` in
17630	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
17631	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17632	  lt_prog_compiler_pic='-KPIC'
17633	  lt_prog_compiler_static='-Bstatic'
17634	  lt_prog_compiler_wl=''
17635	  ;;
17636	*Sun\ F* | *Sun*Fortran*)
17637	  lt_prog_compiler_pic='-KPIC'
17638	  lt_prog_compiler_static='-Bstatic'
17639	  lt_prog_compiler_wl='-Qoption ld '
17640	  ;;
17641	*Sun\ C*)
17642	  # Sun C 5.9
17643	  lt_prog_compiler_pic='-KPIC'
17644	  lt_prog_compiler_static='-Bstatic'
17645	  lt_prog_compiler_wl='-Wl,'
17646	  ;;
17647        *Intel*\ [CF]*Compiler*)
17648	  lt_prog_compiler_wl='-Wl,'
17649	  lt_prog_compiler_pic='-fPIC'
17650	  lt_prog_compiler_static='-static'
17651	  ;;
17652	*Portland\ Group*)
17653	  lt_prog_compiler_wl='-Wl,'
17654	  lt_prog_compiler_pic='-fpic'
17655	  lt_prog_compiler_static='-Bstatic'
17656	  ;;
17657	esac
17658	;;
17659      esac
17660      ;;
17661
17662    newsos6)
17663      lt_prog_compiler_pic='-KPIC'
17664      lt_prog_compiler_static='-Bstatic'
17665      ;;
17666
17667    *nto* | *qnx*)
17668      # QNX uses GNU C++, but need to define -shared option too, otherwise
17669      # it will coredump.
17670      lt_prog_compiler_pic='-fPIC -shared'
17671      ;;
17672
17673    osf3* | osf4* | osf5*)
17674      lt_prog_compiler_wl='-Wl,'
17675      # All OSF/1 code is PIC.
17676      lt_prog_compiler_static='-non_shared'
17677      ;;
17678
17679    rdos*)
17680      lt_prog_compiler_static='-non_shared'
17681      ;;
17682
17683    solaris*)
17684      lt_prog_compiler_pic='-KPIC'
17685      lt_prog_compiler_static='-Bstatic'
17686      case $cc_basename in
17687      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17688	lt_prog_compiler_wl='-Qoption ld ';;
17689      *)
17690	lt_prog_compiler_wl='-Wl,';;
17691      esac
17692      ;;
17693
17694    sunos4*)
17695      lt_prog_compiler_wl='-Qoption ld '
17696      lt_prog_compiler_pic='-PIC'
17697      lt_prog_compiler_static='-Bstatic'
17698      ;;
17699
17700    sysv4 | sysv4.2uw2* | sysv4.3*)
17701      lt_prog_compiler_wl='-Wl,'
17702      lt_prog_compiler_pic='-KPIC'
17703      lt_prog_compiler_static='-Bstatic'
17704      ;;
17705
17706    sysv4*MP*)
17707      if test -d /usr/nec; then
17708	lt_prog_compiler_pic='-Kconform_pic'
17709	lt_prog_compiler_static='-Bstatic'
17710      fi
17711      ;;
17712
17713    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17714      lt_prog_compiler_wl='-Wl,'
17715      lt_prog_compiler_pic='-KPIC'
17716      lt_prog_compiler_static='-Bstatic'
17717      ;;
17718
17719    unicos*)
17720      lt_prog_compiler_wl='-Wl,'
17721      lt_prog_compiler_can_build_shared=no
17722      ;;
17723
17724    uts4*)
17725      lt_prog_compiler_pic='-pic'
17726      lt_prog_compiler_static='-Bstatic'
17727      ;;
17728
17729    *)
17730      lt_prog_compiler_can_build_shared=no
17731      ;;
17732    esac
17733  fi
17734
17735case $host_os in
17736  # For platforms that do not support PIC, -DPIC is meaningless:
17737  *djgpp*)
17738    lt_prog_compiler_pic=
17739    ;;
17740  *)
17741    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17742    ;;
17743esac
17744
17745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17746$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17747if ${lt_cv_prog_compiler_pic+:} false; then :
17748  $as_echo_n "(cached) " >&6
17749else
17750  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
17751fi
17752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17753$as_echo "$lt_cv_prog_compiler_pic" >&6; }
17754lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17755
17756#
17757# Check to make sure the PIC flag actually works.
17758#
17759if test -n "$lt_prog_compiler_pic"; then
17760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17761$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17762if ${lt_cv_prog_compiler_pic_works+:} false; then :
17763  $as_echo_n "(cached) " >&6
17764else
17765  lt_cv_prog_compiler_pic_works=no
17766   ac_outfile=conftest.$ac_objext
17767   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17768   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17769   # Insert the option either (1) after the last *FLAGS variable, or
17770   # (2) before a word containing "conftest.", or (3) at the end.
17771   # Note that $ac_compile itself does not contain backslashes and begins
17772   # with a dollar sign (not a hyphen), so the echo should work correctly.
17773   # The option is referenced via a variable to avoid confusing sed.
17774   lt_compile=`echo "$ac_compile" | $SED \
17775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17777   -e 's:$: $lt_compiler_flag:'`
17778   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17779   (eval "$lt_compile" 2>conftest.err)
17780   ac_status=$?
17781   cat conftest.err >&5
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   if (exit $ac_status) && test -s "$ac_outfile"; then
17784     # The compiler can only warn and ignore the option if not recognized
17785     # So say no if there are warnings other than the usual output.
17786     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17787     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17788     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17789       lt_cv_prog_compiler_pic_works=yes
17790     fi
17791   fi
17792   $RM conftest*
17793
17794fi
17795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17796$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17797
17798if test yes = "$lt_cv_prog_compiler_pic_works"; then
17799    case $lt_prog_compiler_pic in
17800     "" | " "*) ;;
17801     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17802     esac
17803else
17804    lt_prog_compiler_pic=
17805     lt_prog_compiler_can_build_shared=no
17806fi
17807
17808fi
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820#
17821# Check to make sure the static flag actually works.
17822#
17823wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17825$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17826if ${lt_cv_prog_compiler_static_works+:} false; then :
17827  $as_echo_n "(cached) " >&6
17828else
17829  lt_cv_prog_compiler_static_works=no
17830   save_LDFLAGS=$LDFLAGS
17831   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17832   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17833   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17834     # The linker can only warn and ignore the option if not recognized
17835     # So say no if there are warnings
17836     if test -s conftest.err; then
17837       # Append any errors to the config.log.
17838       cat conftest.err 1>&5
17839       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17840       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17841       if diff conftest.exp conftest.er2 >/dev/null; then
17842         lt_cv_prog_compiler_static_works=yes
17843       fi
17844     else
17845       lt_cv_prog_compiler_static_works=yes
17846     fi
17847   fi
17848   $RM -r conftest*
17849   LDFLAGS=$save_LDFLAGS
17850
17851fi
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17853$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17854
17855if test yes = "$lt_cv_prog_compiler_static_works"; then
17856    :
17857else
17858    lt_prog_compiler_static=
17859fi
17860
17861
17862
17863
17864
17865
17866
17867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17868$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17869if ${lt_cv_prog_compiler_c_o+:} false; then :
17870  $as_echo_n "(cached) " >&6
17871else
17872  lt_cv_prog_compiler_c_o=no
17873   $RM -r conftest 2>/dev/null
17874   mkdir conftest
17875   cd conftest
17876   mkdir out
17877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17878
17879   lt_compiler_flag="-o out/conftest2.$ac_objext"
17880   # Insert the option either (1) after the last *FLAGS variable, or
17881   # (2) before a word containing "conftest.", or (3) at the end.
17882   # Note that $ac_compile itself does not contain backslashes and begins
17883   # with a dollar sign (not a hyphen), so the echo should work correctly.
17884   lt_compile=`echo "$ac_compile" | $SED \
17885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17887   -e 's:$: $lt_compiler_flag:'`
17888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17889   (eval "$lt_compile" 2>out/conftest.err)
17890   ac_status=$?
17891   cat out/conftest.err >&5
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17894   then
17895     # The compiler can only warn and ignore the option if not recognized
17896     # So say no if there are warnings
17897     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17898     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17899     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17900       lt_cv_prog_compiler_c_o=yes
17901     fi
17902   fi
17903   chmod u+w . 2>&5
17904   $RM conftest*
17905   # SGI C++ compiler will create directory out/ii_files/ for
17906   # template instantiation
17907   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17908   $RM out/* && rmdir out
17909   cd ..
17910   $RM -r conftest
17911   $RM conftest*
17912
17913fi
17914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17915$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17916
17917
17918
17919
17920
17921
17922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17923$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17924if ${lt_cv_prog_compiler_c_o+:} false; then :
17925  $as_echo_n "(cached) " >&6
17926else
17927  lt_cv_prog_compiler_c_o=no
17928   $RM -r conftest 2>/dev/null
17929   mkdir conftest
17930   cd conftest
17931   mkdir out
17932   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17933
17934   lt_compiler_flag="-o out/conftest2.$ac_objext"
17935   # Insert the option either (1) after the last *FLAGS variable, or
17936   # (2) before a word containing "conftest.", or (3) at the end.
17937   # Note that $ac_compile itself does not contain backslashes and begins
17938   # with a dollar sign (not a hyphen), so the echo should work correctly.
17939   lt_compile=`echo "$ac_compile" | $SED \
17940   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17941   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17942   -e 's:$: $lt_compiler_flag:'`
17943   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17944   (eval "$lt_compile" 2>out/conftest.err)
17945   ac_status=$?
17946   cat out/conftest.err >&5
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17949   then
17950     # The compiler can only warn and ignore the option if not recognized
17951     # So say no if there are warnings
17952     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17953     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17954     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17955       lt_cv_prog_compiler_c_o=yes
17956     fi
17957   fi
17958   chmod u+w . 2>&5
17959   $RM conftest*
17960   # SGI C++ compiler will create directory out/ii_files/ for
17961   # template instantiation
17962   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17963   $RM out/* && rmdir out
17964   cd ..
17965   $RM -r conftest
17966   $RM conftest*
17967
17968fi
17969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17970$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17971
17972
17973
17974
17975hard_links=nottested
17976if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
17977  # do not overwrite the value of need_locks provided by the user
17978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17979$as_echo_n "checking if we can lock with hard links... " >&6; }
17980  hard_links=yes
17981  $RM conftest*
17982  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17983  touch conftest.a
17984  ln conftest.a conftest.b 2>&5 || hard_links=no
17985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17987$as_echo "$hard_links" >&6; }
17988  if test no = "$hard_links"; then
17989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17990$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17991    need_locks=warn
17992  fi
17993else
17994  need_locks=no
17995fi
17996
17997
17998
17999
18000
18001
18002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18003$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18004
18005  runpath_var=
18006  allow_undefined_flag=
18007  always_export_symbols=no
18008  archive_cmds=
18009  archive_expsym_cmds=
18010  compiler_needs_object=no
18011  enable_shared_with_static_runtimes=no
18012  export_dynamic_flag_spec=
18013  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18014  hardcode_automatic=no
18015  hardcode_direct=no
18016  hardcode_direct_absolute=no
18017  hardcode_libdir_flag_spec=
18018  hardcode_libdir_separator=
18019  hardcode_minus_L=no
18020  hardcode_shlibpath_var=unsupported
18021  inherit_rpath=no
18022  link_all_deplibs=unknown
18023  module_cmds=
18024  module_expsym_cmds=
18025  old_archive_from_new_cmds=
18026  old_archive_from_expsyms_cmds=
18027  thread_safe_flag_spec=
18028  whole_archive_flag_spec=
18029  # include_expsyms should be a list of space-separated symbols to be *always*
18030  # included in the symbol list
18031  include_expsyms=
18032  # exclude_expsyms can be an extended regexp of symbols to exclude
18033  # it will be wrapped by ' (' and ')$', so one must not match beginning or
18034  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
18035  # as well as any symbol that contains 'd'.
18036  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18037  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18038  # platforms (ab)use it in PIC code, but their linkers get confused if
18039  # the symbol is explicitly referenced.  Since portable code cannot
18040  # rely on this symbol name, it's probably fine to never include it in
18041  # preloaded symbol tables.
18042  # Exclude shared library initialization/finalization symbols.
18043  extract_expsyms_cmds=
18044
18045  case $host_os in
18046  cygwin* | mingw* | pw32* | cegcc*)
18047    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18048    # When not using gcc, we currently assume that we are using
18049    # Microsoft Visual C++.
18050    if test yes != "$GCC"; then
18051      with_gnu_ld=no
18052    fi
18053    ;;
18054  interix*)
18055    # we just hope/assume this is gcc and not c89 (= MSVC++)
18056    with_gnu_ld=yes
18057    ;;
18058  openbsd* | bitrig*)
18059    with_gnu_ld=no
18060    ;;
18061  esac
18062
18063  ld_shlibs=yes
18064
18065  # On some targets, GNU ld is compatible enough with the native linker
18066  # that we're better off using the native interface for both.
18067  lt_use_gnu_ld_interface=no
18068  if test yes = "$with_gnu_ld"; then
18069    case $host_os in
18070      aix*)
18071	# The AIX port of GNU ld has always aspired to compatibility
18072	# with the native linker.  However, as the warning in the GNU ld
18073	# block says, versions before 2.19.5* couldn't really create working
18074	# shared libraries, regardless of the interface used.
18075	case `$LD -v 2>&1` in
18076	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18077	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18078	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
18079	  *)
18080	    lt_use_gnu_ld_interface=yes
18081	    ;;
18082	esac
18083	;;
18084      *)
18085	lt_use_gnu_ld_interface=yes
18086	;;
18087    esac
18088  fi
18089
18090  if test yes = "$lt_use_gnu_ld_interface"; then
18091    # If archive_cmds runs LD, not CC, wlarc should be empty
18092    wlarc='$wl'
18093
18094    # Set some defaults for GNU ld with shared library support. These
18095    # are reset later if shared libraries are not supported. Putting them
18096    # here allows them to be overridden if necessary.
18097    runpath_var=LD_RUN_PATH
18098    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18099    export_dynamic_flag_spec='$wl--export-dynamic'
18100    # ancient GNU ld didn't support --whole-archive et. al.
18101    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18102      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18103    else
18104      whole_archive_flag_spec=
18105    fi
18106    supports_anon_versioning=no
18107    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
18108      *GNU\ gold*) supports_anon_versioning=yes ;;
18109      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18110      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18111      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18112      *\ 2.11.*) ;; # other 2.11 versions
18113      *) supports_anon_versioning=yes ;;
18114    esac
18115
18116    # See if GNU ld supports shared libraries.
18117    case $host_os in
18118    aix[3-9]*)
18119      # On AIX/PPC, the GNU linker is very broken
18120      if test ia64 != "$host_cpu"; then
18121	ld_shlibs=no
18122	cat <<_LT_EOF 1>&2
18123
18124*** Warning: the GNU linker, at least up to release 2.19, is reported
18125*** to be unable to reliably create shared libraries on AIX.
18126*** Therefore, libtool is disabling shared libraries support.  If you
18127*** really care for shared libraries, you may want to install binutils
18128*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18129*** You will then need to restart the configuration process.
18130
18131_LT_EOF
18132      fi
18133      ;;
18134
18135    amigaos*)
18136      case $host_cpu in
18137      powerpc)
18138            # see comment about AmigaOS4 .so support
18139            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18140            archive_expsym_cmds=''
18141        ;;
18142      m68k)
18143            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)'
18144            hardcode_libdir_flag_spec='-L$libdir'
18145            hardcode_minus_L=yes
18146        ;;
18147      esac
18148      ;;
18149
18150    beos*)
18151      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18152	allow_undefined_flag=unsupported
18153	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18154	# support --undefined.  This deserves some investigation.  FIXME
18155	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18156      else
18157	ld_shlibs=no
18158      fi
18159      ;;
18160
18161    cygwin* | mingw* | pw32* | cegcc*)
18162      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
18163      # as there is no search path for DLLs.
18164      hardcode_libdir_flag_spec='-L$libdir'
18165      export_dynamic_flag_spec='$wl--export-all-symbols'
18166      allow_undefined_flag=unsupported
18167      always_export_symbols=no
18168      enable_shared_with_static_runtimes=yes
18169      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'
18170      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18171
18172      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18173        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18174	# If the export-symbols file already is a .def file, use it as
18175	# is; otherwise, prepend EXPORTS...
18176	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18177          cp $export_symbols $output_objdir/$soname.def;
18178        else
18179          echo EXPORTS > $output_objdir/$soname.def;
18180          cat $export_symbols >> $output_objdir/$soname.def;
18181        fi~
18182        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18183      else
18184	ld_shlibs=no
18185      fi
18186      ;;
18187
18188    haiku*)
18189      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18190      link_all_deplibs=yes
18191      ;;
18192
18193    os2*)
18194      hardcode_libdir_flag_spec='-L$libdir'
18195      hardcode_minus_L=yes
18196      allow_undefined_flag=unsupported
18197      shrext_cmds=.dll
18198      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18199	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18200	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18201	$ECHO EXPORTS >> $output_objdir/$libname.def~
18202	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18203	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18204	emximp -o $lib $output_objdir/$libname.def'
18205      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18206	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18207	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18208	$ECHO EXPORTS >> $output_objdir/$libname.def~
18209	prefix_cmds="$SED"~
18210	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18211	  prefix_cmds="$prefix_cmds -e 1d";
18212	fi~
18213	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18214	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18215	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18216	emximp -o $lib $output_objdir/$libname.def'
18217      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18218      enable_shared_with_static_runtimes=yes
18219      ;;
18220
18221    interix[3-9]*)
18222      hardcode_direct=no
18223      hardcode_shlibpath_var=no
18224      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18225      export_dynamic_flag_spec='$wl-E'
18226      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18227      # Instead, shared libraries are loaded at an image base (0x10000000 by
18228      # default) and relocated if they conflict, which is a slow very memory
18229      # consuming and fragmenting process.  To avoid this, we pick a random,
18230      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18231      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18232      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18233      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'
18234      ;;
18235
18236    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18237      tmp_diet=no
18238      if test linux-dietlibc = "$host_os"; then
18239	case $cc_basename in
18240	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
18241	esac
18242      fi
18243      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18244	 && test no = "$tmp_diet"
18245      then
18246	tmp_addflag=' $pic_flag'
18247	tmp_sharedflag='-shared'
18248	case $cc_basename,$host_cpu in
18249        pgcc*)				# Portland Group C compiler
18250	  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'
18251	  tmp_addflag=' $pic_flag'
18252	  ;;
18253	pgf77* | pgf90* | pgf95* | pgfortran*)
18254					# Portland Group f77 and f90 compilers
18255	  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'
18256	  tmp_addflag=' $pic_flag -Mnomain' ;;
18257	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
18258	  tmp_addflag=' -i_dynamic' ;;
18259	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18260	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18261	ifc* | ifort*)			# Intel Fortran compiler
18262	  tmp_addflag=' -nofor_main' ;;
18263	lf95*)				# Lahey Fortran 8.1
18264	  whole_archive_flag_spec=
18265	  tmp_sharedflag='--shared' ;;
18266        nagfor*)                        # NAGFOR 5.3
18267          tmp_sharedflag='-Wl,-shared' ;;
18268	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18269	  tmp_sharedflag='-qmkshrobj'
18270	  tmp_addflag= ;;
18271	nvcc*)	# Cuda Compiler Driver 2.2
18272	  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'
18273	  compiler_needs_object=yes
18274	  ;;
18275	esac
18276	case `$CC -V 2>&1 | sed 5q` in
18277	*Sun\ C*)			# Sun C 5.9
18278	  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'
18279	  compiler_needs_object=yes
18280	  tmp_sharedflag='-G' ;;
18281	*Sun\ F*)			# Sun Fortran 8.3
18282	  tmp_sharedflag='-G' ;;
18283	esac
18284	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18285
18286        if test yes = "$supports_anon_versioning"; then
18287          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18288            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18289            echo "local: *; };" >> $output_objdir/$libname.ver~
18290            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18291        fi
18292
18293	case $cc_basename in
18294	tcc*)
18295	  export_dynamic_flag_spec='-rdynamic'
18296	  ;;
18297	xlf* | bgf* | bgxlf* | mpixlf*)
18298	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18299	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
18300	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18301	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
18302	  if test yes = "$supports_anon_versioning"; then
18303	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18304              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18305              echo "local: *; };" >> $output_objdir/$libname.ver~
18306              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18307	  fi
18308	  ;;
18309	esac
18310      else
18311        ld_shlibs=no
18312      fi
18313      ;;
18314
18315    netbsd*)
18316      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18317	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18318	wlarc=
18319      else
18320	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18321	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18322      fi
18323      ;;
18324
18325    solaris*)
18326      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18327	ld_shlibs=no
18328	cat <<_LT_EOF 1>&2
18329
18330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18331*** create shared libraries on Solaris systems.  Therefore, libtool
18332*** is disabling shared libraries support.  We urge you to upgrade GNU
18333*** binutils to release 2.9.1 or newer.  Another option is to modify
18334*** your PATH or compiler configuration so that the native linker is
18335*** used, and then restart.
18336
18337_LT_EOF
18338      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18339	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18340	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18341      else
18342	ld_shlibs=no
18343      fi
18344      ;;
18345
18346    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18347      case `$LD -v 2>&1` in
18348        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18349	ld_shlibs=no
18350	cat <<_LT_EOF 1>&2
18351
18352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
18353*** reliably create shared libraries on SCO systems.  Therefore, libtool
18354*** is disabling shared libraries support.  We urge you to upgrade GNU
18355*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18356*** your PATH or compiler configuration so that the native linker is
18357*** used, and then restart.
18358
18359_LT_EOF
18360	;;
18361	*)
18362	  # For security reasons, it is highly recommended that you always
18363	  # use absolute paths for naming shared libraries, and exclude the
18364	  # DT_RUNPATH tag from executables and libraries.  But doing so
18365	  # requires that you compile everything twice, which is a pain.
18366	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18367	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18368	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18369	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18370	  else
18371	    ld_shlibs=no
18372	  fi
18373	;;
18374      esac
18375      ;;
18376
18377    sunos4*)
18378      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18379      wlarc=
18380      hardcode_direct=yes
18381      hardcode_shlibpath_var=no
18382      ;;
18383
18384    *)
18385      if $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    esac
18393
18394    if test no = "$ld_shlibs"; then
18395      runpath_var=
18396      hardcode_libdir_flag_spec=
18397      export_dynamic_flag_spec=
18398      whole_archive_flag_spec=
18399    fi
18400  else
18401    # PORTME fill in a description of your system's linker (not GNU ld)
18402    case $host_os in
18403    aix3*)
18404      allow_undefined_flag=unsupported
18405      always_export_symbols=yes
18406      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'
18407      # Note: this linker hardcodes the directories in LIBPATH if there
18408      # are no directories specified by -L.
18409      hardcode_minus_L=yes
18410      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
18411	# Neither direct hardcoding nor static linking is supported with a
18412	# broken collect2.
18413	hardcode_direct=unsupported
18414      fi
18415      ;;
18416
18417    aix[4-9]*)
18418      if test ia64 = "$host_cpu"; then
18419	# On IA64, the linker does run time linking by default, so we don't
18420	# have to do anything special.
18421	aix_use_runtimelinking=no
18422	exp_sym_flag='-Bexport'
18423	no_entry_flag=
18424      else
18425	# If we're using GNU nm, then we don't want the "-C" option.
18426	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
18427	# Without the "-l" option, or with the "-B" option, AIX nm treats
18428	# weak defined symbols like other global defined symbols, whereas
18429	# GNU nm marks them as "W".
18430	# While the 'weak' keyword is ignored in the Export File, we need
18431	# it in the Import File for the 'aix-soname' feature, so we have
18432	# to replace the "-B" option with "-P" for AIX nm.
18433	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18434	  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'
18435	else
18436	  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'
18437	fi
18438	aix_use_runtimelinking=no
18439
18440	# Test if we are trying to use run time linking or normal
18441	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18442	# have runtime linking enabled, and use it for executables.
18443	# For shared libraries, we enable/disable runtime linking
18444	# depending on the kind of the shared library created -
18445	# when "with_aix_soname,aix_use_runtimelinking" is:
18446	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
18447	# "aix,yes"  lib.so          shared, rtl:yes, for executables
18448	#            lib.a           static archive
18449	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
18450	#            lib.a(lib.so.V) shared, rtl:no,  for executables
18451	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18452	#            lib.a(lib.so.V) shared, rtl:no
18453	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
18454	#            lib.a           static archive
18455	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18456	  for ld_flag in $LDFLAGS; do
18457	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
18458	    aix_use_runtimelinking=yes
18459	    break
18460	  fi
18461	  done
18462	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18463	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
18464	    # so we don't have lib.a shared libs to link our executables.
18465	    # We have to force runtime linking in this case.
18466	    aix_use_runtimelinking=yes
18467	    LDFLAGS="$LDFLAGS -Wl,-brtl"
18468	  fi
18469	  ;;
18470	esac
18471
18472	exp_sym_flag='-bexport'
18473	no_entry_flag='-bnoentry'
18474      fi
18475
18476      # When large executables or shared objects are built, AIX ld can
18477      # have problems creating the table of contents.  If linking a library
18478      # or program results in "error TOC overflow" add -mminimal-toc to
18479      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18480      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18481
18482      archive_cmds=''
18483      hardcode_direct=yes
18484      hardcode_direct_absolute=yes
18485      hardcode_libdir_separator=':'
18486      link_all_deplibs=yes
18487      file_list_spec='$wl-f,'
18488      case $with_aix_soname,$aix_use_runtimelinking in
18489      aix,*) ;; # traditional, no import file
18490      svr4,* | *,yes) # use import file
18491	# The Import File defines what to hardcode.
18492	hardcode_direct=no
18493	hardcode_direct_absolute=no
18494	;;
18495      esac
18496
18497      if test yes = "$GCC"; then
18498	case $host_os in aix4.[012]|aix4.[012].*)
18499	# We only want to do this on AIX 4.2 and lower, the check
18500	# below for broken collect2 doesn't work under 4.3+
18501	  collect2name=`$CC -print-prog-name=collect2`
18502	  if test -f "$collect2name" &&
18503	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18504	  then
18505	  # We have reworked collect2
18506	  :
18507	  else
18508	  # We have old collect2
18509	  hardcode_direct=unsupported
18510	  # It fails to find uninstalled libraries when the uninstalled
18511	  # path is not listed in the libpath.  Setting hardcode_minus_L
18512	  # to unsupported forces relinking
18513	  hardcode_minus_L=yes
18514	  hardcode_libdir_flag_spec='-L$libdir'
18515	  hardcode_libdir_separator=
18516	  fi
18517	  ;;
18518	esac
18519	shared_flag='-shared'
18520	if test yes = "$aix_use_runtimelinking"; then
18521	  shared_flag="$shared_flag "'$wl-G'
18522	fi
18523	# Need to ensure runtime linking is disabled for the traditional
18524	# shared library, or the linker may eventually find shared libraries
18525	# /with/ Import File - we do not want to mix them.
18526	shared_flag_aix='-shared'
18527	shared_flag_svr4='-shared $wl-G'
18528      else
18529	# not using gcc
18530	if test ia64 = "$host_cpu"; then
18531	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18532	# chokes on -Wl,-G. The following line is correct:
18533	  shared_flag='-G'
18534	else
18535	  if test yes = "$aix_use_runtimelinking"; then
18536	    shared_flag='$wl-G'
18537	  else
18538	    shared_flag='$wl-bM:SRE'
18539	  fi
18540	  shared_flag_aix='$wl-bM:SRE'
18541	  shared_flag_svr4='$wl-G'
18542	fi
18543      fi
18544
18545      export_dynamic_flag_spec='$wl-bexpall'
18546      # It seems that -bexpall does not export symbols beginning with
18547      # underscore (_), so it is better to generate a list of symbols to export.
18548      always_export_symbols=yes
18549      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18550	# Warning - without using the other runtime loading flags (-brtl),
18551	# -berok will link without error, but may produce a broken library.
18552	allow_undefined_flag='-berok'
18553        # Determine the default libpath from the value encoded in an
18554        # empty executable.
18555        if test set = "${lt_cv_aix_libpath+set}"; then
18556  aix_libpath=$lt_cv_aix_libpath
18557else
18558  if ${lt_cv_aix_libpath_+:} false; then :
18559  $as_echo_n "(cached) " >&6
18560else
18561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562/* end confdefs.h.  */
18563
18564int
18565main ()
18566{
18567
18568  ;
18569  return 0;
18570}
18571_ACEOF
18572if ac_fn_c_try_link "$LINENO"; then :
18573
18574  lt_aix_libpath_sed='
18575      /Import File Strings/,/^$/ {
18576	  /^0/ {
18577	      s/^0  *\([^ ]*\) *$/\1/
18578	      p
18579	  }
18580      }'
18581  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18582  # Check for a 64-bit object if we didn't find anything.
18583  if test -z "$lt_cv_aix_libpath_"; then
18584    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18585  fi
18586fi
18587rm -f core conftest.err conftest.$ac_objext \
18588    conftest$ac_exeext conftest.$ac_ext
18589  if test -z "$lt_cv_aix_libpath_"; then
18590    lt_cv_aix_libpath_=/usr/lib:/lib
18591  fi
18592
18593fi
18594
18595  aix_libpath=$lt_cv_aix_libpath_
18596fi
18597
18598        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18599        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
18600      else
18601	if test ia64 = "$host_cpu"; then
18602	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
18603	  allow_undefined_flag="-z nodefs"
18604	  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"
18605	else
18606	 # Determine the default libpath from the value encoded in an
18607	 # empty executable.
18608	 if test set = "${lt_cv_aix_libpath+set}"; then
18609  aix_libpath=$lt_cv_aix_libpath
18610else
18611  if ${lt_cv_aix_libpath_+:} false; then :
18612  $as_echo_n "(cached) " >&6
18613else
18614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615/* end confdefs.h.  */
18616
18617int
18618main ()
18619{
18620
18621  ;
18622  return 0;
18623}
18624_ACEOF
18625if ac_fn_c_try_link "$LINENO"; then :
18626
18627  lt_aix_libpath_sed='
18628      /Import File Strings/,/^$/ {
18629	  /^0/ {
18630	      s/^0  *\([^ ]*\) *$/\1/
18631	      p
18632	  }
18633      }'
18634  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18635  # Check for a 64-bit object if we didn't find anything.
18636  if test -z "$lt_cv_aix_libpath_"; then
18637    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18638  fi
18639fi
18640rm -f core conftest.err conftest.$ac_objext \
18641    conftest$ac_exeext conftest.$ac_ext
18642  if test -z "$lt_cv_aix_libpath_"; then
18643    lt_cv_aix_libpath_=/usr/lib:/lib
18644  fi
18645
18646fi
18647
18648  aix_libpath=$lt_cv_aix_libpath_
18649fi
18650
18651	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18652	  # Warning - without using the other run time loading flags,
18653	  # -berok will link without error, but may produce a broken library.
18654	  no_undefined_flag=' $wl-bernotok'
18655	  allow_undefined_flag=' $wl-berok'
18656	  if test yes = "$with_gnu_ld"; then
18657	    # We only use this code for GNU lds that support --whole-archive.
18658	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
18659	  else
18660	    # Exported symbols can be pulled into shared objects from archives
18661	    whole_archive_flag_spec='$convenience'
18662	  fi
18663	  archive_cmds_need_lc=yes
18664	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18665	  # -brtl affects multiple linker settings, -berok does not and is overridden later
18666	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18667	  if test svr4 != "$with_aix_soname"; then
18668	    # This is similar to how AIX traditionally builds its shared libraries.
18669	    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'
18670	  fi
18671	  if test aix != "$with_aix_soname"; then
18672	    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'
18673	  else
18674	    # used by -dlpreopen to get the symbols
18675	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
18676	  fi
18677	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
18678	fi
18679      fi
18680      ;;
18681
18682    amigaos*)
18683      case $host_cpu in
18684      powerpc)
18685            # see comment about AmigaOS4 .so support
18686            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18687            archive_expsym_cmds=''
18688        ;;
18689      m68k)
18690            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)'
18691            hardcode_libdir_flag_spec='-L$libdir'
18692            hardcode_minus_L=yes
18693        ;;
18694      esac
18695      ;;
18696
18697    bsdi[45]*)
18698      export_dynamic_flag_spec=-rdynamic
18699      ;;
18700
18701    cygwin* | mingw* | pw32* | cegcc*)
18702      # When not using gcc, we currently assume that we are using
18703      # Microsoft Visual C++.
18704      # hardcode_libdir_flag_spec is actually meaningless, as there is
18705      # no search path for DLLs.
18706      case $cc_basename in
18707      cl*)
18708	# Native MSVC
18709	hardcode_libdir_flag_spec=' '
18710	allow_undefined_flag=unsupported
18711	always_export_symbols=yes
18712	file_list_spec='@'
18713	# Tell ltmain to make .lib files, not .a files.
18714	libext=lib
18715	# Tell ltmain to make .dll files, not .so files.
18716	shrext_cmds=.dll
18717	# FIXME: Setting linknames here is a bad hack.
18718	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18719	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18720            cp "$export_symbols" "$output_objdir/$soname.def";
18721            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18722          else
18723            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18724          fi~
18725          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18726          linknames='
18727	# The linker will not automatically build a static lib if we build a DLL.
18728	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
18729	enable_shared_with_static_runtimes=yes
18730	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18731	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18732	# Don't use ranlib
18733	old_postinstall_cmds='chmod 644 $oldlib'
18734	postlink_cmds='lt_outputfile="@OUTPUT@"~
18735          lt_tool_outputfile="@TOOL_OUTPUT@"~
18736          case $lt_outputfile in
18737            *.exe|*.EXE) ;;
18738            *)
18739              lt_outputfile=$lt_outputfile.exe
18740              lt_tool_outputfile=$lt_tool_outputfile.exe
18741              ;;
18742          esac~
18743          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18744            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18745            $RM "$lt_outputfile.manifest";
18746          fi'
18747	;;
18748      *)
18749	# Assume MSVC wrapper
18750	hardcode_libdir_flag_spec=' '
18751	allow_undefined_flag=unsupported
18752	# Tell ltmain to make .lib files, not .a files.
18753	libext=lib
18754	# Tell ltmain to make .dll files, not .so files.
18755	shrext_cmds=.dll
18756	# FIXME: Setting linknames here is a bad hack.
18757	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18758	# The linker will automatically build a .lib file if we build a DLL.
18759	old_archive_from_new_cmds='true'
18760	# FIXME: Should let the user specify the lib program.
18761	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18762	enable_shared_with_static_runtimes=yes
18763	;;
18764      esac
18765      ;;
18766
18767    darwin* | rhapsody*)
18768
18769
18770  archive_cmds_need_lc=no
18771  hardcode_direct=no
18772  hardcode_automatic=yes
18773  hardcode_shlibpath_var=unsupported
18774  if test yes = "$lt_cv_ld_force_load"; then
18775    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\"`'
18776
18777  else
18778    whole_archive_flag_spec=''
18779  fi
18780  link_all_deplibs=yes
18781  allow_undefined_flag=$_lt_dar_allow_undefined
18782  case $cc_basename in
18783     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18784     *) _lt_dar_can_shared=$GCC ;;
18785  esac
18786  if test yes = "$_lt_dar_can_shared"; then
18787    output_verbose_link_cmd=func_echo_all
18788    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18789    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18790    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"
18791    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"
18792
18793  else
18794  ld_shlibs=no
18795  fi
18796
18797      ;;
18798
18799    dgux*)
18800      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18801      hardcode_libdir_flag_spec='-L$libdir'
18802      hardcode_shlibpath_var=no
18803      ;;
18804
18805    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18806    # support.  Future versions do this automatically, but an explicit c++rt0.o
18807    # does not break anything, and helps significantly (at the cost of a little
18808    # extra space).
18809    freebsd2.2*)
18810      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18811      hardcode_libdir_flag_spec='-R$libdir'
18812      hardcode_direct=yes
18813      hardcode_shlibpath_var=no
18814      ;;
18815
18816    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18817    freebsd2.*)
18818      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18819      hardcode_direct=yes
18820      hardcode_minus_L=yes
18821      hardcode_shlibpath_var=no
18822      ;;
18823
18824    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18825    freebsd* | dragonfly*)
18826      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18827      hardcode_libdir_flag_spec='-R$libdir'
18828      hardcode_direct=yes
18829      hardcode_shlibpath_var=no
18830      ;;
18831
18832    hpux9*)
18833      if test yes = "$GCC"; then
18834	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'
18835      else
18836	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'
18837      fi
18838      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18839      hardcode_libdir_separator=:
18840      hardcode_direct=yes
18841
18842      # hardcode_minus_L: Not really in the search PATH,
18843      # but as the default location of the library.
18844      hardcode_minus_L=yes
18845      export_dynamic_flag_spec='$wl-E'
18846      ;;
18847
18848    hpux10*)
18849      if test yes,no = "$GCC,$with_gnu_ld"; then
18850	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18851      else
18852	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18853      fi
18854      if test no = "$with_gnu_ld"; then
18855	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18856	hardcode_libdir_separator=:
18857	hardcode_direct=yes
18858	hardcode_direct_absolute=yes
18859	export_dynamic_flag_spec='$wl-E'
18860	# hardcode_minus_L: Not really in the search PATH,
18861	# but as the default location of the library.
18862	hardcode_minus_L=yes
18863      fi
18864      ;;
18865
18866    hpux11*)
18867      if test yes,no = "$GCC,$with_gnu_ld"; then
18868	case $host_cpu in
18869	hppa*64*)
18870	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18871	  ;;
18872	ia64*)
18873	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18874	  ;;
18875	*)
18876	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18877	  ;;
18878	esac
18879      else
18880	case $host_cpu in
18881	hppa*64*)
18882	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18883	  ;;
18884	ia64*)
18885	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18886	  ;;
18887	*)
18888
18889	  # Older versions of the 11.00 compiler do not understand -b yet
18890	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18891	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18892$as_echo_n "checking if $CC understands -b... " >&6; }
18893if ${lt_cv_prog_compiler__b+:} false; then :
18894  $as_echo_n "(cached) " >&6
18895else
18896  lt_cv_prog_compiler__b=no
18897   save_LDFLAGS=$LDFLAGS
18898   LDFLAGS="$LDFLAGS -b"
18899   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18900   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18901     # The linker can only warn and ignore the option if not recognized
18902     # So say no if there are warnings
18903     if test -s conftest.err; then
18904       # Append any errors to the config.log.
18905       cat conftest.err 1>&5
18906       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18907       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18908       if diff conftest.exp conftest.er2 >/dev/null; then
18909         lt_cv_prog_compiler__b=yes
18910       fi
18911     else
18912       lt_cv_prog_compiler__b=yes
18913     fi
18914   fi
18915   $RM -r conftest*
18916   LDFLAGS=$save_LDFLAGS
18917
18918fi
18919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18920$as_echo "$lt_cv_prog_compiler__b" >&6; }
18921
18922if test yes = "$lt_cv_prog_compiler__b"; then
18923    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18924else
18925    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18926fi
18927
18928	  ;;
18929	esac
18930      fi
18931      if test no = "$with_gnu_ld"; then
18932	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18933	hardcode_libdir_separator=:
18934
18935	case $host_cpu in
18936	hppa*64*|ia64*)
18937	  hardcode_direct=no
18938	  hardcode_shlibpath_var=no
18939	  ;;
18940	*)
18941	  hardcode_direct=yes
18942	  hardcode_direct_absolute=yes
18943	  export_dynamic_flag_spec='$wl-E'
18944
18945	  # hardcode_minus_L: Not really in the search PATH,
18946	  # but as the default location of the library.
18947	  hardcode_minus_L=yes
18948	  ;;
18949	esac
18950      fi
18951      ;;
18952
18953    irix5* | irix6* | nonstopux*)
18954      if test yes = "$GCC"; then
18955	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'
18956	# Try to use the -exported_symbol ld option, if it does not
18957	# work, assume that -exports_file does not work either and
18958	# implicitly export all symbols.
18959	# This should be the same for all languages, so no per-tag cache variable.
18960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18961$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18962if ${lt_cv_irix_exported_symbol+:} false; then :
18963  $as_echo_n "(cached) " >&6
18964else
18965  save_LDFLAGS=$LDFLAGS
18966	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
18967	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968/* end confdefs.h.  */
18969int foo (void) { return 0; }
18970_ACEOF
18971if ac_fn_c_try_link "$LINENO"; then :
18972  lt_cv_irix_exported_symbol=yes
18973else
18974  lt_cv_irix_exported_symbol=no
18975fi
18976rm -f core conftest.err conftest.$ac_objext \
18977    conftest$ac_exeext conftest.$ac_ext
18978           LDFLAGS=$save_LDFLAGS
18979fi
18980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18981$as_echo "$lt_cv_irix_exported_symbol" >&6; }
18982	if test yes = "$lt_cv_irix_exported_symbol"; then
18983          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'
18984	fi
18985      else
18986	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'
18987	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'
18988      fi
18989      archive_cmds_need_lc='no'
18990      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18991      hardcode_libdir_separator=:
18992      inherit_rpath=yes
18993      link_all_deplibs=yes
18994      ;;
18995
18996    linux*)
18997      case $cc_basename in
18998      tcc*)
18999	# Fabrice Bellard et al's Tiny C Compiler
19000	ld_shlibs=yes
19001	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19002	;;
19003      esac
19004      ;;
19005
19006    netbsd*)
19007      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19008	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19009      else
19010	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19011      fi
19012      hardcode_libdir_flag_spec='-R$libdir'
19013      hardcode_direct=yes
19014      hardcode_shlibpath_var=no
19015      ;;
19016
19017    newsos6)
19018      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19019      hardcode_direct=yes
19020      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19021      hardcode_libdir_separator=:
19022      hardcode_shlibpath_var=no
19023      ;;
19024
19025    *nto* | *qnx*)
19026      ;;
19027
19028    openbsd* | bitrig*)
19029      if test -f /usr/libexec/ld.so; then
19030	hardcode_direct=yes
19031	hardcode_shlibpath_var=no
19032	hardcode_direct_absolute=yes
19033	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19034	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19035	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
19036	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19037	  export_dynamic_flag_spec='$wl-E'
19038	else
19039	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19040	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19041	fi
19042      else
19043	ld_shlibs=no
19044      fi
19045      ;;
19046
19047    os2*)
19048      hardcode_libdir_flag_spec='-L$libdir'
19049      hardcode_minus_L=yes
19050      allow_undefined_flag=unsupported
19051      shrext_cmds=.dll
19052      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19053	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19054	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19055	$ECHO EXPORTS >> $output_objdir/$libname.def~
19056	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19057	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19058	emximp -o $lib $output_objdir/$libname.def'
19059      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19060	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19061	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19062	$ECHO EXPORTS >> $output_objdir/$libname.def~
19063	prefix_cmds="$SED"~
19064	if test EXPORTS = "`$SED 1q $export_symbols`"; then
19065	  prefix_cmds="$prefix_cmds -e 1d";
19066	fi~
19067	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19068	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19069	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19070	emximp -o $lib $output_objdir/$libname.def'
19071      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19072      enable_shared_with_static_runtimes=yes
19073      ;;
19074
19075    osf3*)
19076      if test yes = "$GCC"; then
19077	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
19078	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'
19079      else
19080	allow_undefined_flag=' -expect_unresolved \*'
19081	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'
19082      fi
19083      archive_cmds_need_lc='no'
19084      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19085      hardcode_libdir_separator=:
19086      ;;
19087
19088    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19089      if test yes = "$GCC"; then
19090	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
19091	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'
19092	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19093      else
19094	allow_undefined_flag=' -expect_unresolved \*'
19095	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'
19096	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~
19097          $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'
19098
19099	# Both c and cxx compiler support -rpath directly
19100	hardcode_libdir_flag_spec='-rpath $libdir'
19101      fi
19102      archive_cmds_need_lc='no'
19103      hardcode_libdir_separator=:
19104      ;;
19105
19106    solaris*)
19107      no_undefined_flag=' -z defs'
19108      if test yes = "$GCC"; then
19109	wlarc='$wl'
19110	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19111	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19112          $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'
19113      else
19114	case `$CC -V 2>&1` in
19115	*"Compilers 5.0"*)
19116	  wlarc=''
19117	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
19118	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19119            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19120	  ;;
19121	*)
19122	  wlarc='$wl'
19123	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19124	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19125            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19126	  ;;
19127	esac
19128      fi
19129      hardcode_libdir_flag_spec='-R$libdir'
19130      hardcode_shlibpath_var=no
19131      case $host_os in
19132      solaris2.[0-5] | solaris2.[0-5].*) ;;
19133      *)
19134	# The compiler driver will combine and reorder linker options,
19135	# but understands '-z linker_flag'.  GCC discards it without '$wl',
19136	# but is careful enough not to reorder.
19137	# Supported since Solaris 2.6 (maybe 2.5.1?)
19138	if test yes = "$GCC"; then
19139	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19140	else
19141	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19142	fi
19143	;;
19144      esac
19145      link_all_deplibs=yes
19146      ;;
19147
19148    sunos4*)
19149      if test sequent = "$host_vendor"; then
19150	# Use $CC to link under sequent, because it throws in some extra .o
19151	# files that make .init and .fini sections work.
19152	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19153      else
19154	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19155      fi
19156      hardcode_libdir_flag_spec='-L$libdir'
19157      hardcode_direct=yes
19158      hardcode_minus_L=yes
19159      hardcode_shlibpath_var=no
19160      ;;
19161
19162    sysv4)
19163      case $host_vendor in
19164	sni)
19165	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19166	  hardcode_direct=yes # is this really true???
19167	;;
19168	siemens)
19169	  ## LD is ld it makes a PLAMLIB
19170	  ## CC just makes a GrossModule.
19171	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19172	  reload_cmds='$CC -r -o $output$reload_objs'
19173	  hardcode_direct=no
19174        ;;
19175	motorola)
19176	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19177	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19178	;;
19179      esac
19180      runpath_var='LD_RUN_PATH'
19181      hardcode_shlibpath_var=no
19182      ;;
19183
19184    sysv4.3*)
19185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19186      hardcode_shlibpath_var=no
19187      export_dynamic_flag_spec='-Bexport'
19188      ;;
19189
19190    sysv4*MP*)
19191      if test -d /usr/nec; then
19192	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19193	hardcode_shlibpath_var=no
19194	runpath_var=LD_RUN_PATH
19195	hardcode_runpath_var=yes
19196	ld_shlibs=yes
19197      fi
19198      ;;
19199
19200    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19201      no_undefined_flag='$wl-z,text'
19202      archive_cmds_need_lc=no
19203      hardcode_shlibpath_var=no
19204      runpath_var='LD_RUN_PATH'
19205
19206      if test yes = "$GCC"; then
19207	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19208	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19209      else
19210	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19211	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19212      fi
19213      ;;
19214
19215    sysv5* | sco3.2v5* | sco5v6*)
19216      # Note: We CANNOT use -z defs as we might desire, because we do not
19217      # link with -lc, and that would cause any symbols used from libc to
19218      # always be unresolved, which means just about no library would
19219      # ever link correctly.  If we're not using GNU ld we use -z text
19220      # though, which does catch some bad symbols but isn't as heavy-handed
19221      # as -z defs.
19222      no_undefined_flag='$wl-z,text'
19223      allow_undefined_flag='$wl-z,nodefs'
19224      archive_cmds_need_lc=no
19225      hardcode_shlibpath_var=no
19226      hardcode_libdir_flag_spec='$wl-R,$libdir'
19227      hardcode_libdir_separator=':'
19228      link_all_deplibs=yes
19229      export_dynamic_flag_spec='$wl-Bexport'
19230      runpath_var='LD_RUN_PATH'
19231
19232      if test yes = "$GCC"; then
19233	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19234	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19235      else
19236	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19237	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238      fi
19239      ;;
19240
19241    uts4*)
19242      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19243      hardcode_libdir_flag_spec='-L$libdir'
19244      hardcode_shlibpath_var=no
19245      ;;
19246
19247    *)
19248      ld_shlibs=no
19249      ;;
19250    esac
19251
19252    if test sni = "$host_vendor"; then
19253      case $host in
19254      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19255	export_dynamic_flag_spec='$wl-Blargedynsym'
19256	;;
19257      esac
19258    fi
19259  fi
19260
19261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
19262$as_echo "$ld_shlibs" >&6; }
19263test no = "$ld_shlibs" && can_build_shared=no
19264
19265with_gnu_ld=$with_gnu_ld
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281#
19282# Do we need to explicitly link libc?
19283#
19284case "x$archive_cmds_need_lc" in
19285x|xyes)
19286  # Assume -lc should be added
19287  archive_cmds_need_lc=yes
19288
19289  if test yes,yes = "$GCC,$enable_shared"; then
19290    case $archive_cmds in
19291    *'~'*)
19292      # FIXME: we may have to deal with multi-command sequences.
19293      ;;
19294    '$CC '*)
19295      # Test whether the compiler implicitly links with -lc since on some
19296      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19297      # to ld, don't add -lc before -lgcc.
19298      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19299$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19300if ${lt_cv_archive_cmds_need_lc+:} false; then :
19301  $as_echo_n "(cached) " >&6
19302else
19303  $RM conftest*
19304	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19305
19306	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19307  (eval $ac_compile) 2>&5
19308  ac_status=$?
19309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19310  test $ac_status = 0; } 2>conftest.err; then
19311	  soname=conftest
19312	  lib=conftest
19313	  libobjs=conftest.$ac_objext
19314	  deplibs=
19315	  wl=$lt_prog_compiler_wl
19316	  pic_flag=$lt_prog_compiler_pic
19317	  compiler_flags=-v
19318	  linker_flags=-v
19319	  verstring=
19320	  output_objdir=.
19321	  libname=conftest
19322	  lt_save_allow_undefined_flag=$allow_undefined_flag
19323	  allow_undefined_flag=
19324	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19325  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19326  ac_status=$?
19327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19328  test $ac_status = 0; }
19329	  then
19330	    lt_cv_archive_cmds_need_lc=no
19331	  else
19332	    lt_cv_archive_cmds_need_lc=yes
19333	  fi
19334	  allow_undefined_flag=$lt_save_allow_undefined_flag
19335	else
19336	  cat conftest.err 1>&5
19337	fi
19338	$RM conftest*
19339
19340fi
19341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
19342$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
19343      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
19344      ;;
19345    esac
19346  fi
19347  ;;
19348esac
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19502$as_echo_n "checking dynamic linker characteristics... " >&6; }
19503
19504if test yes = "$GCC"; then
19505  case $host_os in
19506    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
19507    *) lt_awk_arg='/^libraries:/' ;;
19508  esac
19509  case $host_os in
19510    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
19511    *) lt_sed_strip_eq='s|=/|/|g' ;;
19512  esac
19513  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
19514  case $lt_search_path_spec in
19515  *\;*)
19516    # if the path contains ";" then we assume it to be the separator
19517    # otherwise default to the standard path separator (i.e. ":") - it is
19518    # assumed that no part of a normal pathname contains ";" but that should
19519    # okay in the real world where ";" in dirpaths is itself problematic.
19520    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
19521    ;;
19522  *)
19523    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
19524    ;;
19525  esac
19526  # Ok, now we have the path, separated by spaces, we can step through it
19527  # and add multilib dir if necessary...
19528  lt_tmp_lt_search_path_spec=
19529  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19530  # ...but if some path component already ends with the multilib dir we assume
19531  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
19532  case "$lt_multi_os_dir; $lt_search_path_spec " in
19533  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
19534    lt_multi_os_dir=
19535    ;;
19536  esac
19537  for lt_sys_path in $lt_search_path_spec; do
19538    if test -d "$lt_sys_path$lt_multi_os_dir"; then
19539      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
19540    elif test -n "$lt_multi_os_dir"; then
19541      test -d "$lt_sys_path" && \
19542	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
19543    fi
19544  done
19545  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
19546BEGIN {RS = " "; FS = "/|\n";} {
19547  lt_foo = "";
19548  lt_count = 0;
19549  for (lt_i = NF; lt_i > 0; lt_i--) {
19550    if ($lt_i != "" && $lt_i != ".") {
19551      if ($lt_i == "..") {
19552        lt_count++;
19553      } else {
19554        if (lt_count == 0) {
19555          lt_foo = "/" $lt_i lt_foo;
19556        } else {
19557          lt_count--;
19558        }
19559      }
19560    }
19561  }
19562  if (lt_foo != "") { lt_freq[lt_foo]++; }
19563  if (lt_freq[lt_foo] == 1) { print lt_foo; }
19564}'`
19565  # AWK program above erroneously prepends '/' to C:/dos/paths
19566  # for these hosts.
19567  case $host_os in
19568    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
19569      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
19570  esac
19571  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
19572else
19573  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19574fi
19575library_names_spec=
19576libname_spec='lib$name'
19577soname_spec=
19578shrext_cmds=.so
19579postinstall_cmds=
19580postuninstall_cmds=
19581finish_cmds=
19582finish_eval=
19583shlibpath_var=
19584shlibpath_overrides_runpath=unknown
19585version_type=none
19586dynamic_linker="$host_os ld.so"
19587sys_lib_dlsearch_path_spec="/lib /usr/lib"
19588need_lib_prefix=unknown
19589hardcode_into_libs=no
19590
19591# when you set need_version to no, make sure it does not cause -set_version
19592# flags to be left without arguments
19593need_version=unknown
19594
19595
19596
19597case $host_os in
19598aix3*)
19599  version_type=linux # correct to gnu/linux during the next big refactor
19600  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19601  shlibpath_var=LIBPATH
19602
19603  # AIX 3 has no versioning support, so we append a major version to the name.
19604  soname_spec='$libname$release$shared_ext$major'
19605  ;;
19606
19607aix[4-9]*)
19608  version_type=linux # correct to gnu/linux during the next big refactor
19609  need_lib_prefix=no
19610  need_version=no
19611  hardcode_into_libs=yes
19612  if test ia64 = "$host_cpu"; then
19613    # AIX 5 supports IA64
19614    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19615    shlibpath_var=LD_LIBRARY_PATH
19616  else
19617    # With GCC up to 2.95.x, collect2 would create an import file
19618    # for dependence libraries.  The import file would start with
19619    # the line '#! .'.  This would cause the generated library to
19620    # depend on '.', always an invalid library.  This was fixed in
19621    # development snapshots of GCC prior to 3.0.
19622    case $host_os in
19623      aix4 | aix4.[01] | aix4.[01].*)
19624      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19625	   echo ' yes '
19626	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19627	:
19628      else
19629	can_build_shared=no
19630      fi
19631      ;;
19632    esac
19633    # Using Import Files as archive members, it is possible to support
19634    # filename-based versioning of shared library archives on AIX. While
19635    # this would work for both with and without runtime linking, it will
19636    # prevent static linking of such archives. So we do filename-based
19637    # shared library versioning with .so extension only, which is used
19638    # when both runtime linking and shared linking is enabled.
19639    # Unfortunately, runtime linking may impact performance, so we do
19640    # not want this to be the default eventually. Also, we use the
19641    # versioned .so libs for executables only if there is the -brtl
19642    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19643    # To allow for filename-based versioning support, we need to create
19644    # libNAME.so.V as an archive file, containing:
19645    # *) an Import File, referring to the versioned filename of the
19646    #    archive as well as the shared archive member, telling the
19647    #    bitwidth (32 or 64) of that shared object, and providing the
19648    #    list of exported symbols of that shared object, eventually
19649    #    decorated with the 'weak' keyword
19650    # *) the shared object with the F_LOADONLY flag set, to really avoid
19651    #    it being seen by the linker.
19652    # At run time we better use the real file rather than another symlink,
19653    # but for link time we create the symlink libNAME.so -> libNAME.so.V
19654
19655    case $with_aix_soname,$aix_use_runtimelinking in
19656    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19657    # soname into executable. Probably we can add versioning support to
19658    # collect2, so additional links can be useful in future.
19659    aix,yes) # traditional libtool
19660      dynamic_linker='AIX unversionable lib.so'
19661      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19662      # instead of lib<name>.a to let people know that these are not
19663      # typical AIX shared libraries.
19664      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19665      ;;
19666    aix,no) # traditional AIX only
19667      dynamic_linker='AIX lib.a(lib.so.V)'
19668      # We preserve .a as extension for shared libraries through AIX4.2
19669      # and later when we are not doing run time linking.
19670      library_names_spec='$libname$release.a $libname.a'
19671      soname_spec='$libname$release$shared_ext$major'
19672      ;;
19673    svr4,*) # full svr4 only
19674      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19675      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19676      # We do not specify a path in Import Files, so LIBPATH fires.
19677      shlibpath_overrides_runpath=yes
19678      ;;
19679    *,yes) # both, prefer svr4
19680      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19681      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19682      # unpreferred sharedlib libNAME.a needs extra handling
19683      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"'
19684      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"'
19685      # We do not specify a path in Import Files, so LIBPATH fires.
19686      shlibpath_overrides_runpath=yes
19687      ;;
19688    *,no) # both, prefer aix
19689      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19690      library_names_spec='$libname$release.a $libname.a'
19691      soname_spec='$libname$release$shared_ext$major'
19692      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19693      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)'
19694      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"'
19695      ;;
19696    esac
19697    shlibpath_var=LIBPATH
19698  fi
19699  ;;
19700
19701amigaos*)
19702  case $host_cpu in
19703  powerpc)
19704    # Since July 2007 AmigaOS4 officially supports .so libraries.
19705    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19706    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19707    ;;
19708  m68k)
19709    library_names_spec='$libname.ixlibrary $libname.a'
19710    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19711    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'
19712    ;;
19713  esac
19714  ;;
19715
19716beos*)
19717  library_names_spec='$libname$shared_ext'
19718  dynamic_linker="$host_os ld.so"
19719  shlibpath_var=LIBRARY_PATH
19720  ;;
19721
19722bsdi[45]*)
19723  version_type=linux # correct to gnu/linux during the next big refactor
19724  need_version=no
19725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19726  soname_spec='$libname$release$shared_ext$major'
19727  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19728  shlibpath_var=LD_LIBRARY_PATH
19729  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19730  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19731  # the default ld.so.conf also contains /usr/contrib/lib and
19732  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19733  # libtool to hard-code these into programs
19734  ;;
19735
19736cygwin* | mingw* | pw32* | cegcc*)
19737  version_type=windows
19738  shrext_cmds=.dll
19739  need_version=no
19740  need_lib_prefix=no
19741
19742  case $GCC,$cc_basename in
19743  yes,*)
19744    # gcc
19745    library_names_spec='$libname.dll.a'
19746    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19747    postinstall_cmds='base_file=`basename \$file`~
19748      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19749      dldir=$destdir/`dirname \$dlpath`~
19750      test -d \$dldir || mkdir -p \$dldir~
19751      $install_prog $dir/$dlname \$dldir/$dlname~
19752      chmod a+x \$dldir/$dlname~
19753      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19754        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19755      fi'
19756    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19757      dlpath=$dir/\$dldll~
19758       $RM \$dlpath'
19759    shlibpath_overrides_runpath=yes
19760
19761    case $host_os in
19762    cygwin*)
19763      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19764      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19765
19766      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19767      ;;
19768    mingw* | cegcc*)
19769      # MinGW DLLs use traditional 'lib' prefix
19770      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19771      ;;
19772    pw32*)
19773      # pw32 DLLs use 'pw' prefix rather than 'lib'
19774      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19775      ;;
19776    esac
19777    dynamic_linker='Win32 ld.exe'
19778    ;;
19779
19780  *,cl*)
19781    # Native MSVC
19782    libname_spec='$name'
19783    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19784    library_names_spec='$libname.dll.lib'
19785
19786    case $build_os in
19787    mingw*)
19788      sys_lib_search_path_spec=
19789      lt_save_ifs=$IFS
19790      IFS=';'
19791      for lt_path in $LIB
19792      do
19793        IFS=$lt_save_ifs
19794        # Let DOS variable expansion print the short 8.3 style file name.
19795        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19796        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19797      done
19798      IFS=$lt_save_ifs
19799      # Convert to MSYS style.
19800      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19801      ;;
19802    cygwin*)
19803      # Convert to unix form, then to dos form, then back to unix form
19804      # but this time dos style (no spaces!) so that the unix form looks
19805      # like /cygdrive/c/PROGRA~1:/cygdr...
19806      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19807      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19808      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19809      ;;
19810    *)
19811      sys_lib_search_path_spec=$LIB
19812      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19813        # It is most probably a Windows format PATH.
19814        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19815      else
19816        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19817      fi
19818      # FIXME: find the short name or the path components, as spaces are
19819      # common. (e.g. "Program Files" -> "PROGRA~1")
19820      ;;
19821    esac
19822
19823    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19824    postinstall_cmds='base_file=`basename \$file`~
19825      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19826      dldir=$destdir/`dirname \$dlpath`~
19827      test -d \$dldir || mkdir -p \$dldir~
19828      $install_prog $dir/$dlname \$dldir/$dlname'
19829    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19830      dlpath=$dir/\$dldll~
19831       $RM \$dlpath'
19832    shlibpath_overrides_runpath=yes
19833    dynamic_linker='Win32 link.exe'
19834    ;;
19835
19836  *)
19837    # Assume MSVC wrapper
19838    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19839    dynamic_linker='Win32 ld.exe'
19840    ;;
19841  esac
19842  # FIXME: first we should search . and the directory the executable is in
19843  shlibpath_var=PATH
19844  ;;
19845
19846darwin* | rhapsody*)
19847  dynamic_linker="$host_os dyld"
19848  version_type=darwin
19849  need_lib_prefix=no
19850  need_version=no
19851  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19852  soname_spec='$libname$release$major$shared_ext'
19853  shlibpath_overrides_runpath=yes
19854  shlibpath_var=DYLD_LIBRARY_PATH
19855  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19856
19857  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19858  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19859  ;;
19860
19861dgux*)
19862  version_type=linux # correct to gnu/linux during the next big refactor
19863  need_lib_prefix=no
19864  need_version=no
19865  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19866  soname_spec='$libname$release$shared_ext$major'
19867  shlibpath_var=LD_LIBRARY_PATH
19868  ;;
19869
19870freebsd* | dragonfly*)
19871  # DragonFly does not have aout.  When/if they implement a new
19872  # versioning mechanism, adjust this.
19873  if test -x /usr/bin/objformat; then
19874    objformat=`/usr/bin/objformat`
19875  else
19876    case $host_os in
19877    freebsd[23].*) objformat=aout ;;
19878    *) objformat=elf ;;
19879    esac
19880  fi
19881  version_type=freebsd-$objformat
19882  case $version_type in
19883    freebsd-elf*)
19884      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19885      soname_spec='$libname$release$shared_ext$major'
19886      need_version=no
19887      need_lib_prefix=no
19888      ;;
19889    freebsd-*)
19890      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19891      need_version=yes
19892      ;;
19893  esac
19894  shlibpath_var=LD_LIBRARY_PATH
19895  case $host_os in
19896  freebsd2.*)
19897    shlibpath_overrides_runpath=yes
19898    ;;
19899  freebsd3.[01]* | freebsdelf3.[01]*)
19900    shlibpath_overrides_runpath=yes
19901    hardcode_into_libs=yes
19902    ;;
19903  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19904  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19905    shlibpath_overrides_runpath=no
19906    hardcode_into_libs=yes
19907    ;;
19908  *) # from 4.6 on, and DragonFly
19909    shlibpath_overrides_runpath=yes
19910    hardcode_into_libs=yes
19911    ;;
19912  esac
19913  ;;
19914
19915haiku*)
19916  version_type=linux # correct to gnu/linux during the next big refactor
19917  need_lib_prefix=no
19918  need_version=no
19919  dynamic_linker="$host_os runtime_loader"
19920  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19921  soname_spec='$libname$release$shared_ext$major'
19922  shlibpath_var=LIBRARY_PATH
19923  shlibpath_overrides_runpath=no
19924  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19925  hardcode_into_libs=yes
19926  ;;
19927
19928hpux9* | hpux10* | hpux11*)
19929  # Give a soname corresponding to the major version so that dld.sl refuses to
19930  # link against other versions.
19931  version_type=sunos
19932  need_lib_prefix=no
19933  need_version=no
19934  case $host_cpu in
19935  ia64*)
19936    shrext_cmds='.so'
19937    hardcode_into_libs=yes
19938    dynamic_linker="$host_os dld.so"
19939    shlibpath_var=LD_LIBRARY_PATH
19940    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19941    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19942    soname_spec='$libname$release$shared_ext$major'
19943    if test 32 = "$HPUX_IA64_MODE"; then
19944      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19945      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19946    else
19947      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19948      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19949    fi
19950    ;;
19951  hppa*64*)
19952    shrext_cmds='.sl'
19953    hardcode_into_libs=yes
19954    dynamic_linker="$host_os dld.sl"
19955    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19956    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19957    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19958    soname_spec='$libname$release$shared_ext$major'
19959    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19960    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19961    ;;
19962  *)
19963    shrext_cmds='.sl'
19964    dynamic_linker="$host_os dld.sl"
19965    shlibpath_var=SHLIB_PATH
19966    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19967    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19968    soname_spec='$libname$release$shared_ext$major'
19969    ;;
19970  esac
19971  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19972  postinstall_cmds='chmod 555 $lib'
19973  # or fails outright, so override atomically:
19974  install_override_mode=555
19975  ;;
19976
19977interix[3-9]*)
19978  version_type=linux # correct to gnu/linux during the next big refactor
19979  need_lib_prefix=no
19980  need_version=no
19981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19982  soname_spec='$libname$release$shared_ext$major'
19983  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19984  shlibpath_var=LD_LIBRARY_PATH
19985  shlibpath_overrides_runpath=no
19986  hardcode_into_libs=yes
19987  ;;
19988
19989irix5* | irix6* | nonstopux*)
19990  case $host_os in
19991    nonstopux*) version_type=nonstopux ;;
19992    *)
19993	if test yes = "$lt_cv_prog_gnu_ld"; then
19994		version_type=linux # correct to gnu/linux during the next big refactor
19995	else
19996		version_type=irix
19997	fi ;;
19998  esac
19999  need_lib_prefix=no
20000  need_version=no
20001  soname_spec='$libname$release$shared_ext$major'
20002  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20003  case $host_os in
20004  irix5* | nonstopux*)
20005    libsuff= shlibsuff=
20006    ;;
20007  *)
20008    case $LD in # libtool.m4 will add one of these switches to LD
20009    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20010      libsuff= shlibsuff= libmagic=32-bit;;
20011    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20012      libsuff=32 shlibsuff=N32 libmagic=N32;;
20013    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20014      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20015    *) libsuff= shlibsuff= libmagic=never-match;;
20016    esac
20017    ;;
20018  esac
20019  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20020  shlibpath_overrides_runpath=no
20021  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20022  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20023  hardcode_into_libs=yes
20024  ;;
20025
20026# No shared lib support for Linux oldld, aout, or coff.
20027linux*oldld* | linux*aout* | linux*coff*)
20028  dynamic_linker=no
20029  ;;
20030
20031linux*android*)
20032  version_type=none # Android doesn't support versioned libraries.
20033  need_lib_prefix=no
20034  need_version=no
20035  library_names_spec='$libname$release$shared_ext'
20036  soname_spec='$libname$release$shared_ext'
20037  finish_cmds=
20038  shlibpath_var=LD_LIBRARY_PATH
20039  shlibpath_overrides_runpath=yes
20040
20041  # This implies no fast_install, which is unacceptable.
20042  # Some rework will be needed to allow for fast_install
20043  # before this can be enabled.
20044  hardcode_into_libs=yes
20045
20046  dynamic_linker='Android linker'
20047  # Don't embed -rpath directories since the linker doesn't support them.
20048  hardcode_libdir_flag_spec='-L$libdir'
20049  ;;
20050
20051# This must be glibc/ELF.
20052linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20053  version_type=linux # correct to gnu/linux during the next big refactor
20054  need_lib_prefix=no
20055  need_version=no
20056  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20057  soname_spec='$libname$release$shared_ext$major'
20058  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20059  shlibpath_var=LD_LIBRARY_PATH
20060  shlibpath_overrides_runpath=no
20061
20062  # Some binutils ld are patched to set DT_RUNPATH
20063  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20064  $as_echo_n "(cached) " >&6
20065else
20066  lt_cv_shlibpath_overrides_runpath=no
20067    save_LDFLAGS=$LDFLAGS
20068    save_libdir=$libdir
20069    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20070	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072/* end confdefs.h.  */
20073
20074int
20075main ()
20076{
20077
20078  ;
20079  return 0;
20080}
20081_ACEOF
20082if ac_fn_c_try_link "$LINENO"; then :
20083  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20084  lt_cv_shlibpath_overrides_runpath=yes
20085fi
20086fi
20087rm -f core conftest.err conftest.$ac_objext \
20088    conftest$ac_exeext conftest.$ac_ext
20089    LDFLAGS=$save_LDFLAGS
20090    libdir=$save_libdir
20091
20092fi
20093
20094  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20095
20096  # This implies no fast_install, which is unacceptable.
20097  # Some rework will be needed to allow for fast_install
20098  # before this can be enabled.
20099  hardcode_into_libs=yes
20100
20101  # Add ABI-specific directories to the system library path.
20102  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20103
20104  # Ideally, we could use ldconfig to report *all* directores which are
20105  # searched for libraries, however this is still not possible.  Aside from not
20106  # being certain /sbin/ldconfig is available, command
20107  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20108  # even though it is searched at run-time.  Try to do the best guess by
20109  # appending ld.so.conf contents (and includes) to the search path.
20110  if test -f /etc/ld.so.conf; then
20111    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' ' '`
20112    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20113  fi
20114
20115  # We used to test for /lib/ld.so.1 and disable shared libraries on
20116  # powerpc, because MkLinux only supported shared libraries with the
20117  # GNU dynamic linker.  Since this was broken with cross compilers,
20118  # most powerpc-linux boxes support dynamic linking these days and
20119  # people can always --disable-shared, the test was removed, and we
20120  # assume the GNU/Linux dynamic linker is in use.
20121  dynamic_linker='GNU/Linux ld.so'
20122  ;;
20123
20124netbsd*)
20125  version_type=sunos
20126  need_lib_prefix=no
20127  need_version=no
20128  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20129    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20130    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20131    dynamic_linker='NetBSD (a.out) ld.so'
20132  else
20133    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20134    soname_spec='$libname$release$shared_ext$major'
20135    dynamic_linker='NetBSD ld.elf_so'
20136  fi
20137  shlibpath_var=LD_LIBRARY_PATH
20138  shlibpath_overrides_runpath=yes
20139  hardcode_into_libs=yes
20140  ;;
20141
20142newsos6)
20143  version_type=linux # correct to gnu/linux during the next big refactor
20144  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20145  shlibpath_var=LD_LIBRARY_PATH
20146  shlibpath_overrides_runpath=yes
20147  ;;
20148
20149*nto* | *qnx*)
20150  version_type=qnx
20151  need_lib_prefix=no
20152  need_version=no
20153  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20154  soname_spec='$libname$release$shared_ext$major'
20155  shlibpath_var=LD_LIBRARY_PATH
20156  shlibpath_overrides_runpath=no
20157  hardcode_into_libs=yes
20158  dynamic_linker='ldqnx.so'
20159  ;;
20160
20161openbsd* | bitrig*)
20162  version_type=sunos
20163  sys_lib_dlsearch_path_spec=/usr/lib
20164  need_lib_prefix=no
20165  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20166    need_version=no
20167  else
20168    need_version=yes
20169  fi
20170  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20171  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20172  shlibpath_var=LD_LIBRARY_PATH
20173  shlibpath_overrides_runpath=yes
20174  ;;
20175
20176os2*)
20177  libname_spec='$name'
20178  version_type=windows
20179  shrext_cmds=.dll
20180  need_version=no
20181  need_lib_prefix=no
20182  # OS/2 can only load a DLL with a base name of 8 characters or less.
20183  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20184    v=$($ECHO $release$versuffix | tr -d .-);
20185    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20186    $ECHO $n$v`$shared_ext'
20187  library_names_spec='${libname}_dll.$libext'
20188  dynamic_linker='OS/2 ld.exe'
20189  shlibpath_var=BEGINLIBPATH
20190  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20191  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20192  postinstall_cmds='base_file=`basename \$file`~
20193    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20194    dldir=$destdir/`dirname \$dlpath`~
20195    test -d \$dldir || mkdir -p \$dldir~
20196    $install_prog $dir/$dlname \$dldir/$dlname~
20197    chmod a+x \$dldir/$dlname~
20198    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20199      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20200    fi'
20201  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20202    dlpath=$dir/\$dldll~
20203    $RM \$dlpath'
20204  ;;
20205
20206osf3* | osf4* | osf5*)
20207  version_type=osf
20208  need_lib_prefix=no
20209  need_version=no
20210  soname_spec='$libname$release$shared_ext$major'
20211  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20212  shlibpath_var=LD_LIBRARY_PATH
20213  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20214  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20215  ;;
20216
20217rdos*)
20218  dynamic_linker=no
20219  ;;
20220
20221solaris*)
20222  version_type=linux # correct to gnu/linux during the next big refactor
20223  need_lib_prefix=no
20224  need_version=no
20225  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20226  soname_spec='$libname$release$shared_ext$major'
20227  shlibpath_var=LD_LIBRARY_PATH
20228  shlibpath_overrides_runpath=yes
20229  hardcode_into_libs=yes
20230  # ldd complains unless libraries are executable
20231  postinstall_cmds='chmod +x $lib'
20232  ;;
20233
20234sunos4*)
20235  version_type=sunos
20236  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20237  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20238  shlibpath_var=LD_LIBRARY_PATH
20239  shlibpath_overrides_runpath=yes
20240  if test yes = "$with_gnu_ld"; then
20241    need_lib_prefix=no
20242  fi
20243  need_version=yes
20244  ;;
20245
20246sysv4 | sysv4.3*)
20247  version_type=linux # correct to gnu/linux during the next big refactor
20248  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20249  soname_spec='$libname$release$shared_ext$major'
20250  shlibpath_var=LD_LIBRARY_PATH
20251  case $host_vendor in
20252    sni)
20253      shlibpath_overrides_runpath=no
20254      need_lib_prefix=no
20255      runpath_var=LD_RUN_PATH
20256      ;;
20257    siemens)
20258      need_lib_prefix=no
20259      ;;
20260    motorola)
20261      need_lib_prefix=no
20262      need_version=no
20263      shlibpath_overrides_runpath=no
20264      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20265      ;;
20266  esac
20267  ;;
20268
20269sysv4*MP*)
20270  if test -d /usr/nec; then
20271    version_type=linux # correct to gnu/linux during the next big refactor
20272    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20273    soname_spec='$libname$shared_ext.$major'
20274    shlibpath_var=LD_LIBRARY_PATH
20275  fi
20276  ;;
20277
20278sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20279  version_type=sco
20280  need_lib_prefix=no
20281  need_version=no
20282  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $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  if test yes = "$with_gnu_ld"; then
20288    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20289  else
20290    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20291    case $host_os in
20292      sco3.2v5*)
20293        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20294	;;
20295    esac
20296  fi
20297  sys_lib_dlsearch_path_spec='/usr/lib'
20298  ;;
20299
20300tpf*)
20301  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20302  version_type=linux # correct to gnu/linux during the next big refactor
20303  need_lib_prefix=no
20304  need_version=no
20305  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20306  shlibpath_var=LD_LIBRARY_PATH
20307  shlibpath_overrides_runpath=no
20308  hardcode_into_libs=yes
20309  ;;
20310
20311uts4*)
20312  version_type=linux # correct to gnu/linux during the next big refactor
20313  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20314  soname_spec='$libname$release$shared_ext$major'
20315  shlibpath_var=LD_LIBRARY_PATH
20316  ;;
20317
20318*)
20319  dynamic_linker=no
20320  ;;
20321esac
20322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20323$as_echo "$dynamic_linker" >&6; }
20324test no = "$dynamic_linker" && can_build_shared=no
20325
20326variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20327if test yes = "$GCC"; then
20328  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20329fi
20330
20331if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20332  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20333fi
20334
20335if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20336  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20337fi
20338
20339# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20340configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20341
20342# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20343func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20344
20345# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20346configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20445$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20446hardcode_action=
20447if test -n "$hardcode_libdir_flag_spec" ||
20448   test -n "$runpath_var" ||
20449   test yes = "$hardcode_automatic"; then
20450
20451  # We can hardcode non-existent directories.
20452  if test no != "$hardcode_direct" &&
20453     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20454     # have to relink, otherwise we might link with an installed library
20455     # when we should be linking with a yet-to-be-installed one
20456     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20457     test no != "$hardcode_minus_L"; then
20458    # Linking always hardcodes the temporary library directory.
20459    hardcode_action=relink
20460  else
20461    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20462    hardcode_action=immediate
20463  fi
20464else
20465  # We cannot hardcode anything, or else we can only hardcode existing
20466  # directories.
20467  hardcode_action=unsupported
20468fi
20469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20470$as_echo "$hardcode_action" >&6; }
20471
20472if test relink = "$hardcode_action" ||
20473   test yes = "$inherit_rpath"; then
20474  # Fast installation is not supported
20475  enable_fast_install=no
20476elif test yes = "$shlibpath_overrides_runpath" ||
20477     test no = "$enable_shared"; then
20478  # Fast installation is not necessary
20479  enable_fast_install=needless
20480fi
20481
20482
20483
20484
20485
20486
20487  if test yes != "$enable_dlopen"; then
20488  enable_dlopen=unknown
20489  enable_dlopen_self=unknown
20490  enable_dlopen_self_static=unknown
20491else
20492  lt_cv_dlopen=no
20493  lt_cv_dlopen_libs=
20494
20495  case $host_os in
20496  beos*)
20497    lt_cv_dlopen=load_add_on
20498    lt_cv_dlopen_libs=
20499    lt_cv_dlopen_self=yes
20500    ;;
20501
20502  mingw* | pw32* | cegcc*)
20503    lt_cv_dlopen=LoadLibrary
20504    lt_cv_dlopen_libs=
20505    ;;
20506
20507  cygwin*)
20508    lt_cv_dlopen=dlopen
20509    lt_cv_dlopen_libs=
20510    ;;
20511
20512  darwin*)
20513    # if libdl is installed we need to link against it
20514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20515$as_echo_n "checking for dlopen in -ldl... " >&6; }
20516if ${ac_cv_lib_dl_dlopen+:} false; then :
20517  $as_echo_n "(cached) " >&6
20518else
20519  ac_check_lib_save_LIBS=$LIBS
20520LIBS="-ldl  $LIBS"
20521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522/* end confdefs.h.  */
20523
20524/* Override any GCC internal prototype to avoid an error.
20525   Use char because int might match the return type of a GCC
20526   builtin and then its argument prototype would still apply.  */
20527#ifdef __cplusplus
20528extern "C"
20529#endif
20530char dlopen ();
20531int
20532main ()
20533{
20534return dlopen ();
20535  ;
20536  return 0;
20537}
20538_ACEOF
20539if ac_fn_c_try_link "$LINENO"; then :
20540  ac_cv_lib_dl_dlopen=yes
20541else
20542  ac_cv_lib_dl_dlopen=no
20543fi
20544rm -f core conftest.err conftest.$ac_objext \
20545    conftest$ac_exeext conftest.$ac_ext
20546LIBS=$ac_check_lib_save_LIBS
20547fi
20548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20549$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20550if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20551  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20552else
20553
20554    lt_cv_dlopen=dyld
20555    lt_cv_dlopen_libs=
20556    lt_cv_dlopen_self=yes
20557
20558fi
20559
20560    ;;
20561
20562  tpf*)
20563    # Don't try to run any link tests for TPF.  We know it's impossible
20564    # because TPF is a cross-compiler, and we know how we open DSOs.
20565    lt_cv_dlopen=dlopen
20566    lt_cv_dlopen_libs=
20567    lt_cv_dlopen_self=no
20568    ;;
20569
20570  *)
20571    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20572if test "x$ac_cv_func_shl_load" = xyes; then :
20573  lt_cv_dlopen=shl_load
20574else
20575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20576$as_echo_n "checking for shl_load in -ldld... " >&6; }
20577if ${ac_cv_lib_dld_shl_load+:} false; then :
20578  $as_echo_n "(cached) " >&6
20579else
20580  ac_check_lib_save_LIBS=$LIBS
20581LIBS="-ldld  $LIBS"
20582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20583/* end confdefs.h.  */
20584
20585/* Override any GCC internal prototype to avoid an error.
20586   Use char because int might match the return type of a GCC
20587   builtin and then its argument prototype would still apply.  */
20588#ifdef __cplusplus
20589extern "C"
20590#endif
20591char shl_load ();
20592int
20593main ()
20594{
20595return shl_load ();
20596  ;
20597  return 0;
20598}
20599_ACEOF
20600if ac_fn_c_try_link "$LINENO"; then :
20601  ac_cv_lib_dld_shl_load=yes
20602else
20603  ac_cv_lib_dld_shl_load=no
20604fi
20605rm -f core conftest.err conftest.$ac_objext \
20606    conftest$ac_exeext conftest.$ac_ext
20607LIBS=$ac_check_lib_save_LIBS
20608fi
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20610$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20611if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20612  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20613else
20614  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20615if test "x$ac_cv_func_dlopen" = xyes; then :
20616  lt_cv_dlopen=dlopen
20617else
20618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20619$as_echo_n "checking for dlopen in -ldl... " >&6; }
20620if ${ac_cv_lib_dl_dlopen+:} false; then :
20621  $as_echo_n "(cached) " >&6
20622else
20623  ac_check_lib_save_LIBS=$LIBS
20624LIBS="-ldl  $LIBS"
20625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20626/* end confdefs.h.  */
20627
20628/* Override any GCC internal prototype to avoid an error.
20629   Use char because int might match the return type of a GCC
20630   builtin and then its argument prototype would still apply.  */
20631#ifdef __cplusplus
20632extern "C"
20633#endif
20634char dlopen ();
20635int
20636main ()
20637{
20638return dlopen ();
20639  ;
20640  return 0;
20641}
20642_ACEOF
20643if ac_fn_c_try_link "$LINENO"; then :
20644  ac_cv_lib_dl_dlopen=yes
20645else
20646  ac_cv_lib_dl_dlopen=no
20647fi
20648rm -f core conftest.err conftest.$ac_objext \
20649    conftest$ac_exeext conftest.$ac_ext
20650LIBS=$ac_check_lib_save_LIBS
20651fi
20652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20653$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20654if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20655  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20656else
20657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20658$as_echo_n "checking for dlopen in -lsvld... " >&6; }
20659if ${ac_cv_lib_svld_dlopen+:} false; then :
20660  $as_echo_n "(cached) " >&6
20661else
20662  ac_check_lib_save_LIBS=$LIBS
20663LIBS="-lsvld  $LIBS"
20664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665/* end confdefs.h.  */
20666
20667/* Override any GCC internal prototype to avoid an error.
20668   Use char because int might match the return type of a GCC
20669   builtin and then its argument prototype would still apply.  */
20670#ifdef __cplusplus
20671extern "C"
20672#endif
20673char dlopen ();
20674int
20675main ()
20676{
20677return dlopen ();
20678  ;
20679  return 0;
20680}
20681_ACEOF
20682if ac_fn_c_try_link "$LINENO"; then :
20683  ac_cv_lib_svld_dlopen=yes
20684else
20685  ac_cv_lib_svld_dlopen=no
20686fi
20687rm -f core conftest.err conftest.$ac_objext \
20688    conftest$ac_exeext conftest.$ac_ext
20689LIBS=$ac_check_lib_save_LIBS
20690fi
20691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20692$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20693if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20694  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20695else
20696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20697$as_echo_n "checking for dld_link in -ldld... " >&6; }
20698if ${ac_cv_lib_dld_dld_link+:} false; then :
20699  $as_echo_n "(cached) " >&6
20700else
20701  ac_check_lib_save_LIBS=$LIBS
20702LIBS="-ldld  $LIBS"
20703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704/* end confdefs.h.  */
20705
20706/* Override any GCC internal prototype to avoid an error.
20707   Use char because int might match the return type of a GCC
20708   builtin and then its argument prototype would still apply.  */
20709#ifdef __cplusplus
20710extern "C"
20711#endif
20712char dld_link ();
20713int
20714main ()
20715{
20716return dld_link ();
20717  ;
20718  return 0;
20719}
20720_ACEOF
20721if ac_fn_c_try_link "$LINENO"; then :
20722  ac_cv_lib_dld_dld_link=yes
20723else
20724  ac_cv_lib_dld_dld_link=no
20725fi
20726rm -f core conftest.err conftest.$ac_objext \
20727    conftest$ac_exeext conftest.$ac_ext
20728LIBS=$ac_check_lib_save_LIBS
20729fi
20730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20731$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20732if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20733  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20734fi
20735
20736
20737fi
20738
20739
20740fi
20741
20742
20743fi
20744
20745
20746fi
20747
20748
20749fi
20750
20751    ;;
20752  esac
20753
20754  if test no = "$lt_cv_dlopen"; then
20755    enable_dlopen=no
20756  else
20757    enable_dlopen=yes
20758  fi
20759
20760  case $lt_cv_dlopen in
20761  dlopen)
20762    save_CPPFLAGS=$CPPFLAGS
20763    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20764
20765    save_LDFLAGS=$LDFLAGS
20766    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20767
20768    save_LIBS=$LIBS
20769    LIBS="$lt_cv_dlopen_libs $LIBS"
20770
20771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20772$as_echo_n "checking whether a program can dlopen itself... " >&6; }
20773if ${lt_cv_dlopen_self+:} false; then :
20774  $as_echo_n "(cached) " >&6
20775else
20776  	  if test yes = "$cross_compiling"; then :
20777  lt_cv_dlopen_self=cross
20778else
20779  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20780  lt_status=$lt_dlunknown
20781  cat > conftest.$ac_ext <<_LT_EOF
20782#line $LINENO "configure"
20783#include "confdefs.h"
20784
20785#if HAVE_DLFCN_H
20786#include <dlfcn.h>
20787#endif
20788
20789#include <stdio.h>
20790
20791#ifdef RTLD_GLOBAL
20792#  define LT_DLGLOBAL		RTLD_GLOBAL
20793#else
20794#  ifdef DL_GLOBAL
20795#    define LT_DLGLOBAL		DL_GLOBAL
20796#  else
20797#    define LT_DLGLOBAL		0
20798#  endif
20799#endif
20800
20801/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20802   find out it does not work in some platform. */
20803#ifndef LT_DLLAZY_OR_NOW
20804#  ifdef RTLD_LAZY
20805#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20806#  else
20807#    ifdef DL_LAZY
20808#      define LT_DLLAZY_OR_NOW		DL_LAZY
20809#    else
20810#      ifdef RTLD_NOW
20811#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20812#      else
20813#        ifdef DL_NOW
20814#          define LT_DLLAZY_OR_NOW	DL_NOW
20815#        else
20816#          define LT_DLLAZY_OR_NOW	0
20817#        endif
20818#      endif
20819#    endif
20820#  endif
20821#endif
20822
20823/* When -fvisibility=hidden is used, assume the code has been annotated
20824   correspondingly for the symbols needed.  */
20825#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20826int fnord () __attribute__((visibility("default")));
20827#endif
20828
20829int fnord () { return 42; }
20830int main ()
20831{
20832  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20833  int status = $lt_dlunknown;
20834
20835  if (self)
20836    {
20837      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20838      else
20839        {
20840	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20841          else puts (dlerror ());
20842	}
20843      /* dlclose (self); */
20844    }
20845  else
20846    puts (dlerror ());
20847
20848  return status;
20849}
20850_LT_EOF
20851  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20852  (eval $ac_link) 2>&5
20853  ac_status=$?
20854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20855  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20856    (./conftest; exit; ) >&5 2>/dev/null
20857    lt_status=$?
20858    case x$lt_status in
20859      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20860      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20861      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20862    esac
20863  else :
20864    # compilation failed
20865    lt_cv_dlopen_self=no
20866  fi
20867fi
20868rm -fr conftest*
20869
20870
20871fi
20872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20873$as_echo "$lt_cv_dlopen_self" >&6; }
20874
20875    if test yes = "$lt_cv_dlopen_self"; then
20876      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20877      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20878$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20879if ${lt_cv_dlopen_self_static+:} false; then :
20880  $as_echo_n "(cached) " >&6
20881else
20882  	  if test yes = "$cross_compiling"; then :
20883  lt_cv_dlopen_self_static=cross
20884else
20885  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20886  lt_status=$lt_dlunknown
20887  cat > conftest.$ac_ext <<_LT_EOF
20888#line $LINENO "configure"
20889#include "confdefs.h"
20890
20891#if HAVE_DLFCN_H
20892#include <dlfcn.h>
20893#endif
20894
20895#include <stdio.h>
20896
20897#ifdef RTLD_GLOBAL
20898#  define LT_DLGLOBAL		RTLD_GLOBAL
20899#else
20900#  ifdef DL_GLOBAL
20901#    define LT_DLGLOBAL		DL_GLOBAL
20902#  else
20903#    define LT_DLGLOBAL		0
20904#  endif
20905#endif
20906
20907/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20908   find out it does not work in some platform. */
20909#ifndef LT_DLLAZY_OR_NOW
20910#  ifdef RTLD_LAZY
20911#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20912#  else
20913#    ifdef DL_LAZY
20914#      define LT_DLLAZY_OR_NOW		DL_LAZY
20915#    else
20916#      ifdef RTLD_NOW
20917#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20918#      else
20919#        ifdef DL_NOW
20920#          define LT_DLLAZY_OR_NOW	DL_NOW
20921#        else
20922#          define LT_DLLAZY_OR_NOW	0
20923#        endif
20924#      endif
20925#    endif
20926#  endif
20927#endif
20928
20929/* When -fvisibility=hidden is used, assume the code has been annotated
20930   correspondingly for the symbols needed.  */
20931#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20932int fnord () __attribute__((visibility("default")));
20933#endif
20934
20935int fnord () { return 42; }
20936int main ()
20937{
20938  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20939  int status = $lt_dlunknown;
20940
20941  if (self)
20942    {
20943      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20944      else
20945        {
20946	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20947          else puts (dlerror ());
20948	}
20949      /* dlclose (self); */
20950    }
20951  else
20952    puts (dlerror ());
20953
20954  return status;
20955}
20956_LT_EOF
20957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20958  (eval $ac_link) 2>&5
20959  ac_status=$?
20960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20961  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20962    (./conftest; exit; ) >&5 2>/dev/null
20963    lt_status=$?
20964    case x$lt_status in
20965      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20966      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20967      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20968    esac
20969  else :
20970    # compilation failed
20971    lt_cv_dlopen_self_static=no
20972  fi
20973fi
20974rm -fr conftest*
20975
20976
20977fi
20978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20979$as_echo "$lt_cv_dlopen_self_static" >&6; }
20980    fi
20981
20982    CPPFLAGS=$save_CPPFLAGS
20983    LDFLAGS=$save_LDFLAGS
20984    LIBS=$save_LIBS
20985    ;;
20986  esac
20987
20988  case $lt_cv_dlopen_self in
20989  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20990  *) enable_dlopen_self=unknown ;;
20991  esac
20992
20993  case $lt_cv_dlopen_self_static in
20994  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20995  *) enable_dlopen_self_static=unknown ;;
20996  esac
20997fi
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015striplib=
21016old_striplib=
21017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21018$as_echo_n "checking whether stripping libraries is possible... " >&6; }
21019if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21020  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21021  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21023$as_echo "yes" >&6; }
21024else
21025# FIXME - insert some real tests, host_os isn't really good enough
21026  case $host_os in
21027  darwin*)
21028    if test -n "$STRIP"; then
21029      striplib="$STRIP -x"
21030      old_striplib="$STRIP -S"
21031      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21032$as_echo "yes" >&6; }
21033    else
21034      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21035$as_echo "no" >&6; }
21036    fi
21037    ;;
21038  *)
21039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21040$as_echo "no" >&6; }
21041    ;;
21042  esac
21043fi
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056  # Report what library types will actually be built
21057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21058$as_echo_n "checking if libtool supports shared libraries... " >&6; }
21059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21060$as_echo "$can_build_shared" >&6; }
21061
21062  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21063$as_echo_n "checking whether to build shared libraries... " >&6; }
21064  test no = "$can_build_shared" && enable_shared=no
21065
21066  # On AIX, shared libraries and static libraries use the same namespace, and
21067  # are all built from PIC.
21068  case $host_os in
21069  aix3*)
21070    test yes = "$enable_shared" && enable_static=no
21071    if test -n "$RANLIB"; then
21072      archive_cmds="$archive_cmds~\$RANLIB \$lib"
21073      postinstall_cmds='$RANLIB $lib'
21074    fi
21075    ;;
21076
21077  aix[4-9]*)
21078    if test ia64 != "$host_cpu"; then
21079      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
21080      yes,aix,yes) ;;			# shared object as lib.so file only
21081      yes,svr4,*) ;;			# shared object as lib.so archive member only
21082      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
21083      esac
21084    fi
21085    ;;
21086  esac
21087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21088$as_echo "$enable_shared" >&6; }
21089
21090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21091$as_echo_n "checking whether to build static libraries... " >&6; }
21092  # Make sure either enable_shared or enable_static is yes.
21093  test yes = "$enable_shared" || enable_static=yes
21094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21095$as_echo "$enable_static" >&6; }
21096
21097
21098
21099
21100fi
21101ac_ext=c
21102ac_cpp='$CPP $CPPFLAGS'
21103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21105ac_compiler_gnu=$ac_cv_c_compiler_gnu
21106
21107CC=$lt_save_CC
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123        ac_config_commands="$ac_config_commands libtool"
21124
21125
21126
21127
21128# Only expand once:
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21139	if test -n "$ac_tool_prefix"; then
21140  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21141set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21143$as_echo_n "checking for $ac_word... " >&6; }
21144if ${ac_cv_path_PKG_CONFIG+:} false; then :
21145  $as_echo_n "(cached) " >&6
21146else
21147  case $PKG_CONFIG in
21148  [\\/]* | ?:[\\/]*)
21149  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21150  ;;
21151  *)
21152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21153for as_dir in $PATH
21154do
21155  IFS=$as_save_IFS
21156  test -z "$as_dir" && as_dir=.
21157    for ac_exec_ext in '' $ac_executable_extensions; do
21158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21159    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21161    break 2
21162  fi
21163done
21164  done
21165IFS=$as_save_IFS
21166
21167  ;;
21168esac
21169fi
21170PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21171if test -n "$PKG_CONFIG"; then
21172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21173$as_echo "$PKG_CONFIG" >&6; }
21174else
21175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21176$as_echo "no" >&6; }
21177fi
21178
21179
21180fi
21181if test -z "$ac_cv_path_PKG_CONFIG"; then
21182  ac_pt_PKG_CONFIG=$PKG_CONFIG
21183  # Extract the first word of "pkg-config", so it can be a program name with args.
21184set dummy pkg-config; ac_word=$2
21185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21186$as_echo_n "checking for $ac_word... " >&6; }
21187if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21188  $as_echo_n "(cached) " >&6
21189else
21190  case $ac_pt_PKG_CONFIG in
21191  [\\/]* | ?:[\\/]*)
21192  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21193  ;;
21194  *)
21195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21196for as_dir in $PATH
21197do
21198  IFS=$as_save_IFS
21199  test -z "$as_dir" && as_dir=.
21200    for ac_exec_ext in '' $ac_executable_extensions; do
21201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21202    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21204    break 2
21205  fi
21206done
21207  done
21208IFS=$as_save_IFS
21209
21210  ;;
21211esac
21212fi
21213ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21214if test -n "$ac_pt_PKG_CONFIG"; then
21215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21216$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21217else
21218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21219$as_echo "no" >&6; }
21220fi
21221
21222  if test "x$ac_pt_PKG_CONFIG" = x; then
21223    PKG_CONFIG=""
21224  else
21225    case $cross_compiling:$ac_tool_warned in
21226yes:)
21227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21229ac_tool_warned=yes ;;
21230esac
21231    PKG_CONFIG=$ac_pt_PKG_CONFIG
21232  fi
21233else
21234  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21235fi
21236
21237fi
21238if test -n "$PKG_CONFIG"; then
21239	_pkg_min_version=0.9.0
21240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21241$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21242	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21244$as_echo "yes" >&6; }
21245	else
21246		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21247$as_echo "no" >&6; }
21248		PKG_CONFIG=""
21249	fi
21250fi
21251for ac_prog in flex lex
21252do
21253  # Extract the first word of "$ac_prog", so it can be a program name with args.
21254set dummy $ac_prog; ac_word=$2
21255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21256$as_echo_n "checking for $ac_word... " >&6; }
21257if ${ac_cv_prog_LEX+:} false; then :
21258  $as_echo_n "(cached) " >&6
21259else
21260  if test -n "$LEX"; then
21261  ac_cv_prog_LEX="$LEX" # Let the user override the test.
21262else
21263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21264for as_dir in $PATH
21265do
21266  IFS=$as_save_IFS
21267  test -z "$as_dir" && as_dir=.
21268    for ac_exec_ext in '' $ac_executable_extensions; do
21269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21270    ac_cv_prog_LEX="$ac_prog"
21271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21272    break 2
21273  fi
21274done
21275  done
21276IFS=$as_save_IFS
21277
21278fi
21279fi
21280LEX=$ac_cv_prog_LEX
21281if test -n "$LEX"; then
21282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
21283$as_echo "$LEX" >&6; }
21284else
21285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286$as_echo "no" >&6; }
21287fi
21288
21289
21290  test -n "$LEX" && break
21291done
21292test -n "$LEX" || LEX=":"
21293
21294if test "x$LEX" != "x:"; then
21295  cat >conftest.l <<_ACEOF
21296%%
21297a { ECHO; }
21298b { REJECT; }
21299c { yymore (); }
21300d { yyless (1); }
21301e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
21302    yyless ((input () != 0)); }
21303f { unput (yytext[0]); }
21304. { BEGIN INITIAL; }
21305%%
21306#ifdef YYTEXT_POINTER
21307extern char *yytext;
21308#endif
21309int
21310main (void)
21311{
21312  return ! yylex () + ! yywrap ();
21313}
21314_ACEOF
21315{ { ac_try="$LEX conftest.l"
21316case "(($ac_try" in
21317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318  *) ac_try_echo=$ac_try;;
21319esac
21320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21321$as_echo "$ac_try_echo"; } >&5
21322  (eval "$LEX conftest.l") 2>&5
21323  ac_status=$?
21324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21325  test $ac_status = 0; }
21326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
21327$as_echo_n "checking lex output file root... " >&6; }
21328if ${ac_cv_prog_lex_root+:} false; then :
21329  $as_echo_n "(cached) " >&6
21330else
21331
21332if test -f lex.yy.c; then
21333  ac_cv_prog_lex_root=lex.yy
21334elif test -f lexyy.c; then
21335  ac_cv_prog_lex_root=lexyy
21336else
21337  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
21338fi
21339fi
21340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
21341$as_echo "$ac_cv_prog_lex_root" >&6; }
21342LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21343
21344if test -z "${LEXLIB+set}"; then
21345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
21346$as_echo_n "checking lex library... " >&6; }
21347if ${ac_cv_lib_lex+:} false; then :
21348  $as_echo_n "(cached) " >&6
21349else
21350
21351    ac_save_LIBS=$LIBS
21352    ac_cv_lib_lex='none needed'
21353    for ac_lib in '' -lfl -ll; do
21354      LIBS="$ac_lib $ac_save_LIBS"
21355      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356/* end confdefs.h.  */
21357`cat $LEX_OUTPUT_ROOT.c`
21358_ACEOF
21359if ac_fn_c_try_link "$LINENO"; then :
21360  ac_cv_lib_lex=$ac_lib
21361fi
21362rm -f core conftest.err conftest.$ac_objext \
21363    conftest$ac_exeext conftest.$ac_ext
21364      test "$ac_cv_lib_lex" != 'none needed' && break
21365    done
21366    LIBS=$ac_save_LIBS
21367
21368fi
21369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
21370$as_echo "$ac_cv_lib_lex" >&6; }
21371  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
21372fi
21373
21374
21375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
21376$as_echo_n "checking whether yytext is a pointer... " >&6; }
21377if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
21378  $as_echo_n "(cached) " >&6
21379else
21380  # POSIX says lex can declare yytext either as a pointer or an array; the
21381# default is implementation-dependent.  Figure out which it is, since
21382# not all implementations provide the %pointer and %array declarations.
21383ac_cv_prog_lex_yytext_pointer=no
21384ac_save_LIBS=$LIBS
21385LIBS="$LEXLIB $ac_save_LIBS"
21386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387/* end confdefs.h.  */
21388
21389  #define YYTEXT_POINTER 1
21390`cat $LEX_OUTPUT_ROOT.c`
21391_ACEOF
21392if ac_fn_c_try_link "$LINENO"; then :
21393  ac_cv_prog_lex_yytext_pointer=yes
21394fi
21395rm -f core conftest.err conftest.$ac_objext \
21396    conftest$ac_exeext conftest.$ac_ext
21397LIBS=$ac_save_LIBS
21398
21399fi
21400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
21401$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
21402if test $ac_cv_prog_lex_yytext_pointer = yes; then
21403
21404$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
21405
21406fi
21407rm -f conftest.l $LEX_OUTPUT_ROOT.c
21408
21409fi
21410for ac_prog in 'bison -y' byacc
21411do
21412  # Extract the first word of "$ac_prog", so it can be a program name with args.
21413set dummy $ac_prog; ac_word=$2
21414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21415$as_echo_n "checking for $ac_word... " >&6; }
21416if ${ac_cv_prog_YACC+:} false; then :
21417  $as_echo_n "(cached) " >&6
21418else
21419  if test -n "$YACC"; then
21420  ac_cv_prog_YACC="$YACC" # Let the user override the test.
21421else
21422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21423for as_dir in $PATH
21424do
21425  IFS=$as_save_IFS
21426  test -z "$as_dir" && as_dir=.
21427    for ac_exec_ext in '' $ac_executable_extensions; do
21428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21429    ac_cv_prog_YACC="$ac_prog"
21430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21431    break 2
21432  fi
21433done
21434  done
21435IFS=$as_save_IFS
21436
21437fi
21438fi
21439YACC=$ac_cv_prog_YACC
21440if test -n "$YACC"; then
21441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
21442$as_echo "$YACC" >&6; }
21443else
21444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21445$as_echo "no" >&6; }
21446fi
21447
21448
21449  test -n "$YACC" && break
21450done
21451test -n "$YACC" || YACC="yacc"
21452
21453# Check whether --enable-largefile was given.
21454if test "${enable_largefile+set}" = set; then :
21455  enableval=$enable_largefile;
21456fi
21457
21458if test "$enable_largefile" != no; then
21459
21460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21461$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
21462if ${ac_cv_sys_largefile_CC+:} false; then :
21463  $as_echo_n "(cached) " >&6
21464else
21465  ac_cv_sys_largefile_CC=no
21466     if test "$GCC" != yes; then
21467       ac_save_CC=$CC
21468       while :; do
21469	 # IRIX 6.2 and later do not support large files by default,
21470	 # so use the C compiler's -n32 option if that helps.
21471	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472/* end confdefs.h.  */
21473#include <sys/types.h>
21474 /* Check that off_t can represent 2**63 - 1 correctly.
21475    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21476    since some C++ compilers masquerading as C compilers
21477    incorrectly reject 9223372036854775807.  */
21478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21479  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21480		       && LARGE_OFF_T % 2147483647 == 1)
21481		      ? 1 : -1];
21482int
21483main ()
21484{
21485
21486  ;
21487  return 0;
21488}
21489_ACEOF
21490	 if ac_fn_c_try_compile "$LINENO"; then :
21491  break
21492fi
21493rm -f core conftest.err conftest.$ac_objext
21494	 CC="$CC -n32"
21495	 if ac_fn_c_try_compile "$LINENO"; then :
21496  ac_cv_sys_largefile_CC=' -n32'; break
21497fi
21498rm -f core conftest.err conftest.$ac_objext
21499	 break
21500       done
21501       CC=$ac_save_CC
21502       rm -f conftest.$ac_ext
21503    fi
21504fi
21505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21506$as_echo "$ac_cv_sys_largefile_CC" >&6; }
21507  if test "$ac_cv_sys_largefile_CC" != no; then
21508    CC=$CC$ac_cv_sys_largefile_CC
21509  fi
21510
21511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21512$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21513if ${ac_cv_sys_file_offset_bits+:} false; then :
21514  $as_echo_n "(cached) " >&6
21515else
21516  while :; do
21517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21518/* end confdefs.h.  */
21519#include <sys/types.h>
21520 /* Check that off_t can represent 2**63 - 1 correctly.
21521    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21522    since some C++ compilers masquerading as C compilers
21523    incorrectly reject 9223372036854775807.  */
21524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21525  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21526		       && LARGE_OFF_T % 2147483647 == 1)
21527		      ? 1 : -1];
21528int
21529main ()
21530{
21531
21532  ;
21533  return 0;
21534}
21535_ACEOF
21536if ac_fn_c_try_compile "$LINENO"; then :
21537  ac_cv_sys_file_offset_bits=no; break
21538fi
21539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541/* end confdefs.h.  */
21542#define _FILE_OFFSET_BITS 64
21543#include <sys/types.h>
21544 /* Check that off_t can represent 2**63 - 1 correctly.
21545    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21546    since some C++ compilers masquerading as C compilers
21547    incorrectly reject 9223372036854775807.  */
21548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21549  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21550		       && LARGE_OFF_T % 2147483647 == 1)
21551		      ? 1 : -1];
21552int
21553main ()
21554{
21555
21556  ;
21557  return 0;
21558}
21559_ACEOF
21560if ac_fn_c_try_compile "$LINENO"; then :
21561  ac_cv_sys_file_offset_bits=64; break
21562fi
21563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564  ac_cv_sys_file_offset_bits=unknown
21565  break
21566done
21567fi
21568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21569$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
21570case $ac_cv_sys_file_offset_bits in #(
21571  no | unknown) ;;
21572  *)
21573cat >>confdefs.h <<_ACEOF
21574#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21575_ACEOF
21576;;
21577esac
21578rm -rf conftest*
21579  if test $ac_cv_sys_file_offset_bits = unknown; then
21580    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21581$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
21582if ${ac_cv_sys_large_files+:} false; then :
21583  $as_echo_n "(cached) " >&6
21584else
21585  while :; do
21586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21587/* end confdefs.h.  */
21588#include <sys/types.h>
21589 /* Check that off_t can represent 2**63 - 1 correctly.
21590    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21591    since some C++ compilers masquerading as C compilers
21592    incorrectly reject 9223372036854775807.  */
21593#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21594  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21595		       && LARGE_OFF_T % 2147483647 == 1)
21596		      ? 1 : -1];
21597int
21598main ()
21599{
21600
21601  ;
21602  return 0;
21603}
21604_ACEOF
21605if ac_fn_c_try_compile "$LINENO"; then :
21606  ac_cv_sys_large_files=no; break
21607fi
21608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610/* end confdefs.h.  */
21611#define _LARGE_FILES 1
21612#include <sys/types.h>
21613 /* Check that off_t can represent 2**63 - 1 correctly.
21614    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21615    since some C++ compilers masquerading as C compilers
21616    incorrectly reject 9223372036854775807.  */
21617#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21618  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21619		       && LARGE_OFF_T % 2147483647 == 1)
21620		      ? 1 : -1];
21621int
21622main ()
21623{
21624
21625  ;
21626  return 0;
21627}
21628_ACEOF
21629if ac_fn_c_try_compile "$LINENO"; then :
21630  ac_cv_sys_large_files=1; break
21631fi
21632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633  ac_cv_sys_large_files=unknown
21634  break
21635done
21636fi
21637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21638$as_echo "$ac_cv_sys_large_files" >&6; }
21639case $ac_cv_sys_large_files in #(
21640  no | unknown) ;;
21641  *)
21642cat >>confdefs.h <<_ACEOF
21643#define _LARGE_FILES $ac_cv_sys_large_files
21644_ACEOF
21645;;
21646esac
21647rm -rf conftest*
21648  fi
21649
21650
21651fi
21652
21653
21654
21655for ac_prog in cpp
21656do
21657  # Extract the first word of "$ac_prog", so it can be a program name with args.
21658set dummy $ac_prog; ac_word=$2
21659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21660$as_echo_n "checking for $ac_word... " >&6; }
21661if ${ac_cv_path_RAWCPP+:} false; then :
21662  $as_echo_n "(cached) " >&6
21663else
21664  case $RAWCPP in
21665  [\\/]* | ?:[\\/]*)
21666  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21667  ;;
21668  *)
21669  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21670as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21671for as_dir in $as_dummy
21672do
21673  IFS=$as_save_IFS
21674  test -z "$as_dir" && as_dir=.
21675    for ac_exec_ext in '' $ac_executable_extensions; do
21676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21677    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21679    break 2
21680  fi
21681done
21682  done
21683IFS=$as_save_IFS
21684
21685  ;;
21686esac
21687fi
21688RAWCPP=$ac_cv_path_RAWCPP
21689if test -n "$RAWCPP"; then
21690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
21691$as_echo "$RAWCPP" >&6; }
21692else
21693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694$as_echo "no" >&6; }
21695fi
21696
21697
21698  test -n "$RAWCPP" && break
21699done
21700test -n "$RAWCPP" || RAWCPP="${CPP}"
21701
21702
21703# Check for flag to avoid builtin definitions - assumes unix is predefined,
21704# which is not the best choice for supporting other OS'es, but covers most
21705# of the ones we need for now.
21706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
21707$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
21708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709/* end confdefs.h.  */
21710Does cpp redefine unix ?
21711_ACEOF
21712if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21713	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21714$as_echo "no" >&6; }
21715else
21716	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21717		RAWCPPFLAGS=-undef
21718		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21719$as_echo "yes" >&6; }
21720	# under Cygwin unix is still defined even with -undef
21721	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21722		RAWCPPFLAGS="-undef -ansi"
21723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
21724$as_echo "yes, with -ansi" >&6; }
21725	else
21726		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
21727	fi
21728fi
21729rm -f conftest.$ac_ext
21730
21731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
21732$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
21733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734/* end confdefs.h.  */
21735Does cpp preserve   "whitespace"?
21736_ACEOF
21737if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21738	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21739$as_echo "no" >&6; }
21740else
21741	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21742		TRADITIONALCPPFLAGS="-traditional"
21743		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21745$as_echo "yes" >&6; }
21746	else
21747		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
21748	fi
21749fi
21750rm -f conftest.$ac_ext
21751
21752
21753
21754
21755# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
21756# easier overrides at build time.
21757XSERVER_CFLAGS='$(CWARNFLAGS)'
21758
21759if  test "x$GCC" = xyes ; then
21760    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
21761fi
21762
21763
21764# Check whether --with-dtrace was given.
21765if test "${with_dtrace+set}" = set; then :
21766  withval=$with_dtrace; WDTRACE=$withval
21767else
21768  WDTRACE=auto
21769fi
21770
21771if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
21772	# Extract the first word of "dtrace", so it can be a program name with args.
21773set dummy dtrace; ac_word=$2
21774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21775$as_echo_n "checking for $ac_word... " >&6; }
21776if ${ac_cv_path_DTRACE+:} false; then :
21777  $as_echo_n "(cached) " >&6
21778else
21779  case $DTRACE in
21780  [\\/]* | ?:[\\/]*)
21781  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
21782  ;;
21783  *)
21784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785as_dummy="$PATH:/usr/sbin"
21786for as_dir in $as_dummy
21787do
21788  IFS=$as_save_IFS
21789  test -z "$as_dir" && as_dir=.
21790    for ac_exec_ext in '' $ac_executable_extensions; do
21791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21792    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
21793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21794    break 2
21795  fi
21796done
21797  done
21798IFS=$as_save_IFS
21799
21800  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
21801  ;;
21802esac
21803fi
21804DTRACE=$ac_cv_path_DTRACE
21805if test -n "$DTRACE"; then
21806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
21807$as_echo "$DTRACE" >&6; }
21808else
21809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21810$as_echo "no" >&6; }
21811fi
21812
21813
21814	if test "x$DTRACE" = "xnot_found" ; then
21815		if test "x$WDTRACE" = "xyes" ; then
21816			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21818as_fn_error $? "dtrace requested but not found
21819See \`config.log' for more details" "$LINENO" 5; }
21820		fi
21821		WDTRACE="no"
21822	else
21823		ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
21824if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
21825  HAS_SDT_H="yes"
21826else
21827  HAS_SDT_H="no"
21828fi
21829
21830
21831		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
21832			WDTRACE="no"
21833		fi
21834	fi
21835fi
21836if test "x$WDTRACE" != "xno" ; then
21837
21838$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h
21839
21840
21841# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
21842# object files, and require linking with those as relocatable objects, not .a
21843# archives. MacOS X handles all this in the normal compiler toolchain, and on
21844# some releases (like Tiger), will error out on dtrace -G.  For now, other
21845# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
21846# ports appear to, based on my web searches, but have not yet been tested).
21847	case $host_os in
21848		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
21849		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
21850	esac
21851fi
21852 if test "x$WDTRACE" != "xno"; then
21853  XSERVER_DTRACE_TRUE=
21854  XSERVER_DTRACE_FALSE='#'
21855else
21856  XSERVER_DTRACE_TRUE='#'
21857  XSERVER_DTRACE_FALSE=
21858fi
21859
21860 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
21861  SPECIAL_DTRACE_OBJECTS_TRUE=
21862  SPECIAL_DTRACE_OBJECTS_FALSE='#'
21863else
21864  SPECIAL_DTRACE_OBJECTS_TRUE='#'
21865  SPECIAL_DTRACE_OBJECTS_FALSE=
21866fi
21867
21868
21869ac_header_dirent=no
21870for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21871  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21873$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21874if eval \${$as_ac_Header+:} false; then :
21875  $as_echo_n "(cached) " >&6
21876else
21877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878/* end confdefs.h.  */
21879#include <sys/types.h>
21880#include <$ac_hdr>
21881
21882int
21883main ()
21884{
21885if ((DIR *) 0)
21886return 0;
21887  ;
21888  return 0;
21889}
21890_ACEOF
21891if ac_fn_c_try_compile "$LINENO"; then :
21892  eval "$as_ac_Header=yes"
21893else
21894  eval "$as_ac_Header=no"
21895fi
21896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897fi
21898eval ac_res=\$$as_ac_Header
21899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21900$as_echo "$ac_res" >&6; }
21901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21902  cat >>confdefs.h <<_ACEOF
21903#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21904_ACEOF
21905
21906ac_header_dirent=$ac_hdr; break
21907fi
21908
21909done
21910# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21911if test $ac_header_dirent = dirent.h; then
21912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21913$as_echo_n "checking for library containing opendir... " >&6; }
21914if ${ac_cv_search_opendir+:} false; then :
21915  $as_echo_n "(cached) " >&6
21916else
21917  ac_func_search_save_LIBS=$LIBS
21918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919/* end confdefs.h.  */
21920
21921/* Override any GCC internal prototype to avoid an error.
21922   Use char because int might match the return type of a GCC
21923   builtin and then its argument prototype would still apply.  */
21924#ifdef __cplusplus
21925extern "C"
21926#endif
21927char opendir ();
21928int
21929main ()
21930{
21931return opendir ();
21932  ;
21933  return 0;
21934}
21935_ACEOF
21936for ac_lib in '' dir; do
21937  if test -z "$ac_lib"; then
21938    ac_res="none required"
21939  else
21940    ac_res=-l$ac_lib
21941    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21942  fi
21943  if ac_fn_c_try_link "$LINENO"; then :
21944  ac_cv_search_opendir=$ac_res
21945fi
21946rm -f core conftest.err conftest.$ac_objext \
21947    conftest$ac_exeext
21948  if ${ac_cv_search_opendir+:} false; then :
21949  break
21950fi
21951done
21952if ${ac_cv_search_opendir+:} false; then :
21953
21954else
21955  ac_cv_search_opendir=no
21956fi
21957rm conftest.$ac_ext
21958LIBS=$ac_func_search_save_LIBS
21959fi
21960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21961$as_echo "$ac_cv_search_opendir" >&6; }
21962ac_res=$ac_cv_search_opendir
21963if test "$ac_res" != no; then :
21964  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21965
21966fi
21967
21968else
21969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21970$as_echo_n "checking for library containing opendir... " >&6; }
21971if ${ac_cv_search_opendir+:} false; then :
21972  $as_echo_n "(cached) " >&6
21973else
21974  ac_func_search_save_LIBS=$LIBS
21975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21976/* end confdefs.h.  */
21977
21978/* Override any GCC internal prototype to avoid an error.
21979   Use char because int might match the return type of a GCC
21980   builtin and then its argument prototype would still apply.  */
21981#ifdef __cplusplus
21982extern "C"
21983#endif
21984char opendir ();
21985int
21986main ()
21987{
21988return opendir ();
21989  ;
21990  return 0;
21991}
21992_ACEOF
21993for ac_lib in '' x; do
21994  if test -z "$ac_lib"; then
21995    ac_res="none required"
21996  else
21997    ac_res=-l$ac_lib
21998    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21999  fi
22000  if ac_fn_c_try_link "$LINENO"; then :
22001  ac_cv_search_opendir=$ac_res
22002fi
22003rm -f core conftest.err conftest.$ac_objext \
22004    conftest$ac_exeext
22005  if ${ac_cv_search_opendir+:} false; then :
22006  break
22007fi
22008done
22009if ${ac_cv_search_opendir+:} false; then :
22010
22011else
22012  ac_cv_search_opendir=no
22013fi
22014rm conftest.$ac_ext
22015LIBS=$ac_func_search_save_LIBS
22016fi
22017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22018$as_echo "$ac_cv_search_opendir" >&6; }
22019ac_res=$ac_cv_search_opendir
22020if test "$ac_res" != no; then :
22021  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22022
22023fi
22024
22025fi
22026
22027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22028$as_echo_n "checking for ANSI C header files... " >&6; }
22029if ${ac_cv_header_stdc+:} false; then :
22030  $as_echo_n "(cached) " >&6
22031else
22032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22033/* end confdefs.h.  */
22034#include <stdlib.h>
22035#include <stdarg.h>
22036#include <string.h>
22037#include <float.h>
22038
22039int
22040main ()
22041{
22042
22043  ;
22044  return 0;
22045}
22046_ACEOF
22047if ac_fn_c_try_compile "$LINENO"; then :
22048  ac_cv_header_stdc=yes
22049else
22050  ac_cv_header_stdc=no
22051fi
22052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053
22054if test $ac_cv_header_stdc = yes; then
22055  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22057/* end confdefs.h.  */
22058#include <string.h>
22059
22060_ACEOF
22061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22062  $EGREP "memchr" >/dev/null 2>&1; then :
22063
22064else
22065  ac_cv_header_stdc=no
22066fi
22067rm -f conftest*
22068
22069fi
22070
22071if test $ac_cv_header_stdc = yes; then
22072  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22074/* end confdefs.h.  */
22075#include <stdlib.h>
22076
22077_ACEOF
22078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22079  $EGREP "free" >/dev/null 2>&1; then :
22080
22081else
22082  ac_cv_header_stdc=no
22083fi
22084rm -f conftest*
22085
22086fi
22087
22088if test $ac_cv_header_stdc = yes; then
22089  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22090  if test "$cross_compiling" = yes; then :
22091  :
22092else
22093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094/* end confdefs.h.  */
22095#include <ctype.h>
22096#include <stdlib.h>
22097#if ((' ' & 0x0FF) == 0x020)
22098# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22099# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22100#else
22101# define ISLOWER(c) \
22102		   (('a' <= (c) && (c) <= 'i') \
22103		     || ('j' <= (c) && (c) <= 'r') \
22104		     || ('s' <= (c) && (c) <= 'z'))
22105# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22106#endif
22107
22108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22109int
22110main ()
22111{
22112  int i;
22113  for (i = 0; i < 256; i++)
22114    if (XOR (islower (i), ISLOWER (i))
22115	|| toupper (i) != TOUPPER (i))
22116      return 2;
22117  return 0;
22118}
22119_ACEOF
22120if ac_fn_c_try_run "$LINENO"; then :
22121
22122else
22123  ac_cv_header_stdc=no
22124fi
22125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22126  conftest.$ac_objext conftest.beam conftest.$ac_ext
22127fi
22128
22129fi
22130fi
22131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22132$as_echo "$ac_cv_header_stdc" >&6; }
22133if test $ac_cv_header_stdc = yes; then
22134
22135$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22136
22137fi
22138
22139for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \
22140 fnmatch.h sys/mkdev.h sys/utsname.h
22141do :
22142  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22143ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22145  cat >>confdefs.h <<_ACEOF
22146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22147_ACEOF
22148
22149fi
22150
22151done
22152
22153
22154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22155$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22156if ${ac_cv_c_const+:} false; then :
22157  $as_echo_n "(cached) " >&6
22158else
22159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160/* end confdefs.h.  */
22161
22162int
22163main ()
22164{
22165
22166#ifndef __cplusplus
22167  /* Ultrix mips cc rejects this sort of thing.  */
22168  typedef int charset[2];
22169  const charset cs = { 0, 0 };
22170  /* SunOS 4.1.1 cc rejects this.  */
22171  char const *const *pcpcc;
22172  char **ppc;
22173  /* NEC SVR4.0.2 mips cc rejects this.  */
22174  struct point {int x, y;};
22175  static struct point const zero = {0,0};
22176  /* AIX XL C 1.02.0.0 rejects this.
22177     It does not let you subtract one const X* pointer from another in
22178     an arm of an if-expression whose if-part is not a constant
22179     expression */
22180  const char *g = "string";
22181  pcpcc = &g + (g ? g-g : 0);
22182  /* HPUX 7.0 cc rejects these. */
22183  ++pcpcc;
22184  ppc = (char**) pcpcc;
22185  pcpcc = (char const *const *) ppc;
22186  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22187    char tx;
22188    char *t = &tx;
22189    char const *s = 0 ? (char *) 0 : (char const *) 0;
22190
22191    *t++ = 0;
22192    if (s) return 0;
22193  }
22194  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22195    int x[] = {25, 17};
22196    const int *foo = &x[0];
22197    ++foo;
22198  }
22199  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22200    typedef const int *iptr;
22201    iptr p = 0;
22202    ++p;
22203  }
22204  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22205       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22206    struct s { int j; const int *ap[3]; } bx;
22207    struct s *b = &bx; b->j = 5;
22208  }
22209  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22210    const int foo = 10;
22211    if (!foo) return 0;
22212  }
22213  return !cs[0] && !zero.x;
22214#endif
22215
22216  ;
22217  return 0;
22218}
22219_ACEOF
22220if ac_fn_c_try_compile "$LINENO"; then :
22221  ac_cv_c_const=yes
22222else
22223  ac_cv_c_const=no
22224fi
22225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226fi
22227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22228$as_echo "$ac_cv_c_const" >&6; }
22229if test $ac_cv_c_const = no; then
22230
22231$as_echo "#define const /**/" >>confdefs.h
22232
22233fi
22234
22235
22236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
22237$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
22238if ${ac_cv_c_typeof+:} false; then :
22239  $as_echo_n "(cached) " >&6
22240else
22241  ac_cv_c_typeof=no
22242     for ac_kw in typeof __typeof__ no; do
22243       test $ac_kw = no && break
22244       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22245/* end confdefs.h.  */
22246
22247int
22248main ()
22249{
22250
22251	   int value;
22252	   typedef struct {
22253		   char a [1
22254			   + ! (($ac_kw (value))
22255				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
22256				 ? ($ac_kw (value)) - 1
22257				 : ~ (~ ($ac_kw (value)) 0
22258				      << sizeof ($ac_kw (value)))))]; }
22259	      ac__typeof_type_;
22260	   return
22261	     (! ((void) ((ac__typeof_type_ *) 0), 0));
22262
22263  ;
22264  return 0;
22265}
22266_ACEOF
22267if ac_fn_c_try_compile "$LINENO"; then :
22268  ac_cv_c_typeof=$ac_kw
22269fi
22270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271       test $ac_cv_c_typeof != no && break
22272     done
22273fi
22274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
22275$as_echo "$ac_cv_c_typeof" >&6; }
22276  if test $ac_cv_c_typeof != no; then
22277
22278$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
22279
22280    if test $ac_cv_c_typeof != typeof; then
22281
22282cat >>confdefs.h <<_ACEOF
22283#define typeof $ac_cv_c_typeof
22284_ACEOF
22285
22286    fi
22287  fi
22288
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22290$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22291if ${ac_cv_c_bigendian+:} false; then :
22292  $as_echo_n "(cached) " >&6
22293else
22294  ac_cv_c_bigendian=unknown
22295    # See if we're dealing with a universal compiler.
22296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22297/* end confdefs.h.  */
22298#ifndef __APPLE_CC__
22299	       not a universal capable compiler
22300	     #endif
22301	     typedef int dummy;
22302
22303_ACEOF
22304if ac_fn_c_try_compile "$LINENO"; then :
22305
22306	# Check for potential -arch flags.  It is not universal unless
22307	# there are at least two -arch flags with different values.
22308	ac_arch=
22309	ac_prev=
22310	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22311	 if test -n "$ac_prev"; then
22312	   case $ac_word in
22313	     i?86 | x86_64 | ppc | ppc64)
22314	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22315		 ac_arch=$ac_word
22316	       else
22317		 ac_cv_c_bigendian=universal
22318		 break
22319	       fi
22320	       ;;
22321	   esac
22322	   ac_prev=
22323	 elif test "x$ac_word" = "x-arch"; then
22324	   ac_prev=arch
22325	 fi
22326       done
22327fi
22328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22329    if test $ac_cv_c_bigendian = unknown; then
22330      # See if sys/param.h defines the BYTE_ORDER macro.
22331      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332/* end confdefs.h.  */
22333#include <sys/types.h>
22334	     #include <sys/param.h>
22335
22336int
22337main ()
22338{
22339#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22340		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22341		     && LITTLE_ENDIAN)
22342	      bogus endian macros
22343	     #endif
22344
22345  ;
22346  return 0;
22347}
22348_ACEOF
22349if ac_fn_c_try_compile "$LINENO"; then :
22350  # It does; now see whether it defined to BIG_ENDIAN or not.
22351	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352/* end confdefs.h.  */
22353#include <sys/types.h>
22354		#include <sys/param.h>
22355
22356int
22357main ()
22358{
22359#if BYTE_ORDER != BIG_ENDIAN
22360		 not big endian
22361		#endif
22362
22363  ;
22364  return 0;
22365}
22366_ACEOF
22367if ac_fn_c_try_compile "$LINENO"; then :
22368  ac_cv_c_bigendian=yes
22369else
22370  ac_cv_c_bigendian=no
22371fi
22372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373fi
22374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375    fi
22376    if test $ac_cv_c_bigendian = unknown; then
22377      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22378      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379/* end confdefs.h.  */
22380#include <limits.h>
22381
22382int
22383main ()
22384{
22385#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22386	      bogus endian macros
22387	     #endif
22388
22389  ;
22390  return 0;
22391}
22392_ACEOF
22393if ac_fn_c_try_compile "$LINENO"; then :
22394  # It does; now see whether it defined to _BIG_ENDIAN or not.
22395	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22396/* end confdefs.h.  */
22397#include <limits.h>
22398
22399int
22400main ()
22401{
22402#ifndef _BIG_ENDIAN
22403		 not big endian
22404		#endif
22405
22406  ;
22407  return 0;
22408}
22409_ACEOF
22410if ac_fn_c_try_compile "$LINENO"; then :
22411  ac_cv_c_bigendian=yes
22412else
22413  ac_cv_c_bigendian=no
22414fi
22415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416fi
22417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418    fi
22419    if test $ac_cv_c_bigendian = unknown; then
22420      # Compile a test program.
22421      if test "$cross_compiling" = yes; then :
22422  # Try to guess by grepping values from an object file.
22423	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22424/* end confdefs.h.  */
22425short int ascii_mm[] =
22426		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22427		short int ascii_ii[] =
22428		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22429		int use_ascii (int i) {
22430		  return ascii_mm[i] + ascii_ii[i];
22431		}
22432		short int ebcdic_ii[] =
22433		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22434		short int ebcdic_mm[] =
22435		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22436		int use_ebcdic (int i) {
22437		  return ebcdic_mm[i] + ebcdic_ii[i];
22438		}
22439		extern int foo;
22440
22441int
22442main ()
22443{
22444return use_ascii (foo) == use_ebcdic (foo);
22445  ;
22446  return 0;
22447}
22448_ACEOF
22449if ac_fn_c_try_compile "$LINENO"; then :
22450  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22451	      ac_cv_c_bigendian=yes
22452	    fi
22453	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22454	      if test "$ac_cv_c_bigendian" = unknown; then
22455		ac_cv_c_bigendian=no
22456	      else
22457		# finding both strings is unlikely to happen, but who knows?
22458		ac_cv_c_bigendian=unknown
22459	      fi
22460	    fi
22461fi
22462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463else
22464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465/* end confdefs.h.  */
22466$ac_includes_default
22467int
22468main ()
22469{
22470
22471	     /* Are we little or big endian?  From Harbison&Steele.  */
22472	     union
22473	     {
22474	       long int l;
22475	       char c[sizeof (long int)];
22476	     } u;
22477	     u.l = 1;
22478	     return u.c[sizeof (long int) - 1] == 1;
22479
22480  ;
22481  return 0;
22482}
22483_ACEOF
22484if ac_fn_c_try_run "$LINENO"; then :
22485  ac_cv_c_bigendian=no
22486else
22487  ac_cv_c_bigendian=yes
22488fi
22489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22490  conftest.$ac_objext conftest.beam conftest.$ac_ext
22491fi
22492
22493    fi
22494fi
22495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22496$as_echo "$ac_cv_c_bigendian" >&6; }
22497 case $ac_cv_c_bigendian in #(
22498   yes)
22499
22500$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h
22501;; #(
22502   no)
22503
22504$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h
22505 ;; #(
22506   universal)
22507
22508$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22509
22510     ;; #(
22511   *)
22512     as_fn_error $? "unknown endianness
22513 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22514 esac
22515
22516
22517# The cast to long int works around a bug in the HP C Compiler
22518# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22519# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22520# This bug is HP SR number 8606223364.
22521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22522$as_echo_n "checking size of unsigned long... " >&6; }
22523if ${ac_cv_sizeof_unsigned_long+:} false; then :
22524  $as_echo_n "(cached) " >&6
22525else
22526  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
22527
22528else
22529  if test "$ac_cv_type_unsigned_long" = yes; then
22530     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22532as_fn_error 77 "cannot compute sizeof (unsigned long)
22533See \`config.log' for more details" "$LINENO" 5; }
22534   else
22535     ac_cv_sizeof_unsigned_long=0
22536   fi
22537fi
22538
22539fi
22540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22541$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22542
22543
22544
22545cat >>confdefs.h <<_ACEOF
22546#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22547_ACEOF
22548
22549
22550if test "$ac_cv_sizeof_unsigned_long" = 8; then
22551
22552$as_echo "#define _XSERVER64 1" >>confdefs.h
22553
22554fi
22555
22556ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22557if test "x$ac_cv_type_pid_t" = xyes; then :
22558
22559else
22560
22561cat >>confdefs.h <<_ACEOF
22562#define pid_t int
22563_ACEOF
22564
22565fi
22566
22567
22568# Checks for headers/macros for byte swapping
22569# Known variants:
22570#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
22571#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
22572#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
22573#	and a fallback to local macros if none of the above are found
22574
22575# if <byteswap.h> is found, assume it's the correct version
22576for ac_header in byteswap.h
22577do :
22578  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
22579if test "x$ac_cv_header_byteswap_h" = xyes; then :
22580  cat >>confdefs.h <<_ACEOF
22581#define HAVE_BYTESWAP_H 1
22582_ACEOF
22583
22584fi
22585
22586done
22587
22588
22589# if <sys/endian.h> is found, have to check which version
22590ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
22591if test "x$ac_cv_header_sys_endian_h" = xyes; then :
22592  HAVE_SYS_ENDIAN_H="yes"
22593else
22594  HAVE_SYS_ENDIAN_H="no"
22595fi
22596
22597
22598
22599if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
22600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
22601$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
22602	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603/* end confdefs.h.  */
22604
22605#include <sys/types.h>
22606#include <sys/endian.h>
22607
22608int
22609main ()
22610{
22611
22612int a = 1, b;
22613b = __swap16(a);
22614
22615  ;
22616  return 0;
22617}
22618
22619_ACEOF
22620if ac_fn_c_try_link "$LINENO"; then :
22621  SYS_ENDIAN__SWAP='yes'
22622else
22623  SYS_ENDIAN__SWAP='no'
22624fi
22625rm -f core conftest.err conftest.$ac_objext \
22626    conftest$ac_exeext conftest.$ac_ext
22627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
22628$as_echo "$SYS_ENDIAN__SWAP" >&6; }
22629
22630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
22631$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
22632	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22633/* end confdefs.h.  */
22634
22635#include <sys/types.h>
22636#include <sys/endian.h>
22637
22638int
22639main ()
22640{
22641
22642int a = 1, b;
22643b = bswap16(a);
22644
22645  ;
22646  return 0;
22647}
22648
22649_ACEOF
22650if ac_fn_c_try_link "$LINENO"; then :
22651  SYS_ENDIAN_BSWAP='yes'
22652else
22653  SYS_ENDIAN_BSWAP='no'
22654fi
22655rm -f core conftest.err conftest.$ac_objext \
22656    conftest$ac_exeext conftest.$ac_ext
22657	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
22658$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
22659
22660    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
22661		USE_SYS_ENDIAN_H=yes
22662		BSWAP=bswap
22663	else
22664	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
22665			USE_SYS_ENDIAN_H=yes
22666			BSWAP=__swap
22667		else
22668			USE_SYS_ENDIAN_H=no
22669		fi
22670	fi
22671
22672	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
22673
22674$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
22675
22676
22677cat >>confdefs.h <<_ACEOF
22678#define bswap_16 ${BSWAP}16
22679_ACEOF
22680
22681
22682cat >>confdefs.h <<_ACEOF
22683#define bswap_32 ${BSWAP}32
22684_ACEOF
22685
22686
22687cat >>confdefs.h <<_ACEOF
22688#define bswap_64 ${BSWAP}64
22689_ACEOF
22690
22691	fi
22692fi
22693
22694ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22695if test "x$ac_cv_func_dlopen" = xyes; then :
22696
22697else
22698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22699$as_echo_n "checking for dlopen in -ldl... " >&6; }
22700if ${ac_cv_lib_dl_dlopen+:} false; then :
22701  $as_echo_n "(cached) " >&6
22702else
22703  ac_check_lib_save_LIBS=$LIBS
22704LIBS="-ldl  $LIBS"
22705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706/* end confdefs.h.  */
22707
22708/* Override any GCC internal prototype to avoid an error.
22709   Use char because int might match the return type of a GCC
22710   builtin and then its argument prototype would still apply.  */
22711#ifdef __cplusplus
22712extern "C"
22713#endif
22714char dlopen ();
22715int
22716main ()
22717{
22718return dlopen ();
22719  ;
22720  return 0;
22721}
22722_ACEOF
22723if ac_fn_c_try_link "$LINENO"; then :
22724  ac_cv_lib_dl_dlopen=yes
22725else
22726  ac_cv_lib_dl_dlopen=no
22727fi
22728rm -f core conftest.err conftest.$ac_objext \
22729    conftest$ac_exeext conftest.$ac_ext
22730LIBS=$ac_check_lib_save_LIBS
22731fi
22732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22733$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22734if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22735  DLOPEN_LIBS="-ldl"
22736fi
22737
22738fi
22739
22740
22741
22742for ac_func in backtrace ffs geteuid getuid issetugid getresuid \
22743	getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \
22744	mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \
22745	walkcontext
22746do :
22747  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22748ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22750  cat >>confdefs.h <<_ACEOF
22751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22752_ACEOF
22753
22754fi
22755done
22756
22757ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
22758if test "x$ac_cv_func_reallocarray" = xyes; then :
22759  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
22760
22761else
22762  case " $LIBOBJS " in
22763  *" reallocarray.$ac_objext "* ) ;;
22764  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
22765 ;;
22766esac
22767
22768fi
22769
22770ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22771if test "x$ac_cv_func_strcasecmp" = xyes; then :
22772  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
22773
22774else
22775  case " $LIBOBJS " in
22776  *" strcasecmp.$ac_objext "* ) ;;
22777  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
22778 ;;
22779esac
22780
22781fi
22782
22783ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
22784if test "x$ac_cv_func_strcasestr" = xyes; then :
22785  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
22786
22787else
22788  case " $LIBOBJS " in
22789  *" strcasestr.$ac_objext "* ) ;;
22790  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
22791 ;;
22792esac
22793
22794fi
22795
22796ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
22797if test "x$ac_cv_func_strlcat" = xyes; then :
22798  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
22799
22800else
22801  case " $LIBOBJS " in
22802  *" strlcat.$ac_objext "* ) ;;
22803  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
22804 ;;
22805esac
22806
22807fi
22808
22809ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
22810if test "x$ac_cv_func_strlcpy" = xyes; then :
22811  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
22812
22813else
22814  case " $LIBOBJS " in
22815  *" strlcpy.$ac_objext "* ) ;;
22816  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22817 ;;
22818esac
22819
22820fi
22821
22822ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
22823if test "x$ac_cv_func_strndup" = xyes; then :
22824  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
22825
22826else
22827  case " $LIBOBJS " in
22828  *" strndup.$ac_objext "* ) ;;
22829  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
22830 ;;
22831esac
22832
22833fi
22834
22835
22836
22837ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22838"
22839if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
22840  ac_have_decl=1
22841else
22842  ac_have_decl=0
22843fi
22844
22845cat >>confdefs.h <<_ACEOF
22846#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
22847_ACEOF
22848
22849
22850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5
22851$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; }
22852if ${xorg_cv_sys_have_so_peercred+:} false; then :
22853  $as_echo_n "(cached) " >&6
22854else
22855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856/* end confdefs.h.  */
22857
22858#include <sys/types.h>
22859#include <sys/socket.h>
22860#ifdef SO_PEERCRED
22861yes_have_so_peercred
22862#endif
22863
22864_ACEOF
22865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22866  $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then :
22867  xorg_cv_sys_have_so_peercred=yes
22868else
22869  xorg_cv_sys_have_so_peercred=no
22870fi
22871rm -f conftest*
22872
22873fi
22874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5
22875$as_echo "$xorg_cv_sys_have_so_peercred" >&6; }
22876
22877if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then
22878
22879$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h
22880
22881fi
22882
22883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22884$as_echo_n "checking for sqrt in -lm... " >&6; }
22885if ${ac_cv_lib_m_sqrt+:} false; then :
22886  $as_echo_n "(cached) " >&6
22887else
22888  ac_check_lib_save_LIBS=$LIBS
22889LIBS="-lm  $LIBS"
22890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22891/* end confdefs.h.  */
22892
22893/* Override any GCC internal prototype to avoid an error.
22894   Use char because int might match the return type of a GCC
22895   builtin and then its argument prototype would still apply.  */
22896#ifdef __cplusplus
22897extern "C"
22898#endif
22899char sqrt ();
22900int
22901main ()
22902{
22903return sqrt ();
22904  ;
22905  return 0;
22906}
22907_ACEOF
22908if ac_fn_c_try_link "$LINENO"; then :
22909  ac_cv_lib_m_sqrt=yes
22910else
22911  ac_cv_lib_m_sqrt=no
22912fi
22913rm -f core conftest.err conftest.$ac_objext \
22914    conftest$ac_exeext conftest.$ac_ext
22915LIBS=$ac_check_lib_save_LIBS
22916fi
22917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22918$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22919if test "x$ac_cv_lib_m_sqrt" = xyes; then :
22920  cat >>confdefs.h <<_ACEOF
22921#define HAVE_LIBM 1
22922_ACEOF
22923
22924  LIBS="-lm $LIBS"
22925
22926fi
22927
22928for ac_func in cbrt
22929do :
22930  ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt"
22931if test "x$ac_cv_func_cbrt" = xyes; then :
22932  cat >>confdefs.h <<_ACEOF
22933#define HAVE_CBRT 1
22934_ACEOF
22935
22936fi
22937done
22938
22939
22940for ac_header in ndbm.h dbm.h rpcsvc/dbm.h
22941do :
22942  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22943ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22945  cat >>confdefs.h <<_ACEOF
22946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22947_ACEOF
22948
22949fi
22950
22951done
22952
22953
22954for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
22955do :
22956  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22957ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22958if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22959  cat >>confdefs.h <<_ACEOF
22960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22961_ACEOF
22962 AGP=yes
22963fi
22964
22965done
22966
22967 if test "x$AGP" = xyes; then
22968  AGP_TRUE=
22969  AGP_FALSE='#'
22970else
22971  AGP_TRUE='#'
22972  AGP_FALSE=
22973fi
22974
22975
22976for ac_header in linux/fb.h
22977do :
22978  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
22979if test "x$ac_cv_header_linux_fb_h" = xyes; then :
22980  cat >>confdefs.h <<_ACEOF
22981#define HAVE_LINUX_FB_H 1
22982_ACEOF
22983 FBDEV=yes
22984fi
22985
22986done
22987
22988 if test "x$FBDEV" = xyes; then
22989  FBDEVHW_TRUE=
22990  FBDEVHW_FALSE='#'
22991else
22992  FBDEVHW_TRUE='#'
22993  FBDEVHW_FALSE=
22994fi
22995
22996
22997for ac_header in sys/linker.h
22998do :
22999  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
23000"
23001if test "x$ac_cv_header_sys_linker_h" = xyes; then :
23002  cat >>confdefs.h <<_ACEOF
23003#define HAVE_SYS_LINKER_H 1
23004_ACEOF
23005 ac_cv_sys_linker_h=yes
23006else
23007  ac_cv_sys_linker_h=no
23008fi
23009
23010done
23011
23012 if test "x$ac_cv_sys_linker_h" = xyes; then
23013  FREEBSD_KLDLOAD_TRUE=
23014  FREEBSD_KLDLOAD_FALSE='#'
23015else
23016  FREEBSD_KLDLOAD_TRUE='#'
23017  FREEBSD_KLDLOAD_FALSE=
23018fi
23019
23020
23021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
23022$as_echo_n "checking for SYSV IPC... " >&6; }
23023if ${ac_cv_sysv_ipc+:} false; then :
23024  $as_echo_n "(cached) " >&6
23025else
23026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027/* end confdefs.h.  */
23028
23029#include <sys/types.h>
23030#include <sys/ipc.h>
23031#include <sys/shm.h>
23032#include <sys/stat.h>
23033
23034int
23035main ()
23036{
23037
23038{
23039    int id;
23040    id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR);
23041    if (id < 0) return -1;
23042    return shmctl(id, IPC_RMID, 0);
23043}
23044  ;
23045  return 0;
23046}
23047_ACEOF
23048if ac_fn_c_try_link "$LINENO"; then :
23049  ac_cv_sysv_ipc=yes
23050else
23051  ac_cv_sysv_ipc=no
23052fi
23053rm -f core conftest.err conftest.$ac_objext \
23054    conftest$ac_exeext conftest.$ac_ext
23055fi
23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
23057$as_echo "$ac_cv_sysv_ipc" >&6; }
23058if test "x$ac_cv_sysv_ipc" = xyes; then
23059
23060$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
23061
23062fi
23063
23064if test -c /dev/xf86 ; then
23065
23066$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h
23067
23068fi
23069
23070ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default"
23071if test "x$ac_cv_header_machine_apmvar_h" = xyes; then :
23072
23073	ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
23074if test "x$ac_cv_header_sys_event_h" = xyes; then :
23075  ac_cv_BSD_KQUEUE_APM=yes
23076else
23077  ac_cv_BSD_APM=yes
23078fi
23079
23080
23081fi
23082
23083
23084
23085 if test "x$ac_cv_BSD_APM" = xyes; then
23086  BSD_APM_TRUE=
23087  BSD_APM_FALSE='#'
23088else
23089  BSD_APM_TRUE='#'
23090  BSD_APM_FALSE=
23091fi
23092
23093 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
23094  BSD_KQUEUE_APM_TRUE=
23095  BSD_KQUEUE_APM_FALSE='#'
23096else
23097  BSD_KQUEUE_APM_TRUE='#'
23098  BSD_KQUEUE_APM_FALSE=
23099fi
23100
23101
23102ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
23103if test "x$ac_cv_header_execinfo_h" = xyes; then :
23104
23105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
23106$as_echo_n "checking for backtrace in -lc... " >&6; }
23107if ${ac_cv_lib_c_backtrace+:} false; then :
23108  $as_echo_n "(cached) " >&6
23109else
23110  ac_check_lib_save_LIBS=$LIBS
23111LIBS="-lc  $LIBS"
23112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23113/* end confdefs.h.  */
23114
23115/* Override any GCC internal prototype to avoid an error.
23116   Use char because int might match the return type of a GCC
23117   builtin and then its argument prototype would still apply.  */
23118#ifdef __cplusplus
23119extern "C"
23120#endif
23121char backtrace ();
23122int
23123main ()
23124{
23125return backtrace ();
23126  ;
23127  return 0;
23128}
23129_ACEOF
23130if ac_fn_c_try_link "$LINENO"; then :
23131  ac_cv_lib_c_backtrace=yes
23132else
23133  ac_cv_lib_c_backtrace=no
23134fi
23135rm -f core conftest.err conftest.$ac_objext \
23136    conftest$ac_exeext conftest.$ac_ext
23137LIBS=$ac_check_lib_save_LIBS
23138fi
23139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
23140$as_echo "$ac_cv_lib_c_backtrace" >&6; }
23141if test "x$ac_cv_lib_c_backtrace" = xyes; then :
23142
23143
23144$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
23145
23146
23147$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h
23148
23149
23150fi
23151
23152
23153fi
23154
23155
23156
23157DEFAULT_INT10="x86emu"
23158
23159
23160case $host_cpu in
23161  alpha*)
23162	ALPHA_VIDEO=yes
23163	case $host_os in
23164	        *freebsd*)	SYS_LIBS=-lio ;;
23165		*netbsd*)
23166$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
23167 ;;
23168	esac
23169	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
23170	;;
23171  arm*)
23172	ARM_VIDEO=yes
23173	DEFAULT_INT10="stub"
23174	;;
23175  i*86)
23176	I386_VIDEO=yes
23177	case $host_os in
23178		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23179 ;;
23180		*dragonfly*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23181 ;;
23182		*netbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23183
23184				SYS_LIBS=-li386
23185				;;
23186		*openbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23187
23188				SYS_LIBS=-li386
23189				;;
23190	esac
23191        ;;
23192  powerpc*)
23193	PPC_VIDEO=yes
23194	case $host_os in
23195		*freebsd*)	DEFAULT_INT10=stub ;;
23196	esac
23197	;;
23198  sparc*)
23199	SPARC64_VIDEO=yes
23200	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
23201	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23202	;;
23203  x86_64*|amd64*)
23204	I386_VIDEO=yes
23205	case $host_os in
23206		*freebsd*)
23207$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23208 ;;
23209		*dragonfly*)
23210$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23211 ;;
23212		*netbsd*)
23213$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23214
23215				SYS_LIBS=-lx86_64
23216				;;
23217		*openbsd*)
23218$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
23219
23220				SYS_LIBS=-lamd64
23221				;;
23222	esac
23223	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23224	;;
23225  ia64*)
23226  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23227	;;
23228  s390*)
23229  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23230	;;
23231esac
23232
23233
23234 if test "x$ALPHA_VIDEO" = xyes; then
23235  ALPHA_VIDEO_TRUE=
23236  ALPHA_VIDEO_FALSE='#'
23237else
23238  ALPHA_VIDEO_TRUE='#'
23239  ALPHA_VIDEO_FALSE=
23240fi
23241
23242 if test "x$ARM_VIDEO" = xyes; then
23243  ARM_VIDEO_TRUE=
23244  ARM_VIDEO_FALSE='#'
23245else
23246  ARM_VIDEO_TRUE='#'
23247  ARM_VIDEO_FALSE=
23248fi
23249
23250 if test "x$I386_VIDEO" = xyes; then
23251  I386_VIDEO_TRUE=
23252  I386_VIDEO_FALSE='#'
23253else
23254  I386_VIDEO_TRUE='#'
23255  I386_VIDEO_FALSE=
23256fi
23257
23258 if test "x$PPC_VIDEO" = xyes; then
23259  PPC_VIDEO_TRUE=
23260  PPC_VIDEO_FALSE='#'
23261else
23262  PPC_VIDEO_TRUE='#'
23263  PPC_VIDEO_FALSE=
23264fi
23265
23266 if test "x$SPARC64_VIDEO" = xyes; then
23267  SPARC64_VIDEO_TRUE=
23268  SPARC64_VIDEO_FALSE='#'
23269else
23270  SPARC64_VIDEO_TRUE='#'
23271  SPARC64_VIDEO_FALSE=
23272fi
23273
23274
23275DRI=no
23276USE_SIGIO_BY_DEFAULT="yes"
23277case $host_os in
23278  *freebsd* | *dragonfly*)
23279	case $host_os in
23280		kfreebsd*-gnu) ;;
23281		*)
23282$as_echo "#define CSRG_BASED 1" >>confdefs.h
23283 ;;
23284	esac
23285
23286$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23287
23288
23289$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23290
23291
23292$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h
23293
23294	DRI=yes
23295	;;
23296  *netbsd*)
23297
23298$as_echo "#define CSRG_BASED 1" >>confdefs.h
23299
23300
23301$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23302
23303
23304$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23305
23306
23307$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23308
23309	DRI=yes
23310	;;
23311  *openbsd*)
23312
23313$as_echo "#define CSRG_BASED 1" >>confdefs.h
23314
23315
23316$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23317
23318
23319$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23320
23321	;;
23322  *linux*)
23323	DRI=yes
23324	;;
23325  *solaris*)
23326	if test -n "$PKG_CONFIG" && \
23327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
23328  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
23329  ac_status=$?
23330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23331  test $ac_status = 0; }; then
23332  DRI=yes
23333else
23334  DRI=no
23335fi
23336	# Disable use of SIGIO by default until some system bugs are
23337	# fixed - see Sun/OpenSolaris bug id 6879897
23338	USE_SIGIO_BY_DEFAULT="no"
23339	;;
23340  darwin*)
23341
23342$as_echo "#define CSRG_BASED 1" >>confdefs.h
23343
23344	;;
23345  cygwin*|mingw*)
23346	CFLAGS="$CFLAGS -DFD_SETSIZE=512"
23347	;;
23348esac
23349
23350PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
23351PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
23352if test "x$PVS" = "x"; then
23353	PVS="0"
23354fi
23355
23356VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
23357VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
23358
23359VENDOR_NAME="The X.Org Foundation"
23360VENDOR_NAME_SHORT="X.Org"
23361VENDOR_WEB="http://wiki.x.org"
23362
23363# Check whether --enable-werror was given.
23364if test "${enable_werror+set}" = set; then :
23365  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
23366fi
23367
23368
23369# Check whether --enable-debug was given.
23370if test "${enable_debug+set}" = set; then :
23371  enableval=$enable_debug; DEBUGGING=$enableval
23372else
23373  DEBUGGING=no
23374fi
23375
23376# Check whether --enable-use-sigio-by-default was given.
23377if test "${enable_use_sigio_by_default+set}" = set; then :
23378  enableval=$enable_use_sigio_by_default; USE_SIGIO_BY_DEFAULT=$enableval
23379fi
23380
23381
23382# Check whether --with-int10 was given.
23383if test "${with_int10+set}" = set; then :
23384  withval=$with_int10; INT10="$withval"
23385else
23386  INT10="$DEFAULT_INT10"
23387fi
23388
23389
23390# Check whether --with-vendor-name was given.
23391if test "${with_vendor_name+set}" = set; then :
23392  withval=$with_vendor_name;  VENDOR_NAME="$withval"
23393fi
23394
23395
23396# Check whether --with-vendor-name-short was given.
23397if test "${with_vendor_name_short+set}" = set; then :
23398  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
23399fi
23400
23401
23402# Check whether --with-vendor-web was given.
23403if test "${with_vendor_web+set}" = set; then :
23404  withval=$with_vendor_web;  VENDOR_WEB="$withval"
23405fi
23406
23407
23408# Check whether --with-module-dir was given.
23409if test "${with_module_dir+set}" = set; then :
23410  withval=$with_module_dir;  moduledir="$withval"
23411else
23412   moduledir="${libdir}/xorg/modules"
23413fi
23414
23415
23416# Check whether --with-log-dir was given.
23417if test "${with_log_dir+set}" = set; then :
23418  withval=$with_log_dir;  logdir="$withval"
23419else
23420   logdir="$localstatedir/log"
23421fi
23422
23423
23424# Check whether --with-builder-addr was given.
23425if test "${with_builder_addr+set}" = set; then :
23426  withval=$with_builder_addr;  BUILDERADDR="$withval"
23427else
23428   BUILDERADDR="xorg@lists.freedesktop.org"
23429fi
23430
23431
23432# Check whether --with-os-name was given.
23433if test "${with_os_name+set}" = set; then :
23434  withval=$with_os_name;  OSNAME="$withval"
23435else
23436   OSNAME=`uname -srm`
23437fi
23438
23439
23440# Check whether --with-os-vendor was given.
23441if test "${with_os_vendor+set}" = set; then :
23442  withval=$with_os_vendor;  OSVENDOR="$withval"
23443else
23444   OSVENDOR=""
23445fi
23446
23447
23448# Check whether --with-builderstring was given.
23449if test "${with_builderstring+set}" = set; then :
23450  withval=$with_builderstring;  BUILDERSTRING="$withval"
23451
23452fi
23453
23454# Check whether --enable-listen-tcp was given.
23455if test "${enable_listen_tcp+set}" = set; then :
23456  enableval=$enable_listen_tcp; LISTEN_TCP=$enableval
23457else
23458  LISTEN_TCP=no
23459fi
23460
23461# Check whether --enable-listen-unix was given.
23462if test "${enable_listen_unix+set}" = set; then :
23463  enableval=$enable_listen_unix; LISTEN_UNIX=$enableval
23464else
23465  LISTEN_UNIX=yes
23466fi
23467
23468
23469# Check whether --enable-listen-local was given.
23470if test "${enable_listen_local+set}" = set; then :
23471  enableval=$enable_listen_local; LISTEN_LOCAL=$enableval
23472else
23473  LISTEN_LOCAL=yes
23474fi
23475
23476
23477
23478
23479
23480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
23481$as_echo_n "checking for root directory for font files... " >&6; }
23482
23483# Check whether --with-fontrootdir was given.
23484if test "${with_fontrootdir+set}" = set; then :
23485  withval=$with_fontrootdir; FONTROOTDIR="$withval"
23486fi
23487
23488	# if --with-fontrootdir not specified...
23489	if test "x${FONTROOTDIR}" = "x"; then
23490		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
23491	fi
23492	# ...and if pkg-config didn't find fontdir in fontutil.pc...
23493	if test "x${FONTROOTDIR}" = "x"; then
23494		FONTROOTDIR="${datadir}/fonts/X11"
23495	fi
23496
23497	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
23498$as_echo "${FONTROOTDIR}" >&6; }
23499
23500
23501
23502
23503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
23504$as_echo_n "checking for directory for misc files... " >&6; }
23505
23506# Check whether --with-fontmiscdir was given.
23507if test "${with_fontmiscdir+set}" = set; then :
23508  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
23509else
23510  FONTMISCDIR='${FONTROOTDIR}/misc'
23511fi
23512
23513
23514	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
23515$as_echo "${FONTMISCDIR}" >&6; }
23516
23517
23518
23519
23520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
23521$as_echo_n "checking for directory for OTF files... " >&6; }
23522
23523# Check whether --with-fontotfdir was given.
23524if test "${with_fontotfdir+set}" = set; then :
23525  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
23526else
23527  FONTOTFDIR='${FONTROOTDIR}/OTF'
23528fi
23529
23530
23531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
23532$as_echo "${FONTOTFDIR}" >&6; }
23533
23534
23535
23536
23537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
23538$as_echo_n "checking for directory for TTF files... " >&6; }
23539
23540# Check whether --with-fontttfdir was given.
23541if test "${with_fontttfdir+set}" = set; then :
23542  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
23543else
23544  FONTTTFDIR='${FONTROOTDIR}/TTF'
23545fi
23546
23547
23548	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
23549$as_echo "${FONTTTFDIR}" >&6; }
23550
23551
23552
23553
23554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
23555$as_echo_n "checking for directory for Type1 files... " >&6; }
23556
23557# Check whether --with-fonttype1dir was given.
23558if test "${with_fonttype1dir+set}" = set; then :
23559  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
23560else
23561  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
23562fi
23563
23564
23565	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
23566$as_echo "${FONTTYPE1DIR}" >&6; }
23567
23568
23569
23570
23571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
23572$as_echo_n "checking for directory for 75dpi files... " >&6; }
23573
23574# Check whether --with-font75dpidir was given.
23575if test "${with_font75dpidir+set}" = set; then :
23576  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
23577else
23578  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
23579fi
23580
23581
23582	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
23583$as_echo "${FONT75DPIDIR}" >&6; }
23584
23585
23586
23587
23588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
23589$as_echo_n "checking for directory for 100dpi files... " >&6; }
23590
23591# Check whether --with-font100dpidir was given.
23592if test "${with_font100dpidir+set}" = set; then :
23593  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
23594else
23595  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
23596fi
23597
23598
23599	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
23600$as_echo "${FONT100DPIDIR}" >&6; }
23601
23602
23603DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
23604case $host_os in
23605    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
23606esac
23607
23608
23609# Check whether --with-default-font-path was given.
23610if test "${with_default_font_path+set}" = set; then :
23611  withval=$with_default_font_path;  FONTPATH="$withval"
23612else
23613   FONTPATH="${DEFAULT_FONT_PATH}"
23614fi
23615
23616
23617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
23618$as_echo_n "checking for default font path... " >&6; }
23619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
23620$as_echo "$FONTPATH" >&6; }
23621
23622
23623# Check whether --with-xkb-path was given.
23624if test "${with_xkb_path+set}" = set; then :
23625  withval=$with_xkb_path;  XKBPATH="$withval"
23626else
23627   XKBPATH="${datadir}/X11/xkb"
23628fi
23629
23630
23631# Check whether --with-xkb-output was given.
23632if test "${with_xkb_output+set}" = set; then :
23633  withval=$with_xkb_output;  XKBOUTPUT="$withval"
23634else
23635   XKBOUTPUT="compiled"
23636fi
23637
23638
23639# Check whether --with-default-xkb-rules was given.
23640if test "${with_default_xkb_rules+set}" = set; then :
23641  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
23642else
23643   XKB_DFLT_RULES=""
23644fi
23645
23646
23647# Check whether --with-default-xkb-model was given.
23648if test "${with_default_xkb_model+set}" = set; then :
23649  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
23650else
23651   XKB_DFLT_MODEL="pc105"
23652fi
23653
23654
23655# Check whether --with-default-xkb-layout was given.
23656if test "${with_default_xkb_layout+set}" = set; then :
23657  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
23658else
23659   XKB_DFLT_LAYOUT="us"
23660fi
23661
23662
23663# Check whether --with-default-xkb-variant was given.
23664if test "${with_default_xkb_variant+set}" = set; then :
23665  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
23666else
23667   XKB_DFLT_VARIANT=""
23668fi
23669
23670
23671# Check whether --with-default-xkb-options was given.
23672if test "${with_default_xkb_options+set}" = set; then :
23673  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
23674else
23675   XKB_DFLT_OPTIONS=""
23676fi
23677
23678
23679# Check whether --with-serverconfig-path was given.
23680if test "${with_serverconfig_path+set}" = set; then :
23681  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
23682else
23683   SERVERCONFIG="${libdir}/xorg"
23684fi
23685
23686
23687# Check whether --with-apple-applications-dir was given.
23688if test "${with_apple_applications_dir+set}" = set; then :
23689  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
23690else
23691   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
23692fi
23693
23694
23695
23696# Check whether --with-apple-application-name was given.
23697if test "${with_apple_application_name+set}" = set; then :
23698  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
23699else
23700   APPLE_APPLICATION_NAME="X11"
23701fi
23702
23703
23704
23705# Check whether --with-bundle-id-prefix was given.
23706if test "${with_bundle_id_prefix+set}" = set; then :
23707  withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
23708fi
23709
23710
23711
23712cat >>confdefs.h <<_ACEOF
23713#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX"
23714_ACEOF
23715
23716
23717
23718# Check whether --with-bundle-version was given.
23719if test "${with_bundle_version+set}" = set; then :
23720  withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
23721else
23722   BUNDLE_VERSION="1.18.4"
23723fi
23724
23725
23726
23727# Check whether --with-bundle-version-string was given.
23728if test "${with_bundle_version_string+set}" = set; then :
23729  withval=$with_bundle_version_string;  BUNDLE_VERSION_STRING="${withval}"
23730else
23731   BUNDLE_VERSION_STRING="${PACKAGE_VERSION}"
23732fi
23733
23734
23735# Check whether --enable-sparkle was given.
23736if test "${enable_sparkle+set}" = set; then :
23737  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
23738else
23739   XQUARTZ_SPARKLE="no"
23740fi
23741
23742
23743
23744# Check whether --with-sparkle-feed-url was given.
23745if test "${with_sparkle_feed_url+set}" = set; then :
23746  withval=$with_sparkle_feed_url;  XQUARTZ_SPARKLE_FEED_URL="${withval}"
23747else
23748   XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml"
23749fi
23750
23751
23752# Check whether --enable-visibility was given.
23753if test "${enable_visibility+set}" = set; then :
23754  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
23755else
23756  SYMBOL_VISIBILITY=auto
23757fi
23758
23759
23760# Check whether --enable-aiglx was given.
23761if test "${enable_aiglx+set}" = set; then :
23762  enableval=$enable_aiglx; AIGLX=$enableval
23763else
23764  AIGLX=yes
23765fi
23766
23767
23768
23769# Check whether --with-khronos-spec-dir was given.
23770if test "${with_khronos_spec_dir+set}" = set; then :
23771  withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
23772else
23773  KHRONOS_SPEC_DIR=auto
23774fi
23775
23776
23777# Check whether --enable-composite was given.
23778if test "${enable_composite+set}" = set; then :
23779  enableval=$enable_composite; COMPOSITE=$enableval
23780else
23781  COMPOSITE=yes
23782fi
23783
23784# Check whether --enable-mitshm was given.
23785if test "${enable_mitshm+set}" = set; then :
23786  enableval=$enable_mitshm; MITSHM=$enableval
23787else
23788  MITSHM=auto
23789fi
23790
23791# Check whether --enable-xres was given.
23792if test "${enable_xres+set}" = set; then :
23793  enableval=$enable_xres; RES=$enableval
23794else
23795  RES=yes
23796fi
23797
23798# Check whether --enable-record was given.
23799if test "${enable_record+set}" = set; then :
23800  enableval=$enable_record; RECORD=$enableval
23801else
23802  RECORD=yes
23803fi
23804
23805# Check whether --enable-xv was given.
23806if test "${enable_xv+set}" = set; then :
23807  enableval=$enable_xv; XV=$enableval
23808else
23809  XV=yes
23810fi
23811
23812# Check whether --enable-xvmc was given.
23813if test "${enable_xvmc+set}" = set; then :
23814  enableval=$enable_xvmc; XVMC=$enableval
23815else
23816  XVMC=yes
23817fi
23818
23819# Check whether --enable-dga was given.
23820if test "${enable_dga+set}" = set; then :
23821  enableval=$enable_dga; DGA=$enableval
23822else
23823  DGA=auto
23824fi
23825
23826# Check whether --enable-screensaver was given.
23827if test "${enable_screensaver+set}" = set; then :
23828  enableval=$enable_screensaver; SCREENSAVER=$enableval
23829else
23830  SCREENSAVER=yes
23831fi
23832
23833# Check whether --enable-xdmcp was given.
23834if test "${enable_xdmcp+set}" = set; then :
23835  enableval=$enable_xdmcp; XDMCP=$enableval
23836else
23837  XDMCP=auto
23838fi
23839
23840# Check whether --enable-xdm-auth-1 was given.
23841if test "${enable_xdm_auth_1+set}" = set; then :
23842  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
23843else
23844  XDMAUTH=auto
23845fi
23846
23847# Check whether --enable-glx was given.
23848if test "${enable_glx+set}" = set; then :
23849  enableval=$enable_glx; GLX=$enableval
23850else
23851  GLX=yes
23852fi
23853
23854# Check whether --enable-dri was given.
23855if test "${enable_dri+set}" = set; then :
23856  enableval=$enable_dri; DRI=$enableval
23857fi
23858
23859# Check whether --enable-dri2 was given.
23860if test "${enable_dri2+set}" = set; then :
23861  enableval=$enable_dri2; DRI2=$enableval
23862else
23863  DRI2=auto
23864fi
23865
23866# Check whether --enable-dri3 was given.
23867if test "${enable_dri3+set}" = set; then :
23868  enableval=$enable_dri3; DRI3=$enableval
23869else
23870  DRI3=auto
23871fi
23872
23873# Check whether --enable-present was given.
23874if test "${enable_present+set}" = set; then :
23875  enableval=$enable_present; PRESENT=$enableval
23876else
23877  PRESENT=yes
23878fi
23879
23880# Check whether --enable-xinerama was given.
23881if test "${enable_xinerama+set}" = set; then :
23882  enableval=$enable_xinerama; XINERAMA=$enableval
23883else
23884  XINERAMA=yes
23885fi
23886
23887# Check whether --enable-xf86vidmode was given.
23888if test "${enable_xf86vidmode+set}" = set; then :
23889  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
23890else
23891  XF86VIDMODE=auto
23892fi
23893
23894# Check whether --enable-xace was given.
23895if test "${enable_xace+set}" = set; then :
23896  enableval=$enable_xace; XACE=$enableval
23897else
23898  XACE=yes
23899fi
23900
23901# Check whether --enable-xselinux was given.
23902if test "${enable_xselinux+set}" = set; then :
23903  enableval=$enable_xselinux; XSELINUX=$enableval
23904else
23905  XSELINUX=no
23906fi
23907
23908# Check whether --enable-xcsecurity was given.
23909if test "${enable_xcsecurity+set}" = set; then :
23910  enableval=$enable_xcsecurity; XCSECURITY=$enableval
23911else
23912  XCSECURITY=no
23913fi
23914
23915# Check whether --enable-tslib was given.
23916if test "${enable_tslib+set}" = set; then :
23917  enableval=$enable_tslib; TSLIB=$enableval
23918else
23919  TSLIB=no
23920fi
23921
23922# Check whether --enable-dbe was given.
23923if test "${enable_dbe+set}" = set; then :
23924  enableval=$enable_dbe; DBE=$enableval
23925else
23926  DBE=yes
23927fi
23928
23929# Check whether --enable-xf86bigfont was given.
23930if test "${enable_xf86bigfont+set}" = set; then :
23931  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
23932else
23933  XF86BIGFONT=no
23934fi
23935
23936# Check whether --enable-dpms was given.
23937if test "${enable_dpms+set}" = set; then :
23938  enableval=$enable_dpms; DPMSExtension=$enableval
23939else
23940  DPMSExtension=yes
23941fi
23942
23943# Check whether --enable-config-udev was given.
23944if test "${enable_config_udev+set}" = set; then :
23945  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
23946else
23947  CONFIG_UDEV=auto
23948fi
23949
23950# Check whether --enable-config-udev-kms was given.
23951if test "${enable_config_udev_kms+set}" = set; then :
23952  enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval
23953else
23954  CONFIG_UDEV_KMS=auto
23955fi
23956
23957# Check whether --enable-config-hal was given.
23958if test "${enable_config_hal+set}" = set; then :
23959  enableval=$enable_config_hal; CONFIG_HAL=$enableval
23960else
23961  CONFIG_HAL=auto
23962fi
23963
23964# Check whether --enable-config-wscons was given.
23965if test "${enable_config_wscons+set}" = set; then :
23966  enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval
23967else
23968  CONFIG_WSCONS=auto
23969fi
23970
23971# Check whether --enable-xfree86-utils was given.
23972if test "${enable_xfree86_utils+set}" = set; then :
23973  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
23974else
23975  XF86UTILS=yes
23976fi
23977
23978# Check whether --enable-vgahw was given.
23979if test "${enable_vgahw+set}" = set; then :
23980  enableval=$enable_vgahw; VGAHW=$enableval
23981else
23982  VGAHW=yes
23983fi
23984
23985# Check whether --enable-vbe was given.
23986if test "${enable_vbe+set}" = set; then :
23987  enableval=$enable_vbe; VBE=$enableval
23988else
23989  VBE=yes
23990fi
23991
23992# Check whether --enable-int10-module was given.
23993if test "${enable_int10_module+set}" = set; then :
23994  enableval=$enable_int10_module; INT10MODULE=$enableval
23995else
23996  INT10MODULE=yes
23997fi
23998
23999# Check whether --enable-windowswm was given.
24000if test "${enable_windowswm+set}" = set; then :
24001  enableval=$enable_windowswm; WINDOWSWM=$enableval
24002else
24003  WINDOWSWM=no
24004fi
24005
24006# Check whether --enable-libdrm was given.
24007if test "${enable_libdrm+set}" = set; then :
24008  enableval=$enable_libdrm; DRM=$enableval
24009else
24010  DRM=yes
24011fi
24012
24013# Check whether --enable-clientids was given.
24014if test "${enable_clientids+set}" = set; then :
24015  enableval=$enable_clientids; CLIENTIDS=$enableval
24016else
24017  CLIENTIDS=yes
24018fi
24019
24020# Check whether --enable-pciaccess was given.
24021if test "${enable_pciaccess+set}" = set; then :
24022  enableval=$enable_pciaccess; PCI=$enableval
24023else
24024  PCI=yes
24025fi
24026
24027# Check whether --enable-linux_acpi was given.
24028if test "${enable_linux_acpi+set}" = set; then :
24029  enableval=$enable_linux_acpi; enable_linux_acpi=$enableval
24030else
24031  enable_linux_acpi=yes
24032fi
24033
24034# Check whether --enable-linux_apm was given.
24035if test "${enable_linux_apm+set}" = set; then :
24036  enableval=$enable_linux_apm; enable_linux_apm=$enableval
24037else
24038  enable_linux_apm=yes
24039fi
24040
24041# Check whether --enable-systemd-logind was given.
24042if test "${enable_systemd_logind+set}" = set; then :
24043  enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval
24044else
24045  SYSTEMD_LOGIND=auto
24046fi
24047
24048# Check whether --enable-suid-wrapper was given.
24049if test "${enable_suid_wrapper+set}" = set; then :
24050  enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval
24051else
24052  SUID_WRAPPER=no
24053fi
24054
24055
24056# Check whether --enable-xorg was given.
24057if test "${enable_xorg+set}" = set; then :
24058  enableval=$enable_xorg; XORG=$enableval
24059else
24060  XORG=auto
24061fi
24062
24063# Check whether --enable-dmx was given.
24064if test "${enable_dmx+set}" = set; then :
24065  enableval=$enable_dmx; DMX=$enableval
24066else
24067  DMX=no
24068fi
24069
24070# Check whether --enable-xvfb was given.
24071if test "${enable_xvfb+set}" = set; then :
24072  enableval=$enable_xvfb; XVFB=$enableval
24073else
24074  XVFB=yes
24075fi
24076
24077# Check whether --enable-xnest was given.
24078if test "${enable_xnest+set}" = set; then :
24079  enableval=$enable_xnest; XNEST=$enableval
24080else
24081  XNEST=auto
24082fi
24083
24084# Check whether --enable-xquartz was given.
24085if test "${enable_xquartz+set}" = set; then :
24086  enableval=$enable_xquartz; XQUARTZ=$enableval
24087else
24088  XQUARTZ=auto
24089fi
24090
24091# Check whether --enable-xwayland was given.
24092if test "${enable_xwayland+set}" = set; then :
24093  enableval=$enable_xwayland; XWAYLAND=$enableval
24094else
24095  XWAYLAND=auto
24096fi
24097
24098# Check whether --enable-standalone-xpbproxy was given.
24099if test "${enable_standalone_xpbproxy+set}" = set; then :
24100  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
24101else
24102  STANDALONE_XPBPROXY=no
24103fi
24104
24105# Check whether --enable-xwin was given.
24106if test "${enable_xwin+set}" = set; then :
24107  enableval=$enable_xwin; XWIN=$enableval
24108else
24109  XWIN=auto
24110fi
24111
24112# Check whether --enable-glamor was given.
24113if test "${enable_glamor+set}" = set; then :
24114  enableval=$enable_glamor; GLAMOR=$enableval
24115else
24116  GLAMOR=no
24117fi
24118
24119# Check whether --enable-kdrive was given.
24120if test "${enable_kdrive+set}" = set; then :
24121  enableval=$enable_kdrive; KDRIVE=$enableval
24122else
24123  KDRIVE=no
24124fi
24125
24126# Check whether --enable-xephyr was given.
24127if test "${enable_xephyr+set}" = set; then :
24128  enableval=$enable_xephyr; XEPHYR=$enableval
24129else
24130  XEPHYR=auto
24131fi
24132
24133# Check whether --enable-xfake was given.
24134if test "${enable_xfake+set}" = set; then :
24135  enableval=$enable_xfake; XFAKE=$enableval
24136else
24137  XFAKE=auto
24138fi
24139
24140# Check whether --enable-xfbdev was given.
24141if test "${enable_xfbdev+set}" = set; then :
24142  enableval=$enable_xfbdev; XFBDEV=$enableval
24143else
24144  XFBDEV=auto
24145fi
24146
24147# Check whether --enable-kdrive-kbd was given.
24148if test "${enable_kdrive_kbd+set}" = set; then :
24149  enableval=$enable_kdrive_kbd; KDRIVE_KBD=$enableval
24150else
24151  KDRIVE_KBD=auto
24152fi
24153
24154# Check whether --enable-kdrive-mouse was given.
24155if test "${enable_kdrive_mouse+set}" = set; then :
24156  enableval=$enable_kdrive_mouse; KDRIVE_MOUSE=$enableval
24157else
24158  KDRIVE_MOUSE=auto
24159fi
24160
24161# Check whether --enable-kdrive-evdev was given.
24162if test "${enable_kdrive_evdev+set}" = set; then :
24163  enableval=$enable_kdrive_evdev; KDRIVE_EVDEV=$enableval
24164else
24165  KDRIVE_EVDEV=auto
24166fi
24167
24168# Check whether --enable-libunwind was given.
24169if test "${enable_libunwind+set}" = set; then :
24170  enableval=$enable_libunwind; LIBUNWIND="$enableval"
24171else
24172  LIBUNWIND="auto"
24173fi
24174
24175# Check whether --enable-xshmfence was given.
24176if test "${enable_xshmfence+set}" = set; then :
24177  enableval=$enable_xshmfence; XSHMFENCE="$enableval"
24178else
24179  XSHMFENCE="auto"
24180fi
24181
24182
24183
24184# Check whether --enable-install-setuid was given.
24185if test "${enable_install_setuid+set}" = set; then :
24186  enableval=$enable_install_setuid; SETUID=$enableval
24187else
24188  SETUID=auto
24189fi
24190
24191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
24192$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; }
24193if test "x$SETUID" = "xauto" ; then
24194	case $host_os in
24195	    cygwin*)		SETUID="no"  ;;
24196	    mingw*)		SETUID="no"  ;;
24197	    darwin*)		SETUID="no"  ;;
24198	    *)
24199	   	case $host_cpu in
24200		    sparc)	SETUID="no"  ;;
24201		    *)		SETUID="yes" ;;
24202		esac
24203	esac
24204	if test "x$SETUID" = xyes; then
24205		touch testfile
24206		chown root testfile > /dev/null 2>&1 || SETUID="no"
24207		rm -f testfile
24208	fi
24209fi
24210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
24211$as_echo "$SETUID" >&6; }
24212 if test "x$SETUID" = "xyes"; then
24213  INSTALL_SETUID_TRUE=
24214  INSTALL_SETUID_FALSE='#'
24215else
24216  INSTALL_SETUID_TRUE='#'
24217  INSTALL_SETUID_FALSE=
24218fi
24219
24220
24221
24222
24223# Transport selection macro from xtrans.m4
24224
24225
24226 case $host_os in
24227	mingw*)	unixdef="no"   ;;
24228	*)	unixdef="yes"  ;;
24229 esac
24230 # Check whether --enable-unix-transport was given.
24231if test "${enable_unix_transport+set}" = set; then :
24232  enableval=$enable_unix_transport; UNIXCONN=$enableval
24233else
24234  UNIXCONN=$unixdef
24235fi
24236
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
24238$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
24239 if test "$UNIXCONN" = "yes"; then
24240
24241$as_echo "#define UNIXCONN 1" >>confdefs.h
24242
24243 fi
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
24245$as_echo "$UNIXCONN" >&6; }
24246 # Check whether --enable-tcp-transport was given.
24247if test "${enable_tcp_transport+set}" = set; then :
24248  enableval=$enable_tcp_transport; TCPCONN=$enableval
24249else
24250  TCPCONN=yes
24251fi
24252
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
24254$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
24256$as_echo "$TCPCONN" >&6; }
24257 if test "$TCPCONN" = "yes"; then
24258
24259$as_echo "#define TCPCONN 1" >>confdefs.h
24260
24261
24262 # SVR4 hides these in libraries other than libc
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24264$as_echo_n "checking for library containing socket... " >&6; }
24265if ${ac_cv_search_socket+:} false; then :
24266  $as_echo_n "(cached) " >&6
24267else
24268  ac_func_search_save_LIBS=$LIBS
24269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24270/* end confdefs.h.  */
24271
24272/* Override any GCC internal prototype to avoid an error.
24273   Use char because int might match the return type of a GCC
24274   builtin and then its argument prototype would still apply.  */
24275#ifdef __cplusplus
24276extern "C"
24277#endif
24278char socket ();
24279int
24280main ()
24281{
24282return socket ();
24283  ;
24284  return 0;
24285}
24286_ACEOF
24287for ac_lib in '' socket; do
24288  if test -z "$ac_lib"; then
24289    ac_res="none required"
24290  else
24291    ac_res=-l$ac_lib
24292    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24293  fi
24294  if ac_fn_c_try_link "$LINENO"; then :
24295  ac_cv_search_socket=$ac_res
24296fi
24297rm -f core conftest.err conftest.$ac_objext \
24298    conftest$ac_exeext
24299  if ${ac_cv_search_socket+:} false; then :
24300  break
24301fi
24302done
24303if ${ac_cv_search_socket+:} false; then :
24304
24305else
24306  ac_cv_search_socket=no
24307fi
24308rm conftest.$ac_ext
24309LIBS=$ac_func_search_save_LIBS
24310fi
24311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
24312$as_echo "$ac_cv_search_socket" >&6; }
24313ac_res=$ac_cv_search_socket
24314if test "$ac_res" != no; then :
24315  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24316
24317fi
24318
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24320$as_echo_n "checking for library containing gethostbyname... " >&6; }
24321if ${ac_cv_search_gethostbyname+:} false; then :
24322  $as_echo_n "(cached) " >&6
24323else
24324  ac_func_search_save_LIBS=$LIBS
24325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24326/* end confdefs.h.  */
24327
24328/* Override any GCC internal prototype to avoid an error.
24329   Use char because int might match the return type of a GCC
24330   builtin and then its argument prototype would still apply.  */
24331#ifdef __cplusplus
24332extern "C"
24333#endif
24334char gethostbyname ();
24335int
24336main ()
24337{
24338return gethostbyname ();
24339  ;
24340  return 0;
24341}
24342_ACEOF
24343for ac_lib in '' nsl; do
24344  if test -z "$ac_lib"; then
24345    ac_res="none required"
24346  else
24347    ac_res=-l$ac_lib
24348    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24349  fi
24350  if ac_fn_c_try_link "$LINENO"; then :
24351  ac_cv_search_gethostbyname=$ac_res
24352fi
24353rm -f core conftest.err conftest.$ac_objext \
24354    conftest$ac_exeext
24355  if ${ac_cv_search_gethostbyname+:} false; then :
24356  break
24357fi
24358done
24359if ${ac_cv_search_gethostbyname+:} false; then :
24360
24361else
24362  ac_cv_search_gethostbyname=no
24363fi
24364rm conftest.$ac_ext
24365LIBS=$ac_func_search_save_LIBS
24366fi
24367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24368$as_echo "$ac_cv_search_gethostbyname" >&6; }
24369ac_res=$ac_cv_search_gethostbyname
24370if test "$ac_res" != no; then :
24371  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24372
24373fi
24374
24375 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
24376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
24377$as_echo_n "checking for main in -lws2_32... " >&6; }
24378if ${ac_cv_lib_ws2_32_main+:} false; then :
24379  $as_echo_n "(cached) " >&6
24380else
24381  ac_check_lib_save_LIBS=$LIBS
24382LIBS="-lws2_32  $LIBS"
24383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24384/* end confdefs.h.  */
24385
24386
24387int
24388main ()
24389{
24390return main ();
24391  ;
24392  return 0;
24393}
24394_ACEOF
24395if ac_fn_c_try_link "$LINENO"; then :
24396  ac_cv_lib_ws2_32_main=yes
24397else
24398  ac_cv_lib_ws2_32_main=no
24399fi
24400rm -f core conftest.err conftest.$ac_objext \
24401    conftest$ac_exeext conftest.$ac_ext
24402LIBS=$ac_check_lib_save_LIBS
24403fi
24404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
24405$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
24406if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
24407  cat >>confdefs.h <<_ACEOF
24408#define HAVE_LIBWS2_32 1
24409_ACEOF
24410
24411  LIBS="-lws2_32 $LIBS"
24412
24413fi
24414
24415 fi
24416
24417 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
24418 # Check whether --enable-ipv6 was given.
24419if test "${enable_ipv6+set}" = set; then :
24420  enableval=$enable_ipv6; IPV6CONN=$enableval
24421else
24422  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
24423if test "x$ac_cv_func_getaddrinfo" = xyes; then :
24424  IPV6CONN=yes
24425else
24426  IPV6CONN=no
24427fi
24428
24429fi
24430
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
24432$as_echo_n "checking if IPv6 support should be built... " >&6; }
24433 if test "$IPV6CONN" = "yes"; then
24434
24435$as_echo "#define IPv6 1" >>confdefs.h
24436
24437 fi
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
24439$as_echo "$IPV6CONN" >&6; }
24440
24441 # 4.3BSD-Reno added a new member to struct sockaddr_in
24442 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
24443#include <sys/types.h>
24444#include <sys/socket.h>
24445#include <netinet/in.h>
24446
24447"
24448if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
24449
24450$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
24451
24452fi
24453
24454
24455 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
24456 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24457$ac_includes_default
24458#include <sys/socket.h>
24459"
24460if test "x$ac_cv_type_socklen_t" = xyes; then :
24461
24462cat >>confdefs.h <<_ACEOF
24463#define HAVE_SOCKLEN_T 1
24464_ACEOF
24465
24466
24467fi
24468
24469
24470 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
24471 # _XOPEN_SOURCE to get it (such as on Solaris)
24472 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24473$ac_includes_default
24474#include <sys/socket.h>
24475
24476"
24477if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24478
24479fi
24480
24481 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
24482 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24483     unset ac_cv_member_struct_msghdr_msg_control
24484     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
24485$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
24486     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24487#define _XOPEN_SOURCE 600
24488$ac_includes_default
24489#include <sys/socket.h>
24490
24491"
24492if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24493
24494$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
24495
24496
24497fi
24498
24499 fi
24500 # If that didn't work, fall back to XPG5/UNIX98 with C89
24501 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24502     unset ac_cv_member_struct_msghdr_msg_control
24503     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
24504$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
24505     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24506#define _XOPEN_SOURCE 500
24507$ac_includes_default
24508#include <sys/socket.h>
24509
24510"
24511if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24512
24513$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
24514
24515
24516fi
24517
24518 fi
24519
24520
24521
24522 fi
24523 case $host_os in
24524	solaris*|sco*|sysv4*)	localdef="yes" ;;
24525	*)			localdef="no"  ;;
24526 esac
24527 # Check whether --enable-local-transport was given.
24528if test "${enable_local_transport+set}" = set; then :
24529  enableval=$enable_local_transport; LOCALCONN=$enableval
24530else
24531  LOCALCONN=$localdef
24532fi
24533
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
24535$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
24537$as_echo "$LOCALCONN" >&6; }
24538 if test "$LOCALCONN" = "yes"; then
24539
24540$as_echo "#define LOCALCONN 1" >>confdefs.h
24541
24542 fi
24543
24544
24545
24546# Secure RPC detection macro from xtrans.m4
24547
24548 # Check whether --enable-secure-rpc was given.
24549if test "${enable_secure_rpc+set}" = set; then :
24550  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
24551else
24552  SECURE_RPC="try"
24553fi
24554
24555
24556 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
24557	FOUND_SECURE_RPC="no"
24558	for ac_func in authdes_seccreate authdes_create
24559do :
24560  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24561ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24562if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24563  cat >>confdefs.h <<_ACEOF
24564#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24565_ACEOF
24566 FOUND_SECURE_RPC="yes"
24567fi
24568done
24569
24570	if test "x$FOUND_SECURE_RPC" = "xno" ; then
24571		if test "x$SECURE_RPC" = "xyes" ; then
24572	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
24573		fi
24574		SECURE_RPC="no"
24575	else
24576				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
24577$as_echo_n "checking for library containing getsecretkey... " >&6; }
24578if ${ac_cv_search_getsecretkey+:} false; then :
24579  $as_echo_n "(cached) " >&6
24580else
24581  ac_func_search_save_LIBS=$LIBS
24582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24583/* end confdefs.h.  */
24584
24585/* Override any GCC internal prototype to avoid an error.
24586   Use char because int might match the return type of a GCC
24587   builtin and then its argument prototype would still apply.  */
24588#ifdef __cplusplus
24589extern "C"
24590#endif
24591char getsecretkey ();
24592int
24593main ()
24594{
24595return getsecretkey ();
24596  ;
24597  return 0;
24598}
24599_ACEOF
24600for ac_lib in '' rpcsvc; do
24601  if test -z "$ac_lib"; then
24602    ac_res="none required"
24603  else
24604    ac_res=-l$ac_lib
24605    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24606  fi
24607  if ac_fn_c_try_link "$LINENO"; then :
24608  ac_cv_search_getsecretkey=$ac_res
24609fi
24610rm -f core conftest.err conftest.$ac_objext \
24611    conftest$ac_exeext
24612  if ${ac_cv_search_getsecretkey+:} false; then :
24613  break
24614fi
24615done
24616if ${ac_cv_search_getsecretkey+:} false; then :
24617
24618else
24619  ac_cv_search_getsecretkey=no
24620fi
24621rm conftest.$ac_ext
24622LIBS=$ac_func_search_save_LIBS
24623fi
24624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
24625$as_echo "$ac_cv_search_getsecretkey" >&6; }
24626ac_res=$ac_cv_search_getsecretkey
24627if test "$ac_res" != no; then :
24628  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24629
24630fi
24631
24632		SECURE_RPC="yes"
24633	fi
24634 fi
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
24636$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
24637 if test "x$SECURE_RPC" = "xyes" ; then
24638
24639$as_echo "#define SECURE_RPC 1" >>confdefs.h
24640
24641 fi
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
24643$as_echo "$SECURE_RPC" >&6; }
24644
24645 if test "x$SECURE_RPC" = xyes; then
24646  SECURE_RPC_TRUE=
24647  SECURE_RPC_FALSE='#'
24648else
24649  SECURE_RPC_TRUE='#'
24650  SECURE_RPC_FALSE=
24651fi
24652
24653
24654 if test "x$INT10" = xvm86; then
24655  INT10_VM86_TRUE=
24656  INT10_VM86_FALSE='#'
24657else
24658  INT10_VM86_TRUE='#'
24659  INT10_VM86_FALSE=
24660fi
24661
24662 if test "x$INT10" = xx86emu; then
24663  INT10_X86EMU_TRUE=
24664  INT10_X86EMU_FALSE='#'
24665else
24666  INT10_X86EMU_TRUE='#'
24667  INT10_X86EMU_FALSE=
24668fi
24669
24670 if test "x$INT10" = xstub; then
24671  INT10_STUB_TRUE=
24672  INT10_STUB_FALSE='#'
24673else
24674  INT10_STUB_TRUE='#'
24675  INT10_STUB_FALSE=
24676fi
24677
24678
24679case $host_os in
24680	cygwin* | mingw*)
24681		CONFIG_HAL=no
24682		CONFIG_UDEV=no
24683		CONFIG_UDEV_KMS=no
24684		DGA=no
24685		DRM=no
24686		DRI2=no
24687		DRI3=no
24688		INT10MODULE=no
24689		PCI=no
24690		VGAHW=no
24691		VBE=no
24692		XF86UTILS=no
24693		XF86VIDMODE=no
24694		XSELINUX=no
24695		XV=no
24696		SYMBOL_VISIBILITY=no
24697		;;
24698	darwin*)
24699		PCI=no
24700		INT10MODULE=no
24701		VGAHW=no
24702		VBE=no
24703		DRM=no
24704		DRI2=no
24705		DRI3=no
24706
24707		if test x$XQUARTZ = xauto; then
24708			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
24709$as_echo_n "checking whether to build Xquartz... " >&6; }
24710if ${xorg_cv_Carbon_framework+:} false; then :
24711  $as_echo_n "(cached) " >&6
24712else
24713
24714		 		save_LDFLAGS=$LDFLAGS
24715				LDFLAGS="$LDFLAGS -framework Carbon"
24716				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24717/* end confdefs.h.  */
24718char FSFindFolder(); int main() { FSFindFolder(); return 0;}
24719_ACEOF
24720if ac_fn_c_try_link "$LINENO"; then :
24721  xorg_cv_Carbon_framework=yes
24722else
24723  xorg_cv_Carbon_framework=no
24724fi
24725rm -f core conftest.err conftest.$ac_objext \
24726    conftest$ac_exeext conftest.$ac_ext
24727			        LDFLAGS=$save_LDFLAGS
24728fi
24729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
24730$as_echo "$xorg_cv_Carbon_framework" >&6; }
24731
24732			if test "X$xorg_cv_Carbon_framework" = Xyes; then
24733				XQUARTZ=yes
24734			else
24735				XQUARTZ=no
24736			fi
24737		fi
24738
24739		ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async"
24740if test "x$ac_cv_func_dispatch_async" = xyes; then :
24741
24742$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h
24743
24744fi
24745
24746
24747		if test "x$XQUARTZ" = xyes ; then
24748			XQUARTZ=yes
24749			XVFB=no
24750			XNEST=no
24751			XWAYLAND=no
24752
24753			COMPOSITE=no
24754			DGA=no
24755			DPMSExtension=no
24756			XF86VIDMODE=no
24757		fi
24758		;;
24759	gnu*)
24760		DRM=no
24761		DRI2=no
24762		DRI3=no
24763		;;
24764	*) XQUARTZ=no ;;
24765esac
24766
24767XEXT_INC='-I$(top_srcdir)/Xext'
24768XEXT_LIB='$(top_builddir)/Xext/libXext.la'
24769
24770VIDEOPROTO="videoproto"
24771COMPOSITEPROTO="compositeproto >= 0.4"
24772RECORDPROTO="recordproto >= 1.13.99.1"
24773SCRNSAVERPROTO="scrnsaverproto >= 1.1"
24774RESOURCEPROTO="resourceproto >= 1.2.0"
24775DRIPROTO="xf86driproto >= 2.1.0"
24776DRI2PROTO="dri2proto >= 2.8"
24777DRI3PROTO="dri3proto >= 1.0"
24778XINERAMAPROTO="xineramaproto"
24779BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
24780DGAPROTO="xf86dgaproto >= 2.0.99.1"
24781GLPROTO="glproto >= 1.4.17"
24782DMXPROTO="dmxproto >= 2.2.99.1"
24783VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
24784WINDOWSWMPROTO="windowswmproto"
24785APPLEWMPROTO="applewmproto >= 1.4"
24786LIBXSHMFENCE="xshmfence >= 1.1"
24787
24788XPROTO="xproto >= 7.0.28"
24789RANDRPROTO="randrproto >= 1.5.0"
24790RENDERPROTO="renderproto >= 0.11"
24791XEXTPROTO="xextproto >= 7.2.99.901"
24792INPUTPROTO="inputproto >= 2.3"
24793KBPROTO="kbproto >= 1.0.3"
24794FONTSPROTO="fontsproto >= 2.1.3"
24795FIXESPROTO="fixesproto >= 5.0"
24796DAMAGEPROTO="damageproto >= 1.1"
24797XCMISCPROTO="xcmiscproto >= 1.2.0"
24798BIGREQSPROTO="bigreqsproto >= 1.1.0"
24799XTRANS="xtrans >= 1.3.5"
24800PRESENTPROTO="presentproto >= 1.0"
24801
24802LIBAPPLEWM="applewm >= 1.4"
24803LIBDMX="dmx >= 1.0.99.1"
24804LIBDRI="dri >= 7.8.0"
24805LIBDRM="libdrm >= 2.3.0"
24806LIBEGL="egl"
24807LIBGBM="gbm >= 10.2.0"
24808LIBGL="gl >= 7.1.0"
24809LIBXEXT="xext >= 1.0.99.4"
24810LIBXFONT="xfont >= 1.4.2"
24811LIBXI="xi >= 1.2.99.1"
24812LIBXTST="xtst >= 1.0.99.2"
24813LIBPCIACCESS="pciaccess >= 0.12.901"
24814LIBUDEV="libudev >= 143"
24815LIBSELINUX="libselinux >= 2.0.86"
24816LIBDBUS="dbus-1 >= 1.0"
24817LIBPIXMAN="pixman-1 >= 0.27.2"
24818
24819
24820pkg_failed=no
24821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
24822$as_echo_n "checking for PIXMAN... " >&6; }
24823
24824if test -n "$PIXMAN_CFLAGS"; then
24825    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
24826 elif test -n "$PKG_CONFIG"; then
24827    if test -n "$PKG_CONFIG" && \
24828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24829  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24830  ac_status=$?
24831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832  test $ac_status = 0; }; then
24833  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
24834		      test "x$?" != "x0" && pkg_failed=yes
24835else
24836  pkg_failed=yes
24837fi
24838 else
24839    pkg_failed=untried
24840fi
24841if test -n "$PIXMAN_LIBS"; then
24842    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
24843 elif test -n "$PKG_CONFIG"; then
24844    if test -n "$PKG_CONFIG" && \
24845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24846  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24847  ac_status=$?
24848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849  test $ac_status = 0; }; then
24850  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
24851		      test "x$?" != "x0" && pkg_failed=yes
24852else
24853  pkg_failed=yes
24854fi
24855 else
24856    pkg_failed=untried
24857fi
24858
24859
24860
24861if test $pkg_failed = yes; then
24862   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24863$as_echo "no" >&6; }
24864
24865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24866        _pkg_short_errors_supported=yes
24867else
24868        _pkg_short_errors_supported=no
24869fi
24870        if test $_pkg_short_errors_supported = yes; then
24871	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24872        else
24873	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24874        fi
24875	# Put the nasty error message in config.log where it belongs
24876	echo "$PIXMAN_PKG_ERRORS" >&5
24877
24878	as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
24879
24880$PIXMAN_PKG_ERRORS
24881
24882Consider adjusting the PKG_CONFIG_PATH environment variable if you
24883installed software in a non-standard prefix.
24884
24885Alternatively, you may set the environment variables PIXMAN_CFLAGS
24886and PIXMAN_LIBS to avoid the need to call pkg-config.
24887See the pkg-config man page for more details." "$LINENO" 5
24888elif test $pkg_failed = untried; then
24889     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24890$as_echo "no" >&6; }
24891	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24893as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24894is in your PATH or set the PKG_CONFIG environment variable to the full
24895path to pkg-config.
24896
24897Alternatively, you may set the environment variables PIXMAN_CFLAGS
24898and PIXMAN_LIBS to avoid the need to call pkg-config.
24899See the pkg-config man page for more details.
24900
24901To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24902See \`config.log' for more details" "$LINENO" 5; }
24903else
24904	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
24905	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
24906        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24907$as_echo "yes" >&6; }
24908
24909fi
24910REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
24911
24912SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN"
24913# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
24914
24915
24916REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES"
24917
24918LIBSYSTEMD="libsystemd >= 209"
24919
24920# Check whether --with-systemd-daemon was given.
24921if test "${with_systemd_daemon+set}" = set; then :
24922  withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval
24923else
24924  WITH_SYSTEMD_DAEMON=auto
24925fi
24926
24927if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then
24928
24929pkg_failed=no
24930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
24931$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
24932
24933if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
24934    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
24935 elif test -n "$PKG_CONFIG"; then
24936    if test -n "$PKG_CONFIG" && \
24937    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
24938  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
24939  ac_status=$?
24940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24941  test $ac_status = 0; }; then
24942  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null`
24943		      test "x$?" != "x0" && pkg_failed=yes
24944else
24945  pkg_failed=yes
24946fi
24947 else
24948    pkg_failed=untried
24949fi
24950if test -n "$SYSTEMD_DAEMON_LIBS"; then
24951    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
24952 elif test -n "$PKG_CONFIG"; then
24953    if test -n "$PKG_CONFIG" && \
24954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
24955  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
24956  ac_status=$?
24957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958  test $ac_status = 0; }; then
24959  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null`
24960		      test "x$?" != "x0" && pkg_failed=yes
24961else
24962  pkg_failed=yes
24963fi
24964 else
24965    pkg_failed=untried
24966fi
24967
24968
24969
24970if test $pkg_failed = yes; then
24971   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24972$as_echo "no" >&6; }
24973
24974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24975        _pkg_short_errors_supported=yes
24976else
24977        _pkg_short_errors_supported=no
24978fi
24979        if test $_pkg_short_errors_supported = yes; then
24980	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
24981        else
24982	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
24983        fi
24984	# Put the nasty error message in config.log where it belongs
24985	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
24986
24987
24988pkg_failed=no
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
24990$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
24991
24992if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
24993    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
24994 elif test -n "$PKG_CONFIG"; then
24995    if test -n "$PKG_CONFIG" && \
24996    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
24997  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
24998  ac_status=$?
24999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000  test $ac_status = 0; }; then
25001  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25002		      test "x$?" != "x0" && pkg_failed=yes
25003else
25004  pkg_failed=yes
25005fi
25006 else
25007    pkg_failed=untried
25008fi
25009if test -n "$SYSTEMD_DAEMON_LIBS"; then
25010    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25011 elif test -n "$PKG_CONFIG"; then
25012    if test -n "$PKG_CONFIG" && \
25013    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25014  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25015  ac_status=$?
25016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017  test $ac_status = 0; }; then
25018  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25019		      test "x$?" != "x0" && pkg_failed=yes
25020else
25021  pkg_failed=yes
25022fi
25023 else
25024    pkg_failed=untried
25025fi
25026
25027
25028
25029if test $pkg_failed = yes; then
25030   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25031$as_echo "no" >&6; }
25032
25033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25034        _pkg_short_errors_supported=yes
25035else
25036        _pkg_short_errors_supported=no
25037fi
25038        if test $_pkg_short_errors_supported = yes; then
25039	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25040        else
25041	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25042        fi
25043	# Put the nasty error message in config.log where it belongs
25044	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25045
25046	HAVE_SYSTEMD_DAEMON=no
25047elif test $pkg_failed = untried; then
25048     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25049$as_echo "no" >&6; }
25050	HAVE_SYSTEMD_DAEMON=no
25051else
25052	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25053	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25054        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25055$as_echo "yes" >&6; }
25056	HAVE_SYSTEMD_DAEMON=yes;
25057					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25058fi
25059elif test $pkg_failed = untried; then
25060     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25061$as_echo "no" >&6; }
25062
25063pkg_failed=no
25064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25065$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25066
25067if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25068    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25069 elif test -n "$PKG_CONFIG"; then
25070    if test -n "$PKG_CONFIG" && \
25071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25072  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25073  ac_status=$?
25074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25075  test $ac_status = 0; }; then
25076  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25077		      test "x$?" != "x0" && pkg_failed=yes
25078else
25079  pkg_failed=yes
25080fi
25081 else
25082    pkg_failed=untried
25083fi
25084if test -n "$SYSTEMD_DAEMON_LIBS"; then
25085    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25086 elif test -n "$PKG_CONFIG"; then
25087    if test -n "$PKG_CONFIG" && \
25088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25089  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25090  ac_status=$?
25091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092  test $ac_status = 0; }; then
25093  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25094		      test "x$?" != "x0" && pkg_failed=yes
25095else
25096  pkg_failed=yes
25097fi
25098 else
25099    pkg_failed=untried
25100fi
25101
25102
25103
25104if test $pkg_failed = yes; then
25105   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106$as_echo "no" >&6; }
25107
25108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25109        _pkg_short_errors_supported=yes
25110else
25111        _pkg_short_errors_supported=no
25112fi
25113        if test $_pkg_short_errors_supported = yes; then
25114	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25115        else
25116	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25117        fi
25118	# Put the nasty error message in config.log where it belongs
25119	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25120
25121	HAVE_SYSTEMD_DAEMON=no
25122elif test $pkg_failed = untried; then
25123     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25124$as_echo "no" >&6; }
25125	HAVE_SYSTEMD_DAEMON=no
25126else
25127	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25128	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25129        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25130$as_echo "yes" >&6; }
25131	HAVE_SYSTEMD_DAEMON=yes;
25132					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25133fi
25134else
25135	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25136	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25138$as_echo "yes" >&6; }
25139	HAVE_SYSTEMD_DAEMON=yes;
25140			   LIBSYSTEMD_DAEMON="$LIBSYSTEMD"
25141fi
25142	if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then
25143
25144$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
25145
25146		REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON"
25147	elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then
25148		as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5
25149	fi
25150fi
25151 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then
25152  HAVE_SYSTEMD_DAEMON_TRUE=
25153  HAVE_SYSTEMD_DAEMON_FALSE='#'
25154else
25155  HAVE_SYSTEMD_DAEMON_TRUE='#'
25156  HAVE_SYSTEMD_DAEMON_FALSE=
25157fi
25158
25159
25160if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then
25161	as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5
25162fi
25163
25164
25165pkg_failed=no
25166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
25167$as_echo_n "checking for UDEV... " >&6; }
25168
25169if test -n "$UDEV_CFLAGS"; then
25170    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
25171 elif test -n "$PKG_CONFIG"; then
25172    if test -n "$PKG_CONFIG" && \
25173    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25174  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25175  ac_status=$?
25176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177  test $ac_status = 0; }; then
25178  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
25179		      test "x$?" != "x0" && pkg_failed=yes
25180else
25181  pkg_failed=yes
25182fi
25183 else
25184    pkg_failed=untried
25185fi
25186if test -n "$UDEV_LIBS"; then
25187    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
25188 elif test -n "$PKG_CONFIG"; then
25189    if test -n "$PKG_CONFIG" && \
25190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25191  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25192  ac_status=$?
25193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25194  test $ac_status = 0; }; then
25195  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
25196		      test "x$?" != "x0" && pkg_failed=yes
25197else
25198  pkg_failed=yes
25199fi
25200 else
25201    pkg_failed=untried
25202fi
25203
25204
25205
25206if test $pkg_failed = yes; then
25207   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25208$as_echo "no" >&6; }
25209
25210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25211        _pkg_short_errors_supported=yes
25212else
25213        _pkg_short_errors_supported=no
25214fi
25215        if test $_pkg_short_errors_supported = yes; then
25216	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25217        else
25218	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25219        fi
25220	# Put the nasty error message in config.log where it belongs
25221	echo "$UDEV_PKG_ERRORS" >&5
25222
25223	HAVE_LIBUDEV=no
25224elif test $pkg_failed = untried; then
25225     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25226$as_echo "no" >&6; }
25227	HAVE_LIBUDEV=no
25228else
25229	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
25230	UDEV_LIBS=$pkg_cv_UDEV_LIBS
25231        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25232$as_echo "yes" >&6; }
25233	HAVE_LIBUDEV=yes
25234fi
25235if test "x$CONFIG_UDEV" = xauto; then
25236	CONFIG_UDEV="$HAVE_LIBUDEV"
25237
25238$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
25239
25240fi
25241 if test "x$CONFIG_UDEV" = xyes; then
25242  CONFIG_UDEV_TRUE=
25243  CONFIG_UDEV_FALSE='#'
25244else
25245  CONFIG_UDEV_TRUE='#'
25246  CONFIG_UDEV_FALSE=
25247fi
25248
25249if test "x$CONFIG_UDEV" = xyes; then
25250	CONFIG_HAL=no
25251	if test "x$CONFIG_UDEV_KMS" = xauto; then
25252		CONFIG_UDEV_KMS="$HAVE_LIBUDEV"
25253	fi
25254	if ! test "x$HAVE_LIBUDEV" = xyes; then
25255		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
25256	fi
25257
25258$as_echo "#define CONFIG_UDEV 1" >>confdefs.h
25259
25260	if test "x$CONFIG_UDEV_KMS" = xyes; then
25261
25262$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h
25263
25264	fi
25265	SAVE_LIBS=$LIBS
25266	SAVE_CFLAGS=$CFLAGS
25267	CFLAGS="$CFLAGS $UDEV_CFLAGS"
25268	LIBS=$UDEV_LIBS
25269	for ac_func in udev_monitor_filter_add_match_tag
25270do :
25271  ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag"
25272if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then :
25273  cat >>confdefs.h <<_ACEOF
25274#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1
25275_ACEOF
25276
25277fi
25278done
25279
25280	for ac_func in udev_enumerate_add_match_tag
25281do :
25282  ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag"
25283if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then :
25284  cat >>confdefs.h <<_ACEOF
25285#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1
25286_ACEOF
25287
25288fi
25289done
25290
25291	LIBS=$SAVE_LIBS
25292	CFLAGS=$SAVE_CFLAGS
25293fi
25294 if test "x$CONFIG_UDEV_KMS" = xyes; then
25295  CONFIG_UDEV_KMS_TRUE=
25296  CONFIG_UDEV_KMS_FALSE='#'
25297else
25298  CONFIG_UDEV_KMS_TRUE='#'
25299  CONFIG_UDEV_KMS_FALSE=
25300fi
25301
25302
25303
25304pkg_failed=no
25305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
25306$as_echo_n "checking for DBUS... " >&6; }
25307
25308if test -n "$DBUS_CFLAGS"; then
25309    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
25310 elif test -n "$PKG_CONFIG"; then
25311    if test -n "$PKG_CONFIG" && \
25312    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25313  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25314  ac_status=$?
25315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25316  test $ac_status = 0; }; then
25317  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
25318		      test "x$?" != "x0" && pkg_failed=yes
25319else
25320  pkg_failed=yes
25321fi
25322 else
25323    pkg_failed=untried
25324fi
25325if test -n "$DBUS_LIBS"; then
25326    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
25327 elif test -n "$PKG_CONFIG"; then
25328    if test -n "$PKG_CONFIG" && \
25329    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25330  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25331  ac_status=$?
25332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25333  test $ac_status = 0; }; then
25334  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
25335		      test "x$?" != "x0" && pkg_failed=yes
25336else
25337  pkg_failed=yes
25338fi
25339 else
25340    pkg_failed=untried
25341fi
25342
25343
25344
25345if test $pkg_failed = yes; then
25346   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25347$as_echo "no" >&6; }
25348
25349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25350        _pkg_short_errors_supported=yes
25351else
25352        _pkg_short_errors_supported=no
25353fi
25354        if test $_pkg_short_errors_supported = yes; then
25355	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25356        else
25357	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25358        fi
25359	# Put the nasty error message in config.log where it belongs
25360	echo "$DBUS_PKG_ERRORS" >&5
25361
25362	HAVE_DBUS=no
25363elif test $pkg_failed = untried; then
25364     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25365$as_echo "no" >&6; }
25366	HAVE_DBUS=no
25367else
25368	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
25369	DBUS_LIBS=$pkg_cv_DBUS_LIBS
25370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25371$as_echo "yes" >&6; }
25372	HAVE_DBUS=yes
25373fi
25374if test "x$HAVE_DBUS" = xyes; then
25375
25376$as_echo "#define HAVE_DBUS 1" >>confdefs.h
25377
25378fi
25379 if test "x$HAVE_DBUS" = xyes; then
25380  HAVE_DBUS_TRUE=
25381  HAVE_DBUS_FALSE='#'
25382else
25383  HAVE_DBUS_TRUE='#'
25384  HAVE_DBUS_FALSE=
25385fi
25386
25387
25388
25389pkg_failed=no
25390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
25391$as_echo_n "checking for HAL... " >&6; }
25392
25393if test -n "$HAL_CFLAGS"; then
25394    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
25395 elif test -n "$PKG_CONFIG"; then
25396    if test -n "$PKG_CONFIG" && \
25397    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
25398  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
25399  ac_status=$?
25400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401  test $ac_status = 0; }; then
25402  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
25403		      test "x$?" != "x0" && pkg_failed=yes
25404else
25405  pkg_failed=yes
25406fi
25407 else
25408    pkg_failed=untried
25409fi
25410if test -n "$HAL_LIBS"; then
25411    pkg_cv_HAL_LIBS="$HAL_LIBS"
25412 elif test -n "$PKG_CONFIG"; then
25413    if test -n "$PKG_CONFIG" && \
25414    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
25415  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
25416  ac_status=$?
25417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25418  test $ac_status = 0; }; then
25419  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
25420		      test "x$?" != "x0" && pkg_failed=yes
25421else
25422  pkg_failed=yes
25423fi
25424 else
25425    pkg_failed=untried
25426fi
25427
25428
25429
25430if test $pkg_failed = yes; then
25431   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25432$as_echo "no" >&6; }
25433
25434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25435        _pkg_short_errors_supported=yes
25436else
25437        _pkg_short_errors_supported=no
25438fi
25439        if test $_pkg_short_errors_supported = yes; then
25440	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1`
25441        else
25442	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1`
25443        fi
25444	# Put the nasty error message in config.log where it belongs
25445	echo "$HAL_PKG_ERRORS" >&5
25446
25447	HAVE_HAL=no
25448elif test $pkg_failed = untried; then
25449     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25450$as_echo "no" >&6; }
25451	HAVE_HAL=no
25452else
25453	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
25454	HAL_LIBS=$pkg_cv_HAL_LIBS
25455        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25456$as_echo "yes" >&6; }
25457	HAVE_HAL=yes
25458fi
25459if test "x$CONFIG_HAL" = xauto; then
25460	CONFIG_HAL="$HAVE_HAL"
25461fi
25462if test "x$CONFIG_HAL" = xyes; then
25463	if ! test "x$HAVE_HAL" = xyes; then
25464		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
25465	fi
25466
25467
25468$as_echo "#define CONFIG_HAL 1" >>confdefs.h
25469
25470	NEED_DBUS="yes"
25471fi
25472 if test "x$CONFIG_HAL" = xyes; then
25473  CONFIG_HAL_TRUE=
25474  CONFIG_HAL_FALSE='#'
25475else
25476  CONFIG_HAL_TRUE='#'
25477  CONFIG_HAL_FALSE=
25478fi
25479
25480
25481if test "x$SYSTEMD_LOGIND" = xauto; then
25482        if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then
25483                SYSTEMD_LOGIND=yes
25484        else
25485                SYSTEMD_LOGIND=no
25486        fi
25487fi
25488if test "x$SYSTEMD_LOGIND" = xyes; then
25489        if ! test "x$HAVE_DBUS" = xyes; then
25490                as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5
25491        fi
25492        if ! test "x$CONFIG_UDEV" = xyes ; then
25493                as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5
25494        fi
25495
25496
25497$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h
25498
25499        NEED_DBUS="yes"
25500fi
25501 if test "x$SYSTEMD_LOGIND" = xyes; then
25502  SYSTEMD_LOGIND_TRUE=
25503  SYSTEMD_LOGIND_FALSE='#'
25504else
25505  SYSTEMD_LOGIND_TRUE='#'
25506  SYSTEMD_LOGIND_FALSE=
25507fi
25508
25509
25510if test "x$SUID_WRAPPER" = xyes; then
25511
25512  prefix_NONE=
25513  exec_prefix_NONE=
25514  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25515  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25516  eval ac_define_dir="\"$libexecdir\""
25517  eval ac_define_dir="\"$ac_define_dir\""
25518  SUID_WRAPPER_DIR="$ac_define_dir"
25519
25520
25521cat >>confdefs.h <<_ACEOF
25522#define SUID_WRAPPER_DIR "$ac_define_dir"
25523_ACEOF
25524
25525  test "$prefix_NONE" && prefix=NONE
25526  test "$exec_prefix_NONE" && exec_prefix=NONE
25527
25528        SETUID="no"
25529fi
25530 if test "x$SUID_WRAPPER" = xyes; then
25531  SUID_WRAPPER_TRUE=
25532  SUID_WRAPPER_FALSE='#'
25533else
25534  SUID_WRAPPER_TRUE='#'
25535  SUID_WRAPPER_FALSE=
25536fi
25537
25538
25539if test "x$NEED_DBUS" = xyes; then
25540
25541$as_echo "#define NEED_DBUS 1" >>confdefs.h
25542
25543fi
25544 if test "x$NEED_DBUS" = xyes; then
25545  NEED_DBUS_TRUE=
25546  NEED_DBUS_FALSE='#'
25547else
25548  NEED_DBUS_TRUE='#'
25549  NEED_DBUS_FALSE=
25550fi
25551
25552
25553if test "x$CONFIG_WSCONS" = xauto; then
25554	case $host_os in
25555		*openbsd*)
25556			CONFIG_WSCONS=yes;
25557			;;
25558		*)
25559			CONFIG_WSCONS=no;
25560			;;
25561	esac
25562fi
25563 if test "x$CONFIG_WSCONS" = xyes; then
25564  CONFIG_WSCONS_TRUE=
25565  CONFIG_WSCONS_FALSE='#'
25566else
25567  CONFIG_WSCONS_TRUE='#'
25568  CONFIG_WSCONS_FALSE=
25569fi
25570
25571if test "x$CONFIG_WSCONS" = xyes; then
25572
25573$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h
25574
25575fi
25576
25577if test "x$USE_SIGIO_BY_DEFAULT" = xyes; then
25578	USE_SIGIO_BY_DEFAULT_VALUE=TRUE
25579else
25580	USE_SIGIO_BY_DEFAULT_VALUE=FALSE
25581fi
25582
25583cat >>confdefs.h <<_ACEOF
25584#define USE_SIGIO_BY_DEFAULT $USE_SIGIO_BY_DEFAULT_VALUE
25585_ACEOF
25586
25587
25588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
25589$as_echo_n "checking for glibc...... " >&6; }
25590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25591/* end confdefs.h.  */
25592
25593#include <features.h>
25594#ifndef __GLIBC__
25595#error
25596#endif
25597
25598_ACEOF
25599if ac_fn_c_try_cpp "$LINENO"; then :
25600  glibc=yes
25601else
25602  glibc=no
25603fi
25604rm -f conftest.err conftest.i conftest.$ac_ext
25605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
25606$as_echo "$glibc" >&6; }
25607
25608for ac_func in clock_gettime
25609do :
25610  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
25611if test "x$ac_cv_func_clock_gettime" = xyes; then :
25612  cat >>confdefs.h <<_ACEOF
25613#define HAVE_CLOCK_GETTIME 1
25614_ACEOF
25615 have_clock_gettime=yes
25616else
25617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25618$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25619if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25620  $as_echo_n "(cached) " >&6
25621else
25622  ac_check_lib_save_LIBS=$LIBS
25623LIBS="-lrt  $LIBS"
25624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25625/* end confdefs.h.  */
25626
25627/* Override any GCC internal prototype to avoid an error.
25628   Use char because int might match the return type of a GCC
25629   builtin and then its argument prototype would still apply.  */
25630#ifdef __cplusplus
25631extern "C"
25632#endif
25633char clock_gettime ();
25634int
25635main ()
25636{
25637return clock_gettime ();
25638  ;
25639  return 0;
25640}
25641_ACEOF
25642if ac_fn_c_try_link "$LINENO"; then :
25643  ac_cv_lib_rt_clock_gettime=yes
25644else
25645  ac_cv_lib_rt_clock_gettime=no
25646fi
25647rm -f core conftest.err conftest.$ac_objext \
25648    conftest$ac_exeext conftest.$ac_ext
25649LIBS=$ac_check_lib_save_LIBS
25650fi
25651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25652$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25653if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25654  have_clock_gettime=-lrt
25655else
25656  have_clock_gettime=no
25657fi
25658
25659fi
25660done
25661
25662
25663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
25664$as_echo_n "checking for a useful monotonic clock ...... " >&6; }
25665
25666if ! test "x$have_clock_gettime" = xno; then
25667    if ! test "x$have_clock_gettime" = xyes; then
25668        CLOCK_LIBS="$have_clock_gettime"
25669    else
25670        CLOCK_LIBS=""
25671    fi
25672
25673    LIBS_SAVE="$LIBS"
25674    LIBS="$CLOCK_LIBS"
25675    CPPFLAGS_SAVE="$CPPFLAGS"
25676
25677    if test x"$glibc" = xyes; then
25678        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
25679    fi
25680
25681    if test "$cross_compiling" = yes; then :
25682  MONOTONIC_CLOCK="cross compiling"
25683else
25684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25685/* end confdefs.h.  */
25686
25687#include <time.h>
25688
25689int main(int argc, char *argv[]) {
25690    struct timespec tp;
25691
25692    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
25693        return 0;
25694    else
25695        return 1;
25696}
25697
25698_ACEOF
25699if ac_fn_c_try_run "$LINENO"; then :
25700  MONOTONIC_CLOCK=yes
25701else
25702  MONOTONIC_CLOCK=no
25703fi
25704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25705  conftest.$ac_objext conftest.beam conftest.$ac_ext
25706fi
25707
25708
25709    LIBS="$LIBS_SAVE"
25710    CPPFLAGS="$CPPFLAGS_SAVE"
25711else
25712    MONOTONIC_CLOCK=no
25713fi
25714
25715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
25716$as_echo "$MONOTONIC_CLOCK" >&6; }
25717
25718if test "x$MONOTONIC_CLOCK" = xyes; then
25719
25720$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h
25721
25722    LIBS="$LIBS $CLOCK_LIBS"
25723fi
25724
25725 if test "x$XV" = xyes; then
25726  XV_TRUE=
25727  XV_FALSE='#'
25728else
25729  XV_TRUE='#'
25730  XV_FALSE=
25731fi
25732
25733if test "x$XV" = xyes; then
25734
25735$as_echo "#define XV 1" >>confdefs.h
25736
25737
25738$as_echo "#define XvExtension 1" >>confdefs.h
25739
25740	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
25741	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
25742else
25743	XVMC=no
25744fi
25745
25746 if test "x$XVMC" = xyes; then
25747  XVMC_TRUE=
25748  XVMC_FALSE='#'
25749else
25750  XVMC_TRUE='#'
25751  XVMC_FALSE=
25752fi
25753
25754if test "x$XVMC" = xyes; then
25755
25756$as_echo "#define XvMCExtension 1" >>confdefs.h
25757
25758fi
25759
25760 if test "x$COMPOSITE" = xyes; then
25761  COMPOSITE_TRUE=
25762  COMPOSITE_FALSE='#'
25763else
25764  COMPOSITE_TRUE='#'
25765  COMPOSITE_FALSE=
25766fi
25767
25768if test "x$COMPOSITE" = xyes; then
25769
25770$as_echo "#define COMPOSITE 1" >>confdefs.h
25771
25772	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
25773	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
25774	COMPOSITE_INC='-I$(top_srcdir)/composite'
25775fi
25776
25777if test "x$MITSHM" = xauto; then
25778	MITSHM="$ac_cv_sysv_ipc"
25779fi
25780 if test "x$MITSHM" = xyes; then
25781  MITSHM_TRUE=
25782  MITSHM_FALSE='#'
25783else
25784  MITSHM_TRUE='#'
25785  MITSHM_FALSE=
25786fi
25787
25788if test "x$MITSHM" = xyes; then
25789
25790$as_echo "#define MITSHM 1" >>confdefs.h
25791
25792
25793$as_echo "#define HAS_SHM 1" >>confdefs.h
25794
25795fi
25796
25797 if test "x$RECORD" = xyes; then
25798  RECORD_TRUE=
25799  RECORD_FALSE='#'
25800else
25801  RECORD_TRUE='#'
25802  RECORD_FALSE=
25803fi
25804
25805if test "x$RECORD" = xyes; then
25806
25807$as_echo "#define XRECORD 1" >>confdefs.h
25808
25809	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
25810	RECORD_LIB='$(top_builddir)/record/librecord.la'
25811fi
25812
25813 if test "x$SCREENSAVER" = xyes; then
25814  SCREENSAVER_TRUE=
25815  SCREENSAVER_FALSE='#'
25816else
25817  SCREENSAVER_TRUE='#'
25818  SCREENSAVER_FALSE=
25819fi
25820
25821if test "x$SCREENSAVER" = xyes; then
25822
25823$as_echo "#define SCREENSAVER 1" >>confdefs.h
25824
25825	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
25826	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO"
25827fi
25828
25829 if test "x$RES" = xyes; then
25830  RES_TRUE=
25831  RES_FALSE='#'
25832else
25833  RES_TRUE='#'
25834  RES_FALSE=
25835fi
25836
25837if test "x$RES" = xyes; then
25838
25839$as_echo "#define RES 1" >>confdefs.h
25840
25841	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
25842	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO"
25843fi
25844
25845if test "x$LISTEN_TCP" = xyes; then
25846
25847$as_echo "#define LISTEN_TCP 1" >>confdefs.h
25848
25849fi
25850if test "x$LISTEN_UNIX" = xyes; then
25851
25852$as_echo "#define LISTEN_UNIX 1" >>confdefs.h
25853
25854fi
25855if test "x$LISTEN_LOCAL" = xyes; then
25856
25857$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h
25858
25859fi
25860
25861# The XRes extension may support client ID tracking only if it has
25862# been specifically enabled. Client ID tracking is implicitly not
25863# supported if XRes extension is disabled.
25864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5
25865$as_echo_n "checking whether to track client ids... " >&6; }
25866if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
25867
25868$as_echo "#define CLIENTIDS 1" >>confdefs.h
25869
25870else
25871	CLIENTIDS=no
25872fi
25873if test "x$CLIENTIDS" = xyes; then
25874	case $host_os in
25875	openbsd*)
25876		SYS_LIBS="$SYS_LIBS -lkvm"
25877	;;
25878	esac
25879fi
25880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5
25881$as_echo "$CLIENTIDS" >&6; }
25882 if test "x$CLIENTIDS" = xyes; then
25883  CLIENTIDS_TRUE=
25884  CLIENTIDS_FALSE='#'
25885else
25886  CLIENTIDS_TRUE='#'
25887  CLIENTIDS_FALSE=
25888fi
25889
25890
25891 if test "x$DRI" = xyes; then
25892  DRI_TRUE=
25893  DRI_FALSE='#'
25894else
25895  DRI_TRUE='#'
25896  DRI_FALSE=
25897fi
25898
25899if test "x$DRI" = xyes; then
25900
25901$as_echo "#define XF86DRI 1" >>confdefs.h
25902
25903	REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
25904	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
25905fi
25906
25907
25908pkg_failed=no
25909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
25910$as_echo_n "checking for DRI2PROTO... " >&6; }
25911
25912if test -n "$DRI2PROTO_CFLAGS"; then
25913    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
25914 elif test -n "$PKG_CONFIG"; then
25915    if test -n "$PKG_CONFIG" && \
25916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
25917  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
25918  ac_status=$?
25919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25920  test $ac_status = 0; }; then
25921  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
25922		      test "x$?" != "x0" && pkg_failed=yes
25923else
25924  pkg_failed=yes
25925fi
25926 else
25927    pkg_failed=untried
25928fi
25929if test -n "$DRI2PROTO_LIBS"; then
25930    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
25931 elif test -n "$PKG_CONFIG"; then
25932    if test -n "$PKG_CONFIG" && \
25933    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
25934  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
25935  ac_status=$?
25936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937  test $ac_status = 0; }; then
25938  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
25939		      test "x$?" != "x0" && pkg_failed=yes
25940else
25941  pkg_failed=yes
25942fi
25943 else
25944    pkg_failed=untried
25945fi
25946
25947
25948
25949if test $pkg_failed = yes; then
25950   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25951$as_echo "no" >&6; }
25952
25953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25954        _pkg_short_errors_supported=yes
25955else
25956        _pkg_short_errors_supported=no
25957fi
25958        if test $_pkg_short_errors_supported = yes; then
25959	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
25960        else
25961	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
25962        fi
25963	# Put the nasty error message in config.log where it belongs
25964	echo "$DRI2PROTO_PKG_ERRORS" >&5
25965
25966	HAVE_DRI2PROTO=no
25967elif test $pkg_failed = untried; then
25968     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25969$as_echo "no" >&6; }
25970	HAVE_DRI2PROTO=no
25971else
25972	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
25973	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
25974        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25975$as_echo "yes" >&6; }
25976	HAVE_DRI2PROTO=yes
25977fi
25978case "$DRI2,$HAVE_DRI2PROTO" in
25979	yes,no)
25980		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
25981		;;
25982	yes,yes | auto,yes)
25983
25984$as_echo "#define DRI2 1" >>confdefs.h
25985
25986		DRI2=yes
25987		LIBGL="gl >= 9.2.0"
25988		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
25989		;;
25990esac
25991 if test "x$DRI2" = xyes; then
25992  DRI2_TRUE=
25993  DRI2_FALSE='#'
25994else
25995  DRI2_TRUE='#'
25996  DRI2_FALSE=
25997fi
25998
25999
26000
26001
26002# Check whether --with-shared-memory-dir was given.
26003if test "${with_shared_memory_dir+set}" = set; then :
26004  withval=$with_shared_memory_dir;
26005else
26006  with_shared_memory_dir=yes
26007fi
26008
26009
26010shmdirs="/run/shm /var/tmp /tmp"
26011
26012case x"$with_shared_memory_dir" in
26013xyes)
26014	for dir in $shmdirs; do
26015		case x"$with_shared_memory_dir" in
26016		xyes)
26017			echo Checking temp dir "$dir"
26018			if test -d "$dir"; then
26019				with_shared_memory_dir="$dir"
26020			fi
26021			;;
26022		esac
26023	done
26024	;;
26025x/*)
26026	;;
26027xno)
26028	;;
26029*)
26030	as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5
26031	;;
26032esac
26033
26034case x"$with_shared_memory_dir" in
26035xyes)
26036	as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5
26037	;;
26038xno)
26039	;;
26040*)
26041
26042cat >>confdefs.h <<_ACEOF
26043#define SHMDIR "$with_shared_memory_dir"
26044_ACEOF
26045
26046	;;
26047esac
26048
26049# Check whether --enable-xtrans-send-fds was given.
26050if test "${enable_xtrans_send_fds+set}" = set; then :
26051  enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval
26052else
26053  XTRANS_SEND_FDS=auto
26054fi
26055
26056
26057case "x$XTRANS_SEND_FDS" in
26058xauto)
26059	case "$host_os" in
26060	linux*|solaris*)
26061		XTRANS_SEND_FDS=yes
26062		;;
26063	*)
26064		XTRANS_SEND_FDS=no
26065		;;
26066	esac
26067esac
26068
26069case "x$XTRANS_SEND_FDS" in
26070xyes)
26071
26072$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h
26073
26074	;;
26075esac
26076
26077case "$DRI3,$XTRANS_SEND_FDS" in
26078	yes,yes | auto,yes)
26079		;;
26080	yes,no)
26081		as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5
26082		DRI3=no
26083		;;
26084	no,*)
26085		;;
26086	*)
26087		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5
26088$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;}
26089		DRI3=no
26090		;;
26091esac
26092
26093
26094pkg_failed=no
26095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5
26096$as_echo_n "checking for DRI3PROTO... " >&6; }
26097
26098if test -n "$DRI3PROTO_CFLAGS"; then
26099    pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
26100 elif test -n "$PKG_CONFIG"; then
26101    if test -n "$PKG_CONFIG" && \
26102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26103  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26104  ac_status=$?
26105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26106  test $ac_status = 0; }; then
26107  pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null`
26108		      test "x$?" != "x0" && pkg_failed=yes
26109else
26110  pkg_failed=yes
26111fi
26112 else
26113    pkg_failed=untried
26114fi
26115if test -n "$DRI3PROTO_LIBS"; then
26116    pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
26117 elif test -n "$PKG_CONFIG"; then
26118    if test -n "$PKG_CONFIG" && \
26119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26120  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26121  ac_status=$?
26122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26123  test $ac_status = 0; }; then
26124  pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null`
26125		      test "x$?" != "x0" && pkg_failed=yes
26126else
26127  pkg_failed=yes
26128fi
26129 else
26130    pkg_failed=untried
26131fi
26132
26133
26134
26135if test $pkg_failed = yes; then
26136   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26137$as_echo "no" >&6; }
26138
26139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26140        _pkg_short_errors_supported=yes
26141else
26142        _pkg_short_errors_supported=no
26143fi
26144        if test $_pkg_short_errors_supported = yes; then
26145	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26146        else
26147	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26148        fi
26149	# Put the nasty error message in config.log where it belongs
26150	echo "$DRI3PROTO_PKG_ERRORS" >&5
26151
26152	HAVE_DRI3PROTO=no
26153elif test $pkg_failed = untried; then
26154     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26155$as_echo "no" >&6; }
26156	HAVE_DRI3PROTO=no
26157else
26158	DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
26159	DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
26160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26161$as_echo "yes" >&6; }
26162	HAVE_DRI3PROTO=yes
26163fi
26164
26165case "$DRI3,$HAVE_DRI3PROTO" in
26166	yes,yes | auto,yes)
26167		;;
26168	yes,no)
26169		as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5
26170		DRI3=no
26171		;;
26172	no,*)
26173		;;
26174	*)
26175		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5
26176$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;}
26177		DRI3=no
26178		;;
26179esac
26180
26181for ac_func in sigaction
26182do :
26183  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
26184if test "x$ac_cv_func_sigaction" = xyes; then :
26185  cat >>confdefs.h <<_ACEOF
26186#define HAVE_SIGACTION 1
26187_ACEOF
26188
26189fi
26190done
26191
26192
26193BUSFAULT=no
26194
26195case x"$ac_cv_func_sigaction" in
26196	xyes)
26197
26198$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
26199
26200		BUSFAULT=yes
26201		;;
26202esac
26203
26204case x"$BUSFAULT" in
26205	xyes)
26206
26207$as_echo "#define BUSFAULT 1" >>confdefs.h
26208
26209		;;
26210esac
26211
26212 if test x"$BUSFAULT" = xyes; then
26213  BUSFAULT_TRUE=
26214  BUSFAULT_FALSE='#'
26215else
26216  BUSFAULT_TRUE='#'
26217  BUSFAULT_FALSE=
26218fi
26219
26220
26221
26222
26223pkg_failed=no
26224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5
26225$as_echo_n "checking for XSHMFENCE... " >&6; }
26226
26227if test -n "$XSHMFENCE_CFLAGS"; then
26228    pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS"
26229 elif test -n "$PKG_CONFIG"; then
26230    if test -n "$PKG_CONFIG" && \
26231    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26232  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26233  ac_status=$?
26234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26235  test $ac_status = 0; }; then
26236  pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null`
26237		      test "x$?" != "x0" && pkg_failed=yes
26238else
26239  pkg_failed=yes
26240fi
26241 else
26242    pkg_failed=untried
26243fi
26244if test -n "$XSHMFENCE_LIBS"; then
26245    pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS"
26246 elif test -n "$PKG_CONFIG"; then
26247    if test -n "$PKG_CONFIG" && \
26248    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26249  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26250  ac_status=$?
26251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252  test $ac_status = 0; }; then
26253  pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null`
26254		      test "x$?" != "x0" && pkg_failed=yes
26255else
26256  pkg_failed=yes
26257fi
26258 else
26259    pkg_failed=untried
26260fi
26261
26262
26263
26264if test $pkg_failed = yes; then
26265   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26266$as_echo "no" >&6; }
26267
26268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26269        _pkg_short_errors_supported=yes
26270else
26271        _pkg_short_errors_supported=no
26272fi
26273        if test $_pkg_short_errors_supported = yes; then
26274	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26275        else
26276	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26277        fi
26278	# Put the nasty error message in config.log where it belongs
26279	echo "$XSHMFENCE_PKG_ERRORS" >&5
26280
26281	HAVE_XSHMFENCE=no
26282elif test $pkg_failed = untried; then
26283     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26284$as_echo "no" >&6; }
26285	HAVE_XSHMFENCE=no
26286else
26287	XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS
26288	XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS
26289        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26290$as_echo "yes" >&6; }
26291	HAVE_XSHMFENCE=yes
26292fi
26293if test "x$XSHMFENCE" = "xauto"; then
26294    XSHMFENCE="$HAVE_XSHMFENCE"
26295fi
26296
26297if test "x$XSHMFENCE" = "xyes"; then
26298    if test "x$HAVE_XSHMFENCE" != "xyes"; then
26299        as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5
26300    fi
26301
26302$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h
26303
26304    REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE"
26305fi
26306
26307 if test "x$XSHMFENCE" = xyes; then
26308  XSHMFENCE_TRUE=
26309  XSHMFENCE_FALSE='#'
26310else
26311  XSHMFENCE_TRUE='#'
26312  XSHMFENCE_FALSE=
26313fi
26314
26315
26316case "$DRI3,$XSHMFENCE" in
26317	yes,yes | auto,yes)
26318		;;
26319	yes,no)
26320		as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5
26321		DRI3=no
26322		;;
26323	no,*)
26324		;;
26325	*)
26326		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5
26327$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;}
26328		DRI3=no
26329		;;
26330esac
26331
26332case x"$DRI3" in
26333	xyes|xauto)
26334		DRI3=yes
26335
26336$as_echo "#define DRI3 1" >>confdefs.h
26337
26338		DRI3_LIB='$(top_builddir)/dri3/libdri3.la'
26339		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO"
26340		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5
26341$as_echo "$as_me: DRI3 enabled" >&6;};
26342		;;
26343esac
26344
26345 if test "x$DRI3" = xyes; then
26346  DRI3_TRUE=
26347  DRI3_FALSE='#'
26348else
26349  DRI3_TRUE='#'
26350  DRI3_FALSE=
26351fi
26352
26353
26354if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes; then
26355	if test "x$DRM" = xyes; then
26356
26357$as_echo "#define WITH_LIBDRM 1" >>confdefs.h
26358
26359
26360pkg_failed=no
26361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
26362$as_echo_n "checking for LIBDRM... " >&6; }
26363
26364if test -n "$LIBDRM_CFLAGS"; then
26365    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
26366 elif test -n "$PKG_CONFIG"; then
26367    if test -n "$PKG_CONFIG" && \
26368    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26369  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26370  ac_status=$?
26371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26372  test $ac_status = 0; }; then
26373  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
26374		      test "x$?" != "x0" && pkg_failed=yes
26375else
26376  pkg_failed=yes
26377fi
26378 else
26379    pkg_failed=untried
26380fi
26381if test -n "$LIBDRM_LIBS"; then
26382    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
26383 elif test -n "$PKG_CONFIG"; then
26384    if test -n "$PKG_CONFIG" && \
26385    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26386  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26387  ac_status=$?
26388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26389  test $ac_status = 0; }; then
26390  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
26391		      test "x$?" != "x0" && pkg_failed=yes
26392else
26393  pkg_failed=yes
26394fi
26395 else
26396    pkg_failed=untried
26397fi
26398
26399
26400
26401if test $pkg_failed = yes; then
26402   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26403$as_echo "no" >&6; }
26404
26405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26406        _pkg_short_errors_supported=yes
26407else
26408        _pkg_short_errors_supported=no
26409fi
26410        if test $_pkg_short_errors_supported = yes; then
26411	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1`
26412        else
26413	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1`
26414        fi
26415	# Put the nasty error message in config.log where it belongs
26416	echo "$LIBDRM_PKG_ERRORS" >&5
26417
26418	as_fn_error $? "Package requirements ($LIBDRM) were not met:
26419
26420$LIBDRM_PKG_ERRORS
26421
26422Consider adjusting the PKG_CONFIG_PATH environment variable if you
26423installed software in a non-standard prefix.
26424
26425Alternatively, you may set the environment variables LIBDRM_CFLAGS
26426and LIBDRM_LIBS to avoid the need to call pkg-config.
26427See the pkg-config man page for more details." "$LINENO" 5
26428elif test $pkg_failed = untried; then
26429     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26430$as_echo "no" >&6; }
26431	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26433as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26434is in your PATH or set the PKG_CONFIG environment variable to the full
26435path to pkg-config.
26436
26437Alternatively, you may set the environment variables LIBDRM_CFLAGS
26438and LIBDRM_LIBS to avoid the need to call pkg-config.
26439See the pkg-config man page for more details.
26440
26441To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26442See \`config.log' for more details" "$LINENO" 5; }
26443else
26444	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
26445	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
26446        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26447$as_echo "yes" >&6; }
26448
26449fi
26450	fi
26451fi
26452
26453if test "x$DRI2" = xyes; then
26454	save_CFLAGS=$CFLAGS
26455	CFLAGS="$CFLAGS $GL_CFLAGS $LIBDRM_CFLAGS"
26456	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26457/* end confdefs.h.  */
26458#include <GL/gl.h>
26459#include <GL/internal/dri_interface.h>
26460#ifndef __DRI_DRI2
26461#error DRI2 extension not available.
26462#endif
26463_ACEOF
26464if ac_fn_c_try_compile "$LINENO"; then :
26465  HAVE_DRI2EXTENSION=yes
26466else
26467  HAVE_DRI2EXTENSION=no
26468fi
26469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26470	CFLAGS=$save_CFLAGS
26471	if test "x$HAVE_DRI2EXTENSION" = xyes; then
26472
26473$as_echo "#define DRI2_AIGLX 1" >>confdefs.h
26474
26475		DRI2_AIGLX=yes
26476	else
26477		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5
26478$as_echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;}
26479		DRI2_AIGLX=no
26480	fi
26481fi
26482 if test "x$DRI2_AIGLX" = xyes; then
26483  DRI2_AIGLX_TRUE=
26484  DRI2_AIGLX_FALSE='#'
26485else
26486  DRI2_AIGLX_TRUE='#'
26487  DRI2_AIGLX_FALSE=
26488fi
26489
26490
26491if test "x$GLX" = xyes; then
26492
26493pkg_failed=no
26494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
26495$as_echo_n "checking for XLIB... " >&6; }
26496
26497if test -n "$XLIB_CFLAGS"; then
26498    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
26499 elif test -n "$PKG_CONFIG"; then
26500    if test -n "$PKG_CONFIG" && \
26501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
26502  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
26503  ac_status=$?
26504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26505  test $ac_status = 0; }; then
26506  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
26507		      test "x$?" != "x0" && pkg_failed=yes
26508else
26509  pkg_failed=yes
26510fi
26511 else
26512    pkg_failed=untried
26513fi
26514if test -n "$XLIB_LIBS"; then
26515    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
26516 elif test -n "$PKG_CONFIG"; then
26517    if test -n "$PKG_CONFIG" && \
26518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
26519  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
26520  ac_status=$?
26521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522  test $ac_status = 0; }; then
26523  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
26524		      test "x$?" != "x0" && pkg_failed=yes
26525else
26526  pkg_failed=yes
26527fi
26528 else
26529    pkg_failed=untried
26530fi
26531
26532
26533
26534if test $pkg_failed = yes; then
26535   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26536$as_echo "no" >&6; }
26537
26538if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26539        _pkg_short_errors_supported=yes
26540else
26541        _pkg_short_errors_supported=no
26542fi
26543        if test $_pkg_short_errors_supported = yes; then
26544	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
26545        else
26546	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
26547        fi
26548	# Put the nasty error message in config.log where it belongs
26549	echo "$XLIB_PKG_ERRORS" >&5
26550
26551	as_fn_error $? "Package requirements (x11) were not met:
26552
26553$XLIB_PKG_ERRORS
26554
26555Consider adjusting the PKG_CONFIG_PATH environment variable if you
26556installed software in a non-standard prefix.
26557
26558Alternatively, you may set the environment variables XLIB_CFLAGS
26559and XLIB_LIBS to avoid the need to call pkg-config.
26560See the pkg-config man page for more details." "$LINENO" 5
26561elif test $pkg_failed = untried; then
26562     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26563$as_echo "no" >&6; }
26564	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26566as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26567is in your PATH or set the PKG_CONFIG environment variable to the full
26568path to pkg-config.
26569
26570Alternatively, you may set the environment variables XLIB_CFLAGS
26571and XLIB_LIBS to avoid the need to call pkg-config.
26572See the pkg-config man page for more details.
26573
26574To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26575See \`config.log' for more details" "$LINENO" 5; }
26576else
26577	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
26578	XLIB_LIBS=$pkg_cv_XLIB_LIBS
26579        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26580$as_echo "yes" >&6; }
26581
26582fi
26583
26584pkg_failed=no
26585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
26586$as_echo_n "checking for GL... " >&6; }
26587
26588if test -n "$GL_CFLAGS"; then
26589    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
26590 elif test -n "$PKG_CONFIG"; then
26591    if test -n "$PKG_CONFIG" && \
26592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
26593  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
26594  ac_status=$?
26595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26596  test $ac_status = 0; }; then
26597  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
26598		      test "x$?" != "x0" && pkg_failed=yes
26599else
26600  pkg_failed=yes
26601fi
26602 else
26603    pkg_failed=untried
26604fi
26605if test -n "$GL_LIBS"; then
26606    pkg_cv_GL_LIBS="$GL_LIBS"
26607 elif test -n "$PKG_CONFIG"; then
26608    if test -n "$PKG_CONFIG" && \
26609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
26610  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
26611  ac_status=$?
26612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613  test $ac_status = 0; }; then
26614  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
26615		      test "x$?" != "x0" && pkg_failed=yes
26616else
26617  pkg_failed=yes
26618fi
26619 else
26620    pkg_failed=untried
26621fi
26622
26623
26624
26625if test $pkg_failed = yes; then
26626   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26627$as_echo "no" >&6; }
26628
26629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26630        _pkg_short_errors_supported=yes
26631else
26632        _pkg_short_errors_supported=no
26633fi
26634        if test $_pkg_short_errors_supported = yes; then
26635	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
26636        else
26637	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
26638        fi
26639	# Put the nasty error message in config.log where it belongs
26640	echo "$GL_PKG_ERRORS" >&5
26641
26642	as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
26643
26644$GL_PKG_ERRORS
26645
26646Consider adjusting the PKG_CONFIG_PATH environment variable if you
26647installed software in a non-standard prefix.
26648
26649Alternatively, you may set the environment variables GL_CFLAGS
26650and GL_LIBS to avoid the need to call pkg-config.
26651See the pkg-config man page for more details." "$LINENO" 5
26652elif test $pkg_failed = untried; then
26653     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26654$as_echo "no" >&6; }
26655	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26657as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26658is in your PATH or set the PKG_CONFIG environment variable to the full
26659path to pkg-config.
26660
26661Alternatively, you may set the environment variables GL_CFLAGS
26662and GL_LIBS to avoid the need to call pkg-config.
26663See the pkg-config man page for more details.
26664
26665To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26666See \`config.log' for more details" "$LINENO" 5; }
26667else
26668	GL_CFLAGS=$pkg_cv_GL_CFLAGS
26669	GL_LIBS=$pkg_cv_GL_LIBS
26670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26671$as_echo "yes" >&6; }
26672
26673fi
26674
26675
26676$as_echo "#define GLXEXT 1" >>confdefs.h
26677
26678	GLX_LIBS='$(top_builddir)/glx/libglx.la'
26679	GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
26680else
26681        GLX=no
26682fi
26683 if test "x$GLX" = xyes; then
26684  GLX_TRUE=
26685  GLX_FALSE='#'
26686else
26687  GLX_TRUE='#'
26688  GLX_FALSE=
26689fi
26690
26691
26692if test "x$GLX" = xno; then
26693        AIGLX=no
26694fi
26695
26696if test "x$AIGLX" = xyes -a \( "x$DRI2" = xyes \); then
26697
26698$as_echo "#define AIGLX 1" >>confdefs.h
26699
26700fi
26701 if { test "x$DRI2" = xyes; } && test "x$AIGLX" = xyes; then
26702  AIGLX_DRI_LOADER_TRUE=
26703  AIGLX_DRI_LOADER_FALSE='#'
26704else
26705  AIGLX_DRI_LOADER_TRUE='#'
26706  AIGLX_DRI_LOADER_FALSE=
26707fi
26708
26709
26710
26711
26712
26713 if test "x$PRESENT" = xyes; then
26714  PRESENT_TRUE=
26715  PRESENT_FALSE='#'
26716else
26717  PRESENT_TRUE='#'
26718  PRESENT_FALSE=
26719fi
26720
26721if test "x$PRESENT" = xyes; then
26722
26723$as_echo "#define PRESENT 1" >>confdefs.h
26724
26725	REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO"
26726	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO"
26727	PRESENT_INC='-I$(top_srcdir)/present'
26728	PRESENT_LIB='$(top_builddir)/present/libpresent.la'
26729fi
26730
26731 if test "x$XINERAMA" = xyes; then
26732  XINERAMA_TRUE=
26733  XINERAMA_FALSE='#'
26734else
26735  XINERAMA_TRUE='#'
26736  XINERAMA_FALSE=
26737fi
26738
26739if test "x$XINERAMA" = xyes; then
26740
26741$as_echo "#define XINERAMA 1" >>confdefs.h
26742
26743
26744$as_echo "#define PANORAMIX 1" >>confdefs.h
26745
26746	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
26747	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
26748fi
26749
26750 if test "x$XACE" = xyes; then
26751  XACE_TRUE=
26752  XACE_FALSE='#'
26753else
26754  XACE_TRUE='#'
26755  XACE_FALSE=
26756fi
26757
26758if test "x$XACE" = xyes; then
26759
26760$as_echo "#define XACE 1" >>confdefs.h
26761
26762fi
26763
26764 if test "x$XSELINUX" = xyes; then
26765  XSELINUX_TRUE=
26766  XSELINUX_FALSE='#'
26767else
26768  XSELINUX_TRUE='#'
26769  XSELINUX_FALSE=
26770fi
26771
26772if test "x$XSELINUX" = xyes; then
26773	if test "x$XACE" != xyes; then
26774		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
26775	fi
26776	for ac_header in libaudit.h
26777do :
26778  ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
26779if test "x$ac_cv_header_libaudit_h" = xyes; then :
26780  cat >>confdefs.h <<_ACEOF
26781#define HAVE_LIBAUDIT_H 1
26782_ACEOF
26783
26784else
26785  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
26786fi
26787
26788done
26789
26790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
26791$as_echo_n "checking for audit_open in -laudit... " >&6; }
26792if ${ac_cv_lib_audit_audit_open+:} false; then :
26793  $as_echo_n "(cached) " >&6
26794else
26795  ac_check_lib_save_LIBS=$LIBS
26796LIBS="-laudit  $LIBS"
26797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26798/* end confdefs.h.  */
26799
26800/* Override any GCC internal prototype to avoid an error.
26801   Use char because int might match the return type of a GCC
26802   builtin and then its argument prototype would still apply.  */
26803#ifdef __cplusplus
26804extern "C"
26805#endif
26806char audit_open ();
26807int
26808main ()
26809{
26810return audit_open ();
26811  ;
26812  return 0;
26813}
26814_ACEOF
26815if ac_fn_c_try_link "$LINENO"; then :
26816  ac_cv_lib_audit_audit_open=yes
26817else
26818  ac_cv_lib_audit_audit_open=no
26819fi
26820rm -f core conftest.err conftest.$ac_objext \
26821    conftest$ac_exeext conftest.$ac_ext
26822LIBS=$ac_check_lib_save_LIBS
26823fi
26824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
26825$as_echo "$ac_cv_lib_audit_audit_open" >&6; }
26826if test "x$ac_cv_lib_audit_audit_open" = xyes; then :
26827  cat >>confdefs.h <<_ACEOF
26828#define HAVE_LIBAUDIT 1
26829_ACEOF
26830
26831  LIBS="-laudit $LIBS"
26832
26833else
26834  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
26835fi
26836
26837
26838pkg_failed=no
26839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
26840$as_echo_n "checking for SELINUX... " >&6; }
26841
26842if test -n "$SELINUX_CFLAGS"; then
26843    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
26844 elif test -n "$PKG_CONFIG"; then
26845    if test -n "$PKG_CONFIG" && \
26846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
26847  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
26848  ac_status=$?
26849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26850  test $ac_status = 0; }; then
26851  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
26852		      test "x$?" != "x0" && pkg_failed=yes
26853else
26854  pkg_failed=yes
26855fi
26856 else
26857    pkg_failed=untried
26858fi
26859if test -n "$SELINUX_LIBS"; then
26860    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
26861 elif test -n "$PKG_CONFIG"; then
26862    if test -n "$PKG_CONFIG" && \
26863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
26864  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
26865  ac_status=$?
26866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26867  test $ac_status = 0; }; then
26868  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
26869		      test "x$?" != "x0" && pkg_failed=yes
26870else
26871  pkg_failed=yes
26872fi
26873 else
26874    pkg_failed=untried
26875fi
26876
26877
26878
26879if test $pkg_failed = yes; then
26880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26881$as_echo "no" >&6; }
26882
26883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26884        _pkg_short_errors_supported=yes
26885else
26886        _pkg_short_errors_supported=no
26887fi
26888        if test $_pkg_short_errors_supported = yes; then
26889	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
26890        else
26891	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
26892        fi
26893	# Put the nasty error message in config.log where it belongs
26894	echo "$SELINUX_PKG_ERRORS" >&5
26895
26896	as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
26897
26898$SELINUX_PKG_ERRORS
26899
26900Consider adjusting the PKG_CONFIG_PATH environment variable if you
26901installed software in a non-standard prefix.
26902
26903Alternatively, you may set the environment variables SELINUX_CFLAGS
26904and SELINUX_LIBS to avoid the need to call pkg-config.
26905See the pkg-config man page for more details." "$LINENO" 5
26906elif test $pkg_failed = untried; then
26907     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26908$as_echo "no" >&6; }
26909	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26911as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26912is in your PATH or set the PKG_CONFIG environment variable to the full
26913path to pkg-config.
26914
26915Alternatively, you may set the environment variables SELINUX_CFLAGS
26916and SELINUX_LIBS to avoid the need to call pkg-config.
26917See the pkg-config man page for more details.
26918
26919To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26920See \`config.log' for more details" "$LINENO" 5; }
26921else
26922	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
26923	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
26924        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26925$as_echo "yes" >&6; }
26926
26927fi
26928	SELINUX_LIBS="$SELINUX_LIBS -laudit"
26929
26930$as_echo "#define XSELINUX 1" >>confdefs.h
26931
26932fi
26933
26934 if test "x$XCSECURITY" = xyes; then
26935  XCSECURITY_TRUE=
26936  XCSECURITY_FALSE='#'
26937else
26938  XCSECURITY_TRUE='#'
26939  XCSECURITY_FALSE=
26940fi
26941
26942if test "x$XCSECURITY" = xyes; then
26943	if test "x$XACE" != xyes; then
26944		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
26945	fi
26946
26947$as_echo "#define XCSECURITY 1" >>confdefs.h
26948
26949fi
26950
26951 if test "x$DBE" = xyes; then
26952  DBE_TRUE=
26953  DBE_FALSE='#'
26954else
26955  DBE_TRUE='#'
26956  DBE_FALSE=
26957fi
26958
26959if test "x$DBE" = xyes; then
26960
26961$as_echo "#define DBE 1" >>confdefs.h
26962
26963	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
26964	DBE_INC='-I$(top_srcdir)/dbe'
26965fi
26966
26967 if test "x$XF86BIGFONT" = xyes; then
26968  XF86BIGFONT_TRUE=
26969  XF86BIGFONT_FALSE='#'
26970else
26971  XF86BIGFONT_TRUE='#'
26972  XF86BIGFONT_FALSE=
26973fi
26974
26975if test "x$XF86BIGFONT" = xyes; then
26976
26977$as_echo "#define XF86BIGFONT 1" >>confdefs.h
26978
26979	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
26980	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO"
26981fi
26982
26983 if test "x$DPMSExtension" = xyes; then
26984  DPMSExtension_TRUE=
26985  DPMSExtension_FALSE='#'
26986else
26987  DPMSExtension_TRUE='#'
26988  DPMSExtension_FALSE=
26989fi
26990
26991if test "x$DPMSExtension" = xyes; then
26992
26993$as_echo "#define DPMSExtension 1" >>confdefs.h
26994
26995fi
26996
26997
26998$as_echo "#define RENDER 1" >>confdefs.h
26999
27000RENDER_LIB='$(top_builddir)/render/librender.la'
27001RENDER_INC='-I$(top_srcdir)/render'
27002
27003
27004$as_echo "#define RANDR 1" >>confdefs.h
27005
27006RANDR_LIB='$(top_builddir)/randr/librandr.la'
27007RANDR_INC='-I$(top_srcdir)/randr'
27008
27009
27010$as_echo "#define XFIXES 1" >>confdefs.h
27011
27012FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
27013FIXES_INC='-I$(top_srcdir)/xfixes'
27014
27015
27016$as_echo "#define DAMAGE 1" >>confdefs.h
27017
27018DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
27019DAMAGE_INC='-I$(top_srcdir)/damageext'
27020MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
27021MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
27022
27023# XINPUT extension is integral part of the server
27024
27025$as_echo "#define XINPUT 1" >>confdefs.h
27026
27027XI_LIB='$(top_builddir)/Xi/libXi.la'
27028XI_INC='-I$(top_srcdir)/Xi'
27029
27030 if test "x$XF86UTILS" = xyes; then
27031  XF86UTILS_TRUE=
27032  XF86UTILS_FALSE='#'
27033else
27034  XF86UTILS_TRUE='#'
27035  XF86UTILS_FALSE=
27036fi
27037
27038 if test "x$VGAHW" = xyes; then
27039  VGAHW_TRUE=
27040  VGAHW_FALSE='#'
27041else
27042  VGAHW_TRUE='#'
27043  VGAHW_FALSE=
27044fi
27045
27046 if test "x$VBE" = xyes; then
27047  VBE_TRUE=
27048  VBE_FALSE='#'
27049else
27050  VBE_TRUE='#'
27051  VBE_FALSE=
27052fi
27053
27054 if test "x$INT10MODULE" = xyes; then
27055  INT10MODULE_TRUE=
27056  INT10MODULE_FALSE='#'
27057else
27058  INT10MODULE_TRUE='#'
27059  INT10MODULE_FALSE=
27060fi
27061
27062
27063
27064$as_echo "#define SHAPE 1" >>confdefs.h
27065
27066
27067
27068  prefix_NONE=
27069  exec_prefix_NONE=
27070  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27071  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27072  eval ac_define_dir="\"$XKBPATH\""
27073  eval ac_define_dir="\"$ac_define_dir\""
27074  XKB_BASE_DIRECTORY="$ac_define_dir"
27075
27076
27077cat >>confdefs.h <<_ACEOF
27078#define XKB_BASE_DIRECTORY "$ac_define_dir"
27079_ACEOF
27080
27081  test "$prefix_NONE" && prefix=NONE
27082  test "$exec_prefix_NONE" && exec_prefix=NONE
27083
27084
27085# Check whether --with-xkb-bin-directory was given.
27086if test "${with_xkb_bin_directory+set}" = set; then :
27087  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
27088else
27089  XKB_BIN_DIRECTORY="$bindir"
27090fi
27091
27092
27093
27094  prefix_NONE=
27095  exec_prefix_NONE=
27096  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27097  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27098  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
27099  eval ac_define_dir="\"$ac_define_dir\""
27100  XKB_BIN_DIRECTORY="$ac_define_dir"
27101
27102
27103cat >>confdefs.h <<_ACEOF
27104#define XKB_BIN_DIRECTORY "$ac_define_dir"
27105_ACEOF
27106
27107  test "$prefix_NONE" && prefix=NONE
27108  test "$exec_prefix_NONE" && exec_prefix=NONE
27109
27110
27111XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
27112if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
27113   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
27114fi
27115
27116
27117XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
27118XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
27119
27120  prefix_NONE=
27121  exec_prefix_NONE=
27122  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27123  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27124  eval ac_define_dir="\"$XKBOUTPUT\""
27125  eval ac_define_dir="\"$ac_define_dir\""
27126  XKM_OUTPUT_DIR="$ac_define_dir"
27127
27128
27129cat >>confdefs.h <<_ACEOF
27130#define XKM_OUTPUT_DIR "$ac_define_dir"
27131_ACEOF
27132
27133  test "$prefix_NONE" && prefix=NONE
27134  test "$exec_prefix_NONE" && exec_prefix=NONE
27135
27136
27137
27138if test "x$XKB_DFLT_RULES" = x; then
27139    case $host_os in
27140    linux*)
27141                XKB_DFLT_RULES="evdev"
27142        ;;
27143    *)
27144        XKB_DFLT_RULES="base"
27145        ;;
27146    esac
27147fi
27148
27149cat >>confdefs.h <<_ACEOF
27150#define XKB_DFLT_RULES "$XKB_DFLT_RULES"
27151_ACEOF
27152
27153
27154cat >>confdefs.h <<_ACEOF
27155#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
27156_ACEOF
27157
27158
27159cat >>confdefs.h <<_ACEOF
27160#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
27161_ACEOF
27162
27163
27164cat >>confdefs.h <<_ACEOF
27165#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
27166_ACEOF
27167
27168
27169cat >>confdefs.h <<_ACEOF
27170#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
27171_ACEOF
27172
27173
27174
27175
27176
27177
27178
27179XKB_LIB='$(top_builddir)/xkb/libxkb.la'
27180XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
27181REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
27182
27183
27184pkg_failed=no
27185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
27186$as_echo_n "checking for XDMCP... " >&6; }
27187
27188if test -n "$XDMCP_CFLAGS"; then
27189    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
27190 elif test -n "$PKG_CONFIG"; then
27191    if test -n "$PKG_CONFIG" && \
27192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27193  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27194  ac_status=$?
27195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27196  test $ac_status = 0; }; then
27197  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
27198		      test "x$?" != "x0" && pkg_failed=yes
27199else
27200  pkg_failed=yes
27201fi
27202 else
27203    pkg_failed=untried
27204fi
27205if test -n "$XDMCP_LIBS"; then
27206    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
27207 elif test -n "$PKG_CONFIG"; then
27208    if test -n "$PKG_CONFIG" && \
27209    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27210  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27211  ac_status=$?
27212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27213  test $ac_status = 0; }; then
27214  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
27215		      test "x$?" != "x0" && pkg_failed=yes
27216else
27217  pkg_failed=yes
27218fi
27219 else
27220    pkg_failed=untried
27221fi
27222
27223
27224
27225if test $pkg_failed = yes; then
27226   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27227$as_echo "no" >&6; }
27228
27229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27230        _pkg_short_errors_supported=yes
27231else
27232        _pkg_short_errors_supported=no
27233fi
27234        if test $_pkg_short_errors_supported = yes; then
27235	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
27236        else
27237	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
27238        fi
27239	# Put the nasty error message in config.log where it belongs
27240	echo "$XDMCP_PKG_ERRORS" >&5
27241
27242	have_libxdmcp="no"
27243elif test $pkg_failed = untried; then
27244     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27245$as_echo "no" >&6; }
27246	have_libxdmcp="no"
27247else
27248	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
27249	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
27250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27251$as_echo "yes" >&6; }
27252	have_libxdmcp="yes"
27253fi
27254if test "x$have_libxdmcp" = xyes; then
27255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
27256$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
27257if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
27258  $as_echo_n "(cached) " >&6
27259else
27260  ac_check_lib_save_LIBS=$LIBS
27261LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
27262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27263/* end confdefs.h.  */
27264
27265/* Override any GCC internal prototype to avoid an error.
27266   Use char because int might match the return type of a GCC
27267   builtin and then its argument prototype would still apply.  */
27268#ifdef __cplusplus
27269extern "C"
27270#endif
27271char XdmcpWrap ();
27272int
27273main ()
27274{
27275return XdmcpWrap ();
27276  ;
27277  return 0;
27278}
27279_ACEOF
27280if ac_fn_c_try_link "$LINENO"; then :
27281  ac_cv_lib_Xdmcp_XdmcpWrap=yes
27282else
27283  ac_cv_lib_Xdmcp_XdmcpWrap=no
27284fi
27285rm -f core conftest.err conftest.$ac_objext \
27286    conftest$ac_exeext conftest.$ac_ext
27287LIBS=$ac_check_lib_save_LIBS
27288fi
27289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
27290$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
27291if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
27292  have_xdmcpwrap="yes"
27293else
27294  have_xdmcpwrap="no"
27295fi
27296
27297fi
27298if test "x$XDMCP" = xauto; then
27299	if test "x$have_libxdmcp" = xyes; then
27300		XDMCP=yes
27301	else
27302		XDMCP=no
27303	fi
27304fi
27305if test "x$XDMAUTH" = xauto; then
27306	if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
27307		XDMAUTH=yes
27308	else
27309		XDMAUTH=no
27310	fi
27311fi
27312
27313 if test "x$XDMCP" = xyes; then
27314  XDMCP_TRUE=
27315  XDMCP_FALSE='#'
27316else
27317  XDMCP_TRUE='#'
27318  XDMCP_FALSE=
27319fi
27320
27321if test "x$XDMCP" = xyes; then
27322
27323$as_echo "#define XDMCP 1" >>confdefs.h
27324
27325	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27326	XDMCP_MODULES="xdmcp"
27327fi
27328
27329 if test "x$XDMAUTH" = xyes; then
27330  XDMAUTH_TRUE=
27331  XDMAUTH_FALSE='#'
27332else
27333  XDMAUTH_TRUE='#'
27334  XDMAUTH_FALSE=
27335fi
27336
27337if test "x$XDMAUTH" = xyes; then
27338
27339$as_echo "#define HASXDMAUTH 1" >>confdefs.h
27340
27341	if ! test "x$XDMCP" = xyes; then
27342		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27343		XDMCP_MODULES="xdmcp"
27344	fi
27345fi
27346
27347if test "x$XF86VIDMODE" = xauto; then
27348	if test -n "$PKG_CONFIG" && \
27349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
27350  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
27351  ac_status=$?
27352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27353  test $ac_status = 0; }; then
27354  XF86VIDMODE=yes
27355else
27356  XF86VIDMODE=no
27357fi
27358fi
27359if test "x$XF86VIDMODE" = xyes; then
27360
27361$as_echo "#define XF86VIDMODE 1" >>confdefs.h
27362
27363fi
27364 if test "x$XF86VIDMODE" = xyes; then
27365  XF86VIDMODE_TRUE=
27366  XF86VIDMODE_FALSE='#'
27367else
27368  XF86VIDMODE_TRUE='#'
27369  XF86VIDMODE_FALSE=
27370fi
27371
27372
27373
27374  prefix_NONE=
27375  exec_prefix_NONE=
27376  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27377  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27378  eval ac_define_dir="\"$FONTPATH\""
27379  eval ac_define_dir="\"$ac_define_dir\""
27380  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
27381
27382
27383cat >>confdefs.h <<_ACEOF
27384#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
27385_ACEOF
27386
27387  test "$prefix_NONE" && prefix=NONE
27388  test "$exec_prefix_NONE" && exec_prefix=NONE
27389
27390
27391  prefix_NONE=
27392  exec_prefix_NONE=
27393  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27394  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27395  eval ac_define_dir="\"$SERVERCONFIG\""
27396  eval ac_define_dir="\"$ac_define_dir\""
27397  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
27398
27399
27400cat >>confdefs.h <<_ACEOF
27401#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
27402_ACEOF
27403
27404  test "$prefix_NONE" && prefix=NONE
27405  test "$exec_prefix_NONE" && exec_prefix=NONE
27406
27407
27408  prefix_NONE=
27409  exec_prefix_NONE=
27410  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27411  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27412  eval ac_define_dir="\"$FONTROOTDIR\""
27413  eval ac_define_dir="\"$ac_define_dir\""
27414  BASE_FONT_PATH="$ac_define_dir"
27415
27416
27417cat >>confdefs.h <<_ACEOF
27418#define BASE_FONT_PATH "$ac_define_dir"
27419_ACEOF
27420
27421  test "$prefix_NONE" && prefix=NONE
27422  test "$exec_prefix_NONE" && exec_prefix=NONE
27423
27424dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
27425
27426  prefix_NONE=
27427  exec_prefix_NONE=
27428  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27429  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27430  eval ac_define_dir="\"$dridriverdir\""
27431  eval ac_define_dir="\"$ac_define_dir\""
27432  DRI_DRIVER_PATH="$ac_define_dir"
27433
27434
27435cat >>confdefs.h <<_ACEOF
27436#define DRI_DRIVER_PATH "$ac_define_dir"
27437_ACEOF
27438
27439  test "$prefix_NONE" && prefix=NONE
27440  test "$exec_prefix_NONE" && exec_prefix=NONE
27441
27442
27443cat >>confdefs.h <<_ACEOF
27444#define XVENDORNAME "$VENDOR_NAME"
27445_ACEOF
27446
27447
27448cat >>confdefs.h <<_ACEOF
27449#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
27450_ACEOF
27451
27452
27453cat >>confdefs.h <<_ACEOF
27454#define XORG_DATE "$RELEASE_DATE"
27455_ACEOF
27456
27457
27458cat >>confdefs.h <<_ACEOF
27459#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
27460_ACEOF
27461
27462
27463cat >>confdefs.h <<_ACEOF
27464#define BUILDERADDR "$BUILDERADDR"
27465_ACEOF
27466
27467
27468if test -z "$OSNAME"; then
27469    OSNAME="UNKNOWN"
27470fi
27471
27472
27473cat >>confdefs.h <<_ACEOF
27474#define OSNAME "$OSNAME"
27475_ACEOF
27476
27477
27478cat >>confdefs.h <<_ACEOF
27479#define OSVENDOR "$OSVENDOR"
27480_ACEOF
27481
27482
27483cat >>confdefs.h <<_ACEOF
27484#define BUILDERSTRING "$BUILDERSTRING"
27485_ACEOF
27486
27487
27488
27489
27490cat >>confdefs.h <<_ACEOF
27491#define VENDOR_NAME "$VENDOR_NAME"
27492_ACEOF
27493
27494
27495cat >>confdefs.h <<_ACEOF
27496#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
27497_ACEOF
27498
27499
27500cat >>confdefs.h <<_ACEOF
27501#define VENDOR_RELEASE $VENDOR_RELEASE
27502_ACEOF
27503
27504
27505cat >>confdefs.h <<_ACEOF
27506#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
27507_ACEOF
27508
27509
27510if test "x$DEBUGGING" = xyes; then
27511
27512$as_echo "#define DEBUG 1" >>confdefs.h
27513
27514fi
27515 if test "x$DEBUGGING" = xyes; then
27516  DEBUG_TRUE=
27517  DEBUG_FALSE='#'
27518else
27519  DEBUG_TRUE='#'
27520  DEBUG_FALSE=
27521fi
27522
27523
27524
27525$as_echo "#define XTEST 1" >>confdefs.h
27526
27527
27528$as_echo "#define XSYNC 1" >>confdefs.h
27529
27530
27531$as_echo "#define XCMISC 1" >>confdefs.h
27532
27533
27534$as_echo "#define BIGREQS 1" >>confdefs.h
27535
27536
27537if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
27538  DIX_LIB='$(top_builddir)/dix/dix.O'
27539  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)'
27540else
27541  DIX_LIB='$(top_builddir)/dix/libdix.la'
27542  OS_LIB='$(top_builddir)/os/libos.la'
27543fi
27544
27545
27546
27547MAIN_LIB='$(top_builddir)/dix/libmain.la'
27548
27549
27550MI_LIB='$(top_builddir)/mi/libmi.la'
27551MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
27552MI_INC='-I$(top_srcdir)/mi'
27553FB_LIB='$(top_builddir)/fb/libfb.la'
27554FB_INC='-I$(top_srcdir)/fb'
27555MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
27556MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
27557MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
27558MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
27559CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
27560
27561# SHA1 hashing
27562
27563# Check whether --with-sha1 was given.
27564if test "${with_sha1+set}" = set; then :
27565  withval=$with_sha1;
27566fi
27567
27568ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
27569if test "x$ac_cv_func_SHA1Init" = xyes; then :
27570  HAVE_SHA1_IN_LIBC=yes
27571fi
27572
27573if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
27574	with_sha1=libc
27575fi
27576if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
27577	as_fn_error $? "libc requested but not found" "$LINENO" 5
27578fi
27579if test "x$with_sha1" = xlibc; then
27580
27581$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
27582
27583	SHA1_LIBS=""
27584fi
27585ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
27586if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then :
27587  HAVE_SHA1_IN_COMMONCRYPTO=yes
27588fi
27589
27590if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
27591	with_sha1=CommonCrypto
27592fi
27593if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
27594	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
27595fi
27596if test "x$with_sha1" = xCommonCrypto; then
27597
27598$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
27599
27600	SHA1_LIBS=""
27601fi
27602ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
27603"
27604if test "x$ac_cv_header_wincrypt_h" = xyes; then :
27605  HAVE_SHA1_IN_CRYPTOAPI=yes
27606fi
27607
27608
27609if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
27610	with_sha1=CryptoAPI
27611fi
27612if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
27613	as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
27614fi
27615if test "x$with_sha1" = xCryptoAPI; then
27616
27617$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
27618
27619	SHA1_LIBS=""
27620fi
27621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
27622$as_echo_n "checking for SHA1Init in -lmd... " >&6; }
27623if ${ac_cv_lib_md_SHA1Init+:} false; then :
27624  $as_echo_n "(cached) " >&6
27625else
27626  ac_check_lib_save_LIBS=$LIBS
27627LIBS="-lmd  $LIBS"
27628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629/* end confdefs.h.  */
27630
27631/* Override any GCC internal prototype to avoid an error.
27632   Use char because int might match the return type of a GCC
27633   builtin and then its argument prototype would still apply.  */
27634#ifdef __cplusplus
27635extern "C"
27636#endif
27637char SHA1Init ();
27638int
27639main ()
27640{
27641return SHA1Init ();
27642  ;
27643  return 0;
27644}
27645_ACEOF
27646if ac_fn_c_try_link "$LINENO"; then :
27647  ac_cv_lib_md_SHA1Init=yes
27648else
27649  ac_cv_lib_md_SHA1Init=no
27650fi
27651rm -f core conftest.err conftest.$ac_objext \
27652    conftest$ac_exeext conftest.$ac_ext
27653LIBS=$ac_check_lib_save_LIBS
27654fi
27655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
27656$as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
27657if test "x$ac_cv_lib_md_SHA1Init" = xyes; then :
27658  HAVE_LIBMD=yes
27659fi
27660
27661if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
27662	with_sha1=libmd
27663fi
27664if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
27665	as_fn_error $? "libmd requested but not found" "$LINENO" 5
27666fi
27667if test "x$with_sha1" = xlibmd; then
27668
27669$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
27670
27671	SHA1_LIBS=-lmd
27672fi
27673
27674pkg_failed=no
27675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
27676$as_echo_n "checking for LIBSHA1... " >&6; }
27677
27678if test -n "$LIBSHA1_CFLAGS"; then
27679    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
27680 elif test -n "$PKG_CONFIG"; then
27681    if test -n "$PKG_CONFIG" && \
27682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
27683  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
27684  ac_status=$?
27685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686  test $ac_status = 0; }; then
27687  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
27688		      test "x$?" != "x0" && pkg_failed=yes
27689else
27690  pkg_failed=yes
27691fi
27692 else
27693    pkg_failed=untried
27694fi
27695if test -n "$LIBSHA1_LIBS"; then
27696    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
27697 elif test -n "$PKG_CONFIG"; then
27698    if test -n "$PKG_CONFIG" && \
27699    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
27700  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
27701  ac_status=$?
27702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27703  test $ac_status = 0; }; then
27704  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
27705		      test "x$?" != "x0" && pkg_failed=yes
27706else
27707  pkg_failed=yes
27708fi
27709 else
27710    pkg_failed=untried
27711fi
27712
27713
27714
27715if test $pkg_failed = yes; then
27716   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27717$as_echo "no" >&6; }
27718
27719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27720        _pkg_short_errors_supported=yes
27721else
27722        _pkg_short_errors_supported=no
27723fi
27724        if test $_pkg_short_errors_supported = yes; then
27725	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
27726        else
27727	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
27728        fi
27729	# Put the nasty error message in config.log where it belongs
27730	echo "$LIBSHA1_PKG_ERRORS" >&5
27731
27732	HAVE_LIBSHA1=no
27733elif test $pkg_failed = untried; then
27734     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27735$as_echo "no" >&6; }
27736	HAVE_LIBSHA1=no
27737else
27738	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
27739	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
27740        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27741$as_echo "yes" >&6; }
27742	HAVE_LIBSHA1=yes
27743fi
27744if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
27745   with_sha1=libsha1
27746fi
27747if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
27748	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
27749fi
27750if test "x$with_sha1" = xlibsha1; then
27751
27752$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
27753
27754	SHA1_LIBS=-lsha1
27755fi
27756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
27757$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; }
27758if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then :
27759  $as_echo_n "(cached) " >&6
27760else
27761  ac_check_lib_save_LIBS=$LIBS
27762LIBS="-lnettle  $LIBS"
27763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27764/* end confdefs.h.  */
27765
27766/* Override any GCC internal prototype to avoid an error.
27767   Use char because int might match the return type of a GCC
27768   builtin and then its argument prototype would still apply.  */
27769#ifdef __cplusplus
27770extern "C"
27771#endif
27772char nettle_sha1_init ();
27773int
27774main ()
27775{
27776return nettle_sha1_init ();
27777  ;
27778  return 0;
27779}
27780_ACEOF
27781if ac_fn_c_try_link "$LINENO"; then :
27782  ac_cv_lib_nettle_nettle_sha1_init=yes
27783else
27784  ac_cv_lib_nettle_nettle_sha1_init=no
27785fi
27786rm -f core conftest.err conftest.$ac_objext \
27787    conftest$ac_exeext conftest.$ac_ext
27788LIBS=$ac_check_lib_save_LIBS
27789fi
27790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
27791$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
27792if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then :
27793  HAVE_LIBNETTLE=yes
27794fi
27795
27796if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
27797	with_sha1=libnettle
27798fi
27799if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
27800	as_fn_error $? "libnettle requested but not found" "$LINENO" 5
27801fi
27802if test "x$with_sha1" = xlibnettle; then
27803
27804$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
27805
27806	SHA1_LIBS=-lnettle
27807fi
27808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
27809$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; }
27810if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then :
27811  $as_echo_n "(cached) " >&6
27812else
27813  ac_check_lib_save_LIBS=$LIBS
27814LIBS="-lgcrypt  $LIBS"
27815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816/* end confdefs.h.  */
27817
27818/* Override any GCC internal prototype to avoid an error.
27819   Use char because int might match the return type of a GCC
27820   builtin and then its argument prototype would still apply.  */
27821#ifdef __cplusplus
27822extern "C"
27823#endif
27824char gcry_md_open ();
27825int
27826main ()
27827{
27828return gcry_md_open ();
27829  ;
27830  return 0;
27831}
27832_ACEOF
27833if ac_fn_c_try_link "$LINENO"; then :
27834  ac_cv_lib_gcrypt_gcry_md_open=yes
27835else
27836  ac_cv_lib_gcrypt_gcry_md_open=no
27837fi
27838rm -f core conftest.err conftest.$ac_objext \
27839    conftest$ac_exeext conftest.$ac_ext
27840LIBS=$ac_check_lib_save_LIBS
27841fi
27842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
27843$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
27844if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then :
27845  HAVE_LIBGCRYPT=yes
27846fi
27847
27848if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
27849	with_sha1=libgcrypt
27850fi
27851if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
27852	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
27853fi
27854if test "x$with_sha1" = xlibgcrypt; then
27855
27856$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
27857
27858	SHA1_LIBS=-lgcrypt
27859fi
27860# We don't need all of the OpenSSL libraries, just libcrypto
27861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
27862$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
27863if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
27864  $as_echo_n "(cached) " >&6
27865else
27866  ac_check_lib_save_LIBS=$LIBS
27867LIBS="-lcrypto  $LIBS"
27868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27869/* end confdefs.h.  */
27870
27871/* Override any GCC internal prototype to avoid an error.
27872   Use char because int might match the return type of a GCC
27873   builtin and then its argument prototype would still apply.  */
27874#ifdef __cplusplus
27875extern "C"
27876#endif
27877char SHA1_Init ();
27878int
27879main ()
27880{
27881return SHA1_Init ();
27882  ;
27883  return 0;
27884}
27885_ACEOF
27886if ac_fn_c_try_link "$LINENO"; then :
27887  ac_cv_lib_crypto_SHA1_Init=yes
27888else
27889  ac_cv_lib_crypto_SHA1_Init=no
27890fi
27891rm -f core conftest.err conftest.$ac_objext \
27892    conftest$ac_exeext conftest.$ac_ext
27893LIBS=$ac_check_lib_save_LIBS
27894fi
27895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
27896$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
27897if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
27898  HAVE_LIBCRYPTO=yes
27899fi
27900
27901
27902pkg_failed=no
27903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
27904$as_echo_n "checking for OPENSSL... " >&6; }
27905
27906if test -n "$OPENSSL_CFLAGS"; then
27907    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
27908 elif test -n "$PKG_CONFIG"; then
27909    if test -n "$PKG_CONFIG" && \
27910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
27911  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
27912  ac_status=$?
27913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27914  test $ac_status = 0; }; then
27915  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
27916		      test "x$?" != "x0" && pkg_failed=yes
27917else
27918  pkg_failed=yes
27919fi
27920 else
27921    pkg_failed=untried
27922fi
27923if test -n "$OPENSSL_LIBS"; then
27924    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
27925 elif test -n "$PKG_CONFIG"; then
27926    if test -n "$PKG_CONFIG" && \
27927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
27928  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
27929  ac_status=$?
27930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931  test $ac_status = 0; }; then
27932  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
27933		      test "x$?" != "x0" && pkg_failed=yes
27934else
27935  pkg_failed=yes
27936fi
27937 else
27938    pkg_failed=untried
27939fi
27940
27941
27942
27943if test $pkg_failed = yes; then
27944   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27945$as_echo "no" >&6; }
27946
27947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27948        _pkg_short_errors_supported=yes
27949else
27950        _pkg_short_errors_supported=no
27951fi
27952        if test $_pkg_short_errors_supported = yes; then
27953	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
27954        else
27955	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
27956        fi
27957	# Put the nasty error message in config.log where it belongs
27958	echo "$OPENSSL_PKG_ERRORS" >&5
27959
27960	HAVE_OPENSSL_PKC=no
27961elif test $pkg_failed = untried; then
27962     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27963$as_echo "no" >&6; }
27964	HAVE_OPENSSL_PKC=no
27965else
27966	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
27967	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
27968        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27969$as_echo "yes" >&6; }
27970	HAVE_OPENSSL_PKC=yes
27971fi
27972if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
27973	if test "x$with_sha1" = x; then
27974		with_sha1=libcrypto
27975	fi
27976else
27977	if test "x$with_sha1" = xlibcrypto; then
27978		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
27979	fi
27980fi
27981if test "x$with_sha1" = xlibcrypto; then
27982	if test "x$HAVE_LIBCRYPTO" = xyes; then
27983		SHA1_LIBS=-lcrypto
27984	else
27985		SHA1_LIBS="$OPENSSL_LIBS"
27986		SHA1_CFLAGS="$OPENSSL_CFLAGS"
27987	fi
27988fi
27989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
27990$as_echo_n "checking for SHA1 implementation... " >&6; }
27991if test "x$with_sha1" = x; then
27992	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
27993fi
27994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
27995$as_echo "$with_sha1" >&6; }
27996
27997
27998
27999
28000pkg_failed=no
28001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
28002$as_echo_n "checking for XSERVERCFLAGS... " >&6; }
28003
28004if test -n "$XSERVERCFLAGS_CFLAGS"; then
28005    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
28006 elif test -n "$PKG_CONFIG"; then
28007    if test -n "$PKG_CONFIG" && \
28008    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28009  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28010  ac_status=$?
28011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28012  test $ac_status = 0; }; then
28013  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28014		      test "x$?" != "x0" && pkg_failed=yes
28015else
28016  pkg_failed=yes
28017fi
28018 else
28019    pkg_failed=untried
28020fi
28021if test -n "$XSERVERCFLAGS_LIBS"; then
28022    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
28023 elif test -n "$PKG_CONFIG"; then
28024    if test -n "$PKG_CONFIG" && \
28025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28026  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28027  ac_status=$?
28028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029  test $ac_status = 0; }; then
28030  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28031		      test "x$?" != "x0" && pkg_failed=yes
28032else
28033  pkg_failed=yes
28034fi
28035 else
28036    pkg_failed=untried
28037fi
28038
28039
28040
28041if test $pkg_failed = yes; then
28042   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28043$as_echo "no" >&6; }
28044
28045if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28046        _pkg_short_errors_supported=yes
28047else
28048        _pkg_short_errors_supported=no
28049fi
28050        if test $_pkg_short_errors_supported = yes; then
28051	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28052        else
28053	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28054        fi
28055	# Put the nasty error message in config.log where it belongs
28056	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
28057
28058	as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
28059
28060$XSERVERCFLAGS_PKG_ERRORS
28061
28062Consider adjusting the PKG_CONFIG_PATH environment variable if you
28063installed software in a non-standard prefix.
28064
28065Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28066and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28067See the pkg-config man page for more details." "$LINENO" 5
28068elif test $pkg_failed = untried; then
28069     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28070$as_echo "no" >&6; }
28071	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28073as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28074is in your PATH or set the PKG_CONFIG environment variable to the full
28075path to pkg-config.
28076
28077Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28078and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28079See the pkg-config man page for more details.
28080
28081To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28082See \`config.log' for more details" "$LINENO" 5; }
28083else
28084	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
28085	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
28086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28087$as_echo "yes" >&6; }
28088
28089fi
28090
28091pkg_failed=no
28092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
28093$as_echo_n "checking for XSERVERLIBS... " >&6; }
28094
28095if test -n "$XSERVERLIBS_CFLAGS"; then
28096    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
28097 elif test -n "$PKG_CONFIG"; then
28098    if test -n "$PKG_CONFIG" && \
28099    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28100  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28101  ac_status=$?
28102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28103  test $ac_status = 0; }; then
28104  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
28105		      test "x$?" != "x0" && pkg_failed=yes
28106else
28107  pkg_failed=yes
28108fi
28109 else
28110    pkg_failed=untried
28111fi
28112if test -n "$XSERVERLIBS_LIBS"; then
28113    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
28114 elif test -n "$PKG_CONFIG"; then
28115    if test -n "$PKG_CONFIG" && \
28116    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28117  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28118  ac_status=$?
28119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28120  test $ac_status = 0; }; then
28121  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
28122		      test "x$?" != "x0" && pkg_failed=yes
28123else
28124  pkg_failed=yes
28125fi
28126 else
28127    pkg_failed=untried
28128fi
28129
28130
28131
28132if test $pkg_failed = yes; then
28133   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28134$as_echo "no" >&6; }
28135
28136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28137        _pkg_short_errors_supported=yes
28138else
28139        _pkg_short_errors_supported=no
28140fi
28141        if test $_pkg_short_errors_supported = yes; then
28142	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28143        else
28144	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28145        fi
28146	# Put the nasty error message in config.log where it belongs
28147	echo "$XSERVERLIBS_PKG_ERRORS" >&5
28148
28149	as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
28150
28151$XSERVERLIBS_PKG_ERRORS
28152
28153Consider adjusting the PKG_CONFIG_PATH environment variable if you
28154installed software in a non-standard prefix.
28155
28156Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28157and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28158See the pkg-config man page for more details." "$LINENO" 5
28159elif test $pkg_failed = untried; then
28160     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161$as_echo "no" >&6; }
28162	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28164as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28165is in your PATH or set the PKG_CONFIG environment variable to the full
28166path to pkg-config.
28167
28168Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28169and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28170See the pkg-config man page for more details.
28171
28172To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28173See \`config.log' for more details" "$LINENO" 5; }
28174else
28175	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
28176	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
28177        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28178$as_echo "yes" >&6; }
28179
28180fi
28181
28182
28183pkg_failed=no
28184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
28185$as_echo_n "checking for LIBUNWIND... " >&6; }
28186
28187if test -n "$LIBUNWIND_CFLAGS"; then
28188    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
28189 elif test -n "$PKG_CONFIG"; then
28190    if test -n "$PKG_CONFIG" && \
28191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28192  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28193  ac_status=$?
28194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28195  test $ac_status = 0; }; then
28196  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
28197		      test "x$?" != "x0" && pkg_failed=yes
28198else
28199  pkg_failed=yes
28200fi
28201 else
28202    pkg_failed=untried
28203fi
28204if test -n "$LIBUNWIND_LIBS"; then
28205    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
28206 elif test -n "$PKG_CONFIG"; then
28207    if test -n "$PKG_CONFIG" && \
28208    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28209  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28210  ac_status=$?
28211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28212  test $ac_status = 0; }; then
28213  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
28214		      test "x$?" != "x0" && pkg_failed=yes
28215else
28216  pkg_failed=yes
28217fi
28218 else
28219    pkg_failed=untried
28220fi
28221
28222
28223
28224if test $pkg_failed = yes; then
28225   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28226$as_echo "no" >&6; }
28227
28228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28229        _pkg_short_errors_supported=yes
28230else
28231        _pkg_short_errors_supported=no
28232fi
28233        if test $_pkg_short_errors_supported = yes; then
28234	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
28235        else
28236	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
28237        fi
28238	# Put the nasty error message in config.log where it belongs
28239	echo "$LIBUNWIND_PKG_ERRORS" >&5
28240
28241	HAVE_LIBUNWIND=no
28242elif test $pkg_failed = untried; then
28243     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28244$as_echo "no" >&6; }
28245	HAVE_LIBUNWIND=no
28246else
28247	LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
28248	LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
28249        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28250$as_echo "yes" >&6; }
28251	HAVE_LIBUNWIND=yes
28252fi
28253if test "x$LIBUNWIND" = "xauto"; then
28254    LIBUNWIND="$HAVE_LIBUNWIND"
28255fi
28256
28257if test "x$LIBUNWIND" = "xyes"; then
28258    if test "x$HAVE_LIBUNWIND" != "xyes"; then
28259        as_fn_error $? "libunwind requested but not installed." "$LINENO" 5
28260    fi
28261
28262$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
28263
28264fi
28265
28266 if test "x$LIBUNWIND" = xyes; then
28267  HAVE_LIBUNWIND_TRUE=
28268  HAVE_LIBUNWIND_FALSE='#'
28269else
28270  HAVE_LIBUNWIND_TRUE='#'
28271  HAVE_LIBUNWIND_FALSE=
28272fi
28273
28274
28275# Autotools has some unfortunate issues with library handling.  In order to
28276# get a server to rebuild when a dependency in the tree is changed, it must
28277# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
28278# listed there, or some versions of autotools will break (especially if a -L
28279# is required to find the library).  So, we keep two sets of libraries
28280# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
28281# will go into the _DEPENDENCIES and _LDADD of the server, and
28282# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
28283# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
28284# NAMESPACE_SYS_LIBS.
28285#
28286# XSERVER_LIBS is the set of in-tree libraries which all servers require.
28287# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
28288# require.
28289#
28290XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
28291XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
28292XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
28293
28294
28295
28296UTILS_SYS_LIBS="${SYS_LIBS}"
28297
28298
28299# The Xorg binary needs to export symbols so that they can be used from modules
28300# Some platforms require extra flags to do this.   libtool should set the
28301# necessary flags for each platform when -export-dynamic is passed to it.
28302LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
28303LD_NO_UNDEFINED_FLAG=
28304XORG_DRIVER_LIBS=
28305case "$host_os" in
28306    cygwin*)
28307	LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a"
28308	LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a"
28309	XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined"
28310	CYGWIN=yes
28311	;;
28312    solaris*)
28313	# We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT
28314	# that we can link against for testing if the system linker is new
28315	# enough to support -z parent=<program> for verifying loadable modules
28316	# are only calling functions defined in either the loading program or
28317	# the libraries they're linked with.
28318	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28319/* end confdefs.h.  */
28320int main(int argc, char **argv) { return 0; }
28321_ACEOF
28322if ac_fn_c_try_link "$LINENO"; then :
28323  mv conftest$EXEEXT conftest.parent
28324	     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5
28325$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; }
28326if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then :
28327  $as_echo_n "(cached) " >&6
28328else
28329
28330      ax_save_FLAGS=$LDFLAGS
28331      LDFLAGS="-Wl,-z,parent=conftest.parent -G"
28332      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28333/* end confdefs.h.  */
28334extern int main(int argc, char **argv);
28335			int call_main(void) { return main(0, (void *)0); }
28336_ACEOF
28337if ac_fn_c_try_link "$LINENO"; then :
28338  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes
28339else
28340  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no
28341fi
28342rm -f core conftest.err conftest.$ac_objext \
28343    conftest$ac_exeext conftest.$ac_ext
28344      LDFLAGS=$ax_save_FLAGS
28345fi
28346
28347eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G
28348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
28349$as_echo "$xorg_check_linker_flags" >&6; }
28350if test "x$xorg_check_linker_flags" = xyes; then
28351	LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg"
28352# Not set yet, since this gets exported in xorg-server.pc to all the drivers,
28353# and they're not all fixed to build correctly with it yet.
28354#		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
28355
28356else
28357	:
28358fi
28359
28360	     rm -f conftest.parent
28361
28362fi
28363rm -f core conftest.err conftest.$ac_objext \
28364    conftest$ac_exeext conftest.$ac_ext
28365	;;
28366esac
28367
28368
28369
28370 if test x"$CYGWIN" = xyes; then
28371  CYGWIN_TRUE=
28372  CYGWIN_FALSE='#'
28373else
28374  CYGWIN_TRUE='#'
28375  CYGWIN_FALSE=
28376fi
28377
28378 if test x"$LD_NO_UNDEFINED_FLAG" != x; then
28379  NO_UNDEFINED_TRUE=
28380  NO_UNDEFINED_FALSE='#'
28381else
28382  NO_UNDEFINED_TRUE='#'
28383  NO_UNDEFINED_FALSE=
28384fi
28385
28386
28387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
28388$as_echo_n "checking if SVR4 needs to be defined... " >&6; }
28389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390/* end confdefs.h.  */
28391
28392#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
28393 I_AM_SVR4
28394#endif
28395
28396_ACEOF
28397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28398  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then :
28399
28400
28401$as_echo "#define SVR4 1" >>confdefs.h
28402
28403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28404$as_echo "yes" >&6; }
28405else
28406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28407$as_echo "no" >&6; }
28408fi
28409rm -f conftest*
28410
28411
28412XSERVER_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"
28413
28414
28415
28416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
28417$as_echo_n "checking whether to build Xvfb DDX... " >&6; }
28418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
28419$as_echo "$XVFB" >&6; }
28420 if test "x$XVFB" = xyes; then
28421  XVFB_TRUE=
28422  XVFB_FALSE='#'
28423else
28424  XVFB_TRUE='#'
28425  XVFB_FALSE=
28426fi
28427
28428
28429if test "x$XVFB" = xyes; then
28430	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"
28431	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
28432
28433
28434fi
28435
28436
28437
28438
28439pkg_failed=no
28440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
28441$as_echo_n "checking for XNESTMODULES... " >&6; }
28442
28443if test -n "$XNESTMODULES_CFLAGS"; then
28444    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
28445 elif test -n "$PKG_CONFIG"; then
28446    if test -n "$PKG_CONFIG" && \
28447    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28448  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28449  ac_status=$?
28450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28451  test $ac_status = 0; }; then
28452  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28453		      test "x$?" != "x0" && pkg_failed=yes
28454else
28455  pkg_failed=yes
28456fi
28457 else
28458    pkg_failed=untried
28459fi
28460if test -n "$XNESTMODULES_LIBS"; then
28461    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
28462 elif test -n "$PKG_CONFIG"; then
28463    if test -n "$PKG_CONFIG" && \
28464    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28465  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28466  ac_status=$?
28467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28468  test $ac_status = 0; }; then
28469  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28470		      test "x$?" != "x0" && pkg_failed=yes
28471else
28472  pkg_failed=yes
28473fi
28474 else
28475    pkg_failed=untried
28476fi
28477
28478
28479
28480if test $pkg_failed = yes; then
28481   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28482$as_echo "no" >&6; }
28483
28484if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28485        _pkg_short_errors_supported=yes
28486else
28487        _pkg_short_errors_supported=no
28488fi
28489        if test $_pkg_short_errors_supported = yes; then
28490	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28491        else
28492	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28493        fi
28494	# Put the nasty error message in config.log where it belongs
28495	echo "$XNESTMODULES_PKG_ERRORS" >&5
28496
28497	have_xnest=no
28498elif test $pkg_failed = untried; then
28499     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28500$as_echo "no" >&6; }
28501	have_xnest=no
28502else
28503	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
28504	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
28505        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28506$as_echo "yes" >&6; }
28507	have_xnest=yes
28508fi
28509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
28510$as_echo_n "checking whether to build Xnest DDX... " >&6; }
28511if test "x$XNEST" = xauto; then
28512	XNEST="$have_xnest"
28513fi
28514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
28515$as_echo "$XNEST" >&6; }
28516 if test "x$XNEST" = xyes; then
28517  XNEST_TRUE=
28518  XNEST_FALSE='#'
28519else
28520  XNEST_TRUE='#'
28521  XNEST_FALSE=
28522fi
28523
28524
28525if test "x$XNEST" = xyes; then
28526	if test "x$have_xnest" = xno; then
28527		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
28528	fi
28529	XNEST_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"
28530	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
28531
28532
28533fi
28534
28535
28536
28537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
28538$as_echo_n "checking whether to build Xorg DDX... " >&6; }
28539if test "x$XORG" = xauto; then
28540	XORG="yes"
28541	case $host_os in
28542		cygwin*) XORG="no" ;;
28543		mingw*)  XORG="no" ;;
28544		darwin*) XORG="no" ;;
28545	esac
28546fi
28547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
28548$as_echo "$XORG" >&6; }
28549
28550if test "x$XORG" = xyes; then
28551	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
28552	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
28553	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
28554	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
28555	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"
28556
28557			symbol_visibility=
28558	have_visibility=disabled
28559	if test x$SYMBOL_VISIBILITY != xno; then
28560	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
28561$as_echo_n "checking for symbol visibility support... " >&6; }
28562	    if test x$GCC = xyes; then
28563		VISIBILITY_CFLAGS="-fvisibility=hidden"
28564	    else
28565		if test x$SUNCC = xyes; then
28566		    VISIBILITY_CFLAGS="-xldscope=hidden"
28567		else
28568		    have_visibility=no
28569		fi
28570	    fi
28571	    if test x$have_visibility != xno; then
28572		save_CFLAGS="$CFLAGS"
28573		proto_inc=`$PKG_CONFIG --cflags xproto`
28574		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc"
28575		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28576/* end confdefs.h.  */
28577
28578		    #include <X11/Xfuncproto.h>
28579		     extern _X_HIDDEN int hidden_int;
28580		     extern _X_EXPORT int public_int;
28581		     extern _X_HIDDEN int hidden_int_func(void);
28582		     extern _X_EXPORT int public_int_func(void);
28583int
28584main ()
28585{
28586
28587  ;
28588  return 0;
28589}
28590_ACEOF
28591if ac_fn_c_try_compile "$LINENO"; then :
28592  have_visibility=yes
28593else
28594  have_visibility=no
28595fi
28596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28597		CFLAGS=$save_CFLAGS
28598	    fi
28599	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
28600$as_echo "$have_visibility" >&6; }
28601	    if test x$have_visibility != xno; then
28602		symbol_visibility=$VISIBILITY_CFLAGS
28603		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
28604		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
28605	    fi
28606	fi
28607
28608
28609				xorg_bus_bsdpci=no
28610	xorg_bus_sparc=no
28611
28612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5
28613$as_echo_n "checking whether to build Xorg PCI functions... " >&6; }
28614	if test "x$PCI" = xyes; then
28615
28616pkg_failed=no
28617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
28618$as_echo_n "checking for PCIACCESS... " >&6; }
28619
28620if test -n "$PCIACCESS_CFLAGS"; then
28621    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
28622 elif test -n "$PKG_CONFIG"; then
28623    if test -n "$PKG_CONFIG" && \
28624    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
28625  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
28626  ac_status=$?
28627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28628  test $ac_status = 0; }; then
28629  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
28630		      test "x$?" != "x0" && pkg_failed=yes
28631else
28632  pkg_failed=yes
28633fi
28634 else
28635    pkg_failed=untried
28636fi
28637if test -n "$PCIACCESS_LIBS"; then
28638    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
28639 elif test -n "$PKG_CONFIG"; then
28640    if test -n "$PKG_CONFIG" && \
28641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
28642  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
28643  ac_status=$?
28644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28645  test $ac_status = 0; }; then
28646  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
28647		      test "x$?" != "x0" && pkg_failed=yes
28648else
28649  pkg_failed=yes
28650fi
28651 else
28652    pkg_failed=untried
28653fi
28654
28655
28656
28657if test $pkg_failed = yes; then
28658   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28659$as_echo "no" >&6; }
28660
28661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28662        _pkg_short_errors_supported=yes
28663else
28664        _pkg_short_errors_supported=no
28665fi
28666        if test $_pkg_short_errors_supported = yes; then
28667	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
28668        else
28669	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
28670        fi
28671	# Put the nasty error message in config.log where it belongs
28672	echo "$PCIACCESS_PKG_ERRORS" >&5
28673
28674	as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
28675
28676$PCIACCESS_PKG_ERRORS
28677
28678Consider adjusting the PKG_CONFIG_PATH environment variable if you
28679installed software in a non-standard prefix.
28680
28681Alternatively, you may set the environment variables PCIACCESS_CFLAGS
28682and PCIACCESS_LIBS to avoid the need to call pkg-config.
28683See the pkg-config man page for more details." "$LINENO" 5
28684elif test $pkg_failed = untried; then
28685     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28686$as_echo "no" >&6; }
28687	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28689as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28690is in your PATH or set the PKG_CONFIG environment variable to the full
28691path to pkg-config.
28692
28693Alternatively, you may set the environment variables PCIACCESS_CFLAGS
28694and PCIACCESS_LIBS to avoid the need to call pkg-config.
28695See the pkg-config man page for more details.
28696
28697To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28698See \`config.log' for more details" "$LINENO" 5; }
28699else
28700	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
28701	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
28702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28703$as_echo "yes" >&6; }
28704
28705fi
28706		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
28707		XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS"
28708		XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS"
28709
28710
28711$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
28712
28713
28714  prefix_NONE=
28715  exec_prefix_NONE=
28716  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28717  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28718  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
28719  eval ac_define_dir="\"$ac_define_dir\""
28720  PCI_TXT_IDS_PATH="$ac_define_dir"
28721
28722
28723cat >>confdefs.h <<_ACEOF
28724#define PCI_TXT_IDS_PATH "$ac_define_dir"
28725_ACEOF
28726
28727  test "$prefix_NONE" && prefix=NONE
28728  test "$exec_prefix_NONE" && exec_prefix=NONE
28729
28730		case $host_os in
28731		  gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*)
28732			xorg_bus_bsdpci="yes"
28733			;;
28734		esac
28735		case $host_cpu in
28736		  sparc*)
28737			xorg_bus_sparc="yes"
28738			;;
28739		esac
28740	else
28741		if test "x$CONFIG_UDEV_KMS" = xyes; then
28742			as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5
28743		fi
28744		if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then
28745			as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5
28746		fi
28747	fi
28748	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5
28749$as_echo "$PCI" >&6; }
28750
28751	if test "x$CONFIG_UDEV_KMS" = xyes; then
28752
28753$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h
28754
28755	fi
28756	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5
28757$as_echo "$XSERVER_PLATFORM_BUS" >&6; }
28758
28759	case $host_os in
28760	  linux*)
28761		XORG_OS_SUBDIR="linux"
28762		linux_acpi="no"
28763		case $host_cpu in
28764		  alpha*)
28765		  	linux_alpha=yes
28766			;;
28767		  i*86|amd64*|x86_64*|ia64*)
28768			linux_acpi=$enable_linux_acpi
28769			;;
28770		  *)
28771			;;
28772		esac
28773				for ac_header in linux/apm_bios.h
28774do :
28775  ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
28776if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then :
28777  cat >>confdefs.h <<_ACEOF
28778#define HAVE_LINUX_APM_BIOS_H 1
28779_ACEOF
28780 linux_apm=$enable_linux_apm
28781fi
28782
28783done
28784
28785		if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then
28786
28787$as_echo "#define XF86PM 1" >>confdefs.h
28788
28789		fi
28790		;;
28791	  freebsd* | kfreebsd*-gnu | dragonfly*)
28792		XORG_OS_SUBDIR="bsd"
28793		;;
28794	  netbsd*)
28795		XORG_OS_SUBDIR="bsd"
28796		;;
28797	  openbsd*)
28798		if test "x$ac_cv_BSD_APM" = xyes \
28799			-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
28800			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
28801		fi
28802		XORG_OS_SUBDIR="bsd"
28803		;;
28804	  solaris*)
28805		XORG_OS_SUBDIR="solaris"
28806		XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
28807		for ac_header in sys/kd.h
28808do :
28809  ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
28810if test "x$ac_cv_header_sys_kd_h" = xyes; then :
28811  cat >>confdefs.h <<_ACEOF
28812#define HAVE_SYS_KD_H 1
28813_ACEOF
28814
28815fi
28816
28817done
28818
28819		for ac_header in sys/vt.h
28820do :
28821  ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
28822if test "x$ac_cv_header_sys_vt_h" = xyes; then :
28823  cat >>confdefs.h <<_ACEOF
28824#define HAVE_SYS_VT_H 1
28825_ACEOF
28826 solaris_vt=yes
28827else
28828  solaris_vt=no
28829fi
28830
28831done
28832
28833		# Check for minimum supported release
28834		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
28835$as_echo_n "checking Solaris version... " >&6; }
28836	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
28837		if test "${OS_MINOR}" -ge 7 ; then
28838	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
28839$as_echo "Solaris ${OS_MINOR}" >&6; }
28840		else
28841			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
28842$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
28843		fi
28844		if test "${OS_MINOR}" -lt 8 ; then
28845			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
28846		fi
28847		ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
28848if test "x$ac_cv_have_decl__LP64" = xyes; then :
28849  SOLARIS_64="yes"
28850else
28851  SOLARIS_64="no"
28852fi
28853
28854
28855		case $host_cpu in
28856		  sparc*)
28857			SOLARIS_INOUT_ARCH="sparcv8plus"
28858			;;
28859		  i*86|x86_64*)
28860			if test x$SOLARIS_64 = xyes ; then
28861				SOLARIS_INOUT_ARCH="amd64"
28862			else
28863				SOLARIS_INOUT_ARCH="ia32"
28864			fi
28865			;;
28866		  *)
28867			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
28868			are supported on Solaris in this release.   If you are \
28869			interested in porting Xorg to your platform, please email \
28870			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
28871		esac
28872
28873		;;
28874	  gnu*)
28875		XORG_OS_SUBDIR="hurd"
28876		;;
28877	  cygwin*)
28878		XORG_OS_SUBDIR="stub"
28879		;;
28880	  *)
28881		XORG_OS_SUBDIR="stub"
28882		{ $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform,
28883please email xorg@lists.freedesktop.org." >&5
28884$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform,
28885please email xorg@lists.freedesktop.org." >&6;}
28886		;;
28887	esac
28888
28889	if test "x$DGA" = xauto; then
28890
28891pkg_failed=no
28892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
28893$as_echo_n "checking for DGA... " >&6; }
28894
28895if test -n "$DGA_CFLAGS"; then
28896    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
28897 elif test -n "$PKG_CONFIG"; then
28898    if test -n "$PKG_CONFIG" && \
28899    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
28900  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
28901  ac_status=$?
28902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28903  test $ac_status = 0; }; then
28904  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
28905		      test "x$?" != "x0" && pkg_failed=yes
28906else
28907  pkg_failed=yes
28908fi
28909 else
28910    pkg_failed=untried
28911fi
28912if test -n "$DGA_LIBS"; then
28913    pkg_cv_DGA_LIBS="$DGA_LIBS"
28914 elif test -n "$PKG_CONFIG"; then
28915    if test -n "$PKG_CONFIG" && \
28916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
28917  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
28918  ac_status=$?
28919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28920  test $ac_status = 0; }; then
28921  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
28922		      test "x$?" != "x0" && pkg_failed=yes
28923else
28924  pkg_failed=yes
28925fi
28926 else
28927    pkg_failed=untried
28928fi
28929
28930
28931
28932if test $pkg_failed = yes; then
28933   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28934$as_echo "no" >&6; }
28935
28936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28937        _pkg_short_errors_supported=yes
28938else
28939        _pkg_short_errors_supported=no
28940fi
28941        if test $_pkg_short_errors_supported = yes; then
28942	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
28943        else
28944	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
28945        fi
28946	# Put the nasty error message in config.log where it belongs
28947	echo "$DGA_PKG_ERRORS" >&5
28948
28949	DGA=no
28950elif test $pkg_failed = untried; then
28951     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28952$as_echo "no" >&6; }
28953	DGA=no
28954else
28955	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
28956	DGA_LIBS=$pkg_cv_DGA_LIBS
28957        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28958$as_echo "yes" >&6; }
28959	DGA=yes
28960fi
28961	fi
28962	if test "x$DGA" = xyes; then
28963		XORG_MODULES="$XORG_MODULES $DGAPROTO"
28964
28965pkg_failed=no
28966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
28967$as_echo_n "checking for DGA... " >&6; }
28968
28969if test -n "$DGA_CFLAGS"; then
28970    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
28971 elif test -n "$PKG_CONFIG"; then
28972    if test -n "$PKG_CONFIG" && \
28973    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
28974  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
28975  ac_status=$?
28976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28977  test $ac_status = 0; }; then
28978  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
28979		      test "x$?" != "x0" && pkg_failed=yes
28980else
28981  pkg_failed=yes
28982fi
28983 else
28984    pkg_failed=untried
28985fi
28986if test -n "$DGA_LIBS"; then
28987    pkg_cv_DGA_LIBS="$DGA_LIBS"
28988 elif test -n "$PKG_CONFIG"; then
28989    if test -n "$PKG_CONFIG" && \
28990    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
28991  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
28992  ac_status=$?
28993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28994  test $ac_status = 0; }; then
28995  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
28996		      test "x$?" != "x0" && pkg_failed=yes
28997else
28998  pkg_failed=yes
28999fi
29000 else
29001    pkg_failed=untried
29002fi
29003
29004
29005
29006if test $pkg_failed = yes; then
29007   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29008$as_echo "no" >&6; }
29009
29010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29011        _pkg_short_errors_supported=yes
29012else
29013        _pkg_short_errors_supported=no
29014fi
29015        if test $_pkg_short_errors_supported = yes; then
29016	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29017        else
29018	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29019        fi
29020	# Put the nasty error message in config.log where it belongs
29021	echo "$DGA_PKG_ERRORS" >&5
29022
29023	as_fn_error $? "Package requirements ($DGAPROTO) were not met:
29024
29025$DGA_PKG_ERRORS
29026
29027Consider adjusting the PKG_CONFIG_PATH environment variable if you
29028installed software in a non-standard prefix.
29029
29030Alternatively, you may set the environment variables DGA_CFLAGS
29031and DGA_LIBS to avoid the need to call pkg-config.
29032See the pkg-config man page for more details." "$LINENO" 5
29033elif test $pkg_failed = untried; then
29034     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29035$as_echo "no" >&6; }
29036	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29038as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29039is in your PATH or set the PKG_CONFIG environment variable to the full
29040path to pkg-config.
29041
29042Alternatively, you may set the environment variables DGA_CFLAGS
29043and DGA_LIBS to avoid the need to call pkg-config.
29044See the pkg-config man page for more details.
29045
29046To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29047See \`config.log' for more details" "$LINENO" 5; }
29048else
29049	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
29050	DGA_LIBS=$pkg_cv_DGA_LIBS
29051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29052$as_echo "yes" >&6; }
29053
29054fi
29055
29056$as_echo "#define DGA 1" >>confdefs.h
29057
29058
29059$as_echo "#define XFreeXDGA 1" >>confdefs.h
29060
29061	fi
29062
29063	if test "x$XF86VIDMODE" = xyes; then
29064		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
29065	fi
29066
29067	if test -n "$XORG_MODULES"; then
29068
29069pkg_failed=no
29070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
29071$as_echo_n "checking for XORG_MODULES... " >&6; }
29072
29073if test -n "$XORG_MODULES_CFLAGS"; then
29074    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
29075 elif test -n "$PKG_CONFIG"; then
29076    if test -n "$PKG_CONFIG" && \
29077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29078  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29079  ac_status=$?
29080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29081  test $ac_status = 0; }; then
29082  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
29083		      test "x$?" != "x0" && pkg_failed=yes
29084else
29085  pkg_failed=yes
29086fi
29087 else
29088    pkg_failed=untried
29089fi
29090if test -n "$XORG_MODULES_LIBS"; then
29091    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
29092 elif test -n "$PKG_CONFIG"; then
29093    if test -n "$PKG_CONFIG" && \
29094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29095  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29096  ac_status=$?
29097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29098  test $ac_status = 0; }; then
29099  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
29100		      test "x$?" != "x0" && pkg_failed=yes
29101else
29102  pkg_failed=yes
29103fi
29104 else
29105    pkg_failed=untried
29106fi
29107
29108
29109
29110if test $pkg_failed = yes; then
29111   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29112$as_echo "no" >&6; }
29113
29114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29115        _pkg_short_errors_supported=yes
29116else
29117        _pkg_short_errors_supported=no
29118fi
29119        if test $_pkg_short_errors_supported = yes; then
29120	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29121        else
29122	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29123        fi
29124	# Put the nasty error message in config.log where it belongs
29125	echo "$XORG_MODULES_PKG_ERRORS" >&5
29126
29127	as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
29128
29129$XORG_MODULES_PKG_ERRORS
29130
29131Consider adjusting the PKG_CONFIG_PATH environment variable if you
29132installed software in a non-standard prefix.
29133
29134Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29135and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29136See the pkg-config man page for more details." "$LINENO" 5
29137elif test $pkg_failed = untried; then
29138     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139$as_echo "no" >&6; }
29140	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29142as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29143is in your PATH or set the PKG_CONFIG environment variable to the full
29144path to pkg-config.
29145
29146Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29147and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29148See the pkg-config man page for more details.
29149
29150To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29151See \`config.log' for more details" "$LINENO" 5; }
29152else
29153	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
29154	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
29155        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29156$as_echo "yes" >&6; }
29157
29158fi
29159	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
29160	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
29161	fi
29162
29163	if test "x$DRM" = xyes; then
29164				if test -n "$PKG_CONFIG" && \
29165    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
29166  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
29167  ac_status=$?
29168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29169  test $ac_status = 0; }; then
29170  XORG_DRIVER_MODESETTING=yes
29171else
29172  XORG_DRIVER_MODESETTING=no
29173fi
29174	fi
29175
29176
29177
29178
29179
29180
29181
29182		XF86CONFIGFILE="xorg.conf"
29183	XF86CONFIGDIR="xorg.conf.d"
29184
29185	CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
29186	LOGPREFIX="Xorg."
29187	XDG_DATA_HOME=".local/share"
29188	XDG_DATA_HOME_LOGDIR="xorg"
29189
29190$as_echo "#define XORG_SERVER 1" >>confdefs.h
29191
29192
29193$as_echo "#define XORGSERVER 1" >>confdefs.h
29194
29195
29196$as_echo "#define XFree86Server 1" >>confdefs.h
29197
29198
29199cat >>confdefs.h <<_ACEOF
29200#define XORG_VERSION_CURRENT $VENDOR_RELEASE
29201_ACEOF
29202
29203
29204$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h
29205
29206
29207$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
29208
29209
29210$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
29211
29212
29213  prefix_NONE=
29214  exec_prefix_NONE=
29215  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29216  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29217  eval ac_define_dir="\"$XF86CONFIGFILE\""
29218  eval ac_define_dir="\"$ac_define_dir\""
29219  __XCONFIGFILE__="$ac_define_dir"
29220
29221
29222cat >>confdefs.h <<_ACEOF
29223#define __XCONFIGFILE__ "$ac_define_dir"
29224_ACEOF
29225
29226  test "$prefix_NONE" && prefix=NONE
29227  test "$exec_prefix_NONE" && exec_prefix=NONE
29228
29229
29230  prefix_NONE=
29231  exec_prefix_NONE=
29232  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29233  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29234  eval ac_define_dir="\"$XF86CONFIGFILE\""
29235  eval ac_define_dir="\"$ac_define_dir\""
29236  XF86CONFIGFILE="$ac_define_dir"
29237
29238
29239cat >>confdefs.h <<_ACEOF
29240#define XF86CONFIGFILE "$ac_define_dir"
29241_ACEOF
29242
29243  test "$prefix_NONE" && prefix=NONE
29244  test "$exec_prefix_NONE" && exec_prefix=NONE
29245
29246
29247  prefix_NONE=
29248  exec_prefix_NONE=
29249  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29250  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29251  eval ac_define_dir="\"$XF86CONFIGDIR\""
29252  eval ac_define_dir="\"$ac_define_dir\""
29253  __XCONFIGDIR__="$ac_define_dir"
29254
29255
29256cat >>confdefs.h <<_ACEOF
29257#define __XCONFIGDIR__ "$ac_define_dir"
29258_ACEOF
29259
29260  test "$prefix_NONE" && prefix=NONE
29261  test "$exec_prefix_NONE" && exec_prefix=NONE
29262
29263
29264  prefix_NONE=
29265  exec_prefix_NONE=
29266  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29267  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29268  eval ac_define_dir="\"$moduledir\""
29269  eval ac_define_dir="\"$ac_define_dir\""
29270  DEFAULT_MODULE_PATH="$ac_define_dir"
29271
29272
29273cat >>confdefs.h <<_ACEOF
29274#define DEFAULT_MODULE_PATH "$ac_define_dir"
29275_ACEOF
29276
29277  test "$prefix_NONE" && prefix=NONE
29278  test "$exec_prefix_NONE" && exec_prefix=NONE
29279
29280
29281  prefix_NONE=
29282  exec_prefix_NONE=
29283  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29284  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29285  eval ac_define_dir="\"$libdir\""
29286  eval ac_define_dir="\"$ac_define_dir\""
29287  DEFAULT_LIBRARY_PATH="$ac_define_dir"
29288
29289
29290cat >>confdefs.h <<_ACEOF
29291#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
29292_ACEOF
29293
29294  test "$prefix_NONE" && prefix=NONE
29295  test "$exec_prefix_NONE" && exec_prefix=NONE
29296
29297
29298  prefix_NONE=
29299  exec_prefix_NONE=
29300  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29301  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29302  eval ac_define_dir="\"$logdir\""
29303  eval ac_define_dir="\"$ac_define_dir\""
29304  DEFAULT_LOGDIR="$ac_define_dir"
29305
29306
29307cat >>confdefs.h <<_ACEOF
29308#define DEFAULT_LOGDIR "$ac_define_dir"
29309_ACEOF
29310
29311  test "$prefix_NONE" && prefix=NONE
29312  test "$exec_prefix_NONE" && exec_prefix=NONE
29313
29314
29315  prefix_NONE=
29316  exec_prefix_NONE=
29317  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29318  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29319  eval ac_define_dir="\"$LOGPREFIX\""
29320  eval ac_define_dir="\"$ac_define_dir\""
29321  DEFAULT_LOGPREFIX="$ac_define_dir"
29322
29323
29324cat >>confdefs.h <<_ACEOF
29325#define DEFAULT_LOGPREFIX "$ac_define_dir"
29326_ACEOF
29327
29328  test "$prefix_NONE" && prefix=NONE
29329  test "$exec_prefix_NONE" && exec_prefix=NONE
29330
29331
29332  prefix_NONE=
29333  exec_prefix_NONE=
29334  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29335  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29336  eval ac_define_dir="\"$XDG_DATA_HOME\""
29337  eval ac_define_dir="\"$ac_define_dir\""
29338  DEFAULT_XDG_DATA_HOME="$ac_define_dir"
29339
29340
29341cat >>confdefs.h <<_ACEOF
29342#define DEFAULT_XDG_DATA_HOME "$ac_define_dir"
29343_ACEOF
29344
29345  test "$prefix_NONE" && prefix=NONE
29346  test "$exec_prefix_NONE" && exec_prefix=NONE
29347
29348
29349  prefix_NONE=
29350  exec_prefix_NONE=
29351  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29352  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29353  eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\""
29354  eval ac_define_dir="\"$ac_define_dir\""
29355  DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir"
29356
29357
29358cat >>confdefs.h <<_ACEOF
29359#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir"
29360_ACEOF
29361
29362  test "$prefix_NONE" && prefix=NONE
29363  test "$exec_prefix_NONE" && exec_prefix=NONE
29364
29365
29366cat >>confdefs.h <<_ACEOF
29367#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
29368_ACEOF
29369
29370	if test "x$VGAHW" = xyes; then
29371
29372$as_echo "#define WITH_VGAHW 1" >>confdefs.h
29373
29374	fi
29375
29376	driverdir="$moduledir/drivers"
29377
29378
29379	sdkdir="$includedir/xorg"
29380	extdir="$includedir/X11/extensions"
29381	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
29382
29383
29384
29385
29386
29387	# stuff the ABI versions into the pc file too
29388	extract_abi() {
29389	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
29390	}
29391	abi_ansic=`extract_abi ANSIC`
29392	abi_videodrv=`extract_abi VIDEODRV`
29393	abi_xinput=`extract_abi XINPUT`
29394	abi_extension=`extract_abi EXTENSION`
29395
29396
29397
29398
29399fi
29400 if test "x$XORG" = xyes; then
29401  XORG_TRUE=
29402  XORG_FALSE='#'
29403else
29404  XORG_TRUE='#'
29405  XORG_FALSE=
29406fi
29407
29408 if test "x$PCI" = xyes; then
29409  XORG_BUS_PCI_TRUE=
29410  XORG_BUS_PCI_FALSE='#'
29411else
29412  XORG_BUS_PCI_TRUE='#'
29413  XORG_BUS_PCI_FALSE=
29414fi
29415
29416 if test "x$xorg_bus_bsdpci" = xyes; then
29417  XORG_BUS_BSDPCI_TRUE=
29418  XORG_BUS_BSDPCI_FALSE='#'
29419else
29420  XORG_BUS_BSDPCI_TRUE='#'
29421  XORG_BUS_BSDPCI_FALSE=
29422fi
29423
29424 if test "x$xorg_bus_sparc" = xyes; then
29425  XORG_BUS_SPARC_TRUE=
29426  XORG_BUS_SPARC_FALSE='#'
29427else
29428  XORG_BUS_SPARC_TRUE='#'
29429  XORG_BUS_SPARC_FALSE=
29430fi
29431
29432 if test "x$linux_alpha" = xyes; then
29433  LINUX_ALPHA_TRUE=
29434  LINUX_ALPHA_FALSE='#'
29435else
29436  LINUX_ALPHA_TRUE='#'
29437  LINUX_ALPHA_FALSE=
29438fi
29439
29440 if test "x$linux_acpi" = xyes; then
29441  LNXACPI_TRUE=
29442  LNXACPI_FALSE='#'
29443else
29444  LNXACPI_TRUE='#'
29445  LNXACPI_FALSE=
29446fi
29447
29448 if test "x$linux_apm" = xyes; then
29449  LNXAPM_TRUE=
29450  LNXAPM_FALSE='#'
29451else
29452  LNXAPM_TRUE='#'
29453  LNXAPM_FALSE=
29454fi
29455
29456 if test "x$solaris_vt" = xyes; then
29457  SOLARIS_VT_TRUE=
29458  SOLARIS_VT_FALSE='#'
29459else
29460  SOLARIS_VT_TRUE='#'
29461  SOLARIS_VT_FALSE=
29462fi
29463
29464 if test "x$DGA" = xyes; then
29465  DGA_TRUE=
29466  DGA_FALSE='#'
29467else
29468  DGA_TRUE='#'
29469  DGA_FALSE=
29470fi
29471
29472 if test "x$CONFIG_UDEV_KMS" = xyes; then
29473  XORG_BUS_PLATFORM_TRUE=
29474  XORG_BUS_PLATFORM_FALSE='#'
29475else
29476  XORG_BUS_PLATFORM_TRUE='#'
29477  XORG_BUS_PLATFORM_FALSE=
29478fi
29479
29480 if test "x$XORG_DRIVER_MODESETTING" = xyes; then
29481  XORG_DRIVER_MODESETTING_TRUE=
29482  XORG_DRIVER_MODESETTING_FALSE='#'
29483else
29484  XORG_DRIVER_MODESETTING_TRUE='#'
29485  XORG_DRIVER_MODESETTING_FALSE=
29486fi
29487
29488
29489 if test "x$GLAMOR" = xyes; then
29490  GLAMOR_TRUE=
29491  GLAMOR_FALSE='#'
29492else
29493  GLAMOR_TRUE='#'
29494  GLAMOR_FALSE=
29495fi
29496
29497if test "x$GLAMOR" = xyes; then
29498
29499$as_echo "#define GLAMOR 1" >>confdefs.h
29500
29501
29502pkg_failed=no
29503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5
29504$as_echo_n "checking for GLAMOR... " >&6; }
29505
29506if test -n "$GLAMOR_CFLAGS"; then
29507    pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS"
29508 elif test -n "$PKG_CONFIG"; then
29509    if test -n "$PKG_CONFIG" && \
29510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29511  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29512  ac_status=$?
29513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29514  test $ac_status = 0; }; then
29515  pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null`
29516		      test "x$?" != "x0" && pkg_failed=yes
29517else
29518  pkg_failed=yes
29519fi
29520 else
29521    pkg_failed=untried
29522fi
29523if test -n "$GLAMOR_LIBS"; then
29524    pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS"
29525 elif test -n "$PKG_CONFIG"; then
29526    if test -n "$PKG_CONFIG" && \
29527    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29528  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29529  ac_status=$?
29530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29531  test $ac_status = 0; }; then
29532  pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null`
29533		      test "x$?" != "x0" && pkg_failed=yes
29534else
29535  pkg_failed=yes
29536fi
29537 else
29538    pkg_failed=untried
29539fi
29540
29541
29542
29543if test $pkg_failed = yes; then
29544   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29545$as_echo "no" >&6; }
29546
29547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29548        _pkg_short_errors_supported=yes
29549else
29550        _pkg_short_errors_supported=no
29551fi
29552        if test $_pkg_short_errors_supported = yes; then
29553	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1`
29554        else
29555	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1`
29556        fi
29557	# Put the nasty error message in config.log where it belongs
29558	echo "$GLAMOR_PKG_ERRORS" >&5
29559
29560	as_fn_error $? "Package requirements (epoxy) were not met:
29561
29562$GLAMOR_PKG_ERRORS
29563
29564Consider adjusting the PKG_CONFIG_PATH environment variable if you
29565installed software in a non-standard prefix.
29566
29567Alternatively, you may set the environment variables GLAMOR_CFLAGS
29568and GLAMOR_LIBS to avoid the need to call pkg-config.
29569See the pkg-config man page for more details." "$LINENO" 5
29570elif test $pkg_failed = untried; then
29571     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29572$as_echo "no" >&6; }
29573	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29575as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29576is in your PATH or set the PKG_CONFIG environment variable to the full
29577path to pkg-config.
29578
29579Alternatively, you may set the environment variables GLAMOR_CFLAGS
29580and GLAMOR_LIBS to avoid the need to call pkg-config.
29581See the pkg-config man page for more details.
29582
29583To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29584See \`config.log' for more details" "$LINENO" 5; }
29585else
29586	GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS
29587	GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS
29588        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29589$as_echo "yes" >&6; }
29590
29591fi
29592
29593
29594pkg_failed=no
29595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
29596$as_echo_n "checking for GBM... " >&6; }
29597
29598if test -n "$GBM_CFLAGS"; then
29599    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
29600 elif test -n "$PKG_CONFIG"; then
29601    if test -n "$PKG_CONFIG" && \
29602    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
29603  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
29604  ac_status=$?
29605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29606  test $ac_status = 0; }; then
29607  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null`
29608		      test "x$?" != "x0" && pkg_failed=yes
29609else
29610  pkg_failed=yes
29611fi
29612 else
29613    pkg_failed=untried
29614fi
29615if test -n "$GBM_LIBS"; then
29616    pkg_cv_GBM_LIBS="$GBM_LIBS"
29617 elif test -n "$PKG_CONFIG"; then
29618    if test -n "$PKG_CONFIG" && \
29619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
29620  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
29621  ac_status=$?
29622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29623  test $ac_status = 0; }; then
29624  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null`
29625		      test "x$?" != "x0" && pkg_failed=yes
29626else
29627  pkg_failed=yes
29628fi
29629 else
29630    pkg_failed=untried
29631fi
29632
29633
29634
29635if test $pkg_failed = yes; then
29636   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29637$as_echo "no" >&6; }
29638
29639if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29640        _pkg_short_errors_supported=yes
29641else
29642        _pkg_short_errors_supported=no
29643fi
29644        if test $_pkg_short_errors_supported = yes; then
29645	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
29646        else
29647	        GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
29648        fi
29649	# Put the nasty error message in config.log where it belongs
29650	echo "$GBM_PKG_ERRORS" >&5
29651
29652	GBM=no
29653elif test $pkg_failed = untried; then
29654     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29655$as_echo "no" >&6; }
29656	GBM=no
29657else
29658	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
29659	GBM_LIBS=$pkg_cv_GBM_LIBS
29660        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29661$as_echo "yes" >&6; }
29662	GBM=yes
29663fi
29664	if test "x$GBM" = xyes; then
29665
29666$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h
29667
29668		ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
29669			 #include <gbm.h>
29670"
29671if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then :
29672
29673$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h
29674
29675fi
29676
29677	fi
29678
29679fi
29680 if test "x$GBM" = xyes; then
29681  GLAMOR_EGL_TRUE=
29682  GLAMOR_EGL_FALSE='#'
29683else
29684  GLAMOR_EGL_TRUE='#'
29685  GLAMOR_EGL_FALSE=
29686fi
29687
29688
29689
29690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
29691$as_echo_n "checking whether to build XWin DDX... " >&6; }
29692if test "x$XWIN" = xauto; then
29693	case $host_os in
29694		cygwin*) XWIN="yes" ;;
29695		mingw*) XWIN="yes" ;;
29696		*) XWIN="no" ;;
29697	esac
29698fi
29699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
29700$as_echo "$XWIN" >&6; }
29701
29702if test "x$XWIN" = xyes; then
29703
29704  prefix_NONE=
29705  exec_prefix_NONE=
29706  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29707  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29708  eval ac_define_dir="\"$logdir\""
29709  eval ac_define_dir="\"$ac_define_dir\""
29710  DEFAULT_LOGDIR="$ac_define_dir"
29711
29712
29713cat >>confdefs.h <<_ACEOF
29714#define DEFAULT_LOGDIR "$ac_define_dir"
29715_ACEOF
29716
29717  test "$prefix_NONE" && prefix=NONE
29718  test "$exec_prefix_NONE" && exec_prefix=NONE
29719
29720
29721cat >>confdefs.h <<_ACEOF
29722#define XORG_VERSION_CURRENT $VENDOR_RELEASE
29723_ACEOF
29724
29725
29726cat >>confdefs.h <<_ACEOF
29727#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
29728_ACEOF
29729
29730	if test -n "$ac_tool_prefix"; then
29731  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
29732set dummy ${ac_tool_prefix}windres; ac_word=$2
29733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29734$as_echo_n "checking for $ac_word... " >&6; }
29735if ${ac_cv_prog_WINDRES+:} false; then :
29736  $as_echo_n "(cached) " >&6
29737else
29738  if test -n "$WINDRES"; then
29739  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
29740else
29741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29742for as_dir in $PATH
29743do
29744  IFS=$as_save_IFS
29745  test -z "$as_dir" && as_dir=.
29746    for ac_exec_ext in '' $ac_executable_extensions; do
29747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29748    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
29749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29750    break 2
29751  fi
29752done
29753  done
29754IFS=$as_save_IFS
29755
29756fi
29757fi
29758WINDRES=$ac_cv_prog_WINDRES
29759if test -n "$WINDRES"; then
29760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
29761$as_echo "$WINDRES" >&6; }
29762else
29763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29764$as_echo "no" >&6; }
29765fi
29766
29767
29768fi
29769if test -z "$ac_cv_prog_WINDRES"; then
29770  ac_ct_WINDRES=$WINDRES
29771  # Extract the first word of "windres", so it can be a program name with args.
29772set dummy windres; ac_word=$2
29773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29774$as_echo_n "checking for $ac_word... " >&6; }
29775if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
29776  $as_echo_n "(cached) " >&6
29777else
29778  if test -n "$ac_ct_WINDRES"; then
29779  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
29780else
29781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29782for as_dir in $PATH
29783do
29784  IFS=$as_save_IFS
29785  test -z "$as_dir" && as_dir=.
29786    for ac_exec_ext in '' $ac_executable_extensions; do
29787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29788    ac_cv_prog_ac_ct_WINDRES="windres"
29789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29790    break 2
29791  fi
29792done
29793  done
29794IFS=$as_save_IFS
29795
29796fi
29797fi
29798ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
29799if test -n "$ac_ct_WINDRES"; then
29800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
29801$as_echo "$ac_ct_WINDRES" >&6; }
29802else
29803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29804$as_echo "no" >&6; }
29805fi
29806
29807  if test "x$ac_ct_WINDRES" = x; then
29808    WINDRES=""
29809  else
29810    case $cross_compiling:$ac_tool_warned in
29811yes:)
29812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29814ac_tool_warned=yes ;;
29815esac
29816    WINDRES=$ac_ct_WINDRES
29817  fi
29818else
29819  WINDRES="$ac_cv_prog_WINDRES"
29820fi
29821
29822
29823
29824pkg_failed=no
29825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
29826$as_echo_n "checking for XWINMODULES... " >&6; }
29827
29828if test -n "$XWINMODULES_CFLAGS"; then
29829    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
29830 elif test -n "$PKG_CONFIG"; then
29831    if test -n "$PKG_CONFIG" && \
29832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes\""; } >&5
29833  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes") 2>&5
29834  ac_status=$?
29835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29836  test $ac_status = 0; }; then
29837  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfixes" 2>/dev/null`
29838		      test "x$?" != "x0" && pkg_failed=yes
29839else
29840  pkg_failed=yes
29841fi
29842 else
29843    pkg_failed=untried
29844fi
29845if test -n "$XWINMODULES_LIBS"; then
29846    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
29847 elif test -n "$PKG_CONFIG"; then
29848    if test -n "$PKG_CONFIG" && \
29849    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes\""; } >&5
29850  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes") 2>&5
29851  ac_status=$?
29852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29853  test $ac_status = 0; }; then
29854  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfixes" 2>/dev/null`
29855		      test "x$?" != "x0" && pkg_failed=yes
29856else
29857  pkg_failed=yes
29858fi
29859 else
29860    pkg_failed=untried
29861fi
29862
29863
29864
29865if test $pkg_failed = yes; then
29866   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29867$as_echo "no" >&6; }
29868
29869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29870        _pkg_short_errors_supported=yes
29871else
29872        _pkg_short_errors_supported=no
29873fi
29874        if test $_pkg_short_errors_supported = yes; then
29875	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xdmcp xau xfixes" 2>&1`
29876        else
29877	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xdmcp xau xfixes" 2>&1`
29878        fi
29879	# Put the nasty error message in config.log where it belongs
29880	echo "$XWINMODULES_PKG_ERRORS" >&5
29881
29882	as_fn_error $? "Package requirements (x11 xdmcp xau xfixes) were not met:
29883
29884$XWINMODULES_PKG_ERRORS
29885
29886Consider adjusting the PKG_CONFIG_PATH environment variable if you
29887installed software in a non-standard prefix.
29888
29889Alternatively, you may set the environment variables XWINMODULES_CFLAGS
29890and XWINMODULES_LIBS to avoid the need to call pkg-config.
29891See the pkg-config man page for more details." "$LINENO" 5
29892elif test $pkg_failed = untried; then
29893     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894$as_echo "no" >&6; }
29895	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29897as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29898is in your PATH or set the PKG_CONFIG environment variable to the full
29899path to pkg-config.
29900
29901Alternatively, you may set the environment variables XWINMODULES_CFLAGS
29902and XWINMODULES_LIBS to avoid the need to call pkg-config.
29903See the pkg-config man page for more details.
29904
29905To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29906See \`config.log' for more details" "$LINENO" 5; }
29907else
29908	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
29909	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
29910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29911$as_echo "yes" >&6; }
29912
29913fi
29914
29915	if test "x$WINDOWSWM" = xauto; then
29916		if test -n "$PKG_CONFIG" && \
29917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
29918  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
29919  ac_status=$?
29920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29921  test $ac_status = 0; }; then
29922  WINDOWSWM=yes
29923else
29924  WINDOWSWM=no
29925fi
29926	fi
29927	if test "x$WINDOWSWM" = xyes ; then
29928
29929pkg_failed=no
29930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5
29931$as_echo_n "checking for WINDOWSWM... " >&6; }
29932
29933if test -n "$WINDOWSWM_CFLAGS"; then
29934    pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS"
29935 elif test -n "$PKG_CONFIG"; then
29936    if test -n "$PKG_CONFIG" && \
29937    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
29938  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
29939  ac_status=$?
29940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29941  test $ac_status = 0; }; then
29942  pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null`
29943		      test "x$?" != "x0" && pkg_failed=yes
29944else
29945  pkg_failed=yes
29946fi
29947 else
29948    pkg_failed=untried
29949fi
29950if test -n "$WINDOWSWM_LIBS"; then
29951    pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS"
29952 elif test -n "$PKG_CONFIG"; then
29953    if test -n "$PKG_CONFIG" && \
29954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
29955  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
29956  ac_status=$?
29957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958  test $ac_status = 0; }; then
29959  pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null`
29960		      test "x$?" != "x0" && pkg_failed=yes
29961else
29962  pkg_failed=yes
29963fi
29964 else
29965    pkg_failed=untried
29966fi
29967
29968
29969
29970if test $pkg_failed = yes; then
29971   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29972$as_echo "no" >&6; }
29973
29974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29975        _pkg_short_errors_supported=yes
29976else
29977        _pkg_short_errors_supported=no
29978fi
29979        if test $_pkg_short_errors_supported = yes; then
29980	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1`
29981        else
29982	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1`
29983        fi
29984	# Put the nasty error message in config.log where it belongs
29985	echo "$WINDOWSWM_PKG_ERRORS" >&5
29986
29987	as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met:
29988
29989$WINDOWSWM_PKG_ERRORS
29990
29991Consider adjusting the PKG_CONFIG_PATH environment variable if you
29992installed software in a non-standard prefix.
29993
29994Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
29995and WINDOWSWM_LIBS to avoid the need to call pkg-config.
29996See the pkg-config man page for more details." "$LINENO" 5
29997elif test $pkg_failed = untried; then
29998     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29999$as_echo "no" >&6; }
30000	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30002as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30003is in your PATH or set the PKG_CONFIG environment variable to the full
30004path to pkg-config.
30005
30006Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
30007and WINDOWSWM_LIBS to avoid the need to call pkg-config.
30008See the pkg-config man page for more details.
30009
30010To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30011See \`config.log' for more details" "$LINENO" 5; }
30012else
30013	WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS
30014	WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS
30015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30016$as_echo "yes" >&6; }
30017
30018fi
30019		XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS"
30020
30021$as_echo "#define ROOTLESS 1" >>confdefs.h
30022
30023	fi
30024
30025	case $host_os in
30026		cygwin*)
30027			XWIN_SERVER_NAME=XWin
30028
30029$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h
30030
30031			;;
30032		mingw*)
30033			XWIN_SERVER_NAME=Xming
30034
30035$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
30036
30037
30038$as_echo "#define HAS_WINSOCK 1" >>confdefs.h
30039
30040			XWIN_SYS_LIBS="-lpthread -lws2_32"
30041			;;
30042	esac
30043
30044	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"
30045	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
30046
30047
30048
30049
30050	if test "x$DEBUGGING" = xyes; then
30051
30052$as_echo "#define CYGDEBUG 1" >>confdefs.h
30053
30054
30055$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
30056
30057
30058$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
30059
30060	fi
30061
30062
30063$as_echo "#define DDXOSVERRORF 1" >>confdefs.h
30064
30065
30066$as_echo "#define DDXBEFORERESET 1" >>confdefs.h
30067
30068
30069	if test "x$XWIN" = xyes && test "x$AIGLX" = xyes ; then
30070           # Extract the first word of "python3", so it can be a program name with args.
30071set dummy python3; ac_word=$2
30072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30073$as_echo_n "checking for $ac_word... " >&6; }
30074if ${ac_cv_prog_PYTHON3+:} false; then :
30075  $as_echo_n "(cached) " >&6
30076else
30077  if test -n "$PYTHON3"; then
30078  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
30079else
30080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30081for as_dir in $PATH
30082do
30083  IFS=$as_save_IFS
30084  test -z "$as_dir" && as_dir=.
30085    for ac_exec_ext in '' $ac_executable_extensions; do
30086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30087    ac_cv_prog_PYTHON3="python3"
30088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30089    break 2
30090  fi
30091done
30092  done
30093IFS=$as_save_IFS
30094
30095fi
30096fi
30097PYTHON3=$ac_cv_prog_PYTHON3
30098if test -n "$PYTHON3"; then
30099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
30100$as_echo "$PYTHON3" >&6; }
30101else
30102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30103$as_echo "no" >&6; }
30104fi
30105
30106
30107           if test -z "$PYTHON3"; then
30108                as_fn_error $? "python3 not found" "$LINENO" 5
30109           fi
30110           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5
30111$as_echo_n "checking for python module lxml... " >&6; }
30112           $PYTHON3 -c "import lxml;"
30113           if test $? -ne 0 ; then
30114                as_fn_error $? "not found" "$LINENO" 5
30115           fi
30116           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30117$as_echo "yes" >&6; }
30118           if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
30119
30120pkg_failed=no
30121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5
30122$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; }
30123
30124if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
30125    pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
30126 elif test -n "$PKG_CONFIG"; then
30127    if test -n "$PKG_CONFIG" && \
30128    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30129  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30130  ac_status=$?
30131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30132  test $ac_status = 0; }; then
30133  pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
30134		      test "x$?" != "x0" && pkg_failed=yes
30135else
30136  pkg_failed=yes
30137fi
30138 else
30139    pkg_failed=untried
30140fi
30141if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
30142    pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
30143 elif test -n "$PKG_CONFIG"; then
30144    if test -n "$PKG_CONFIG" && \
30145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30146  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30147  ac_status=$?
30148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30149  test $ac_status = 0; }; then
30150  pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
30151		      test "x$?" != "x0" && pkg_failed=yes
30152else
30153  pkg_failed=yes
30154fi
30155 else
30156    pkg_failed=untried
30157fi
30158
30159
30160
30161if test $pkg_failed = yes; then
30162   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30163$as_echo "no" >&6; }
30164
30165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30166        _pkg_short_errors_supported=yes
30167else
30168        _pkg_short_errors_supported=no
30169fi
30170        if test $_pkg_short_errors_supported = yes; then
30171	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30172        else
30173	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30174        fi
30175	# Put the nasty error message in config.log where it belongs
30176	echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
30177
30178	as_fn_error $? "Package requirements (khronos-opengl-registry) were not met:
30179
30180$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
30181
30182Consider adjusting the PKG_CONFIG_PATH environment variable if you
30183installed software in a non-standard prefix.
30184
30185Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30186and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30187See the pkg-config man page for more details." "$LINENO" 5
30188elif test $pkg_failed = untried; then
30189     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30190$as_echo "no" >&6; }
30191	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30193as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30194is in your PATH or set the PKG_CONFIG environment variable to the full
30195path to pkg-config.
30196
30197Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30198and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30199See the pkg-config man page for more details.
30200
30201To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30202See \`config.log' for more details" "$LINENO" 5; }
30203else
30204	KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
30205	KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
30206        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30207$as_echo "yes" >&6; }
30208
30209fi
30210		KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
30211           fi
30212
30213	fi
30214
30215fi
30216 if test "x$XWIN" = xyes; then
30217  XWIN_TRUE=
30218  XWIN_FALSE='#'
30219else
30220  XWIN_TRUE='#'
30221  XWIN_FALSE=
30222fi
30223
30224 if test "x$XWIN" = xyes; then
30225  XWIN_MULTIWINDOW_TRUE=
30226  XWIN_MULTIWINDOW_FALSE='#'
30227else
30228  XWIN_MULTIWINDOW_TRUE='#'
30229  XWIN_MULTIWINDOW_FALSE=
30230fi
30231
30232 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then
30233  XWIN_MULTIWINDOWEXTWM_TRUE=
30234  XWIN_MULTIWINDOWEXTWM_FALSE='#'
30235else
30236  XWIN_MULTIWINDOWEXTWM_TRUE='#'
30237  XWIN_MULTIWINDOWEXTWM_FALSE=
30238fi
30239
30240 if test "x$XWIN" = xyes; then
30241  XWIN_CLIPBOARD_TRUE=
30242  XWIN_CLIPBOARD_FALSE='#'
30243else
30244  XWIN_CLIPBOARD_TRUE='#'
30245  XWIN_CLIPBOARD_FALSE=
30246fi
30247
30248 if test "x$XWIN" = xyes && test "x$AIGLX" = xyes; then
30249  XWIN_GLX_WINDOWS_TRUE=
30250  XWIN_GLX_WINDOWS_FALSE='#'
30251else
30252  XWIN_GLX_WINDOWS_TRUE='#'
30253  XWIN_GLX_WINDOWS_FALSE=
30254fi
30255
30256 if test "x$XWIN" = xyes; then
30257  XWIN_RANDR_TRUE=
30258  XWIN_RANDR_FALSE='#'
30259else
30260  XWIN_RANDR_TRUE='#'
30261  XWIN_RANDR_FALSE=
30262fi
30263
30264 if test "x$XWIN" = xyes && test "x$XV" = xyes; then
30265  XWIN_XV_TRUE=
30266  XWIN_XV_FALSE='#'
30267else
30268  XWIN_XV_TRUE='#'
30269  XWIN_XV_FALSE=
30270fi
30271
30272
30273if test "x$XQUARTZ" = xyes; then
30274
30275$as_echo "#define XQUARTZ 1" >>confdefs.h
30276
30277
30278$as_echo "#define ROOTLESS 1" >>confdefs.h
30279
30280
30281	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"
30282
30283
30284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
30285$as_echo_n "checking for xp_init in -lXplugin... " >&6; }
30286if ${ac_cv_lib_Xplugin_xp_init+:} false; then :
30287  $as_echo_n "(cached) " >&6
30288else
30289  ac_check_lib_save_LIBS=$LIBS
30290LIBS="-lXplugin  $LIBS"
30291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30292/* end confdefs.h.  */
30293
30294/* Override any GCC internal prototype to avoid an error.
30295   Use char because int might match the return type of a GCC
30296   builtin and then its argument prototype would still apply.  */
30297#ifdef __cplusplus
30298extern "C"
30299#endif
30300char xp_init ();
30301int
30302main ()
30303{
30304return xp_init ();
30305  ;
30306  return 0;
30307}
30308_ACEOF
30309if ac_fn_c_try_link "$LINENO"; then :
30310  ac_cv_lib_Xplugin_xp_init=yes
30311else
30312  ac_cv_lib_Xplugin_xp_init=no
30313fi
30314rm -f core conftest.err conftest.$ac_objext \
30315    conftest$ac_exeext conftest.$ac_ext
30316LIBS=$ac_check_lib_save_LIBS
30317fi
30318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
30319$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; }
30320if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then :
30321  :
30322fi
30323
30324
30325	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
30326
30327
30328pkg_failed=no
30329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
30330$as_echo_n "checking for XPBPROXY... " >&6; }
30331
30332if test -n "$XPBPROXY_CFLAGS"; then
30333    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
30334 elif test -n "$PKG_CONFIG"; then
30335    if test -n "$PKG_CONFIG" && \
30336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30337  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30338  ac_status=$?
30339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30340  test $ac_status = 0; }; then
30341  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30342		      test "x$?" != "x0" && pkg_failed=yes
30343else
30344  pkg_failed=yes
30345fi
30346 else
30347    pkg_failed=untried
30348fi
30349if test -n "$XPBPROXY_LIBS"; then
30350    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
30351 elif test -n "$PKG_CONFIG"; then
30352    if test -n "$PKG_CONFIG" && \
30353    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30354  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30355  ac_status=$?
30356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30357  test $ac_status = 0; }; then
30358  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30359		      test "x$?" != "x0" && pkg_failed=yes
30360else
30361  pkg_failed=yes
30362fi
30363 else
30364    pkg_failed=untried
30365fi
30366
30367
30368
30369if test $pkg_failed = yes; then
30370   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30371$as_echo "no" >&6; }
30372
30373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30374        _pkg_short_errors_supported=yes
30375else
30376        _pkg_short_errors_supported=no
30377fi
30378        if test $_pkg_short_errors_supported = yes; then
30379	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30380        else
30381	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30382        fi
30383	# Put the nasty error message in config.log where it belongs
30384	echo "$XPBPROXY_PKG_ERRORS" >&5
30385
30386	as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
30387
30388$XPBPROXY_PKG_ERRORS
30389
30390Consider adjusting the PKG_CONFIG_PATH environment variable if you
30391installed software in a non-standard prefix.
30392
30393Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30394and XPBPROXY_LIBS to avoid the need to call pkg-config.
30395See the pkg-config man page for more details." "$LINENO" 5
30396elif test $pkg_failed = untried; then
30397     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30398$as_echo "no" >&6; }
30399	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30401as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30402is in your PATH or set the PKG_CONFIG environment variable to the full
30403path to pkg-config.
30404
30405Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30406and XPBPROXY_LIBS to avoid the need to call pkg-config.
30407See the pkg-config man page for more details.
30408
30409To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30410See \`config.log' for more details" "$LINENO" 5; }
30411else
30412	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
30413	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
30414        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30415$as_echo "yes" >&6; }
30416
30417fi
30418
30419        if test "x$XQUARTZ_SPARKLE" = xyes ; then
30420
30421$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h
30422
30423        fi
30424
30425	if test "x$STANDALONE_XPBPROXY" = xyes ; then
30426
30427$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h
30428
30429	fi
30430fi
30431
30432 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then
30433  PSEUDORAMIX_TRUE=
30434  PSEUDORAMIX_FALSE='#'
30435else
30436  PSEUDORAMIX_TRUE='#'
30437  PSEUDORAMIX_FALSE=
30438fi
30439
30440
30441# Support for objc in autotools is minimal and not documented.
30442OBJC='$(CC)'
30443OBJCLD='$(CCLD)'
30444OBJCLINK='$(LINK)'
30445OBJCFLAGS='$(CFLAGS)'
30446
30447
30448
30449
30450# internal, undocumented automake func follows :(
30451
30452depcc="$OBJC" am_compiler_list='gcc3 gcc'
30453
30454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30455$as_echo_n "checking dependency style of $depcc... " >&6; }
30456if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
30457  $as_echo_n "(cached) " >&6
30458else
30459  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30460  # We make a subdir and do the tests there.  Otherwise we can end up
30461  # making bogus files that we don't know about and never remove.  For
30462  # instance it was reported that on HP-UX the gcc test will end up
30463  # making a dummy file named 'D' -- because '-MD' means "put the output
30464  # in D".
30465  rm -rf conftest.dir
30466  mkdir conftest.dir
30467  # Copy depcomp to subdir because otherwise we won't find it if we're
30468  # using a relative directory.
30469  cp "$am_depcomp" conftest.dir
30470  cd conftest.dir
30471  # We will build objects and dependencies in a subdirectory because
30472  # it helps to detect inapplicable dependency modes.  For instance
30473  # both Tru64's cc and ICC support -MD to output dependencies as a
30474  # side effect of compilation, but ICC will put the dependencies in
30475  # the current directory while Tru64 will put them in the object
30476  # directory.
30477  mkdir sub
30478
30479  am_cv_OBJC_dependencies_compiler_type=none
30480  if test "$am_compiler_list" = ""; then
30481     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30482  fi
30483  am__universal=false
30484
30485
30486  for depmode in $am_compiler_list; do
30487    # Setup a source with many dependencies, because some compilers
30488    # like to wrap large dependency lists on column 80 (with \), and
30489    # we should not choose a depcomp mode which is confused by this.
30490    #
30491    # We need to recreate these files for each test, as the compiler may
30492    # overwrite some of them when testing with obscure command lines.
30493    # This happens at least with the AIX C compiler.
30494    : > sub/conftest.c
30495    for i in 1 2 3 4 5 6; do
30496      echo '#include "conftst'$i'.h"' >> sub/conftest.c
30497      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
30498      # Solaris 10 /bin/sh.
30499      echo '/* dummy */' > sub/conftst$i.h
30500    done
30501    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30502
30503    # We check with '-c' and '-o' for the sake of the "dashmstdout"
30504    # mode.  It turns out that the SunPro C++ compiler does not properly
30505    # handle '-M -o', and we need to detect this.  Also, some Intel
30506    # versions had trouble with output in subdirs.
30507    am__obj=sub/conftest.${OBJEXT-o}
30508    am__minus_obj="-o $am__obj"
30509    case $depmode in
30510    gcc)
30511      # This depmode causes a compiler race in universal mode.
30512      test "$am__universal" = false || continue
30513      ;;
30514    nosideeffect)
30515      # After this tag, mechanisms are not by side-effect, so they'll
30516      # only be used when explicitly requested.
30517      if test "x$enable_dependency_tracking" = xyes; then
30518	continue
30519      else
30520	break
30521      fi
30522      ;;
30523    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
30524      # This compiler won't grok '-c -o', but also, the minuso test has
30525      # not run yet.  These depmodes are late enough in the game, and
30526      # so weak that their functioning should not be impacted.
30527      am__obj=conftest.${OBJEXT-o}
30528      am__minus_obj=
30529      ;;
30530    none) break ;;
30531    esac
30532    if depmode=$depmode \
30533       source=sub/conftest.c object=$am__obj \
30534       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
30535       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
30536         >/dev/null 2>conftest.err &&
30537       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
30538       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
30539       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
30540       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
30541      # icc doesn't choke on unknown options, it will just issue warnings
30542      # or remarks (even with -Werror).  So we grep stderr for any message
30543      # that says an option was ignored or not supported.
30544      # When given -MP, icc 7.0 and 7.1 complain thusly:
30545      #   icc: Command line warning: ignoring option '-M'; no argument required
30546      # The diagnosis changed in icc 8.0:
30547      #   icc: Command line remark: option '-MP' not supported
30548      if (grep 'ignoring option' conftest.err ||
30549          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
30550        am_cv_OBJC_dependencies_compiler_type=$depmode
30551        break
30552      fi
30553    fi
30554  done
30555
30556  cd ..
30557  rm -rf conftest.dir
30558else
30559  am_cv_OBJC_dependencies_compiler_type=none
30560fi
30561
30562fi
30563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
30564$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
30565OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
30566
30567 if
30568  test "x$enable_dependency_tracking" != xno \
30569  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
30570  am__fastdepOBJC_TRUE=
30571  am__fastdepOBJC_FALSE='#'
30572else
30573  am__fastdepOBJC_TRUE='#'
30574  am__fastdepOBJC_FALSE=
30575fi
30576
30577
30578 if test "x$XQUARTZ" = xyes; then
30579  XQUARTZ_TRUE=
30580  XQUARTZ_FALSE='#'
30581else
30582  XQUARTZ_TRUE='#'
30583  XQUARTZ_FALSE=
30584fi
30585
30586 if test "x$XQUARTZ_SPARKLE" != "xno"; then
30587  XQUARTZ_SPARKLE_TRUE=
30588  XQUARTZ_SPARKLE_FALSE='#'
30589else
30590  XQUARTZ_SPARKLE_TRUE='#'
30591  XQUARTZ_SPARKLE_FALSE=
30592fi
30593
30594 if test "x$STANDALONE_XPBPROXY" = xyes; then
30595  STANDALONE_XPBPROXY_TRUE=
30596  STANDALONE_XPBPROXY_FALSE='#'
30597else
30598  STANDALONE_XPBPROXY_TRUE='#'
30599  STANDALONE_XPBPROXY_FALSE=
30600fi
30601
30602
30603
30604pkg_failed=no
30605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5
30606$as_echo_n "checking for DMXMODULES... " >&6; }
30607
30608if test -n "$DMXMODULES_CFLAGS"; then
30609    pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
30610 elif test -n "$PKG_CONFIG"; then
30611    if test -n "$PKG_CONFIG" && \
30612    { { $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
30613  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
30614  ac_status=$?
30615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30616  test $ac_status = 0; }; then
30617  pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
30618		      test "x$?" != "x0" && pkg_failed=yes
30619else
30620  pkg_failed=yes
30621fi
30622 else
30623    pkg_failed=untried
30624fi
30625if test -n "$DMXMODULES_LIBS"; then
30626    pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
30627 elif test -n "$PKG_CONFIG"; then
30628    if test -n "$PKG_CONFIG" && \
30629    { { $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
30630  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
30631  ac_status=$?
30632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30633  test $ac_status = 0; }; then
30634  pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
30635		      test "x$?" != "x0" && pkg_failed=yes
30636else
30637  pkg_failed=yes
30638fi
30639 else
30640    pkg_failed=untried
30641fi
30642
30643
30644
30645if test $pkg_failed = yes; then
30646   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30647$as_echo "no" >&6; }
30648
30649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30650        _pkg_short_errors_supported=yes
30651else
30652        _pkg_short_errors_supported=no
30653fi
30654        if test $_pkg_short_errors_supported = yes; then
30655	        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`
30656        else
30657	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
30658        fi
30659	# Put the nasty error message in config.log where it belongs
30660	echo "$DMXMODULES_PKG_ERRORS" >&5
30661
30662	have_dmx=no
30663elif test $pkg_failed = untried; then
30664     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30665$as_echo "no" >&6; }
30666	have_dmx=no
30667else
30668	DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
30669	DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
30670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30671$as_echo "yes" >&6; }
30672
30673pkg_failed=no
30674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5
30675$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; }
30676
30677if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
30678    pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
30679 elif test -n "$PKG_CONFIG"; then
30680    if test -n "$PKG_CONFIG" && \
30681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
30682  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
30683  ac_status=$?
30684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30685  test $ac_status = 0; }; then
30686  pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
30687		      test "x$?" != "x0" && pkg_failed=yes
30688else
30689  pkg_failed=yes
30690fi
30691 else
30692    pkg_failed=untried
30693fi
30694if test -n "$XDMXCONFIG_DEP_LIBS"; then
30695    pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
30696 elif test -n "$PKG_CONFIG"; then
30697    if test -n "$PKG_CONFIG" && \
30698    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
30699  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
30700  ac_status=$?
30701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30702  test $ac_status = 0; }; then
30703  pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
30704		      test "x$?" != "x0" && pkg_failed=yes
30705else
30706  pkg_failed=yes
30707fi
30708 else
30709    pkg_failed=untried
30710fi
30711
30712
30713
30714if test $pkg_failed = yes; then
30715   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30716$as_echo "no" >&6; }
30717
30718if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30719        _pkg_short_errors_supported=yes
30720else
30721        _pkg_short_errors_supported=no
30722fi
30723        if test $_pkg_short_errors_supported = yes; then
30724	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1`
30725        else
30726	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1`
30727        fi
30728	# Put the nasty error message in config.log where it belongs
30729	echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
30730
30731	have_dmx=no
30732elif test $pkg_failed = untried; then
30733     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30734$as_echo "no" >&6; }
30735	have_dmx=no
30736else
30737	XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
30738	XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
30739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30740$as_echo "yes" >&6; }
30741	have_dmx=yes
30742fi
30743fi
30744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5
30745$as_echo_n "checking whether to build Xdmx DDX... " >&6; }
30746if test "x$DMX" = xauto; then
30747	DMX="$have_dmx"
30748	case $host_os in
30749		cygwin*) DMX="no" ;;
30750		mingw*)  DMX="no" ;;
30751		darwin*) DMX="no" ;;
30752	esac
30753fi
30754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5
30755$as_echo "$DMX" >&6; }
30756 if test "x$DMX" = xyes; then
30757  DMX_TRUE=
30758  DMX_FALSE='#'
30759else
30760  DMX_TRUE='#'
30761  DMX_FALSE=
30762fi
30763
30764
30765if test "x$DMX" = xyes; then
30766	if test "x$have_dmx" = xno; then
30767		as_fn_error $? "Xdmx build explicitly requested, but required
30768		              modules not found." "$LINENO" 5
30769	fi
30770	DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
30771	XDMX_CFLAGS="$DMXMODULES_CFLAGS"
30772	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 $CONFIG_LIB $OS_LIB $FIXES_LIB"
30773	XDMX_SYS_LIBS="$DMXMODULES_LIBS"
30774
30775
30776
30777
30778	ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
30779if test "x$ac_cv_header_linux_input_h" = xyes; then :
30780  DMX_BUILD_USB="yes"
30781else
30782  DMX_BUILD_USB="no"
30783fi
30784
30785
30786	ac_fn_c_check_header_mongrel "$LINENO" "linux/keyboard.h" "ac_cv_header_linux_keyboard_h" "$ac_includes_default"
30787if test "x$ac_cv_header_linux_keyboard_h" = xyes; then :
30788  DMX_BUILD_LNX="yes"
30789else
30790  DMX_BUILD_LNX="no"
30791fi
30792
30793
30794
30795
30796
30797pkg_failed=no
30798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5
30799$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; }
30800
30801if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
30802    pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
30803 elif test -n "$PKG_CONFIG"; then
30804    if test -n "$PKG_CONFIG" && \
30805    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
30806  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
30807  ac_status=$?
30808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30809  test $ac_status = 0; }; then
30810  pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null`
30811		      test "x$?" != "x0" && pkg_failed=yes
30812else
30813  pkg_failed=yes
30814fi
30815 else
30816    pkg_failed=untried
30817fi
30818if test -n "$DMXEXAMPLES_DEP_LIBS"; then
30819    pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
30820 elif test -n "$PKG_CONFIG"; then
30821    if test -n "$PKG_CONFIG" && \
30822    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
30823  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
30824  ac_status=$?
30825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30826  test $ac_status = 0; }; then
30827  pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null`
30828		      test "x$?" != "x0" && pkg_failed=yes
30829else
30830  pkg_failed=yes
30831fi
30832 else
30833    pkg_failed=untried
30834fi
30835
30836
30837
30838if test $pkg_failed = yes; then
30839   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30840$as_echo "no" >&6; }
30841
30842if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30843        _pkg_short_errors_supported=yes
30844else
30845        _pkg_short_errors_supported=no
30846fi
30847        if test $_pkg_short_errors_supported = yes; then
30848	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1`
30849        else
30850	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1`
30851        fi
30852	# Put the nasty error message in config.log where it belongs
30853	echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
30854
30855	as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met:
30856
30857$DMXEXAMPLES_DEP_PKG_ERRORS
30858
30859Consider adjusting the PKG_CONFIG_PATH environment variable if you
30860installed software in a non-standard prefix.
30861
30862Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
30863and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
30864See the pkg-config man page for more details." "$LINENO" 5
30865elif test $pkg_failed = untried; then
30866     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30867$as_echo "no" >&6; }
30868	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30870as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30871is in your PATH or set the PKG_CONFIG environment variable to the full
30872path to pkg-config.
30873
30874Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
30875and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
30876See the pkg-config man page for more details.
30877
30878To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30879See \`config.log' for more details" "$LINENO" 5; }
30880else
30881	DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
30882	DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
30883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30884$as_echo "yes" >&6; }
30885
30886fi
30887
30888
30889pkg_failed=no
30890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5
30891$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; }
30892
30893if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
30894    pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
30895 elif test -n "$PKG_CONFIG"; then
30896    if test -n "$PKG_CONFIG" && \
30897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
30898  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
30899  ac_status=$?
30900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30901  test $ac_status = 0; }; then
30902  pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
30903		      test "x$?" != "x0" && pkg_failed=yes
30904else
30905  pkg_failed=yes
30906fi
30907 else
30908    pkg_failed=untried
30909fi
30910if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
30911    pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
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 \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
30915  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT 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_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
30920		      test "x$?" != "x0" && pkg_failed=yes
30921else
30922  pkg_failed=yes
30923fi
30924 else
30925    pkg_failed=untried
30926fi
30927
30928
30929
30930if test $pkg_failed = yes; then
30931   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932$as_echo "no" >&6; }
30933
30934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30935        _pkg_short_errors_supported=yes
30936else
30937        _pkg_short_errors_supported=no
30938fi
30939        if test $_pkg_short_errors_supported = yes; then
30940	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1`
30941        else
30942	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1`
30943        fi
30944	# Put the nasty error message in config.log where it belongs
30945	echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
30946
30947	as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
30948
30949$DMXXMUEXAMPLES_DEP_PKG_ERRORS
30950
30951Consider adjusting the PKG_CONFIG_PATH environment variable if you
30952installed software in a non-standard prefix.
30953
30954Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
30955and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
30956See the pkg-config man page for more details." "$LINENO" 5
30957elif test $pkg_failed = untried; then
30958     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30959$as_echo "no" >&6; }
30960	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30962as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30963is in your PATH or set the PKG_CONFIG environment variable to the full
30964path to pkg-config.
30965
30966Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
30967and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
30968See the pkg-config man page for more details.
30969
30970To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30971See \`config.log' for more details" "$LINENO" 5; }
30972else
30973	DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
30974	DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
30975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30976$as_echo "yes" >&6; }
30977
30978fi
30979
30980
30981pkg_failed=no
30982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5
30983$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; }
30984
30985if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
30986    pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
30987 elif test -n "$PKG_CONFIG"; then
30988    if test -n "$PKG_CONFIG" && \
30989    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
30990  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
30991  ac_status=$?
30992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30993  test $ac_status = 0; }; then
30994  pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
30995		      test "x$?" != "x0" && pkg_failed=yes
30996else
30997  pkg_failed=yes
30998fi
30999 else
31000    pkg_failed=untried
31001fi
31002if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
31003    pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
31004 elif test -n "$PKG_CONFIG"; then
31005    if test -n "$PKG_CONFIG" && \
31006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
31007  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
31008  ac_status=$?
31009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31010  test $ac_status = 0; }; then
31011  pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
31012		      test "x$?" != "x0" && pkg_failed=yes
31013else
31014  pkg_failed=yes
31015fi
31016 else
31017    pkg_failed=untried
31018fi
31019
31020
31021
31022if test $pkg_failed = yes; then
31023   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31024$as_echo "no" >&6; }
31025
31026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31027        _pkg_short_errors_supported=yes
31028else
31029        _pkg_short_errors_supported=no
31030fi
31031        if test $_pkg_short_errors_supported = yes; then
31032	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
31033        else
31034	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
31035        fi
31036	# Put the nasty error message in config.log where it belongs
31037	echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
31038
31039	as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
31040
31041$DMXXIEXAMPLES_DEP_PKG_ERRORS
31042
31043Consider adjusting the PKG_CONFIG_PATH environment variable if you
31044installed software in a non-standard prefix.
31045
31046Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31047and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31048See the pkg-config man page for more details." "$LINENO" 5
31049elif test $pkg_failed = untried; then
31050     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31051$as_echo "no" >&6; }
31052	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31054as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31055is in your PATH or set the PKG_CONFIG environment variable to the full
31056path to pkg-config.
31057
31058Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
31059and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31060See the pkg-config man page for more details.
31061
31062To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31063See \`config.log' for more details" "$LINENO" 5; }
31064else
31065	DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
31066	DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
31067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31068$as_echo "yes" >&6; }
31069
31070fi
31071
31072
31073pkg_failed=no
31074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5
31075$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; }
31076
31077if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
31078    pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
31079 elif test -n "$PKG_CONFIG"; then
31080    if test -n "$PKG_CONFIG" && \
31081    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
31082  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
31083  ac_status=$?
31084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31085  test $ac_status = 0; }; then
31086  pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null`
31087		      test "x$?" != "x0" && pkg_failed=yes
31088else
31089  pkg_failed=yes
31090fi
31091 else
31092    pkg_failed=untried
31093fi
31094if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
31095    pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
31096 elif test -n "$PKG_CONFIG"; then
31097    if test -n "$PKG_CONFIG" && \
31098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
31099  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
31100  ac_status=$?
31101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31102  test $ac_status = 0; }; then
31103  pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null`
31104		      test "x$?" != "x0" && pkg_failed=yes
31105else
31106  pkg_failed=yes
31107fi
31108 else
31109    pkg_failed=untried
31110fi
31111
31112
31113
31114if test $pkg_failed = yes; then
31115   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31116$as_echo "no" >&6; }
31117
31118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31119        _pkg_short_errors_supported=yes
31120else
31121        _pkg_short_errors_supported=no
31122fi
31123        if test $_pkg_short_errors_supported = yes; then
31124	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1`
31125        else
31126	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1`
31127        fi
31128	# Put the nasty error message in config.log where it belongs
31129	echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
31130
31131	as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met:
31132
31133$XTSTEXAMPLES_DEP_PKG_ERRORS
31134
31135Consider adjusting the PKG_CONFIG_PATH environment variable if you
31136installed software in a non-standard prefix.
31137
31138Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31139and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31140See the pkg-config man page for more details." "$LINENO" 5
31141elif test $pkg_failed = untried; then
31142     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31143$as_echo "no" >&6; }
31144	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31146as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31147is in your PATH or set the PKG_CONFIG environment variable to the full
31148path to pkg-config.
31149
31150Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
31151and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31152See the pkg-config man page for more details.
31153
31154To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31155See \`config.log' for more details" "$LINENO" 5; }
31156else
31157	XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
31158	XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
31159        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31160$as_echo "yes" >&6; }
31161
31162fi
31163
31164
31165pkg_failed=no
31166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5
31167$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; }
31168
31169if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
31170    pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
31171 elif test -n "$PKG_CONFIG"; then
31172    if test -n "$PKG_CONFIG" && \
31173    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
31174  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
31175  ac_status=$?
31176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31177  test $ac_status = 0; }; then
31178  pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null`
31179		      test "x$?" != "x0" && pkg_failed=yes
31180else
31181  pkg_failed=yes
31182fi
31183 else
31184    pkg_failed=untried
31185fi
31186if test -n "$XRESEXAMPLES_DEP_LIBS"; then
31187    pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
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 \"xres \$LIBXEXT x11\""; } >&5
31191  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 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_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null`
31196		      test "x$?" != "x0" && pkg_failed=yes
31197else
31198  pkg_failed=yes
31199fi
31200 else
31201    pkg_failed=untried
31202fi
31203
31204
31205
31206if test $pkg_failed = yes; then
31207   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31208$as_echo "no" >&6; }
31209
31210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31211        _pkg_short_errors_supported=yes
31212else
31213        _pkg_short_errors_supported=no
31214fi
31215        if test $_pkg_short_errors_supported = yes; then
31216	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1`
31217        else
31218	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1`
31219        fi
31220	# Put the nasty error message in config.log where it belongs
31221	echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
31222
31223	as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met:
31224
31225$XRESEXAMPLES_DEP_PKG_ERRORS
31226
31227Consider adjusting the PKG_CONFIG_PATH environment variable if you
31228installed software in a non-standard prefix.
31229
31230Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31231and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31232See the pkg-config man page for more details." "$LINENO" 5
31233elif test $pkg_failed = untried; then
31234     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31235$as_echo "no" >&6; }
31236	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31238as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31239is in your PATH or set the PKG_CONFIG environment variable to the full
31240path to pkg-config.
31241
31242Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
31243and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31244See the pkg-config man page for more details.
31245
31246To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31247See \`config.log' for more details" "$LINENO" 5; }
31248else
31249	XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
31250	XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
31251        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31252$as_echo "yes" >&6; }
31253
31254fi
31255
31256
31257pkg_failed=no
31258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5
31259$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; }
31260
31261if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
31262    pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
31263 elif test -n "$PKG_CONFIG"; then
31264    if test -n "$PKG_CONFIG" && \
31265    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
31266  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
31267  ac_status=$?
31268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31269  test $ac_status = 0; }; then
31270  pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null`
31271		      test "x$?" != "x0" && pkg_failed=yes
31272else
31273  pkg_failed=yes
31274fi
31275 else
31276    pkg_failed=untried
31277fi
31278if test -n "$X11EXAMPLES_DEP_LIBS"; then
31279    pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
31280 elif test -n "$PKG_CONFIG"; then
31281    if test -n "$PKG_CONFIG" && \
31282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
31283  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
31284  ac_status=$?
31285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31286  test $ac_status = 0; }; then
31287  pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null`
31288		      test "x$?" != "x0" && pkg_failed=yes
31289else
31290  pkg_failed=yes
31291fi
31292 else
31293    pkg_failed=untried
31294fi
31295
31296
31297
31298if test $pkg_failed = yes; then
31299   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31300$as_echo "no" >&6; }
31301
31302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31303        _pkg_short_errors_supported=yes
31304else
31305        _pkg_short_errors_supported=no
31306fi
31307        if test $_pkg_short_errors_supported = yes; then
31308	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1`
31309        else
31310	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1`
31311        fi
31312	# Put the nasty error message in config.log where it belongs
31313	echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
31314
31315	as_fn_error $? "Package requirements ($LIBXEXT x11) were not met:
31316
31317$X11EXAMPLES_DEP_PKG_ERRORS
31318
31319Consider adjusting the PKG_CONFIG_PATH environment variable if you
31320installed software in a non-standard prefix.
31321
31322Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31323and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31324See the pkg-config man page for more details." "$LINENO" 5
31325elif test $pkg_failed = untried; then
31326     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31327$as_echo "no" >&6; }
31328	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31330as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31331is in your PATH or set the PKG_CONFIG environment variable to the full
31332path to pkg-config.
31333
31334Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
31335and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
31336See the pkg-config man page for more details.
31337
31338To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31339See \`config.log' for more details" "$LINENO" 5; }
31340else
31341	X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
31342	X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
31343        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31344$as_echo "yes" >&6; }
31345
31346fi
31347
31348
31349fi
31350 if test "x$DMX_BUILD_LNX" = xyes; then
31351  DMX_BUILD_LNX_TRUE=
31352  DMX_BUILD_LNX_FALSE='#'
31353else
31354  DMX_BUILD_LNX_TRUE='#'
31355  DMX_BUILD_LNX_FALSE=
31356fi
31357
31358 if test "x$DMX_BUILD_USB" = xyes; then
31359  DMX_BUILD_USB_TRUE=
31360  DMX_BUILD_USB_FALSE='#'
31361else
31362  DMX_BUILD_USB_TRUE='#'
31363  DMX_BUILD_USB_FALSE=
31364fi
31365
31366
31367
31368XEPHYR_LIBS=
31369XEPHYR_INCS=
31370
31371 if test x$KDRIVE = xyes; then
31372  KDRIVE_TRUE=
31373  KDRIVE_FALSE='#'
31374else
31375  KDRIVE_TRUE='#'
31376  KDRIVE_FALSE=
31377fi
31378
31379
31380if test "$KDRIVE" = yes; then
31381
31382$as_echo "#define KDRIVESERVER 1" >>confdefs.h
31383
31384
31385$as_echo "#define KDRIVEDDXACTIONS /**/" >>confdefs.h
31386
31387
31388    for ac_header in linux/fb.h
31389do :
31390  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
31391if test "x$ac_cv_header_linux_fb_h" = xyes; then :
31392  cat >>confdefs.h <<_ACEOF
31393#define HAVE_LINUX_FB_H 1
31394_ACEOF
31395
31396fi
31397
31398done
31399
31400    if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
31401        XFBDEV=yes
31402    fi
31403
31404    if test "x$XFBDEV" = xyes; then
31405        KDRIVEFBDEVLIB=yes
31406
31407$as_echo "#define KDRIVEFBDEV 1" >>confdefs.h
31408
31409    fi
31410
31411
31412
31413pkg_failed=no
31414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5
31415$as_echo_n "checking for TSLIB... " >&6; }
31416
31417if test -n "$TSLIB_CFLAGS"; then
31418    pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS"
31419 elif test -n "$PKG_CONFIG"; then
31420    if test -n "$PKG_CONFIG" && \
31421    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5
31422  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
31423  ac_status=$?
31424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31425  test $ac_status = 0; }; then
31426  pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null`
31427		      test "x$?" != "x0" && pkg_failed=yes
31428else
31429  pkg_failed=yes
31430fi
31431 else
31432    pkg_failed=untried
31433fi
31434if test -n "$TSLIB_LIBS"; then
31435    pkg_cv_TSLIB_LIBS="$TSLIB_LIBS"
31436 elif test -n "$PKG_CONFIG"; then
31437    if test -n "$PKG_CONFIG" && \
31438    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5
31439  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
31440  ac_status=$?
31441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31442  test $ac_status = 0; }; then
31443  pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null`
31444		      test "x$?" != "x0" && pkg_failed=yes
31445else
31446  pkg_failed=yes
31447fi
31448 else
31449    pkg_failed=untried
31450fi
31451
31452
31453
31454if test $pkg_failed = yes; then
31455   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31456$as_echo "no" >&6; }
31457
31458if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31459        _pkg_short_errors_supported=yes
31460else
31461        _pkg_short_errors_supported=no
31462fi
31463        if test $_pkg_short_errors_supported = yes; then
31464	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tslib-0.0" 2>&1`
31465        else
31466	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tslib-0.0" 2>&1`
31467        fi
31468	# Put the nasty error message in config.log where it belongs
31469	echo "$TSLIB_PKG_ERRORS" >&5
31470
31471	HAVE_TSLIB="no"
31472elif test $pkg_failed = untried; then
31473     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31474$as_echo "no" >&6; }
31475	HAVE_TSLIB="no"
31476else
31477	TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS
31478	TSLIB_LIBS=$pkg_cv_TSLIB_LIBS
31479        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31480$as_echo "yes" >&6; }
31481	HAVE_TSLIB="yes"
31482fi
31483    if test "x$HAVE_TSLIB" = xno; then
31484        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5
31485$as_echo_n "checking for ts_open in -lts... " >&6; }
31486if ${ac_cv_lib_ts_ts_open+:} false; then :
31487  $as_echo_n "(cached) " >&6
31488else
31489  ac_check_lib_save_LIBS=$LIBS
31490LIBS="-lts  $LIBS"
31491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31492/* end confdefs.h.  */
31493
31494/* Override any GCC internal prototype to avoid an error.
31495   Use char because int might match the return type of a GCC
31496   builtin and then its argument prototype would still apply.  */
31497#ifdef __cplusplus
31498extern "C"
31499#endif
31500char ts_open ();
31501int
31502main ()
31503{
31504return ts_open ();
31505  ;
31506  return 0;
31507}
31508_ACEOF
31509if ac_fn_c_try_link "$LINENO"; then :
31510  ac_cv_lib_ts_ts_open=yes
31511else
31512  ac_cv_lib_ts_ts_open=no
31513fi
31514rm -f core conftest.err conftest.$ac_objext \
31515    conftest$ac_exeext conftest.$ac_ext
31516LIBS=$ac_check_lib_save_LIBS
31517fi
31518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5
31519$as_echo "$ac_cv_lib_ts_ts_open" >&6; }
31520if test "x$ac_cv_lib_ts_ts_open" = xyes; then :
31521
31522			HAVE_TSLIB="yes"
31523			TSLIB_LIBS="-lts"
31524
31525fi
31526
31527    fi
31528
31529    if test "xTSLIB" = xauto; then
31530        TSLIB="$HAVE_TSLIB"
31531    fi
31532
31533    if test "x$TSLIB" = xyes; then
31534        if ! test "x$HAVE_TSLIB" = xyes; then
31535            as_fn_error $? "tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" "$LINENO" 5
31536        else
31537
31538$as_echo "#define TSLIB 1" >>confdefs.h
31539
31540        fi
31541    fi
31542
31543    case $host_os in
31544	*linux*)
31545	    KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.la'
31546            KDRIVELINUX=yes
31547	    if test "x$KDRIVE_EVDEV" = xauto; then
31548		KDRIVE_EVDEV=yes
31549	    fi
31550	    if test "x$KDRIVE_KBD" = xauto; then
31551		KDRIVE_KBD=yes
31552	    fi
31553	    if test "x$KDRIVE_MOUSE" = xauto; then
31554		KDRIVE_MOUSE=yes
31555	    fi
31556	    ;;
31557	*)
31558	    if test "x$KDRIVE_EVDEV" = xauto; then
31559		KDRIVE_EVDEV=no
31560	    fi
31561	    if test "x$KDRIVE_KBD" = xauto; then
31562		KDRIVE_KBD=no
31563	    fi
31564	    if test "x$KDRIVE_MOUSE" = xauto; then
31565		KDRIVE_MOUSE=no
31566	    fi
31567	    ;;
31568    esac
31569
31570    if test "x$KDRIVE_KBD" = xyes; then
31571
31572$as_echo "#define KDRIVE_KBD 1" >>confdefs.h
31573
31574    fi
31575    if test "x$KDRIVE_EVDEV" = xyes; then
31576
31577$as_echo "#define KDRIVE_EVDEV 1" >>confdefs.h
31578
31579    fi
31580    if test "x$KDRIVE_MOUSE" = xyes; then
31581
31582$as_echo "#define KDRIVE_MOUSE 1" >>confdefs.h
31583
31584    fi
31585
31586    XEPHYR_REQUIRED_LIBS="xau xdmcp xcb xcb-shape xcb-render xcb-renderutil xcb-aux xcb-image xcb-icccm xcb-shm xcb-keysyms xcb-randr"
31587    if test "x$XV" = xyes; then
31588        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv"
31589    fi
31590    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
31591        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS libdrm xcb-glx xcb-xf86dri > 1.6"
31592    fi
31593    if test "x$GLAMOR" = xyes; then
31594        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb"
31595    fi
31596
31597    if test "x$XEPHYR" = xauto; then
31598
31599pkg_failed=no
31600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
31601$as_echo_n "checking for XEPHYR... " >&6; }
31602
31603if test -n "$XEPHYR_CFLAGS"; then
31604    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
31605 elif test -n "$PKG_CONFIG"; then
31606    if test -n "$PKG_CONFIG" && \
31607    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31608  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31609  ac_status=$?
31610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31611  test $ac_status = 0; }; then
31612  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31613		      test "x$?" != "x0" && pkg_failed=yes
31614else
31615  pkg_failed=yes
31616fi
31617 else
31618    pkg_failed=untried
31619fi
31620if test -n "$XEPHYR_LIBS"; then
31621    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
31622 elif test -n "$PKG_CONFIG"; then
31623    if test -n "$PKG_CONFIG" && \
31624    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31625  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31626  ac_status=$?
31627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31628  test $ac_status = 0; }; then
31629  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31630		      test "x$?" != "x0" && pkg_failed=yes
31631else
31632  pkg_failed=yes
31633fi
31634 else
31635    pkg_failed=untried
31636fi
31637
31638
31639
31640if test $pkg_failed = yes; then
31641   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31642$as_echo "no" >&6; }
31643
31644if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31645        _pkg_short_errors_supported=yes
31646else
31647        _pkg_short_errors_supported=no
31648fi
31649        if test $_pkg_short_errors_supported = yes; then
31650	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
31651        else
31652	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
31653        fi
31654	# Put the nasty error message in config.log where it belongs
31655	echo "$XEPHYR_PKG_ERRORS" >&5
31656
31657	XEPHYR="no"
31658elif test $pkg_failed = untried; then
31659     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660$as_echo "no" >&6; }
31661	XEPHYR="no"
31662else
31663	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
31664	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
31665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31666$as_echo "yes" >&6; }
31667	XEPHYR="yes"
31668fi
31669    elif test "x$XEPHYR" = xyes ; then
31670
31671pkg_failed=no
31672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
31673$as_echo_n "checking for XEPHYR... " >&6; }
31674
31675if test -n "$XEPHYR_CFLAGS"; then
31676    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
31677 elif test -n "$PKG_CONFIG"; then
31678    if test -n "$PKG_CONFIG" && \
31679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31680  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31681  ac_status=$?
31682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31683  test $ac_status = 0; }; then
31684  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31685		      test "x$?" != "x0" && pkg_failed=yes
31686else
31687  pkg_failed=yes
31688fi
31689 else
31690    pkg_failed=untried
31691fi
31692if test -n "$XEPHYR_LIBS"; then
31693    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
31694 elif test -n "$PKG_CONFIG"; then
31695    if test -n "$PKG_CONFIG" && \
31696    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
31697  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
31698  ac_status=$?
31699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31700  test $ac_status = 0; }; then
31701  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
31702		      test "x$?" != "x0" && pkg_failed=yes
31703else
31704  pkg_failed=yes
31705fi
31706 else
31707    pkg_failed=untried
31708fi
31709
31710
31711
31712if test $pkg_failed = yes; then
31713   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714$as_echo "no" >&6; }
31715
31716if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31717        _pkg_short_errors_supported=yes
31718else
31719        _pkg_short_errors_supported=no
31720fi
31721        if test $_pkg_short_errors_supported = yes; then
31722	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
31723        else
31724	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
31725        fi
31726	# Put the nasty error message in config.log where it belongs
31727	echo "$XEPHYR_PKG_ERRORS" >&5
31728
31729	as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
31730
31731$XEPHYR_PKG_ERRORS
31732
31733Consider adjusting the PKG_CONFIG_PATH environment variable if you
31734installed software in a non-standard prefix.
31735
31736Alternatively, you may set the environment variables XEPHYR_CFLAGS
31737and XEPHYR_LIBS to avoid the need to call pkg-config.
31738See the pkg-config man page for more details." "$LINENO" 5
31739elif test $pkg_failed = untried; then
31740     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31741$as_echo "no" >&6; }
31742	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31744as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31745is in your PATH or set the PKG_CONFIG environment variable to the full
31746path to pkg-config.
31747
31748Alternatively, you may set the environment variables XEPHYR_CFLAGS
31749and XEPHYR_LIBS to avoid the need to call pkg-config.
31750See the pkg-config man page for more details.
31751
31752To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31753See \`config.log' for more details" "$LINENO" 5; }
31754else
31755	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
31756	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
31757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31758$as_echo "yes" >&6; }
31759
31760fi
31761    fi
31762
31763    # Xephyr needs nanosleep() which is in librt on Solaris
31764    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
31765if test "x$ac_cv_func_nanosleep" = xyes; then :
31766
31767else
31768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
31769$as_echo_n "checking for nanosleep in -lrt... " >&6; }
31770if ${ac_cv_lib_rt_nanosleep+:} false; then :
31771  $as_echo_n "(cached) " >&6
31772else
31773  ac_check_lib_save_LIBS=$LIBS
31774LIBS="-lrt  $LIBS"
31775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776/* end confdefs.h.  */
31777
31778/* Override any GCC internal prototype to avoid an error.
31779   Use char because int might match the return type of a GCC
31780   builtin and then its argument prototype would still apply.  */
31781#ifdef __cplusplus
31782extern "C"
31783#endif
31784char nanosleep ();
31785int
31786main ()
31787{
31788return nanosleep ();
31789  ;
31790  return 0;
31791}
31792_ACEOF
31793if ac_fn_c_try_link "$LINENO"; then :
31794  ac_cv_lib_rt_nanosleep=yes
31795else
31796  ac_cv_lib_rt_nanosleep=no
31797fi
31798rm -f core conftest.err conftest.$ac_objext \
31799    conftest$ac_exeext conftest.$ac_ext
31800LIBS=$ac_check_lib_save_LIBS
31801fi
31802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
31803$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
31804if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
31805  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
31806fi
31807
31808fi
31809
31810
31811    # damage shadow extension glx (NOTYET) fb mi
31812    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
31813    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
31814    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
31815    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
31816
31817    KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
31818
31819    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"
31820    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
31821    KDRIVE_MAIN_LIB="$MAIN_LIB"
31822    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB"
31823    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
31824    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
31825    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS $TSLIB_LIBS"
31826
31827
31828
31829fi
31830
31831
31832
31833
31834
31835
31836
31837 if test "x$KDRIVELINUX" = xyes; then
31838  KDRIVELINUX_TRUE=
31839  KDRIVELINUX_FALSE='#'
31840else
31841  KDRIVELINUX_TRUE='#'
31842  KDRIVELINUX_FALSE=
31843fi
31844
31845 if test "x$KDRIVE_EVDEV" = xyes; then
31846  KDRIVE_EVDEV_TRUE=
31847  KDRIVE_EVDEV_FALSE='#'
31848else
31849  KDRIVE_EVDEV_TRUE='#'
31850  KDRIVE_EVDEV_FALSE=
31851fi
31852
31853 if test "x$KDRIVE_KBD" = xyes; then
31854  KDRIVE_KBD_TRUE=
31855  KDRIVE_KBD_FALSE='#'
31856else
31857  KDRIVE_KBD_TRUE='#'
31858  KDRIVE_KBD_FALSE=
31859fi
31860
31861 if test "x$KDRIVE_MOUSE" = xyes; then
31862  KDRIVE_MOUSE_TRUE=
31863  KDRIVE_MOUSE_FALSE='#'
31864else
31865  KDRIVE_MOUSE_TRUE='#'
31866  KDRIVE_MOUSE_FALSE=
31867fi
31868
31869 if test "x$HAVE_TSLIB" = xyes; then
31870  TSLIB_TRUE=
31871  TSLIB_FALSE='#'
31872else
31873  TSLIB_TRUE='#'
31874  TSLIB_FALSE=
31875fi
31876
31877 if test "x$XFBDEV" = xyes; then
31878  KDRIVEFBDEV_TRUE=
31879  KDRIVEFBDEV_FALSE='#'
31880else
31881  KDRIVEFBDEV_TRUE='#'
31882  KDRIVEFBDEV_FALSE=
31883fi
31884
31885 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
31886  XEPHYR_TRUE=
31887  XEPHYR_FALSE='#'
31888else
31889  XEPHYR_TRUE='#'
31890  XEPHYR_FALSE=
31891fi
31892
31893 if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then
31894  BUILD_KDRIVEFBDEVLIB_TRUE=
31895  BUILD_KDRIVEFBDEVLIB_FALSE='#'
31896else
31897  BUILD_KDRIVEFBDEVLIB_TRUE='#'
31898  BUILD_KDRIVEFBDEVLIB_FALSE=
31899fi
31900
31901 if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then
31902  XFAKESERVER_TRUE=
31903  XFAKESERVER_FALSE='#'
31904else
31905  XFAKESERVER_TRUE='#'
31906  XFAKESERVER_FALSE=
31907fi
31908
31909
31910
31911XWAYLANDMODULES="wayland-client >= 1.3.0 libdrm epoxy"
31912if test "x$XF86VIDMODE" = xyes; then
31913	XWAYLANDMODULES="$XWAYLANDMODULES $VIDMODEPROTO"
31914fi
31915
31916pkg_failed=no
31917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWAYLANDMODULES" >&5
31918$as_echo_n "checking for XWAYLANDMODULES... " >&6; }
31919
31920if test -n "$XWAYLANDMODULES_CFLAGS"; then
31921    pkg_cv_XWAYLANDMODULES_CFLAGS="$XWAYLANDMODULES_CFLAGS"
31922 elif test -n "$PKG_CONFIG"; then
31923    if test -n "$PKG_CONFIG" && \
31924    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5
31925  ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5
31926  ac_status=$?
31927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31928  test $ac_status = 0; }; then
31929  pkg_cv_XWAYLANDMODULES_CFLAGS=`$PKG_CONFIG --cflags "$XWAYLANDMODULES" 2>/dev/null`
31930		      test "x$?" != "x0" && pkg_failed=yes
31931else
31932  pkg_failed=yes
31933fi
31934 else
31935    pkg_failed=untried
31936fi
31937if test -n "$XWAYLANDMODULES_LIBS"; then
31938    pkg_cv_XWAYLANDMODULES_LIBS="$XWAYLANDMODULES_LIBS"
31939 elif test -n "$PKG_CONFIG"; then
31940    if test -n "$PKG_CONFIG" && \
31941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5
31942  ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5
31943  ac_status=$?
31944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31945  test $ac_status = 0; }; then
31946  pkg_cv_XWAYLANDMODULES_LIBS=`$PKG_CONFIG --libs "$XWAYLANDMODULES" 2>/dev/null`
31947		      test "x$?" != "x0" && pkg_failed=yes
31948else
31949  pkg_failed=yes
31950fi
31951 else
31952    pkg_failed=untried
31953fi
31954
31955
31956
31957if test $pkg_failed = yes; then
31958   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31959$as_echo "no" >&6; }
31960
31961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31962        _pkg_short_errors_supported=yes
31963else
31964        _pkg_short_errors_supported=no
31965fi
31966        if test $_pkg_short_errors_supported = yes; then
31967	        XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1`
31968        else
31969	        XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1`
31970        fi
31971	# Put the nasty error message in config.log where it belongs
31972	echo "$XWAYLANDMODULES_PKG_ERRORS" >&5
31973
31974	have_xwayland=no
31975elif test $pkg_failed = untried; then
31976     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31977$as_echo "no" >&6; }
31978	have_xwayland=no
31979else
31980	XWAYLANDMODULES_CFLAGS=$pkg_cv_XWAYLANDMODULES_CFLAGS
31981	XWAYLANDMODULES_LIBS=$pkg_cv_XWAYLANDMODULES_LIBS
31982        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31983$as_echo "yes" >&6; }
31984	have_xwayland=yes
31985fi
31986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xwayland DDX" >&5
31987$as_echo_n "checking whether to build Xwayland DDX... " >&6; }
31988if test "x$XWAYLAND" = xauto; then
31989   XWAYLAND="$have_xwayland"
31990fi
31991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWAYLAND" >&5
31992$as_echo "$XWAYLAND" >&6; }
31993 if test "x$XWAYLAND" = xyes; then
31994  XWAYLAND_TRUE=
31995  XWAYLAND_FALSE='#'
31996else
31997  XWAYLAND_TRUE='#'
31998  XWAYLAND_FALSE=
31999fi
32000
32001
32002if test "x$XWAYLAND" = xyes; then
32003	if test "x$have_xwayland" = xno; then
32004		as_fn_error $? "Xwayland build explicitly requested, but required modules not found." "$LINENO" 5
32005	fi
32006
32007	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"
32008	XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS"
32009
32010
32011
32012	WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
32013	# Extract the first word of "wayland-scanner", so it can be a program name with args.
32014set dummy wayland-scanner; ac_word=$2
32015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32016$as_echo_n "checking for $ac_word... " >&6; }
32017if ${ac_cv_path_WAYLAND_SCANNER+:} false; then :
32018  $as_echo_n "(cached) " >&6
32019else
32020  case $WAYLAND_SCANNER in
32021  [\\/]* | ?:[\\/]*)
32022  ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path.
32023  ;;
32024  *)
32025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32026for as_dir in ${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH
32027do
32028  IFS=$as_save_IFS
32029  test -z "$as_dir" && as_dir=.
32030    for ac_exec_ext in '' $ac_executable_extensions; do
32031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32032    ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext"
32033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32034    break 2
32035  fi
32036done
32037  done
32038IFS=$as_save_IFS
32039
32040  ;;
32041esac
32042fi
32043WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER
32044if test -n "$WAYLAND_SCANNER"; then
32045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5
32046$as_echo "$WAYLAND_SCANNER" >&6; }
32047else
32048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32049$as_echo "no" >&6; }
32050fi
32051
32052
32053fi
32054
32055
32056
32057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32058/* end confdefs.h.  */
32059
32060#include <features.h>
32061#ifndef __GLIBC__
32062#error not glibc
32063#endif
32064
32065int
32066main ()
32067{
32068
32069  ;
32070  return 0;
32071}
32072_ACEOF
32073if ac_fn_c_try_compile "$LINENO"; then :
32074
32075$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
32076
32077fi
32078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32079
32080
32081  prefix_NONE=
32082  exec_prefix_NONE=
32083  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32084  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32085  eval ac_define_dir="\"$prefix\""
32086  eval ac_define_dir="\"$ac_define_dir\""
32087  PROJECTROOT="$ac_define_dir"
32088
32089
32090cat >>confdefs.h <<_ACEOF
32091#define PROJECTROOT "$ac_define_dir"
32092_ACEOF
32093
32094  test "$prefix_NONE" && prefix=NONE
32095  test "$exec_prefix_NONE" && exec_prefix=NONE
32096
32097
32098  prefix_NONE=
32099  exec_prefix_NONE=
32100  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32101  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32102  eval ac_define_dir="\"$sysconfdir\""
32103  eval ac_define_dir="\"$ac_define_dir\""
32104  SYSCONFDIR="$ac_define_dir"
32105
32106
32107cat >>confdefs.h <<_ACEOF
32108#define SYSCONFDIR "$ac_define_dir"
32109_ACEOF
32110
32111  test "$prefix_NONE" && prefix=NONE
32112  test "$exec_prefix_NONE" && exec_prefix=NONE
32113
32114
32115
32116BUILD_DATE="`date +'%Y%m%d'`"
32117
32118BUILD_TIME="`date +'1%H%M%S'`"
32119
32120
32121DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
32122
32123
32124
32125
32126
32127
32128
32129ac_config_commands="$ac_config_commands sdksyms"
32130
32131
32132if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then
32133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
32134             ***********************************************
32135             Neither HAL nor udev backend will be enabled.
32136             Input device hotplugging will not be available!
32137             ***********************************************" >&5
32138$as_echo "$as_me: WARNING:
32139             ***********************************************
32140             Neither HAL nor udev backend will be enabled.
32141             Input device hotplugging will not be available!
32142             ***********************************************" >&2;}
32143fi
32144
32145ac_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/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/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/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdrive/linux/Makefile hw/kdrive/src/Makefile hw/xwayland/Makefile test/Makefile test/xi1/Makefile test/xi2/Makefile xserver.ent xorg-server.pc"
32146
32147cat >confcache <<\_ACEOF
32148# This file is a shell script that caches the results of configure
32149# tests run on this system so they can be shared between configure
32150# scripts and configure runs, see configure's option --config-cache.
32151# It is not useful on other systems.  If it contains results you don't
32152# want to keep, you may remove or edit it.
32153#
32154# config.status only pays attention to the cache file if you give it
32155# the --recheck option to rerun configure.
32156#
32157# `ac_cv_env_foo' variables (set or unset) will be overridden when
32158# loading this file, other *unset* `ac_cv_foo' will be assigned the
32159# following values.
32160
32161_ACEOF
32162
32163# The following way of writing the cache mishandles newlines in values,
32164# but we know of no workaround that is simple, portable, and efficient.
32165# So, we kill variables containing newlines.
32166# Ultrix sh set writes to stderr and can't be redirected directly,
32167# and sets the high bit in the cache file unless we assign to the vars.
32168(
32169  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32170    eval ac_val=\$$ac_var
32171    case $ac_val in #(
32172    *${as_nl}*)
32173      case $ac_var in #(
32174      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32175$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32176      esac
32177      case $ac_var in #(
32178      _ | IFS | as_nl) ;; #(
32179      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32180      *) { eval $ac_var=; unset $ac_var;} ;;
32181      esac ;;
32182    esac
32183  done
32184
32185  (set) 2>&1 |
32186    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32187    *${as_nl}ac_space=\ *)
32188      # `set' does not quote correctly, so add quotes: double-quote
32189      # substitution turns \\\\ into \\, and sed turns \\ into \.
32190      sed -n \
32191	"s/'/'\\\\''/g;
32192	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32193      ;; #(
32194    *)
32195      # `set' quotes correctly as required by POSIX, so do not add quotes.
32196      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32197      ;;
32198    esac |
32199    sort
32200) |
32201  sed '
32202     /^ac_cv_env_/b end
32203     t clear
32204     :clear
32205     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32206     t end
32207     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32208     :end' >>confcache
32209if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32210  if test -w "$cache_file"; then
32211    if test "x$cache_file" != "x/dev/null"; then
32212      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32213$as_echo "$as_me: updating cache $cache_file" >&6;}
32214      if test ! -f "$cache_file" || test -h "$cache_file"; then
32215	cat confcache >"$cache_file"
32216      else
32217        case $cache_file in #(
32218        */* | ?:*)
32219	  mv -f confcache "$cache_file"$$ &&
32220	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32221        *)
32222	  mv -f confcache "$cache_file" ;;
32223	esac
32224      fi
32225    fi
32226  else
32227    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32228$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32229  fi
32230fi
32231rm -f confcache
32232
32233test "x$prefix" = xNONE && prefix=$ac_default_prefix
32234# Let make expand exec_prefix.
32235test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32236
32237DEFS=-DHAVE_CONFIG_H
32238
32239ac_libobjs=
32240ac_ltlibobjs=
32241U=
32242for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32243  # 1. Remove the extension, and $U if already installed.
32244  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32245  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32246  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32247  #    will be set to the directory where LIBOBJS objects are built.
32248  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32249  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32250done
32251LIBOBJS=$ac_libobjs
32252
32253LTLIBOBJS=$ac_ltlibobjs
32254
32255
32256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32257$as_echo_n "checking that generated files are newer than configure... " >&6; }
32258   if test -n "$am_sleep_pid"; then
32259     # Hide warnings about reused PIDs.
32260     wait $am_sleep_pid 2>/dev/null
32261   fi
32262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32263$as_echo "done" >&6; }
32264 if test -n "$EXEEXT"; then
32265  am__EXEEXT_TRUE=
32266  am__EXEEXT_FALSE='#'
32267else
32268  am__EXEEXT_TRUE='#'
32269  am__EXEEXT_FALSE=
32270fi
32271
32272if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32273  as_fn_error $? "conditional \"AMDEP\" was never defined.
32274Usually this means the macro was only invoked conditionally." "$LINENO" 5
32275fi
32276if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32277  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32278Usually this means the macro was only invoked conditionally." "$LINENO" 5
32279fi
32280if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
32281  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
32282Usually this means the macro was only invoked conditionally." "$LINENO" 5
32283fi
32284if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
32285  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
32286Usually this means the macro was only invoked conditionally." "$LINENO" 5
32287fi
32288if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
32289  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
32290Usually this means the macro was only invoked conditionally." "$LINENO" 5
32291fi
32292if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
32293  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
32294Usually this means the macro was only invoked conditionally." "$LINENO" 5
32295fi
32296if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
32297  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
32298Usually this means the macro was only invoked conditionally." "$LINENO" 5
32299fi
32300if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
32301  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
32302Usually this means the macro was only invoked conditionally." "$LINENO" 5
32303fi
32304if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
32305  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
32306Usually this means the macro was only invoked conditionally." "$LINENO" 5
32307fi
32308if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
32309  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
32310Usually this means the macro was only invoked conditionally." "$LINENO" 5
32311fi
32312if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
32313  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
32314Usually this means the macro was only invoked conditionally." "$LINENO" 5
32315fi
32316if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
32317  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
32318Usually this means the macro was only invoked conditionally." "$LINENO" 5
32319fi
32320if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
32321  as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined.
32322Usually this means the macro was only invoked conditionally." "$LINENO" 5
32323fi
32324if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
32325  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
32326Usually this means the macro was only invoked conditionally." "$LINENO" 5
32327fi
32328if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
32329  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
32330Usually this means the macro was only invoked conditionally." "$LINENO" 5
32331fi
32332if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
32333  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
32334Usually this means the macro was only invoked conditionally." "$LINENO" 5
32335fi
32336
32337if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
32338  as_fn_error $? "conditional \"AGP\" was never defined.
32339Usually this means the macro was only invoked conditionally." "$LINENO" 5
32340fi
32341if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
32342  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
32343Usually this means the macro was only invoked conditionally." "$LINENO" 5
32344fi
32345if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
32346  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
32347Usually this means the macro was only invoked conditionally." "$LINENO" 5
32348fi
32349if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
32350  as_fn_error $? "conditional \"BSD_APM\" was never defined.
32351Usually this means the macro was only invoked conditionally." "$LINENO" 5
32352fi
32353if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
32354  as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined.
32355Usually this means the macro was only invoked conditionally." "$LINENO" 5
32356fi
32357if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
32358  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
32359Usually this means the macro was only invoked conditionally." "$LINENO" 5
32360fi
32361if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
32362  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
32363Usually this means the macro was only invoked conditionally." "$LINENO" 5
32364fi
32365if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
32366  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
32367Usually this means the macro was only invoked conditionally." "$LINENO" 5
32368fi
32369if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
32370  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
32371Usually this means the macro was only invoked conditionally." "$LINENO" 5
32372fi
32373if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
32374  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
32375Usually this means the macro was only invoked conditionally." "$LINENO" 5
32376fi
32377if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
32378  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
32379Usually this means the macro was only invoked conditionally." "$LINENO" 5
32380fi
32381if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
32382  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
32383Usually this means the macro was only invoked conditionally." "$LINENO" 5
32384fi
32385if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
32386  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
32387Usually this means the macro was only invoked conditionally." "$LINENO" 5
32388fi
32389if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
32390  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
32391Usually this means the macro was only invoked conditionally." "$LINENO" 5
32392fi
32393if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
32394  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
32395Usually this means the macro was only invoked conditionally." "$LINENO" 5
32396fi
32397if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then
32398  as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined.
32399Usually this means the macro was only invoked conditionally." "$LINENO" 5
32400fi
32401if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
32402  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
32403Usually this means the macro was only invoked conditionally." "$LINENO" 5
32404fi
32405if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then
32406  as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined.
32407Usually this means the macro was only invoked conditionally." "$LINENO" 5
32408fi
32409if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
32410  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
32411Usually this means the macro was only invoked conditionally." "$LINENO" 5
32412fi
32413if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
32414  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
32415Usually this means the macro was only invoked conditionally." "$LINENO" 5
32416fi
32417if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then
32418  as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined.
32419Usually this means the macro was only invoked conditionally." "$LINENO" 5
32420fi
32421if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then
32422  as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined.
32423Usually this means the macro was only invoked conditionally." "$LINENO" 5
32424fi
32425if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then
32426  as_fn_error $? "conditional \"NEED_DBUS\" was never defined.
32427Usually this means the macro was only invoked conditionally." "$LINENO" 5
32428fi
32429if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then
32430  as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined.
32431Usually this means the macro was only invoked conditionally." "$LINENO" 5
32432fi
32433if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
32434  as_fn_error $? "conditional \"XV\" was never defined.
32435Usually this means the macro was only invoked conditionally." "$LINENO" 5
32436fi
32437if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
32438  as_fn_error $? "conditional \"XVMC\" was never defined.
32439Usually this means the macro was only invoked conditionally." "$LINENO" 5
32440fi
32441if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
32442  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
32443Usually this means the macro was only invoked conditionally." "$LINENO" 5
32444fi
32445if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
32446  as_fn_error $? "conditional \"MITSHM\" was never defined.
32447Usually this means the macro was only invoked conditionally." "$LINENO" 5
32448fi
32449if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
32450  as_fn_error $? "conditional \"RECORD\" was never defined.
32451Usually this means the macro was only invoked conditionally." "$LINENO" 5
32452fi
32453if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
32454  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
32455Usually this means the macro was only invoked conditionally." "$LINENO" 5
32456fi
32457if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
32458  as_fn_error $? "conditional \"RES\" was never defined.
32459Usually this means the macro was only invoked conditionally." "$LINENO" 5
32460fi
32461if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
32462  as_fn_error $? "conditional \"CLIENTIDS\" was never defined.
32463Usually this means the macro was only invoked conditionally." "$LINENO" 5
32464fi
32465if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
32466  as_fn_error $? "conditional \"DRI\" was never defined.
32467Usually this means the macro was only invoked conditionally." "$LINENO" 5
32468fi
32469if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
32470  as_fn_error $? "conditional \"DRI2\" was never defined.
32471Usually this means the macro was only invoked conditionally." "$LINENO" 5
32472fi
32473if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then
32474  as_fn_error $? "conditional \"BUSFAULT\" was never defined.
32475Usually this means the macro was only invoked conditionally." "$LINENO" 5
32476fi
32477if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then
32478  as_fn_error $? "conditional \"XSHMFENCE\" was never defined.
32479Usually this means the macro was only invoked conditionally." "$LINENO" 5
32480fi
32481if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
32482  as_fn_error $? "conditional \"DRI3\" was never defined.
32483Usually this means the macro was only invoked conditionally." "$LINENO" 5
32484fi
32485if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then
32486  as_fn_error $? "conditional \"DRI2_AIGLX\" was never defined.
32487Usually this means the macro was only invoked conditionally." "$LINENO" 5
32488fi
32489if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
32490  as_fn_error $? "conditional \"GLX\" was never defined.
32491Usually this means the macro was only invoked conditionally." "$LINENO" 5
32492fi
32493if test -z "${AIGLX_DRI_LOADER_TRUE}" && test -z "${AIGLX_DRI_LOADER_FALSE}"; then
32494  as_fn_error $? "conditional \"AIGLX_DRI_LOADER\" was never defined.
32495Usually this means the macro was only invoked conditionally." "$LINENO" 5
32496fi
32497if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
32498  as_fn_error $? "conditional \"PRESENT\" was never defined.
32499Usually this means the macro was only invoked conditionally." "$LINENO" 5
32500fi
32501if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
32502  as_fn_error $? "conditional \"XINERAMA\" was never defined.
32503Usually this means the macro was only invoked conditionally." "$LINENO" 5
32504fi
32505if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
32506  as_fn_error $? "conditional \"XACE\" was never defined.
32507Usually this means the macro was only invoked conditionally." "$LINENO" 5
32508fi
32509if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
32510  as_fn_error $? "conditional \"XSELINUX\" was never defined.
32511Usually this means the macro was only invoked conditionally." "$LINENO" 5
32512fi
32513if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
32514  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
32515Usually this means the macro was only invoked conditionally." "$LINENO" 5
32516fi
32517if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
32518  as_fn_error $? "conditional \"DBE\" was never defined.
32519Usually this means the macro was only invoked conditionally." "$LINENO" 5
32520fi
32521if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
32522  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
32523Usually this means the macro was only invoked conditionally." "$LINENO" 5
32524fi
32525if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
32526  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
32527Usually this means the macro was only invoked conditionally." "$LINENO" 5
32528fi
32529if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
32530  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
32531Usually this means the macro was only invoked conditionally." "$LINENO" 5
32532fi
32533if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
32534  as_fn_error $? "conditional \"VGAHW\" was never defined.
32535Usually this means the macro was only invoked conditionally." "$LINENO" 5
32536fi
32537if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then
32538  as_fn_error $? "conditional \"VBE\" was never defined.
32539Usually this means the macro was only invoked conditionally." "$LINENO" 5
32540fi
32541if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
32542  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
32543Usually this means the macro was only invoked conditionally." "$LINENO" 5
32544fi
32545if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
32546  as_fn_error $? "conditional \"XDMCP\" was never defined.
32547Usually this means the macro was only invoked conditionally." "$LINENO" 5
32548fi
32549if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
32550  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
32551Usually this means the macro was only invoked conditionally." "$LINENO" 5
32552fi
32553if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
32554  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
32555Usually this means the macro was only invoked conditionally." "$LINENO" 5
32556fi
32557if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
32558  as_fn_error $? "conditional \"DEBUG\" was never defined.
32559Usually this means the macro was only invoked conditionally." "$LINENO" 5
32560fi
32561if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then
32562  as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined.
32563Usually this means the macro was only invoked conditionally." "$LINENO" 5
32564fi
32565if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
32566  as_fn_error $? "conditional \"CYGWIN\" was never defined.
32567Usually this means the macro was only invoked conditionally." "$LINENO" 5
32568fi
32569if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
32570  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
32571Usually this means the macro was only invoked conditionally." "$LINENO" 5
32572fi
32573if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
32574  as_fn_error $? "conditional \"XVFB\" was never defined.
32575Usually this means the macro was only invoked conditionally." "$LINENO" 5
32576fi
32577if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
32578  as_fn_error $? "conditional \"XNEST\" was never defined.
32579Usually this means the macro was only invoked conditionally." "$LINENO" 5
32580fi
32581if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
32582  as_fn_error $? "conditional \"XORG\" was never defined.
32583Usually this means the macro was only invoked conditionally." "$LINENO" 5
32584fi
32585if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then
32586  as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined.
32587Usually this means the macro was only invoked conditionally." "$LINENO" 5
32588fi
32589if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
32590  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
32591Usually this means the macro was only invoked conditionally." "$LINENO" 5
32592fi
32593if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
32594  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
32595Usually this means the macro was only invoked conditionally." "$LINENO" 5
32596fi
32597if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then
32598  as_fn_error $? "conditional \"LINUX_ALPHA\" was never defined.
32599Usually this means the macro was only invoked conditionally." "$LINENO" 5
32600fi
32601if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
32602  as_fn_error $? "conditional \"LNXACPI\" was never defined.
32603Usually this means the macro was only invoked conditionally." "$LINENO" 5
32604fi
32605if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
32606  as_fn_error $? "conditional \"LNXAPM\" was never defined.
32607Usually this means the macro was only invoked conditionally." "$LINENO" 5
32608fi
32609if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
32610  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
32611Usually this means the macro was only invoked conditionally." "$LINENO" 5
32612fi
32613if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
32614  as_fn_error $? "conditional \"DGA\" was never defined.
32615Usually this means the macro was only invoked conditionally." "$LINENO" 5
32616fi
32617if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then
32618  as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined.
32619Usually this means the macro was only invoked conditionally." "$LINENO" 5
32620fi
32621if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then
32622  as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined.
32623Usually this means the macro was only invoked conditionally." "$LINENO" 5
32624fi
32625if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
32626  as_fn_error $? "conditional \"GLAMOR\" was never defined.
32627Usually this means the macro was only invoked conditionally." "$LINENO" 5
32628fi
32629if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then
32630  as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined.
32631Usually this means the macro was only invoked conditionally." "$LINENO" 5
32632fi
32633if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
32634  as_fn_error $? "conditional \"XWIN\" was never defined.
32635Usually this means the macro was only invoked conditionally." "$LINENO" 5
32636fi
32637if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then
32638  as_fn_error $? "conditional \"XWIN_MULTIWINDOW\" was never defined.
32639Usually this means the macro was only invoked conditionally." "$LINENO" 5
32640fi
32641if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
32642  as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
32643Usually this means the macro was only invoked conditionally." "$LINENO" 5
32644fi
32645if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then
32646  as_fn_error $? "conditional \"XWIN_CLIPBOARD\" was never defined.
32647Usually this means the macro was only invoked conditionally." "$LINENO" 5
32648fi
32649if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
32650  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
32651Usually this means the macro was only invoked conditionally." "$LINENO" 5
32652fi
32653if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then
32654  as_fn_error $? "conditional \"XWIN_RANDR\" was never defined.
32655Usually this means the macro was only invoked conditionally." "$LINENO" 5
32656fi
32657if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then
32658  as_fn_error $? "conditional \"XWIN_XV\" was never defined.
32659Usually this means the macro was only invoked conditionally." "$LINENO" 5
32660fi
32661if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then
32662  as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined.
32663Usually this means the macro was only invoked conditionally." "$LINENO" 5
32664fi
32665if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
32666  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
32667Usually this means the macro was only invoked conditionally." "$LINENO" 5
32668fi
32669if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
32670  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
32671Usually this means the macro was only invoked conditionally." "$LINENO" 5
32672fi
32673if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
32674  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
32675Usually this means the macro was only invoked conditionally." "$LINENO" 5
32676fi
32677if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
32678  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
32679Usually this means the macro was only invoked conditionally." "$LINENO" 5
32680fi
32681if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
32682  as_fn_error $? "conditional \"DMX\" was never defined.
32683Usually this means the macro was only invoked conditionally." "$LINENO" 5
32684fi
32685if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then
32686  as_fn_error $? "conditional \"DMX_BUILD_LNX\" was never defined.
32687Usually this means the macro was only invoked conditionally." "$LINENO" 5
32688fi
32689if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
32690  as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined.
32691Usually this means the macro was only invoked conditionally." "$LINENO" 5
32692fi
32693if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
32694  as_fn_error $? "conditional \"KDRIVE\" was never defined.
32695Usually this means the macro was only invoked conditionally." "$LINENO" 5
32696fi
32697if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then
32698  as_fn_error $? "conditional \"KDRIVELINUX\" was never defined.
32699Usually this means the macro was only invoked conditionally." "$LINENO" 5
32700fi
32701if test -z "${KDRIVE_EVDEV_TRUE}" && test -z "${KDRIVE_EVDEV_FALSE}"; then
32702  as_fn_error $? "conditional \"KDRIVE_EVDEV\" was never defined.
32703Usually this means the macro was only invoked conditionally." "$LINENO" 5
32704fi
32705if test -z "${KDRIVE_KBD_TRUE}" && test -z "${KDRIVE_KBD_FALSE}"; then
32706  as_fn_error $? "conditional \"KDRIVE_KBD\" was never defined.
32707Usually this means the macro was only invoked conditionally." "$LINENO" 5
32708fi
32709if test -z "${KDRIVE_MOUSE_TRUE}" && test -z "${KDRIVE_MOUSE_FALSE}"; then
32710  as_fn_error $? "conditional \"KDRIVE_MOUSE\" was never defined.
32711Usually this means the macro was only invoked conditionally." "$LINENO" 5
32712fi
32713if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then
32714  as_fn_error $? "conditional \"TSLIB\" was never defined.
32715Usually this means the macro was only invoked conditionally." "$LINENO" 5
32716fi
32717if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then
32718  as_fn_error $? "conditional \"KDRIVEFBDEV\" was never defined.
32719Usually this means the macro was only invoked conditionally." "$LINENO" 5
32720fi
32721if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
32722  as_fn_error $? "conditional \"XEPHYR\" was never defined.
32723Usually this means the macro was only invoked conditionally." "$LINENO" 5
32724fi
32725if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then
32726  as_fn_error $? "conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
32727Usually this means the macro was only invoked conditionally." "$LINENO" 5
32728fi
32729if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then
32730  as_fn_error $? "conditional \"XFAKESERVER\" was never defined.
32731Usually this means the macro was only invoked conditionally." "$LINENO" 5
32732fi
32733if test -z "${XWAYLAND_TRUE}" && test -z "${XWAYLAND_FALSE}"; then
32734  as_fn_error $? "conditional \"XWAYLAND\" was never defined.
32735Usually this means the macro was only invoked conditionally." "$LINENO" 5
32736fi
32737
32738: "${CONFIG_STATUS=./config.status}"
32739ac_write_fail=0
32740ac_clean_files_save=$ac_clean_files
32741ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32742{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32743$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32744as_write_fail=0
32745cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32746#! $SHELL
32747# Generated by $as_me.
32748# Run this file to recreate the current configuration.
32749# Compiler output produced by configure, useful for debugging
32750# configure, is in config.log if it exists.
32751
32752debug=false
32753ac_cs_recheck=false
32754ac_cs_silent=false
32755
32756SHELL=\${CONFIG_SHELL-$SHELL}
32757export SHELL
32758_ASEOF
32759cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32760## -------------------- ##
32761## M4sh Initialization. ##
32762## -------------------- ##
32763
32764# Be more Bourne compatible
32765DUALCASE=1; export DUALCASE # for MKS sh
32766if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32767  emulate sh
32768  NULLCMD=:
32769  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32770  # is contrary to our usage.  Disable this feature.
32771  alias -g '${1+"$@"}'='"$@"'
32772  setopt NO_GLOB_SUBST
32773else
32774  case `(set -o) 2>/dev/null` in #(
32775  *posix*) :
32776    set -o posix ;; #(
32777  *) :
32778     ;;
32779esac
32780fi
32781
32782
32783as_nl='
32784'
32785export as_nl
32786# Printing a long string crashes Solaris 7 /usr/bin/printf.
32787as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32788as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32789as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32790# Prefer a ksh shell builtin over an external printf program on Solaris,
32791# but without wasting forks for bash or zsh.
32792if test -z "$BASH_VERSION$ZSH_VERSION" \
32793    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32794  as_echo='print -r --'
32795  as_echo_n='print -rn --'
32796elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32797  as_echo='printf %s\n'
32798  as_echo_n='printf %s'
32799else
32800  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32801    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32802    as_echo_n='/usr/ucb/echo -n'
32803  else
32804    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32805    as_echo_n_body='eval
32806      arg=$1;
32807      case $arg in #(
32808      *"$as_nl"*)
32809	expr "X$arg" : "X\\(.*\\)$as_nl";
32810	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32811      esac;
32812      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32813    '
32814    export as_echo_n_body
32815    as_echo_n='sh -c $as_echo_n_body as_echo'
32816  fi
32817  export as_echo_body
32818  as_echo='sh -c $as_echo_body as_echo'
32819fi
32820
32821# The user is always right.
32822if test "${PATH_SEPARATOR+set}" != set; then
32823  PATH_SEPARATOR=:
32824  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32825    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32826      PATH_SEPARATOR=';'
32827  }
32828fi
32829
32830
32831# IFS
32832# We need space, tab and new line, in precisely that order.  Quoting is
32833# there to prevent editors from complaining about space-tab.
32834# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32835# splitting by setting IFS to empty value.)
32836IFS=" ""	$as_nl"
32837
32838# Find who we are.  Look in the path if we contain no directory separator.
32839as_myself=
32840case $0 in #((
32841  *[\\/]* ) as_myself=$0 ;;
32842  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32843for as_dir in $PATH
32844do
32845  IFS=$as_save_IFS
32846  test -z "$as_dir" && as_dir=.
32847    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32848  done
32849IFS=$as_save_IFS
32850
32851     ;;
32852esac
32853# We did not find ourselves, most probably we were run as `sh COMMAND'
32854# in which case we are not to be found in the path.
32855if test "x$as_myself" = x; then
32856  as_myself=$0
32857fi
32858if test ! -f "$as_myself"; then
32859  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32860  exit 1
32861fi
32862
32863# Unset variables that we do not need and which cause bugs (e.g. in
32864# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32865# suppresses any "Segmentation fault" message there.  '((' could
32866# trigger a bug in pdksh 5.2.14.
32867for as_var in BASH_ENV ENV MAIL MAILPATH
32868do eval test x\${$as_var+set} = xset \
32869  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32870done
32871PS1='$ '
32872PS2='> '
32873PS4='+ '
32874
32875# NLS nuisances.
32876LC_ALL=C
32877export LC_ALL
32878LANGUAGE=C
32879export LANGUAGE
32880
32881# CDPATH.
32882(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32883
32884
32885# as_fn_error STATUS ERROR [LINENO LOG_FD]
32886# ----------------------------------------
32887# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32888# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32889# script with STATUS, using 1 if that was 0.
32890as_fn_error ()
32891{
32892  as_status=$1; test $as_status -eq 0 && as_status=1
32893  if test "$4"; then
32894    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32895    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32896  fi
32897  $as_echo "$as_me: error: $2" >&2
32898  as_fn_exit $as_status
32899} # as_fn_error
32900
32901
32902# as_fn_set_status STATUS
32903# -----------------------
32904# Set $? to STATUS, without forking.
32905as_fn_set_status ()
32906{
32907  return $1
32908} # as_fn_set_status
32909
32910# as_fn_exit STATUS
32911# -----------------
32912# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32913as_fn_exit ()
32914{
32915  set +e
32916  as_fn_set_status $1
32917  exit $1
32918} # as_fn_exit
32919
32920# as_fn_unset VAR
32921# ---------------
32922# Portably unset VAR.
32923as_fn_unset ()
32924{
32925  { eval $1=; unset $1;}
32926}
32927as_unset=as_fn_unset
32928# as_fn_append VAR VALUE
32929# ----------------------
32930# Append the text in VALUE to the end of the definition contained in VAR. Take
32931# advantage of any shell optimizations that allow amortized linear growth over
32932# repeated appends, instead of the typical quadratic growth present in naive
32933# implementations.
32934if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32935  eval 'as_fn_append ()
32936  {
32937    eval $1+=\$2
32938  }'
32939else
32940  as_fn_append ()
32941  {
32942    eval $1=\$$1\$2
32943  }
32944fi # as_fn_append
32945
32946# as_fn_arith ARG...
32947# ------------------
32948# Perform arithmetic evaluation on the ARGs, and store the result in the
32949# global $as_val. Take advantage of shells that can avoid forks. The arguments
32950# must be portable across $(()) and expr.
32951if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32952  eval 'as_fn_arith ()
32953  {
32954    as_val=$(( $* ))
32955  }'
32956else
32957  as_fn_arith ()
32958  {
32959    as_val=`expr "$@" || test $? -eq 1`
32960  }
32961fi # as_fn_arith
32962
32963
32964if expr a : '\(a\)' >/dev/null 2>&1 &&
32965   test "X`expr 00001 : '.*\(...\)'`" = X001; then
32966  as_expr=expr
32967else
32968  as_expr=false
32969fi
32970
32971if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32972  as_basename=basename
32973else
32974  as_basename=false
32975fi
32976
32977if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32978  as_dirname=dirname
32979else
32980  as_dirname=false
32981fi
32982
32983as_me=`$as_basename -- "$0" ||
32984$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32985	 X"$0" : 'X\(//\)$' \| \
32986	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32987$as_echo X/"$0" |
32988    sed '/^.*\/\([^/][^/]*\)\/*$/{
32989	    s//\1/
32990	    q
32991	  }
32992	  /^X\/\(\/\/\)$/{
32993	    s//\1/
32994	    q
32995	  }
32996	  /^X\/\(\/\).*/{
32997	    s//\1/
32998	    q
32999	  }
33000	  s/.*/./; q'`
33001
33002# Avoid depending upon Character Ranges.
33003as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33004as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33005as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33006as_cr_digits='0123456789'
33007as_cr_alnum=$as_cr_Letters$as_cr_digits
33008
33009ECHO_C= ECHO_N= ECHO_T=
33010case `echo -n x` in #(((((
33011-n*)
33012  case `echo 'xy\c'` in
33013  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33014  xy)  ECHO_C='\c';;
33015  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33016       ECHO_T='	';;
33017  esac;;
33018*)
33019  ECHO_N='-n';;
33020esac
33021
33022rm -f conf$$ conf$$.exe conf$$.file
33023if test -d conf$$.dir; then
33024  rm -f conf$$.dir/conf$$.file
33025else
33026  rm -f conf$$.dir
33027  mkdir conf$$.dir 2>/dev/null
33028fi
33029if (echo >conf$$.file) 2>/dev/null; then
33030  if ln -s conf$$.file conf$$ 2>/dev/null; then
33031    as_ln_s='ln -s'
33032    # ... but there are two gotchas:
33033    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33034    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33035    # In both cases, we have to default to `cp -pR'.
33036    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33037      as_ln_s='cp -pR'
33038  elif ln conf$$.file conf$$ 2>/dev/null; then
33039    as_ln_s=ln
33040  else
33041    as_ln_s='cp -pR'
33042  fi
33043else
33044  as_ln_s='cp -pR'
33045fi
33046rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33047rmdir conf$$.dir 2>/dev/null
33048
33049
33050# as_fn_mkdir_p
33051# -------------
33052# Create "$as_dir" as a directory, including parents if necessary.
33053as_fn_mkdir_p ()
33054{
33055
33056  case $as_dir in #(
33057  -*) as_dir=./$as_dir;;
33058  esac
33059  test -d "$as_dir" || eval $as_mkdir_p || {
33060    as_dirs=
33061    while :; do
33062      case $as_dir in #(
33063      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33064      *) as_qdir=$as_dir;;
33065      esac
33066      as_dirs="'$as_qdir' $as_dirs"
33067      as_dir=`$as_dirname -- "$as_dir" ||
33068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33069	 X"$as_dir" : 'X\(//\)[^/]' \| \
33070	 X"$as_dir" : 'X\(//\)$' \| \
33071	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33072$as_echo X"$as_dir" |
33073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33074	    s//\1/
33075	    q
33076	  }
33077	  /^X\(\/\/\)[^/].*/{
33078	    s//\1/
33079	    q
33080	  }
33081	  /^X\(\/\/\)$/{
33082	    s//\1/
33083	    q
33084	  }
33085	  /^X\(\/\).*/{
33086	    s//\1/
33087	    q
33088	  }
33089	  s/.*/./; q'`
33090      test -d "$as_dir" && break
33091    done
33092    test -z "$as_dirs" || eval "mkdir $as_dirs"
33093  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33094
33095
33096} # as_fn_mkdir_p
33097if mkdir -p . 2>/dev/null; then
33098  as_mkdir_p='mkdir -p "$as_dir"'
33099else
33100  test -d ./-p && rmdir ./-p
33101  as_mkdir_p=false
33102fi
33103
33104
33105# as_fn_executable_p FILE
33106# -----------------------
33107# Test if FILE is an executable regular file.
33108as_fn_executable_p ()
33109{
33110  test -f "$1" && test -x "$1"
33111} # as_fn_executable_p
33112as_test_x='test -x'
33113as_executable_p=as_fn_executable_p
33114
33115# Sed expression to map a string onto a valid CPP name.
33116as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33117
33118# Sed expression to map a string onto a valid variable name.
33119as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33120
33121
33122exec 6>&1
33123## ----------------------------------- ##
33124## Main body of $CONFIG_STATUS script. ##
33125## ----------------------------------- ##
33126_ASEOF
33127test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33128
33129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33130# Save the log message, to keep $0 and so on meaningful, and to
33131# report actual input values of CONFIG_FILES etc. instead of their
33132# values after options handling.
33133ac_log="
33134This file was extended by xorg-server $as_me 1.18.4, which was
33135generated by GNU Autoconf 2.69.  Invocation command line was
33136
33137  CONFIG_FILES    = $CONFIG_FILES
33138  CONFIG_HEADERS  = $CONFIG_HEADERS
33139  CONFIG_LINKS    = $CONFIG_LINKS
33140  CONFIG_COMMANDS = $CONFIG_COMMANDS
33141  $ $0 $@
33142
33143on `(hostname || uname -n) 2>/dev/null | sed 1q`
33144"
33145
33146_ACEOF
33147
33148case $ac_config_files in *"
33149"*) set x $ac_config_files; shift; ac_config_files=$*;;
33150esac
33151
33152case $ac_config_headers in *"
33153"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33154esac
33155
33156
33157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33158# Files that config.status was made for.
33159config_files="$ac_config_files"
33160config_headers="$ac_config_headers"
33161config_commands="$ac_config_commands"
33162
33163_ACEOF
33164
33165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33166ac_cs_usage="\
33167\`$as_me' instantiates files and other configuration actions
33168from templates according to the current configuration.  Unless the files
33169and actions are specified as TAGs, all are instantiated by default.
33170
33171Usage: $0 [OPTION]... [TAG]...
33172
33173  -h, --help       print this help, then exit
33174  -V, --version    print version number and configuration settings, then exit
33175      --config     print configuration, then exit
33176  -q, --quiet, --silent
33177                   do not print progress messages
33178  -d, --debug      don't remove temporary files
33179      --recheck    update $as_me by reconfiguring in the same conditions
33180      --file=FILE[:TEMPLATE]
33181                   instantiate the configuration file FILE
33182      --header=FILE[:TEMPLATE]
33183                   instantiate the configuration header FILE
33184
33185Configuration files:
33186$config_files
33187
33188Configuration headers:
33189$config_headers
33190
33191Configuration commands:
33192$config_commands
33193
33194Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
33195
33196_ACEOF
33197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33198ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33199ac_cs_version="\\
33200xorg-server config.status 1.18.4
33201configured by $0, generated by GNU Autoconf 2.69,
33202  with options \\"\$ac_cs_config\\"
33203
33204Copyright (C) 2012 Free Software Foundation, Inc.
33205This config.status script is free software; the Free Software Foundation
33206gives unlimited permission to copy, distribute and modify it."
33207
33208ac_pwd='$ac_pwd'
33209srcdir='$srcdir'
33210INSTALL='$INSTALL'
33211MKDIR_P='$MKDIR_P'
33212AWK='$AWK'
33213test -n "\$AWK" || AWK=awk
33214_ACEOF
33215
33216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33217# The default lists apply if the user does not specify any file.
33218ac_need_defaults=:
33219while test $# != 0
33220do
33221  case $1 in
33222  --*=?*)
33223    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33224    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33225    ac_shift=:
33226    ;;
33227  --*=)
33228    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33229    ac_optarg=
33230    ac_shift=:
33231    ;;
33232  *)
33233    ac_option=$1
33234    ac_optarg=$2
33235    ac_shift=shift
33236    ;;
33237  esac
33238
33239  case $ac_option in
33240  # Handling of the options.
33241  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33242    ac_cs_recheck=: ;;
33243  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33244    $as_echo "$ac_cs_version"; exit ;;
33245  --config | --confi | --conf | --con | --co | --c )
33246    $as_echo "$ac_cs_config"; exit ;;
33247  --debug | --debu | --deb | --de | --d | -d )
33248    debug=: ;;
33249  --file | --fil | --fi | --f )
33250    $ac_shift
33251    case $ac_optarg in
33252    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33253    '') as_fn_error $? "missing file argument" ;;
33254    esac
33255    as_fn_append CONFIG_FILES " '$ac_optarg'"
33256    ac_need_defaults=false;;
33257  --header | --heade | --head | --hea )
33258    $ac_shift
33259    case $ac_optarg in
33260    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33261    esac
33262    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33263    ac_need_defaults=false;;
33264  --he | --h)
33265    # Conflict between --help and --header
33266    as_fn_error $? "ambiguous option: \`$1'
33267Try \`$0 --help' for more information.";;
33268  --help | --hel | -h )
33269    $as_echo "$ac_cs_usage"; exit ;;
33270  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33271  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33272    ac_cs_silent=: ;;
33273
33274  # This is an error.
33275  -*) as_fn_error $? "unrecognized option: \`$1'
33276Try \`$0 --help' for more information." ;;
33277
33278  *) as_fn_append ac_config_targets " $1"
33279     ac_need_defaults=false ;;
33280
33281  esac
33282  shift
33283done
33284
33285ac_configure_extra_args=
33286
33287if $ac_cs_silent; then
33288  exec 6>/dev/null
33289  ac_configure_extra_args="$ac_configure_extra_args --silent"
33290fi
33291
33292_ACEOF
33293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33294if \$ac_cs_recheck; then
33295  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33296  shift
33297  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33298  CONFIG_SHELL='$SHELL'
33299  export CONFIG_SHELL
33300  exec "\$@"
33301fi
33302
33303_ACEOF
33304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33305exec 5>>config.log
33306{
33307  echo
33308  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33309## Running $as_me. ##
33310_ASBOX
33311  $as_echo "$ac_log"
33312} >&5
33313
33314_ACEOF
33315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33316#
33317# INIT-COMMANDS
33318#
33319AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33320
33321
33322# The HP-UX ksh and POSIX shell print the target directory to stdout
33323# if CDPATH is set.
33324(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33325
33326sed_quote_subst='$sed_quote_subst'
33327double_quote_subst='$double_quote_subst'
33328delay_variable_subst='$delay_variable_subst'
33329macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33330macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33331enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33332AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33333DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33334OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33335enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33336pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33337enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33338shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33339SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33340ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33341PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33342host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33343host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33344host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33345build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33346build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33347build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33348SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33349Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33350GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33351EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33352FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33353LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33354NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33355LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33356max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33357ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33358exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33359lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33360lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33361lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33362lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33363lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33364reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33365reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33366deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33367file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33368file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33369want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33370sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33371AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33372AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33373archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33374STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33375RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33376old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33377old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33378old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33379lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33380CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33381CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33382compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33383GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33384lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33385lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33386lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
33387lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33388lt_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"`'
33389lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
33390nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33391lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33392lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
33393objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33394MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33395lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33396lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33397lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33398lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33399lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33400need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33401MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33402DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33403NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33404LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33405OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33406OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33407libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33408shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33409extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33410archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33411enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33412export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33413whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33414compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33415old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33416old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33417archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33418archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33419module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33420module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33421with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33422allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33423no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33424hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33425hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33426hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33427hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33428hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33429hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33430hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33431inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33432link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33433always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33434export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33435exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33436include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33437prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33438postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33439file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33440variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33441need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33442need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33443version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33444runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33445shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33446shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33447libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33448library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33449soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33450install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33451postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33452postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33453finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33454finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33455hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33456sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33457configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
33458configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
33459hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33460enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33461enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33462enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33463old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33464striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33465
33466LTCC='$LTCC'
33467LTCFLAGS='$LTCFLAGS'
33468compiler='$compiler_DEFAULT'
33469
33470# A function that is used when there is no print builtin or printf.
33471func_fallback_echo ()
33472{
33473  eval 'cat <<_LTECHO_EOF
33474\$1
33475_LTECHO_EOF'
33476}
33477
33478# Quote evaled strings.
33479for var in AS \
33480DLLTOOL \
33481OBJDUMP \
33482SHELL \
33483ECHO \
33484PATH_SEPARATOR \
33485SED \
33486GREP \
33487EGREP \
33488FGREP \
33489LD \
33490NM \
33491LN_S \
33492lt_SP2NL \
33493lt_NL2SP \
33494reload_flag \
33495deplibs_check_method \
33496file_magic_cmd \
33497file_magic_glob \
33498want_nocaseglob \
33499sharedlib_from_linklib_cmd \
33500AR \
33501AR_FLAGS \
33502archiver_list_spec \
33503STRIP \
33504RANLIB \
33505CC \
33506CFLAGS \
33507compiler \
33508lt_cv_sys_global_symbol_pipe \
33509lt_cv_sys_global_symbol_to_cdecl \
33510lt_cv_sys_global_symbol_to_import \
33511lt_cv_sys_global_symbol_to_c_name_address \
33512lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33513lt_cv_nm_interface \
33514nm_file_list_spec \
33515lt_cv_truncate_bin \
33516lt_prog_compiler_no_builtin_flag \
33517lt_prog_compiler_pic \
33518lt_prog_compiler_wl \
33519lt_prog_compiler_static \
33520lt_cv_prog_compiler_c_o \
33521need_locks \
33522MANIFEST_TOOL \
33523DSYMUTIL \
33524NMEDIT \
33525LIPO \
33526OTOOL \
33527OTOOL64 \
33528shrext_cmds \
33529export_dynamic_flag_spec \
33530whole_archive_flag_spec \
33531compiler_needs_object \
33532with_gnu_ld \
33533allow_undefined_flag \
33534no_undefined_flag \
33535hardcode_libdir_flag_spec \
33536hardcode_libdir_separator \
33537exclude_expsyms \
33538include_expsyms \
33539file_list_spec \
33540variables_saved_for_relink \
33541libname_spec \
33542library_names_spec \
33543soname_spec \
33544install_override_mode \
33545finish_eval \
33546old_striplib \
33547striplib; do
33548    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33549    *[\\\\\\\`\\"\\\$]*)
33550      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33551      ;;
33552    *)
33553      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33554      ;;
33555    esac
33556done
33557
33558# Double-quote double-evaled strings.
33559for var in reload_cmds \
33560old_postinstall_cmds \
33561old_postuninstall_cmds \
33562old_archive_cmds \
33563extract_expsyms_cmds \
33564old_archive_from_new_cmds \
33565old_archive_from_expsyms_cmds \
33566archive_cmds \
33567archive_expsym_cmds \
33568module_cmds \
33569module_expsym_cmds \
33570export_symbols_cmds \
33571prelink_cmds \
33572postlink_cmds \
33573postinstall_cmds \
33574postuninstall_cmds \
33575finish_cmds \
33576sys_lib_search_path_spec \
33577configure_time_dlsearch_path \
33578configure_time_lt_sys_library_path; do
33579    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33580    *[\\\\\\\`\\"\\\$]*)
33581      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33582      ;;
33583    *)
33584      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33585      ;;
33586    esac
33587done
33588
33589ac_aux_dir='$ac_aux_dir'
33590
33591# See if we are running on zsh, and set the options that allow our
33592# commands through without removal of \ escapes INIT.
33593if test -n "\${ZSH_VERSION+set}"; then
33594   setopt NO_GLOB_SUBST
33595fi
33596
33597
33598    PACKAGE='$PACKAGE'
33599    VERSION='$VERSION'
33600    RM='$RM'
33601    ofile='$ofile'
33602
33603
33604
33605
33606_ACEOF
33607
33608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33609
33610# Handling of arguments.
33611for ac_config_target in $ac_config_targets
33612do
33613  case $ac_config_target in
33614    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33615    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
33616    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
33617    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
33618    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
33619    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
33620    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
33621    "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;;
33622    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
33623    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33624    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
33625    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33626    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
33627    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
33628    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
33629    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
33630    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
33631    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
33632    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33633    "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
33634    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
33635    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
33636    "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;;
33637    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
33638    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
33639    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
33640    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
33641    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
33642    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
33643    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
33644    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
33645    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
33646    "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;;
33647    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
33648    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
33649    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
33650    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
33651    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
33652    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
33653    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
33654    "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;;
33655    "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;;
33656    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
33657    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
33658    "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;;
33659    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
33660    "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
33661    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
33662    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
33663    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
33664    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
33665    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
33666    "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;;
33667    "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;;
33668    "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;;
33669    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
33670    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
33671    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
33672    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
33673    "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;;
33674    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
33675    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
33676    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
33677    "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
33678    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
33679    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
33680    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
33681    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
33682    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
33683    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
33684    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
33685    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
33686    "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;;
33687    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
33688    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
33689    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
33690    "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
33691    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
33692    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
33693    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
33694    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
33695    "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
33696    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
33697    "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
33698    "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;;
33699    "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
33700    "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;;
33701    "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;;
33702    "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
33703    "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
33704    "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
33705    "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
33706    "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;;
33707    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
33708    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
33709    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
33710    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
33711    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
33712    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
33713    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
33714    "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;;
33715    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
33716    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
33717    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
33718    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
33719    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
33720    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
33721    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
33722    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
33723    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
33724    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
33725    "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;;
33726    "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;;
33727    "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;;
33728    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
33729    "hw/xwayland/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwayland/Makefile" ;;
33730    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
33731    "test/xi1/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi1/Makefile" ;;
33732    "test/xi2/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi2/Makefile" ;;
33733    "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
33734    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
33735
33736  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33737  esac
33738done
33739
33740
33741# If the user did not use the arguments to specify the items to instantiate,
33742# then the envvar interface is used.  Set only those that are not.
33743# We use the long form for the default assignment because of an extremely
33744# bizarre bug on SunOS 4.1.3.
33745if $ac_need_defaults; then
33746  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33747  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33748  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33749fi
33750
33751# Have a temporary directory for convenience.  Make it in the build tree
33752# simply because there is no reason against having it here, and in addition,
33753# creating and moving files from /tmp can sometimes cause problems.
33754# Hook for its removal unless debugging.
33755# Note that there is a small window in which the directory will not be cleaned:
33756# after its creation but before its name has been assigned to `$tmp'.
33757$debug ||
33758{
33759  tmp= ac_tmp=
33760  trap 'exit_status=$?
33761  : "${ac_tmp:=$tmp}"
33762  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33763' 0
33764  trap 'as_fn_exit 1' 1 2 13 15
33765}
33766# Create a (secure) tmp directory for tmp files.
33767
33768{
33769  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33770  test -d "$tmp"
33771}  ||
33772{
33773  tmp=./conf$$-$RANDOM
33774  (umask 077 && mkdir "$tmp")
33775} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33776ac_tmp=$tmp
33777
33778# Set up the scripts for CONFIG_FILES section.
33779# No need to generate them if there are no CONFIG_FILES.
33780# This happens for instance with `./config.status config.h'.
33781if test -n "$CONFIG_FILES"; then
33782
33783
33784ac_cr=`echo X | tr X '\015'`
33785# On cygwin, bash can eat \r inside `` if the user requested igncr.
33786# But we know of no other shell where ac_cr would be empty at this
33787# point, so we can use a bashism as a fallback.
33788if test "x$ac_cr" = x; then
33789  eval ac_cr=\$\'\\r\'
33790fi
33791ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33792if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33793  ac_cs_awk_cr='\\r'
33794else
33795  ac_cs_awk_cr=$ac_cr
33796fi
33797
33798echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33799_ACEOF
33800
33801
33802{
33803  echo "cat >conf$$subs.awk <<_ACEOF" &&
33804  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33805  echo "_ACEOF"
33806} >conf$$subs.sh ||
33807  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33808ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33809ac_delim='%!_!# '
33810for ac_last_try in false false false false false :; do
33811  . ./conf$$subs.sh ||
33812    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33813
33814  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33815  if test $ac_delim_n = $ac_delim_num; then
33816    break
33817  elif $ac_last_try; then
33818    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33819  else
33820    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33821  fi
33822done
33823rm -f conf$$subs.sh
33824
33825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33826cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33827_ACEOF
33828sed -n '
33829h
33830s/^/S["/; s/!.*/"]=/
33831p
33832g
33833s/^[^!]*!//
33834:repl
33835t repl
33836s/'"$ac_delim"'$//
33837t delim
33838:nl
33839h
33840s/\(.\{148\}\)..*/\1/
33841t more1
33842s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33843p
33844n
33845b repl
33846:more1
33847s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33848p
33849g
33850s/.\{148\}//
33851t nl
33852:delim
33853h
33854s/\(.\{148\}\)..*/\1/
33855t more2
33856s/["\\]/\\&/g; s/^/"/; s/$/"/
33857p
33858b
33859:more2
33860s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33861p
33862g
33863s/.\{148\}//
33864t delim
33865' <conf$$subs.awk | sed '
33866/^[^""]/{
33867  N
33868  s/\n//
33869}
33870' >>$CONFIG_STATUS || ac_write_fail=1
33871rm -f conf$$subs.awk
33872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33873_ACAWK
33874cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33875  for (key in S) S_is_set[key] = 1
33876  FS = ""
33877
33878}
33879{
33880  line = $ 0
33881  nfields = split(line, field, "@")
33882  substed = 0
33883  len = length(field[1])
33884  for (i = 2; i < nfields; i++) {
33885    key = field[i]
33886    keylen = length(key)
33887    if (S_is_set[key]) {
33888      value = S[key]
33889      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33890      len += length(value) + length(field[++i])
33891      substed = 1
33892    } else
33893      len += 1 + keylen
33894  }
33895
33896  print line
33897}
33898
33899_ACAWK
33900_ACEOF
33901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33902if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33903  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33904else
33905  cat
33906fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33907  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33908_ACEOF
33909
33910# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33911# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33912# trailing colons and then remove the whole line if VPATH becomes empty
33913# (actually we leave an empty line to preserve line numbers).
33914if test "x$srcdir" = x.; then
33915  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
33916h
33917s///
33918s/^/:/
33919s/[	 ]*$/:/
33920s/:\$(srcdir):/:/g
33921s/:\${srcdir}:/:/g
33922s/:@srcdir@:/:/g
33923s/^:*//
33924s/:*$//
33925x
33926s/\(=[	 ]*\).*/\1/
33927G
33928s/\n//
33929s/^[^=]*=[	 ]*$//
33930}'
33931fi
33932
33933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33934fi # test -n "$CONFIG_FILES"
33935
33936# Set up the scripts for CONFIG_HEADERS section.
33937# No need to generate them if there are no CONFIG_HEADERS.
33938# This happens for instance with `./config.status Makefile'.
33939if test -n "$CONFIG_HEADERS"; then
33940cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33941BEGIN {
33942_ACEOF
33943
33944# Transform confdefs.h into an awk script `defines.awk', embedded as
33945# here-document in config.status, that substitutes the proper values into
33946# config.h.in to produce config.h.
33947
33948# Create a delimiter string that does not exist in confdefs.h, to ease
33949# handling of long lines.
33950ac_delim='%!_!# '
33951for ac_last_try in false false :; do
33952  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33953  if test -z "$ac_tt"; then
33954    break
33955  elif $ac_last_try; then
33956    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33957  else
33958    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33959  fi
33960done
33961
33962# For the awk script, D is an array of macro values keyed by name,
33963# likewise P contains macro parameters if any.  Preserve backslash
33964# newline sequences.
33965
33966ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33967sed -n '
33968s/.\{148\}/&'"$ac_delim"'/g
33969t rset
33970:rset
33971s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
33972t def
33973d
33974:def
33975s/\\$//
33976t bsnl
33977s/["\\]/\\&/g
33978s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33979D["\1"]=" \3"/p
33980s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
33981d
33982:bsnl
33983s/["\\]/\\&/g
33984s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
33985D["\1"]=" \3\\\\\\n"\\/p
33986t cont
33987s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33988t cont
33989d
33990:cont
33991n
33992s/.\{148\}/&'"$ac_delim"'/g
33993t clear
33994:clear
33995s/\\$//
33996t bsnlc
33997s/["\\]/\\&/g; s/^/"/; s/$/"/p
33998d
33999:bsnlc
34000s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34001b cont
34002' <confdefs.h | sed '
34003s/'"$ac_delim"'/"\\\
34004"/g' >>$CONFIG_STATUS || ac_write_fail=1
34005
34006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34007  for (key in D) D_is_set[key] = 1
34008  FS = ""
34009}
34010/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34011  line = \$ 0
34012  split(line, arg, " ")
34013  if (arg[1] == "#") {
34014    defundef = arg[2]
34015    mac1 = arg[3]
34016  } else {
34017    defundef = substr(arg[1], 2)
34018    mac1 = arg[2]
34019  }
34020  split(mac1, mac2, "(") #)
34021  macro = mac2[1]
34022  prefix = substr(line, 1, index(line, defundef) - 1)
34023  if (D_is_set[macro]) {
34024    # Preserve the white space surrounding the "#".
34025    print prefix "define", macro P[macro] D[macro]
34026    next
34027  } else {
34028    # Replace #undef with comments.  This is necessary, for example,
34029    # in the case of _POSIX_SOURCE, which is predefined and required
34030    # on some systems where configure will not decide to define it.
34031    if (defundef == "undef") {
34032      print "/*", prefix defundef, macro, "*/"
34033      next
34034    }
34035  }
34036}
34037{ print }
34038_ACAWK
34039_ACEOF
34040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34041  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34042fi # test -n "$CONFIG_HEADERS"
34043
34044
34045eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34046shift
34047for ac_tag
34048do
34049  case $ac_tag in
34050  :[FHLC]) ac_mode=$ac_tag; continue;;
34051  esac
34052  case $ac_mode$ac_tag in
34053  :[FHL]*:*);;
34054  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34055  :[FH]-) ac_tag=-:-;;
34056  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34057  esac
34058  ac_save_IFS=$IFS
34059  IFS=:
34060  set x $ac_tag
34061  IFS=$ac_save_IFS
34062  shift
34063  ac_file=$1
34064  shift
34065
34066  case $ac_mode in
34067  :L) ac_source=$1;;
34068  :[FH])
34069    ac_file_inputs=
34070    for ac_f
34071    do
34072      case $ac_f in
34073      -) ac_f="$ac_tmp/stdin";;
34074      *) # Look for the file first in the build tree, then in the source tree
34075	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
34076	 # because $ac_f cannot contain `:'.
34077	 test -f "$ac_f" ||
34078	   case $ac_f in
34079	   [\\/$]*) false;;
34080	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34081	   esac ||
34082	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34083      esac
34084      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34085      as_fn_append ac_file_inputs " '$ac_f'"
34086    done
34087
34088    # Let's still pretend it is `configure' which instantiates (i.e., don't
34089    # use $as_me), people would be surprised to read:
34090    #    /* config.h.  Generated by config.status.  */
34091    configure_input='Generated from '`
34092	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34093	`' by configure.'
34094    if test x"$ac_file" != x-; then
34095      configure_input="$ac_file.  $configure_input"
34096      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34097$as_echo "$as_me: creating $ac_file" >&6;}
34098    fi
34099    # Neutralize special characters interpreted by sed in replacement strings.
34100    case $configure_input in #(
34101    *\&* | *\|* | *\\* )
34102       ac_sed_conf_input=`$as_echo "$configure_input" |
34103       sed 's/[\\\\&|]/\\\\&/g'`;; #(
34104    *) ac_sed_conf_input=$configure_input;;
34105    esac
34106
34107    case $ac_tag in
34108    *:-:* | *:-) cat >"$ac_tmp/stdin" \
34109      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34110    esac
34111    ;;
34112  esac
34113
34114  ac_dir=`$as_dirname -- "$ac_file" ||
34115$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34116	 X"$ac_file" : 'X\(//\)[^/]' \| \
34117	 X"$ac_file" : 'X\(//\)$' \| \
34118	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34119$as_echo X"$ac_file" |
34120    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34121	    s//\1/
34122	    q
34123	  }
34124	  /^X\(\/\/\)[^/].*/{
34125	    s//\1/
34126	    q
34127	  }
34128	  /^X\(\/\/\)$/{
34129	    s//\1/
34130	    q
34131	  }
34132	  /^X\(\/\).*/{
34133	    s//\1/
34134	    q
34135	  }
34136	  s/.*/./; q'`
34137  as_dir="$ac_dir"; as_fn_mkdir_p
34138  ac_builddir=.
34139
34140case "$ac_dir" in
34141.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34142*)
34143  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34144  # A ".." for each directory in $ac_dir_suffix.
34145  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34146  case $ac_top_builddir_sub in
34147  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34148  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34149  esac ;;
34150esac
34151ac_abs_top_builddir=$ac_pwd
34152ac_abs_builddir=$ac_pwd$ac_dir_suffix
34153# for backward compatibility:
34154ac_top_builddir=$ac_top_build_prefix
34155
34156case $srcdir in
34157  .)  # We are building in place.
34158    ac_srcdir=.
34159    ac_top_srcdir=$ac_top_builddir_sub
34160    ac_abs_top_srcdir=$ac_pwd ;;
34161  [\\/]* | ?:[\\/]* )  # Absolute name.
34162    ac_srcdir=$srcdir$ac_dir_suffix;
34163    ac_top_srcdir=$srcdir
34164    ac_abs_top_srcdir=$srcdir ;;
34165  *) # Relative name.
34166    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34167    ac_top_srcdir=$ac_top_build_prefix$srcdir
34168    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34169esac
34170ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34171
34172
34173  case $ac_mode in
34174  :F)
34175  #
34176  # CONFIG_FILE
34177  #
34178
34179  case $INSTALL in
34180  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34181  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34182  esac
34183  ac_MKDIR_P=$MKDIR_P
34184  case $MKDIR_P in
34185  [\\/$]* | ?:[\\/]* ) ;;
34186  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34187  esac
34188_ACEOF
34189
34190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34191# If the template does not know about datarootdir, expand it.
34192# FIXME: This hack should be removed a few years after 2.60.
34193ac_datarootdir_hack=; ac_datarootdir_seen=
34194ac_sed_dataroot='
34195/datarootdir/ {
34196  p
34197  q
34198}
34199/@datadir@/p
34200/@docdir@/p
34201/@infodir@/p
34202/@localedir@/p
34203/@mandir@/p'
34204case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34205*datarootdir*) ac_datarootdir_seen=yes;;
34206*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34207  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34208$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34209_ACEOF
34210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34211  ac_datarootdir_hack='
34212  s&@datadir@&$datadir&g
34213  s&@docdir@&$docdir&g
34214  s&@infodir@&$infodir&g
34215  s&@localedir@&$localedir&g
34216  s&@mandir@&$mandir&g
34217  s&\\\${datarootdir}&$datarootdir&g' ;;
34218esac
34219_ACEOF
34220
34221# Neutralize VPATH when `$srcdir' = `.'.
34222# Shell code in configure.ac might set extrasub.
34223# FIXME: do we really want to maintain this feature?
34224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34225ac_sed_extra="$ac_vpsub
34226$extrasub
34227_ACEOF
34228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34229:t
34230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34231s|@configure_input@|$ac_sed_conf_input|;t t
34232s&@top_builddir@&$ac_top_builddir_sub&;t t
34233s&@top_build_prefix@&$ac_top_build_prefix&;t t
34234s&@srcdir@&$ac_srcdir&;t t
34235s&@abs_srcdir@&$ac_abs_srcdir&;t t
34236s&@top_srcdir@&$ac_top_srcdir&;t t
34237s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34238s&@builddir@&$ac_builddir&;t t
34239s&@abs_builddir@&$ac_abs_builddir&;t t
34240s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34241s&@INSTALL@&$ac_INSTALL&;t t
34242s&@MKDIR_P@&$ac_MKDIR_P&;t t
34243$ac_datarootdir_hack
34244"
34245eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34246  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34247
34248test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34249  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34250  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
34251      "$ac_tmp/out"`; test -z "$ac_out"; } &&
34252  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34253which seems to be undefined.  Please make sure it is defined" >&5
34254$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34255which seems to be undefined.  Please make sure it is defined" >&2;}
34256
34257  rm -f "$ac_tmp/stdin"
34258  case $ac_file in
34259  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34260  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34261  esac \
34262  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34263 ;;
34264  :H)
34265  #
34266  # CONFIG_HEADER
34267  #
34268  if test x"$ac_file" != x-; then
34269    {
34270      $as_echo "/* $configure_input  */" \
34271      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34272    } >"$ac_tmp/config.h" \
34273      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34274    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34275      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34276$as_echo "$as_me: $ac_file is unchanged" >&6;}
34277    else
34278      rm -f "$ac_file"
34279      mv "$ac_tmp/config.h" "$ac_file" \
34280	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
34281    fi
34282  else
34283    $as_echo "/* $configure_input  */" \
34284      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34285      || as_fn_error $? "could not create -" "$LINENO" 5
34286  fi
34287# Compute "$ac_file"'s index in $config_headers.
34288_am_arg="$ac_file"
34289_am_stamp_count=1
34290for _am_header in $config_headers :; do
34291  case $_am_header in
34292    $_am_arg | $_am_arg:* )
34293      break ;;
34294    * )
34295      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34296  esac
34297done
34298echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34299$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34300	 X"$_am_arg" : 'X\(//\)[^/]' \| \
34301	 X"$_am_arg" : 'X\(//\)$' \| \
34302	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34303$as_echo X"$_am_arg" |
34304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34305	    s//\1/
34306	    q
34307	  }
34308	  /^X\(\/\/\)[^/].*/{
34309	    s//\1/
34310	    q
34311	  }
34312	  /^X\(\/\/\)$/{
34313	    s//\1/
34314	    q
34315	  }
34316	  /^X\(\/\).*/{
34317	    s//\1/
34318	    q
34319	  }
34320	  s/.*/./; q'`/stamp-h$_am_stamp_count
34321 ;;
34322
34323  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34324$as_echo "$as_me: executing $ac_file commands" >&6;}
34325 ;;
34326  esac
34327
34328
34329  case $ac_file$ac_mode in
34330    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34331  # Older Autoconf quotes --file arguments for eval, but not when files
34332  # are listed without --file.  Let's play safe and only enable the eval
34333  # if we detect the quoting.
34334  case $CONFIG_FILES in
34335  *\'*) eval set x "$CONFIG_FILES" ;;
34336  *)   set x $CONFIG_FILES ;;
34337  esac
34338  shift
34339  for mf
34340  do
34341    # Strip MF so we end up with the name of the file.
34342    mf=`echo "$mf" | sed -e 's/:.*$//'`
34343    # Check whether this is an Automake generated Makefile or not.
34344    # We used to match only the files named 'Makefile.in', but
34345    # some people rename them; so instead we look at the file content.
34346    # Grep'ing the first line is not enough: some people post-process
34347    # each Makefile.in and add a new line on top of each file to say so.
34348    # Grep'ing the whole file is not good either: AIX grep has a line
34349    # limit of 2048, but all sed's we know have understand at least 4000.
34350    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34351      dirpart=`$as_dirname -- "$mf" ||
34352$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34353	 X"$mf" : 'X\(//\)[^/]' \| \
34354	 X"$mf" : 'X\(//\)$' \| \
34355	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34356$as_echo X"$mf" |
34357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34358	    s//\1/
34359	    q
34360	  }
34361	  /^X\(\/\/\)[^/].*/{
34362	    s//\1/
34363	    q
34364	  }
34365	  /^X\(\/\/\)$/{
34366	    s//\1/
34367	    q
34368	  }
34369	  /^X\(\/\).*/{
34370	    s//\1/
34371	    q
34372	  }
34373	  s/.*/./; q'`
34374    else
34375      continue
34376    fi
34377    # Extract the definition of DEPDIR, am__include, and am__quote
34378    # from the Makefile without running 'make'.
34379    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34380    test -z "$DEPDIR" && continue
34381    am__include=`sed -n 's/^am__include = //p' < "$mf"`
34382    test -z "$am__include" && continue
34383    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34384    # Find all dependency output files, they are included files with
34385    # $(DEPDIR) in their names.  We invoke sed twice because it is the
34386    # simplest approach to changing $(DEPDIR) to its actual value in the
34387    # expansion.
34388    for file in `sed -n "
34389      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34390	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
34391      # Make sure the directory exists.
34392      test -f "$dirpart/$file" && continue
34393      fdir=`$as_dirname -- "$file" ||
34394$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34395	 X"$file" : 'X\(//\)[^/]' \| \
34396	 X"$file" : 'X\(//\)$' \| \
34397	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34398$as_echo X"$file" |
34399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34400	    s//\1/
34401	    q
34402	  }
34403	  /^X\(\/\/\)[^/].*/{
34404	    s//\1/
34405	    q
34406	  }
34407	  /^X\(\/\/\)$/{
34408	    s//\1/
34409	    q
34410	  }
34411	  /^X\(\/\).*/{
34412	    s//\1/
34413	    q
34414	  }
34415	  s/.*/./; q'`
34416      as_dir=$dirpart/$fdir; as_fn_mkdir_p
34417      # echo "creating $dirpart/$file"
34418      echo '# dummy' > "$dirpart/$file"
34419    done
34420  done
34421}
34422 ;;
34423    "libtool":C)
34424
34425    # See if we are running on zsh, and set the options that allow our
34426    # commands through without removal of \ escapes.
34427    if test -n "${ZSH_VERSION+set}"; then
34428      setopt NO_GLOB_SUBST
34429    fi
34430
34431    cfgfile=${ofile}T
34432    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34433    $RM "$cfgfile"
34434
34435    cat <<_LT_EOF >> "$cfgfile"
34436#! $SHELL
34437# Generated automatically by $as_me ($PACKAGE) $VERSION
34438# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34439# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34440
34441# Provide generalized library-building support services.
34442# Written by Gordon Matzigkeit, 1996
34443
34444# Copyright (C) 2014 Free Software Foundation, Inc.
34445# This is free software; see the source for copying conditions.  There is NO
34446# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34447
34448# GNU Libtool is free software; you can redistribute it and/or modify
34449# it under the terms of the GNU General Public License as published by
34450# the Free Software Foundation; either version 2 of of the License, or
34451# (at your option) any later version.
34452#
34453# As a special exception to the GNU General Public License, if you
34454# distribute this file as part of a program or library that is built
34455# using GNU Libtool, you may include this file under the  same
34456# distribution terms that you use for the rest of that program.
34457#
34458# GNU Libtool is distributed in the hope that it will be useful, but
34459# WITHOUT ANY WARRANTY; without even the implied warranty of
34460# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34461# GNU General Public License for more details.
34462#
34463# You should have received a copy of the GNU General Public License
34464# along with this program.  If not, see <http://www.gnu.org/licenses/>.
34465
34466
34467# The names of the tagged configurations supported by this script.
34468available_tags=''
34469
34470# Configured defaults for sys_lib_dlsearch_path munging.
34471: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
34472
34473# ### BEGIN LIBTOOL CONFIG
34474
34475# Which release of libtool.m4 was used?
34476macro_version=$macro_version
34477macro_revision=$macro_revision
34478
34479# Whether or not to build static libraries.
34480build_old_libs=$enable_static
34481
34482# Assembler program.
34483AS=$lt_AS
34484
34485# DLL creation program.
34486DLLTOOL=$lt_DLLTOOL
34487
34488# Object dumper program.
34489OBJDUMP=$lt_OBJDUMP
34490
34491# Whether or not to build shared libraries.
34492build_libtool_libs=$enable_shared
34493
34494# What type of objects to build.
34495pic_mode=$pic_mode
34496
34497# Whether or not to optimize for fast installation.
34498fast_install=$enable_fast_install
34499
34500# Shared archive member basename,for filename based shared library versioning on AIX.
34501shared_archive_member_spec=$shared_archive_member_spec
34502
34503# Shell to use when invoking shell scripts.
34504SHELL=$lt_SHELL
34505
34506# An echo program that protects backslashes.
34507ECHO=$lt_ECHO
34508
34509# The PATH separator for the build system.
34510PATH_SEPARATOR=$lt_PATH_SEPARATOR
34511
34512# The host system.
34513host_alias=$host_alias
34514host=$host
34515host_os=$host_os
34516
34517# The build system.
34518build_alias=$build_alias
34519build=$build
34520build_os=$build_os
34521
34522# A sed program that does not truncate output.
34523SED=$lt_SED
34524
34525# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34526Xsed="\$SED -e 1s/^X//"
34527
34528# A grep program that handles long lines.
34529GREP=$lt_GREP
34530
34531# An ERE matcher.
34532EGREP=$lt_EGREP
34533
34534# A literal string matcher.
34535FGREP=$lt_FGREP
34536
34537# A BSD- or MS-compatible name lister.
34538NM=$lt_NM
34539
34540# Whether we need soft or hard links.
34541LN_S=$lt_LN_S
34542
34543# What is the maximum length of a command?
34544max_cmd_len=$max_cmd_len
34545
34546# Object file suffix (normally "o").
34547objext=$ac_objext
34548
34549# Executable file suffix (normally "").
34550exeext=$exeext
34551
34552# whether the shell understands "unset".
34553lt_unset=$lt_unset
34554
34555# turn spaces into newlines.
34556SP2NL=$lt_lt_SP2NL
34557
34558# turn newlines into spaces.
34559NL2SP=$lt_lt_NL2SP
34560
34561# convert \$build file names to \$host format.
34562to_host_file_cmd=$lt_cv_to_host_file_cmd
34563
34564# convert \$build files to toolchain format.
34565to_tool_file_cmd=$lt_cv_to_tool_file_cmd
34566
34567# Method to check whether dependent libraries are shared objects.
34568deplibs_check_method=$lt_deplibs_check_method
34569
34570# Command to use when deplibs_check_method = "file_magic".
34571file_magic_cmd=$lt_file_magic_cmd
34572
34573# How to find potential files when deplibs_check_method = "file_magic".
34574file_magic_glob=$lt_file_magic_glob
34575
34576# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
34577want_nocaseglob=$lt_want_nocaseglob
34578
34579# Command to associate shared and link libraries.
34580sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
34581
34582# The archiver.
34583AR=$lt_AR
34584
34585# Flags to create an archive.
34586AR_FLAGS=$lt_AR_FLAGS
34587
34588# How to feed a file listing to the archiver.
34589archiver_list_spec=$lt_archiver_list_spec
34590
34591# A symbol stripping program.
34592STRIP=$lt_STRIP
34593
34594# Commands used to install an old-style archive.
34595RANLIB=$lt_RANLIB
34596old_postinstall_cmds=$lt_old_postinstall_cmds
34597old_postuninstall_cmds=$lt_old_postuninstall_cmds
34598
34599# Whether to use a lock for old archive extraction.
34600lock_old_archive_extraction=$lock_old_archive_extraction
34601
34602# A C compiler.
34603LTCC=$lt_CC
34604
34605# LTCC compiler flags.
34606LTCFLAGS=$lt_CFLAGS
34607
34608# Take the output of nm and produce a listing of raw symbols and C names.
34609global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34610
34611# Transform the output of nm in a proper C declaration.
34612global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34613
34614# Transform the output of nm into a list of symbols to manually relocate.
34615global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
34616
34617# Transform the output of nm in a C name address pair.
34618global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34619
34620# Transform the output of nm in a C name address pair when lib prefix is needed.
34621global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34622
34623# The name lister interface.
34624nm_interface=$lt_lt_cv_nm_interface
34625
34626# Specify filename containing input files for \$NM.
34627nm_file_list_spec=$lt_nm_file_list_spec
34628
34629# The root where to search for dependent libraries,and where our libraries should be installed.
34630lt_sysroot=$lt_sysroot
34631
34632# Command to truncate a binary pipe.
34633lt_truncate_bin=$lt_lt_cv_truncate_bin
34634
34635# The name of the directory that contains temporary libtool files.
34636objdir=$objdir
34637
34638# Used to examine libraries when file_magic_cmd begins with "file".
34639MAGIC_CMD=$MAGIC_CMD
34640
34641# Must we lock files when doing compilation?
34642need_locks=$lt_need_locks
34643
34644# Manifest tool.
34645MANIFEST_TOOL=$lt_MANIFEST_TOOL
34646
34647# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34648DSYMUTIL=$lt_DSYMUTIL
34649
34650# Tool to change global to local symbols on Mac OS X.
34651NMEDIT=$lt_NMEDIT
34652
34653# Tool to manipulate fat objects and archives on Mac OS X.
34654LIPO=$lt_LIPO
34655
34656# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34657OTOOL=$lt_OTOOL
34658
34659# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34660OTOOL64=$lt_OTOOL64
34661
34662# Old archive suffix (normally "a").
34663libext=$libext
34664
34665# Shared library suffix (normally ".so").
34666shrext_cmds=$lt_shrext_cmds
34667
34668# The commands to extract the exported symbol list from a shared archive.
34669extract_expsyms_cmds=$lt_extract_expsyms_cmds
34670
34671# Variables whose values should be saved in libtool wrapper scripts and
34672# restored at link time.
34673variables_saved_for_relink=$lt_variables_saved_for_relink
34674
34675# Do we need the "lib" prefix for modules?
34676need_lib_prefix=$need_lib_prefix
34677
34678# Do we need a version for libraries?
34679need_version=$need_version
34680
34681# Library versioning type.
34682version_type=$version_type
34683
34684# Shared library runtime path variable.
34685runpath_var=$runpath_var
34686
34687# Shared library path variable.
34688shlibpath_var=$shlibpath_var
34689
34690# Is shlibpath searched before the hard-coded library search path?
34691shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34692
34693# Format of library name prefix.
34694libname_spec=$lt_libname_spec
34695
34696# List of archive names.  First name is the real one, the rest are links.
34697# The last name is the one that the linker finds with -lNAME
34698library_names_spec=$lt_library_names_spec
34699
34700# The coded name of the library, if different from the real name.
34701soname_spec=$lt_soname_spec
34702
34703# Permission mode override for installation of shared libraries.
34704install_override_mode=$lt_install_override_mode
34705
34706# Command to use after installation of a shared archive.
34707postinstall_cmds=$lt_postinstall_cmds
34708
34709# Command to use after uninstallation of a shared archive.
34710postuninstall_cmds=$lt_postuninstall_cmds
34711
34712# Commands used to finish a libtool library installation in a directory.
34713finish_cmds=$lt_finish_cmds
34714
34715# As "finish_cmds", except a single script fragment to be evaled but
34716# not shown.
34717finish_eval=$lt_finish_eval
34718
34719# Whether we should hardcode library paths into libraries.
34720hardcode_into_libs=$hardcode_into_libs
34721
34722# Compile-time system search path for libraries.
34723sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34724
34725# Detected run-time system search path for libraries.
34726sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34727
34728# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34729configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34730
34731# Whether dlopen is supported.
34732dlopen_support=$enable_dlopen
34733
34734# Whether dlopen of programs is supported.
34735dlopen_self=$enable_dlopen_self
34736
34737# Whether dlopen of statically linked programs is supported.
34738dlopen_self_static=$enable_dlopen_self_static
34739
34740# Commands to strip libraries.
34741old_striplib=$lt_old_striplib
34742striplib=$lt_striplib
34743
34744
34745# The linker used to build libraries.
34746LD=$lt_LD
34747
34748# How to create reloadable object files.
34749reload_flag=$lt_reload_flag
34750reload_cmds=$lt_reload_cmds
34751
34752# Commands used to build an old-style archive.
34753old_archive_cmds=$lt_old_archive_cmds
34754
34755# A language specific compiler.
34756CC=$lt_compiler
34757
34758# Is the compiler the GNU compiler?
34759with_gcc=$GCC
34760
34761# Compiler flag to turn off builtin functions.
34762no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34763
34764# Additional compiler flags for building library objects.
34765pic_flag=$lt_lt_prog_compiler_pic
34766
34767# How to pass a linker flag through the compiler.
34768wl=$lt_lt_prog_compiler_wl
34769
34770# Compiler flag to prevent dynamic linking.
34771link_static_flag=$lt_lt_prog_compiler_static
34772
34773# Does compiler simultaneously support -c and -o options?
34774compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34775
34776# Whether or not to add -lc for building shared libraries.
34777build_libtool_need_lc=$archive_cmds_need_lc
34778
34779# Whether or not to disallow shared libs when runtime libs are static.
34780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34781
34782# Compiler flag to allow reflexive dlopens.
34783export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34784
34785# Compiler flag to generate shared objects directly from archives.
34786whole_archive_flag_spec=$lt_whole_archive_flag_spec
34787
34788# Whether the compiler copes with passing no objects directly.
34789compiler_needs_object=$lt_compiler_needs_object
34790
34791# Create an old-style archive from a shared archive.
34792old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34793
34794# Create a temporary old-style archive to link instead of a shared archive.
34795old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34796
34797# Commands used to build a shared archive.
34798archive_cmds=$lt_archive_cmds
34799archive_expsym_cmds=$lt_archive_expsym_cmds
34800
34801# Commands used to build a loadable module if different from building
34802# a shared archive.
34803module_cmds=$lt_module_cmds
34804module_expsym_cmds=$lt_module_expsym_cmds
34805
34806# Whether we are building with GNU ld or not.
34807with_gnu_ld=$lt_with_gnu_ld
34808
34809# Flag that allows shared libraries with undefined symbols to be built.
34810allow_undefined_flag=$lt_allow_undefined_flag
34811
34812# Flag that enforces no undefined symbols.
34813no_undefined_flag=$lt_no_undefined_flag
34814
34815# Flag to hardcode \$libdir into a binary during linking.
34816# This must work even if \$libdir does not exist
34817hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34818
34819# Whether we need a single "-rpath" flag with a separated argument.
34820hardcode_libdir_separator=$lt_hardcode_libdir_separator
34821
34822# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34823# DIR into the resulting binary.
34824hardcode_direct=$hardcode_direct
34825
34826# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34827# DIR into the resulting binary and the resulting library dependency is
34828# "absolute",i.e impossible to change by setting \$shlibpath_var if the
34829# library is relocated.
34830hardcode_direct_absolute=$hardcode_direct_absolute
34831
34832# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34833# into the resulting binary.
34834hardcode_minus_L=$hardcode_minus_L
34835
34836# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34837# into the resulting binary.
34838hardcode_shlibpath_var=$hardcode_shlibpath_var
34839
34840# Set to "yes" if building a shared library automatically hardcodes DIR
34841# into the library and all subsequent libraries and executables linked
34842# against it.
34843hardcode_automatic=$hardcode_automatic
34844
34845# Set to yes if linker adds runtime paths of dependent libraries
34846# to runtime path list.
34847inherit_rpath=$inherit_rpath
34848
34849# Whether libtool must link a program against all its dependency libraries.
34850link_all_deplibs=$link_all_deplibs
34851
34852# Set to "yes" if exported symbols are required.
34853always_export_symbols=$always_export_symbols
34854
34855# The commands to list exported symbols.
34856export_symbols_cmds=$lt_export_symbols_cmds
34857
34858# Symbols that should not be listed in the preloaded symbols.
34859exclude_expsyms=$lt_exclude_expsyms
34860
34861# Symbols that must always be exported.
34862include_expsyms=$lt_include_expsyms
34863
34864# Commands necessary for linking programs (against libraries) with templates.
34865prelink_cmds=$lt_prelink_cmds
34866
34867# Commands necessary for finishing linking programs.
34868postlink_cmds=$lt_postlink_cmds
34869
34870# Specify filename containing input files.
34871file_list_spec=$lt_file_list_spec
34872
34873# How to hardcode a shared library path into an executable.
34874hardcode_action=$hardcode_action
34875
34876# ### END LIBTOOL CONFIG
34877
34878_LT_EOF
34879
34880    cat <<'_LT_EOF' >> "$cfgfile"
34881
34882# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34883
34884# func_munge_path_list VARIABLE PATH
34885# -----------------------------------
34886# VARIABLE is name of variable containing _space_ separated list of
34887# directories to be munged by the contents of PATH, which is string
34888# having a format:
34889# "DIR[:DIR]:"
34890#       string "DIR[ DIR]" will be prepended to VARIABLE
34891# ":DIR[:DIR]"
34892#       string "DIR[ DIR]" will be appended to VARIABLE
34893# "DIRP[:DIRP]::[DIRA:]DIRA"
34894#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34895#       "DIRA[ DIRA]" will be appended to VARIABLE
34896# "DIR[:DIR]"
34897#       VARIABLE will be replaced by "DIR[ DIR]"
34898func_munge_path_list ()
34899{
34900    case x$2 in
34901    x)
34902        ;;
34903    *:)
34904        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34905        ;;
34906    x:*)
34907        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34908        ;;
34909    *::*)
34910        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
34911        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
34912        ;;
34913    *)
34914        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
34915        ;;
34916    esac
34917}
34918
34919
34920# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
34921func_cc_basename ()
34922{
34923    for cc_temp in $*""; do
34924      case $cc_temp in
34925        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34926        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34927        \-*) ;;
34928        *) break;;
34929      esac
34930    done
34931    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
34932}
34933
34934
34935# ### END FUNCTIONS SHARED WITH CONFIGURE
34936
34937_LT_EOF
34938
34939  case $host_os in
34940  aix3*)
34941    cat <<\_LT_EOF >> "$cfgfile"
34942# AIX sometimes has problems with the GCC collect2 program.  For some
34943# reason, if we set the COLLECT_NAMES environment variable, the problems
34944# vanish in a puff of smoke.
34945if test set != "${COLLECT_NAMES+set}"; then
34946  COLLECT_NAMES=
34947  export COLLECT_NAMES
34948fi
34949_LT_EOF
34950    ;;
34951  esac
34952
34953
34954ltmain=$ac_aux_dir/ltmain.sh
34955
34956
34957  # We use sed instead of cat because bash on DJGPP gets confused if
34958  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
34959  # text mode, it properly converts lines to CR/LF.  This bash problem
34960  # is reportedly fixed, but why not run on old versions too?
34961  sed '$q' "$ltmain" >> "$cfgfile" \
34962     || (rm -f "$cfgfile"; exit 1)
34963
34964   mv -f "$cfgfile" "$ofile" ||
34965    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34966  chmod +x "$ofile"
34967
34968 ;;
34969    "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
34970
34971  esac
34972done # for ac_tag
34973
34974
34975as_fn_exit 0
34976_ACEOF
34977ac_clean_files=$ac_clean_files_save
34978
34979test $ac_write_fail = 0 ||
34980  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34981
34982
34983# configure is writing to config.log, and then calls config.status.
34984# config.status does its own redirection, appending to config.log.
34985# Unfortunately, on DOS this fails, as config.log is still kept open
34986# by configure, so config.status won't be able to write to it; its
34987# output is simply discarded.  So we exec the FD to /dev/null,
34988# effectively closing config.log, so it can be properly (re)opened and
34989# appended to by config.status.  When coming back to configure, we
34990# need to make the FD available again.
34991if test "$no_create" != yes; then
34992  ac_cs_success=:
34993  ac_config_status_args=
34994  test "$silent" = yes &&
34995    ac_config_status_args="$ac_config_status_args --quiet"
34996  exec 5>/dev/null
34997  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34998  exec 5>>config.log
34999  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35000  # would make configure fail if this is the last instruction.
35001  $ac_cs_success || as_fn_exit 1
35002fi
35003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35005$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35006fi
35007
35008