configure revision 6747b715
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xorg-server 1.9.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548as_awk_strverscmp='
549  # Use only awk features that work with 7th edition Unix awk (1978).
550  # My, what an old awk you have, Mr. Solaris!
551  END {
552    while (length(v1) && length(v2)) {
553      # Set d1 to be the next thing to compare from v1, and likewise for d2.
554      # Normally this is a single character, but if v1 and v2 contain digits,
555      # compare them as integers and fractions as strverscmp does.
556      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
557	# Split v1 and v2 into their leading digit string components d1 and d2,
558	# and advance v1 and v2 past the leading digit strings.
559	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
560	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
561	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
562	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
563	if (d1 ~ /^0/) {
564	  if (d2 ~ /^0/) {
565	    # Compare two fractions.
566	    while (d1 ~ /^0/ && d2 ~ /^0/) {
567	      d1 = substr(d1, 2); len1--
568	      d2 = substr(d2, 2); len2--
569	    }
570	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
571	      # The two components differ in length, and the common prefix
572	      # contains only leading zeros.  Consider the longer to be less.
573	      d1 = -len1
574	      d2 = -len2
575	    } else {
576	      # Otherwise, compare as strings.
577	      d1 = "x" d1
578	      d2 = "x" d2
579	    }
580	  } else {
581	    # A fraction is less than an integer.
582	    exit 1
583	  }
584	} else {
585	  if (d2 ~ /^0/) {
586	    # An integer is greater than a fraction.
587	    exit 2
588	  } else {
589	    # Compare two integers.
590	    d1 += 0
591	    d2 += 0
592	  }
593	}
594      } else {
595	# The normal case, without worrying about digits.
596	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
597	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
598      }
599      if (d1 < d2) exit 1
600      if (d1 > d2) exit 2
601    }
602    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
603    # which mishandles some comparisons of empty strings to integers.
604    if (length(v2)) exit 1
605    if (length(v1)) exit 2
606  }
607'
608SHELL=${CONFIG_SHELL-/bin/sh}
609
610
611test -n "$DJDIR" || exec 7<&0 </dev/null
612exec 6>&1
613
614# Name of the host.
615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616# so uname gets run too.
617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619#
620# Initializations.
621#
622ac_default_prefix=/usr/local
623ac_clean_files=
624ac_config_libobj_dir=.
625LIBOBJS=
626cross_compiling=no
627subdirs=
628MFLAGS=
629MAKEFLAGS=
630
631# Identity of this package.
632PACKAGE_NAME='xorg-server'
633PACKAGE_TARNAME='xorg-server'
634PACKAGE_VERSION='1.9.2'
635PACKAGE_STRING='xorg-server 1.9.2'
636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637PACKAGE_URL=''
638
639ac_unique_file="Makefile.am"
640# Factoring default headers for most tests.
641ac_includes_default="\
642#include <stdio.h>
643#ifdef HAVE_SYS_TYPES_H
644# include <sys/types.h>
645#endif
646#ifdef HAVE_SYS_STAT_H
647# include <sys/stat.h>
648#endif
649#ifdef STDC_HEADERS
650# include <stdlib.h>
651# include <stddef.h>
652#else
653# ifdef HAVE_STDLIB_H
654#  include <stdlib.h>
655# endif
656#endif
657#ifdef HAVE_STRING_H
658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659#  include <memory.h>
660# endif
661# include <string.h>
662#endif
663#ifdef HAVE_STRINGS_H
664# include <strings.h>
665#endif
666#ifdef HAVE_INTTYPES_H
667# include <inttypes.h>
668#endif
669#ifdef HAVE_STDINT_H
670# include <stdint.h>
671#endif
672#ifdef HAVE_UNISTD_H
673# include <unistd.h>
674#endif"
675
676ac_subst_vars='am__EXEEXT_FALSE
677am__EXEEXT_TRUE
678LTLIBOBJS
679LIBOBJS
680DIX_CFLAGS
681BUILD_TIME
682BUILD_DATE
683RELEASE_DATE
684PROJECTROOT
685XFAKESERVER_FALSE
686XFAKESERVER_TRUE
687BUILD_KDRIVEFBDEVLIB_FALSE
688BUILD_KDRIVEFBDEVLIB_TRUE
689XEPHYR_FALSE
690XEPHYR_TRUE
691KDRIVEFBDEV_FALSE
692KDRIVEFBDEV_TRUE
693TSLIB_FALSE
694TSLIB_TRUE
695KDRIVE_MOUSE_FALSE
696KDRIVE_MOUSE_TRUE
697KDRIVE_KBD_FALSE
698KDRIVE_KBD_TRUE
699KDRIVE_EVDEV_FALSE
700KDRIVE_EVDEV_TRUE
701KDRIVELINUX_FALSE
702KDRIVELINUX_TRUE
703KDRIVE_LIBS
704KDRIVE_LOCAL_LIBS
705KDRIVE_PURE_LIBS
706KDRIVE_CFLAGS
707KDRIVE_PURE_INCS
708KDRIVE_INCS
709XEPHYR_INCS
710XEPHYR_LIBS
711XEPHYR_CFLAGS
712TSLIB_LIBS
713TSLIB_CFLAGS
714KDRIVE_FALSE
715KDRIVE_TRUE
716DMX_BUILD_USB_FALSE
717DMX_BUILD_USB_TRUE
718DMX_BUILD_LNX_FALSE
719DMX_BUILD_LNX_TRUE
720X11EXAMPLES_DEP_LIBS
721X11EXAMPLES_DEP_CFLAGS
722XRESEXAMPLES_DEP_LIBS
723XRESEXAMPLES_DEP_CFLAGS
724XTSTEXAMPLES_DEP_LIBS
725XTSTEXAMPLES_DEP_CFLAGS
726DMXXIEXAMPLES_DEP_LIBS
727DMXXIEXAMPLES_DEP_CFLAGS
728DMXXMUEXAMPLES_DEP_LIBS
729DMXXMUEXAMPLES_DEP_CFLAGS
730DMXEXAMPLES_DEP_LIBS
731DMXEXAMPLES_DEP_CFLAGS
732XDMX_SYS_LIBS
733XDMX_LIBS
734XDMX_CFLAGS
735DMX_FALSE
736DMX_TRUE
737XDMXCONFIG_DEP_LIBS
738XDMXCONFIG_DEP_CFLAGS
739DMXMODULES_LIBS
740DMXMODULES_CFLAGS
741STANDALONE_XPBPROXY_FALSE
742STANDALONE_XPBPROXY_TRUE
743XQUARTZ_SPARKLE_FALSE
744XQUARTZ_SPARKLE_TRUE
745XQUARTZ_FALSE
746XQUARTZ_TRUE
747am__fastdepOBJC_FALSE
748am__fastdepOBJC_TRUE
749OBJCDEPMODE
750OBJCFLAGS
751OBJCLINK
752OBJCCLD
753OBJC
754XPBPROXY_LIBS
755XPBPROXY_CFLAGS
756DARWIN_LIBS
757XWIN_XV_FALSE
758XWIN_XV_TRUE
759XWIN_RANDR_FALSE
760XWIN_RANDR_TRUE
761XWIN_PRIMARYFB_FALSE
762XWIN_PRIMARYFB_TRUE
763XWIN_NATIVEGDI_FALSE
764XWIN_NATIVEGDI_TRUE
765XWIN_GLX_WINDOWS_FALSE
766XWIN_GLX_WINDOWS_TRUE
767XWIN_CLIPBOARD_FALSE
768XWIN_CLIPBOARD_TRUE
769XWIN_MULTIWINDOWEXTWM_FALSE
770XWIN_MULTIWINDOWEXTWM_TRUE
771XWIN_MULTIWINDOW_FALSE
772XWIN_MULTIWINDOW_TRUE
773XWIN_FALSE
774XWIN_TRUE
775XWIN_SYS_LIBS
776XWIN_SERVER_NAME
777XWIN_LIBS
778WINDOWSWM_LIBS
779WINDOWSWM_CFLAGS
780XWINMODULES_LIBS
781XWINMODULES_CFLAGS
782WINDRES
783DEFAULT_LOGDIR
784SYSCONFDIR
785XF86VIDMODE_FALSE
786XF86VIDMODE_TRUE
787DGA_FALSE
788DGA_TRUE
789SOLARIS_VT_FALSE
790SOLARIS_VT_TRUE
791SOLARIS_ASM_INLINE_FALSE
792SOLARIS_ASM_INLINE_TRUE
793LNXACPI_FALSE
794LNXACPI_TRUE
795LINUX_ALPHA_FALSE
796LINUX_ALPHA_TRUE
797LINUX_IA64_FALSE
798LINUX_IA64_TRUE
799XORG_BUS_SPARC_FALSE
800XORG_BUS_SPARC_TRUE
801XORG_BUS_BSDPCI_FALSE
802XORG_BUS_BSDPCI_TRUE
803XORG_BUS_LINUXPCI_FALSE
804XORG_BUS_LINUXPCI_TRUE
805XORG_FALSE
806XORG_TRUE
807abi_extension
808abi_xinput
809abi_videodrv
810abi_ansic
811logdir
812sysconfigdir
813extdir
814sdkdir
815driverdir
816moduledir
817DEFAULT_LOGPREFIX
818DEFAULT_LIBRARY_PATH
819DEFAULT_MODULE_PATH
820__XCONFIGDIR__
821XF86CONFIGFILE
822__XCONFIGFILE__
823XF86CONFIGDIR
824XORG_CFLAGS
825PERL
826XORG_OS_SUBDIR
827XORG_OS
828XORG_INCS
829XORG_SYS_LIBS
830XORG_LIBS
831XORG_MODULES_LIBS
832XORG_MODULES_CFLAGS
833XF86VIDMODE_LIBS
834XF86VIDMODE_CFLAGS
835DGA_LIBS
836DGA_CFLAGS
837SOLARIS_ASM_CFLAGS
838SOLARIS_INOUT_ARCH
839PCIACCESS_LIBS
840PCIACCESS_CFLAGS
841symbol_visibility
842XNEST_SYS_LIBS
843XNEST_LIBS
844XNEST_FALSE
845XNEST_TRUE
846XNESTMODULES_LIBS
847XNESTMODULES_CFLAGS
848XVFB_SYS_LIBS
849XVFB_LIBS
850XVFB_FALSE
851XVFB_TRUE
852LD_EXPORT_SYMBOLS_FLAG
853UTILS_SYS_LIBS
854XSERVER_SYS_LIBS
855XSERVER_LIBS
856XSERVERLIBS_LIBS
857XSERVERLIBS_CFLAGS
858XSERVERCFLAGS_LIBS
859XSERVERCFLAGS_CFLAGS
860SHA1_CFLAGS
861SHA1_LIBS
862OPENSSL_LIBS
863OPENSSL_CFLAGS
864LIBSHA1_LIBS
865LIBSHA1_CFLAGS
866MAIN_LIB
867OS_LIB
868DIX_LIB
869UNITTESTS_FALSE
870UNITTESTS_TRUE
871GLIB_LIBS
872GLIB_CFLAGS
873DEBUG_FALSE
874DEBUG_TRUE
875VENDOR_NAME_SHORT
876DRI_DRIVER_PATH
877BASE_FONT_PATH
878SERVER_MISC_CONFIG_PATH
879PCI_TXT_IDS_PATH
880COMPILEDDEFAULTFONTPATH
881XDMAUTH_FALSE
882XDMAUTH_TRUE
883XDMCP_FALSE
884XDMCP_TRUE
885XDMCP_LIBS
886XDMCP_CFLAGS
887XKB_COMPILED_DIR
888XKM_OUTPUT_DIR
889XKB_BIN_DIRECTORY
890XKB_BASE_DIRECTORY
891INT10MODULE_FALSE
892INT10MODULE_TRUE
893VBE_FALSE
894VBE_TRUE
895VGAHW_FALSE
896VGAHW_TRUE
897XAA_FALSE
898XAA_TRUE
899XF86UTILS_FALSE
900XF86UTILS_TRUE
901XCALIBRATE_FALSE
902XCALIBRATE_TRUE
903DPMSExtension_FALSE
904DPMSExtension_TRUE
905XF86BIGFONT_FALSE
906XF86BIGFONT_TRUE
907DBE_FALSE
908DBE_TRUE
909XCSECURITY_FALSE
910XCSECURITY_TRUE
911SELINUX_LIBS
912SELINUX_CFLAGS
913XSELINUX_FALSE
914XSELINUX_TRUE
915XACE_FALSE
916XACE_TRUE
917XINERAMA_FALSE
918XINERAMA_TRUE
919DRI2_AIGLX_FALSE
920DRI2_AIGLX_TRUE
921LIBDRM_LIBS
922LIBDRM_CFLAGS
923DRI2_FALSE
924DRI2_TRUE
925DRI2PROTO_LIBS
926DRI2PROTO_CFLAGS
927DRI_LIBS
928DRI_CFLAGS
929DRIPROTO_LIBS
930DRIPROTO_CFLAGS
931DRI_FALSE
932DRI_TRUE
933GLX_DEFINES
934AIGLX_FALSE
935AIGLX_TRUE
936GLX_FALSE
937GLX_TRUE
938GL_LIBS
939GL_CFLAGS
940XLIB_LIBS
941XLIB_CFLAGS
942RES_FALSE
943RES_TRUE
944SCREENSAVER_FALSE
945SCREENSAVER_TRUE
946RECORD_FALSE
947RECORD_TRUE
948MITSHM_FALSE
949MITSHM_TRUE
950COMPOSITE_FALSE
951COMPOSITE_TRUE
952XREGISTRY_FALSE
953XREGISTRY_TRUE
954XVMC_FALSE
955XVMC_TRUE
956XV_FALSE
957XV_TRUE
958CONFIG_NEED_DBUS_FALSE
959CONFIG_NEED_DBUS_TRUE
960CONFIG_HAL_FALSE
961CONFIG_HAL_TRUE
962HAL_LIBS
963HAL_CFLAGS
964CONFIG_DBUS_API_FALSE
965CONFIG_DBUS_API_TRUE
966HAVE_DBUS_FALSE
967HAVE_DBUS_TRUE
968DBUS_LIBS
969DBUS_CFLAGS
970CONFIG_UDEV_FALSE
971CONFIG_UDEV_TRUE
972UDEV_LIBS
973UDEV_CFLAGS
974PIXMAN_LIBS
975PIXMAN_CFLAGS
976SDK_REQUIRED_MODULES
977INSTALL_LIBXF86CONFIG_FALSE
978INSTALL_LIBXF86CONFIG_TRUE
979HAVE_FOP_FALSE
980HAVE_FOP_TRUE
981FOP
982HAVE_XMLTO_FALSE
983HAVE_XMLTO_TRUE
984HAVE_XMLTO_TEXT_FALSE
985HAVE_XMLTO_TEXT_TRUE
986XMLTO
987ENABLE_DEVEL_DOCS_FALSE
988ENABLE_DEVEL_DOCS_TRUE
989BUILDDOCS_FALSE
990BUILDDOCS_TRUE
991INT10_STUB_FALSE
992INT10_STUB_TRUE
993INT10_X86EMU_FALSE
994INT10_X86EMU_TRUE
995INT10_VM86_FALSE
996INT10_VM86_TRUE
997SECURE_RPC_FALSE
998SECURE_RPC_TRUE
999INSTALL_SETUID_FALSE
1000INSTALL_SETUID_TRUE
1001XQUARTZ_SPARKLE
1002LAUNCHD_ID_PREFIX
1003APPLE_APPLICATION_NAME
1004APPLE_APPLICATIONS_DIR
1005FONT100DPIDIR
1006FONT75DPIDIR
1007FONTTYPE1DIR
1008FONTTTFDIR
1009FONTOTFDIR
1010FONTMISCDIR
1011FONTROOTDIR
1012SPARC64_VIDEO_FALSE
1013SPARC64_VIDEO_TRUE
1014PPC_VIDEO_FALSE
1015PPC_VIDEO_TRUE
1016I386_VIDEO_FALSE
1017I386_VIDEO_TRUE
1018ARM_VIDEO_FALSE
1019ARM_VIDEO_TRUE
1020ALPHA_VIDEO_FALSE
1021ALPHA_VIDEO_TRUE
1022GLX_ARCH_DEFINES
1023ARM_BACKTRACE_CFLAGS
1024BSD_KQUEUE_APM_FALSE
1025BSD_KQUEUE_APM_TRUE
1026BSD_APM_FALSE
1027BSD_APM_TRUE
1028FREEBSD_KLDLOAD_FALSE
1029FREEBSD_KLDLOAD_TRUE
1030FBDEVHW_FALSE
1031FBDEVHW_TRUE
1032LNXAPM_FALSE
1033LNXAPM_TRUE
1034AGP_FALSE
1035AGP_TRUE
1036NEED_VSNPRINTF_FALSE
1037NEED_VSNPRINTF_TRUE
1038NEED_STRLCAT_FALSE
1039NEED_STRLCAT_TRUE
1040ALLOCA
1041DLOPEN_LIBS
1042SPECIAL_DTRACE_OBJECTS_FALSE
1043SPECIAL_DTRACE_OBJECTS_TRUE
1044XSERVER_DTRACE_FALSE
1045XSERVER_DTRACE_TRUE
1046DTRACE
1047RAWCPPFLAGS
1048RAWCPP
1049YFLAGS
1050YACC
1051LEXLIB
1052LEX_OUTPUT_ROOT
1053LEX
1054LTCXXCOMPILE
1055LTCOMPILE
1056DOLT_BASH
1057OTOOL64
1058OTOOL
1059LIPO
1060NMEDIT
1061DSYMUTIL
1062MANIFEST_TOOL
1063RANLIB
1064ac_ct_AR
1065AR
1066NM
1067ac_ct_DUMPBIN
1068DUMPBIN
1069LD
1070FGREP
1071LIBTOOL
1072OBJDUMP
1073DLLTOOL
1074AS
1075LN_S
1076am__fastdepCCAS_FALSE
1077am__fastdepCCAS_TRUE
1078CCASDEPMODE
1079CCASFLAGS
1080CCAS
1081HAVE_STYLESHEETS_FALSE
1082HAVE_STYLESHEETS_TRUE
1083XSL_STYLESHEET
1084STYLESHEET_SRCDIR
1085XORG_SGML_PATH
1086HAVE_DOXYGEN_FALSE
1087HAVE_DOXYGEN_TRUE
1088DOXYGEN
1089AM_BACKSLASH
1090AM_DEFAULT_VERBOSITY
1091MAN_SUBSTS
1092XORG_MAN_PAGE
1093ADMIN_MAN_DIR
1094DRIVER_MAN_DIR
1095MISC_MAN_DIR
1096FILE_MAN_DIR
1097LIB_MAN_DIR
1098APP_MAN_DIR
1099ADMIN_MAN_SUFFIX
1100DRIVER_MAN_SUFFIX
1101MISC_MAN_SUFFIX
1102FILE_MAN_SUFFIX
1103LIB_MAN_SUFFIX
1104APP_MAN_SUFFIX
1105SED
1106host_os
1107host_vendor
1108host_cpu
1109host
1110build_os
1111build_vendor
1112build_cpu
1113build
1114INSTALL_CMD
1115PKG_CONFIG_LIBDIR
1116PKG_CONFIG_PATH
1117PKG_CONFIG
1118CHANGELOG_CMD
1119CWARNFLAGS
1120EGREP
1121GREP
1122CPP
1123am__fastdepCC_FALSE
1124am__fastdepCC_TRUE
1125CCDEPMODE
1126AMDEPBACKSLASH
1127AMDEP_FALSE
1128AMDEP_TRUE
1129am__quote
1130am__include
1131DEPDIR
1132OBJEXT
1133EXEEXT
1134ac_ct_CC
1135CPPFLAGS
1136LDFLAGS
1137CFLAGS
1138CC
1139MAINT
1140MAINTAINER_MODE_FALSE
1141MAINTAINER_MODE_TRUE
1142am__untar
1143am__tar
1144AMTAR
1145am__leading_dot
1146SET_MAKE
1147AWK
1148mkdir_p
1149MKDIR_P
1150INSTALL_STRIP_PROGRAM
1151STRIP
1152install_sh
1153MAKEINFO
1154AUTOHEADER
1155AUTOMAKE
1156AUTOCONF
1157ACLOCAL
1158VERSION
1159PACKAGE
1160CYGPATH_W
1161am__isrc
1162INSTALL_DATA
1163INSTALL_SCRIPT
1164INSTALL_PROGRAM
1165target_alias
1166host_alias
1167build_alias
1168LIBS
1169ECHO_T
1170ECHO_N
1171ECHO_C
1172DEFS
1173mandir
1174localedir
1175libdir
1176psdir
1177pdfdir
1178dvidir
1179htmldir
1180infodir
1181docdir
1182oldincludedir
1183includedir
1184localstatedir
1185sharedstatedir
1186sysconfdir
1187datadir
1188datarootdir
1189libexecdir
1190sbindir
1191bindir
1192program_transform_name
1193prefix
1194exec_prefix
1195PACKAGE_URL
1196PACKAGE_BUGREPORT
1197PACKAGE_STRING
1198PACKAGE_VERSION
1199PACKAGE_TARNAME
1200PACKAGE_NAME
1201PATH_SEPARATOR
1202SHELL'
1203ac_subst_files=''
1204ac_user_opts='
1205enable_option_checking
1206enable_maintainer_mode
1207enable_dependency_tracking
1208enable_strict_compilation
1209enable_silent_rules
1210with_doxygen
1211enable_static
1212enable_shared
1213with_pic
1214enable_fast_install
1215with_gnu_ld
1216with_sysroot
1217enable_libtool_lock
1218enable_largefile
1219with_dtrace
1220enable_werror
1221enable_debug
1222enable_unit_tests
1223enable_use_sigio_by_default
1224with_int10
1225with_vendor_name
1226with_vendor_name_short
1227with_vendor_web
1228with_module_dir
1229with_log_dir
1230with_builder_addr
1231with_os_name
1232with_os_vendor
1233with_builderstring
1234with_fontrootdir
1235with_fontmiscdir
1236with_fontotfdir
1237with_fontttfdir
1238with_fonttype1dir
1239with_font75dpidir
1240with_font100dpidir
1241with_default_font_path
1242with_xkb_path
1243with_xkb_output
1244with_default_xkb_rules
1245with_default_xkb_model
1246with_default_xkb_layout
1247with_default_xkb_variant
1248with_default_xkb_options
1249with_serverconfig_path
1250with_apple_applications_dir
1251with_apple_application_name
1252with_launchd_id_prefix
1253enable_sparkle
1254enable_builddocs
1255enable_install_libxf86config
1256enable_visibility
1257enable_pc98
1258with_dri_driver_path
1259enable_aiglx
1260enable_glx_tls
1261enable_registry
1262enable_composite
1263enable_mitshm
1264enable_xres
1265enable_record
1266enable_xv
1267enable_xvmc
1268enable_dga
1269enable_screensaver
1270enable_xdmcp
1271enable_xdm_auth_1
1272enable_glx
1273enable_dri
1274enable_dri2
1275enable_xinerama
1276enable_xf86vidmode
1277enable_xace
1278enable_xselinux
1279enable_xcsecurity
1280enable_xcalibrate
1281enable_tslib
1282enable_dbe
1283enable_xf86bigfont
1284enable_dpms
1285enable_config_udev
1286enable_config_dbus
1287enable_config_hal
1288enable_xfree86_utils
1289enable_xaa
1290enable_vgahw
1291enable_vbe
1292enable_int10_module
1293enable_windowswm
1294enable_libdrm
1295enable_xorg
1296enable_dmx
1297enable_xvfb
1298enable_xnest
1299enable_xquartz
1300enable_standalone_xpbproxy
1301enable_xwin
1302enable_kdrive
1303enable_xephyr
1304enable_xfake
1305enable_xfbdev
1306enable_kdrive_kbd
1307enable_kdrive_mouse
1308enable_kdrive_evdev
1309enable_install_setuid
1310enable_unix_transport
1311enable_tcp_transport
1312enable_ipv6
1313enable_local_transport
1314enable_secure_rpc
1315enable_devel_docs
1316with_xmlto
1317with_fop
1318with_xkb_bin_directory
1319with_sha1
1320'
1321      ac_precious_vars='build_alias
1322host_alias
1323target_alias
1324CC
1325CFLAGS
1326LDFLAGS
1327LIBS
1328CPPFLAGS
1329CPP
1330CPPFLAGS
1331PKG_CONFIG
1332PKG_CONFIG_PATH
1333PKG_CONFIG_LIBDIR
1334DOXYGEN
1335CC
1336LDFLAGS
1337LIBS
1338CPPFLAGS
1339CCAS
1340CCASFLAGS
1341PKG_CONFIG
1342PKG_CONFIG_PATH
1343PKG_CONFIG_LIBDIR
1344YACC
1345YFLAGS
1346XMLTO
1347FOP
1348PIXMAN_CFLAGS
1349PIXMAN_LIBS
1350UDEV_CFLAGS
1351UDEV_LIBS
1352DBUS_CFLAGS
1353DBUS_LIBS
1354HAL_CFLAGS
1355HAL_LIBS
1356XLIB_CFLAGS
1357XLIB_LIBS
1358GL_CFLAGS
1359GL_LIBS
1360DRIPROTO_CFLAGS
1361DRIPROTO_LIBS
1362DRI_CFLAGS
1363DRI_LIBS
1364DRI2PROTO_CFLAGS
1365DRI2PROTO_LIBS
1366LIBDRM_CFLAGS
1367LIBDRM_LIBS
1368SELINUX_CFLAGS
1369SELINUX_LIBS
1370XDMCP_CFLAGS
1371XDMCP_LIBS
1372GLIB_CFLAGS
1373GLIB_LIBS
1374LIBSHA1_CFLAGS
1375LIBSHA1_LIBS
1376OPENSSL_CFLAGS
1377OPENSSL_LIBS
1378XSERVERCFLAGS_CFLAGS
1379XSERVERCFLAGS_LIBS
1380XSERVERLIBS_CFLAGS
1381XSERVERLIBS_LIBS
1382XNESTMODULES_CFLAGS
1383XNESTMODULES_LIBS
1384PCIACCESS_CFLAGS
1385PCIACCESS_LIBS
1386DGA_CFLAGS
1387DGA_LIBS
1388DGA_CFLAGS
1389DGA_LIBS
1390XF86VIDMODE_CFLAGS
1391XF86VIDMODE_LIBS
1392XF86VIDMODE_LIBS
1393XORG_MODULES_CFLAGS
1394XORG_MODULES_LIBS
1395XWINMODULES_CFLAGS
1396XWINMODULES_LIBS
1397WINDOWSWM_CFLAGS
1398WINDOWSWM_LIBS
1399XPBPROXY_CFLAGS
1400XPBPROXY_LIBS
1401DMXMODULES_CFLAGS
1402DMXMODULES_LIBS
1403XDMXCONFIG_DEP_CFLAGS
1404XDMXCONFIG_DEP_LIBS
1405DMXEXAMPLES_DEP_CFLAGS
1406DMXEXAMPLES_DEP_LIBS
1407DMXXMUEXAMPLES_DEP_CFLAGS
1408DMXXMUEXAMPLES_DEP_LIBS
1409DMXXIEXAMPLES_DEP_CFLAGS
1410DMXXIEXAMPLES_DEP_LIBS
1411XTSTEXAMPLES_DEP_CFLAGS
1412XTSTEXAMPLES_DEP_LIBS
1413XRESEXAMPLES_DEP_CFLAGS
1414XRESEXAMPLES_DEP_LIBS
1415X11EXAMPLES_DEP_CFLAGS
1416X11EXAMPLES_DEP_LIBS
1417TSLIB_CFLAGS
1418TSLIB_LIBS
1419XEPHYR_CFLAGS
1420XEPHYR_LIBS'
1421
1422
1423# Initialize some variables set by options.
1424ac_init_help=
1425ac_init_version=false
1426ac_unrecognized_opts=
1427ac_unrecognized_sep=
1428# The variables have the same names as the options, with
1429# dashes changed to underlines.
1430cache_file=/dev/null
1431exec_prefix=NONE
1432no_create=
1433no_recursion=
1434prefix=NONE
1435program_prefix=NONE
1436program_suffix=NONE
1437program_transform_name=s,x,x,
1438silent=
1439site=
1440srcdir=
1441verbose=
1442x_includes=NONE
1443x_libraries=NONE
1444
1445# Installation directory options.
1446# These are left unexpanded so users can "make install exec_prefix=/foo"
1447# and all the variables that are supposed to be based on exec_prefix
1448# by default will actually change.
1449# Use braces instead of parens because sh, perl, etc. also accept them.
1450# (The list follows the same order as the GNU Coding Standards.)
1451bindir='${exec_prefix}/bin'
1452sbindir='${exec_prefix}/sbin'
1453libexecdir='${exec_prefix}/libexec'
1454datarootdir='${prefix}/share'
1455datadir='${datarootdir}'
1456sysconfdir='${prefix}/etc'
1457sharedstatedir='${prefix}/com'
1458localstatedir='${prefix}/var'
1459includedir='${prefix}/include'
1460oldincludedir='/usr/include'
1461docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1462infodir='${datarootdir}/info'
1463htmldir='${docdir}'
1464dvidir='${docdir}'
1465pdfdir='${docdir}'
1466psdir='${docdir}'
1467libdir='${exec_prefix}/lib'
1468localedir='${datarootdir}/locale'
1469mandir='${datarootdir}/man'
1470
1471ac_prev=
1472ac_dashdash=
1473for ac_option
1474do
1475  # If the previous option needs an argument, assign it.
1476  if test -n "$ac_prev"; then
1477    eval $ac_prev=\$ac_option
1478    ac_prev=
1479    continue
1480  fi
1481
1482  case $ac_option in
1483  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1484  *=)   ac_optarg= ;;
1485  *)    ac_optarg=yes ;;
1486  esac
1487
1488  # Accept the important Cygnus configure options, so we can diagnose typos.
1489
1490  case $ac_dashdash$ac_option in
1491  --)
1492    ac_dashdash=yes ;;
1493
1494  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1495    ac_prev=bindir ;;
1496  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1497    bindir=$ac_optarg ;;
1498
1499  -build | --build | --buil | --bui | --bu)
1500    ac_prev=build_alias ;;
1501  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1502    build_alias=$ac_optarg ;;
1503
1504  -cache-file | --cache-file | --cache-fil | --cache-fi \
1505  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1506    ac_prev=cache_file ;;
1507  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1508  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1509    cache_file=$ac_optarg ;;
1510
1511  --config-cache | -C)
1512    cache_file=config.cache ;;
1513
1514  -datadir | --datadir | --datadi | --datad)
1515    ac_prev=datadir ;;
1516  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1517    datadir=$ac_optarg ;;
1518
1519  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1520  | --dataroo | --dataro | --datar)
1521    ac_prev=datarootdir ;;
1522  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1523  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1524    datarootdir=$ac_optarg ;;
1525
1526  -disable-* | --disable-*)
1527    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1528    # Reject names that are not valid shell variable names.
1529    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1530      as_fn_error $? "invalid feature name: $ac_useropt"
1531    ac_useropt_orig=$ac_useropt
1532    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1533    case $ac_user_opts in
1534      *"
1535"enable_$ac_useropt"
1536"*) ;;
1537      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1538	 ac_unrecognized_sep=', ';;
1539    esac
1540    eval enable_$ac_useropt=no ;;
1541
1542  -docdir | --docdir | --docdi | --doc | --do)
1543    ac_prev=docdir ;;
1544  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1545    docdir=$ac_optarg ;;
1546
1547  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1548    ac_prev=dvidir ;;
1549  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1550    dvidir=$ac_optarg ;;
1551
1552  -enable-* | --enable-*)
1553    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1554    # Reject names that are not valid shell variable names.
1555    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1556      as_fn_error $? "invalid feature name: $ac_useropt"
1557    ac_useropt_orig=$ac_useropt
1558    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1559    case $ac_user_opts in
1560      *"
1561"enable_$ac_useropt"
1562"*) ;;
1563      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1564	 ac_unrecognized_sep=', ';;
1565    esac
1566    eval enable_$ac_useropt=\$ac_optarg ;;
1567
1568  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1569  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1570  | --exec | --exe | --ex)
1571    ac_prev=exec_prefix ;;
1572  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1573  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1574  | --exec=* | --exe=* | --ex=*)
1575    exec_prefix=$ac_optarg ;;
1576
1577  -gas | --gas | --ga | --g)
1578    # Obsolete; use --with-gas.
1579    with_gas=yes ;;
1580
1581  -help | --help | --hel | --he | -h)
1582    ac_init_help=long ;;
1583  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1584    ac_init_help=recursive ;;
1585  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1586    ac_init_help=short ;;
1587
1588  -host | --host | --hos | --ho)
1589    ac_prev=host_alias ;;
1590  -host=* | --host=* | --hos=* | --ho=*)
1591    host_alias=$ac_optarg ;;
1592
1593  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1594    ac_prev=htmldir ;;
1595  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1596  | --ht=*)
1597    htmldir=$ac_optarg ;;
1598
1599  -includedir | --includedir | --includedi | --included | --include \
1600  | --includ | --inclu | --incl | --inc)
1601    ac_prev=includedir ;;
1602  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1603  | --includ=* | --inclu=* | --incl=* | --inc=*)
1604    includedir=$ac_optarg ;;
1605
1606  -infodir | --infodir | --infodi | --infod | --info | --inf)
1607    ac_prev=infodir ;;
1608  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1609    infodir=$ac_optarg ;;
1610
1611  -libdir | --libdir | --libdi | --libd)
1612    ac_prev=libdir ;;
1613  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1614    libdir=$ac_optarg ;;
1615
1616  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1617  | --libexe | --libex | --libe)
1618    ac_prev=libexecdir ;;
1619  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1620  | --libexe=* | --libex=* | --libe=*)
1621    libexecdir=$ac_optarg ;;
1622
1623  -localedir | --localedir | --localedi | --localed | --locale)
1624    ac_prev=localedir ;;
1625  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1626    localedir=$ac_optarg ;;
1627
1628  -localstatedir | --localstatedir | --localstatedi | --localstated \
1629  | --localstate | --localstat | --localsta | --localst | --locals)
1630    ac_prev=localstatedir ;;
1631  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1632  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1633    localstatedir=$ac_optarg ;;
1634
1635  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1636    ac_prev=mandir ;;
1637  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1638    mandir=$ac_optarg ;;
1639
1640  -nfp | --nfp | --nf)
1641    # Obsolete; use --without-fp.
1642    with_fp=no ;;
1643
1644  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1645  | --no-cr | --no-c | -n)
1646    no_create=yes ;;
1647
1648  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1649  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1650    no_recursion=yes ;;
1651
1652  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1653  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1654  | --oldin | --oldi | --old | --ol | --o)
1655    ac_prev=oldincludedir ;;
1656  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1657  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1658  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1659    oldincludedir=$ac_optarg ;;
1660
1661  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1662    ac_prev=prefix ;;
1663  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1664    prefix=$ac_optarg ;;
1665
1666  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1667  | --program-pre | --program-pr | --program-p)
1668    ac_prev=program_prefix ;;
1669  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1670  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1671    program_prefix=$ac_optarg ;;
1672
1673  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1674  | --program-suf | --program-su | --program-s)
1675    ac_prev=program_suffix ;;
1676  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1677  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1678    program_suffix=$ac_optarg ;;
1679
1680  -program-transform-name | --program-transform-name \
1681  | --program-transform-nam | --program-transform-na \
1682  | --program-transform-n | --program-transform- \
1683  | --program-transform | --program-transfor \
1684  | --program-transfo | --program-transf \
1685  | --program-trans | --program-tran \
1686  | --progr-tra | --program-tr | --program-t)
1687    ac_prev=program_transform_name ;;
1688  -program-transform-name=* | --program-transform-name=* \
1689  | --program-transform-nam=* | --program-transform-na=* \
1690  | --program-transform-n=* | --program-transform-=* \
1691  | --program-transform=* | --program-transfor=* \
1692  | --program-transfo=* | --program-transf=* \
1693  | --program-trans=* | --program-tran=* \
1694  | --progr-tra=* | --program-tr=* | --program-t=*)
1695    program_transform_name=$ac_optarg ;;
1696
1697  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1698    ac_prev=pdfdir ;;
1699  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1700    pdfdir=$ac_optarg ;;
1701
1702  -psdir | --psdir | --psdi | --psd | --ps)
1703    ac_prev=psdir ;;
1704  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1705    psdir=$ac_optarg ;;
1706
1707  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1708  | -silent | --silent | --silen | --sile | --sil)
1709    silent=yes ;;
1710
1711  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1712    ac_prev=sbindir ;;
1713  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1714  | --sbi=* | --sb=*)
1715    sbindir=$ac_optarg ;;
1716
1717  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1718  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1719  | --sharedst | --shareds | --shared | --share | --shar \
1720  | --sha | --sh)
1721    ac_prev=sharedstatedir ;;
1722  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1723  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1724  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1725  | --sha=* | --sh=*)
1726    sharedstatedir=$ac_optarg ;;
1727
1728  -site | --site | --sit)
1729    ac_prev=site ;;
1730  -site=* | --site=* | --sit=*)
1731    site=$ac_optarg ;;
1732
1733  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1734    ac_prev=srcdir ;;
1735  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1736    srcdir=$ac_optarg ;;
1737
1738  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1739  | --syscon | --sysco | --sysc | --sys | --sy)
1740    ac_prev=sysconfdir ;;
1741  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1742  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1743    sysconfdir=$ac_optarg ;;
1744
1745  -target | --target | --targe | --targ | --tar | --ta | --t)
1746    ac_prev=target_alias ;;
1747  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1748    target_alias=$ac_optarg ;;
1749
1750  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1751    verbose=yes ;;
1752
1753  -version | --version | --versio | --versi | --vers | -V)
1754    ac_init_version=: ;;
1755
1756  -with-* | --with-*)
1757    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1758    # Reject names that are not valid shell variable names.
1759    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1760      as_fn_error $? "invalid package name: $ac_useropt"
1761    ac_useropt_orig=$ac_useropt
1762    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1763    case $ac_user_opts in
1764      *"
1765"with_$ac_useropt"
1766"*) ;;
1767      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1768	 ac_unrecognized_sep=', ';;
1769    esac
1770    eval with_$ac_useropt=\$ac_optarg ;;
1771
1772  -without-* | --without-*)
1773    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1774    # Reject names that are not valid shell variable names.
1775    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1776      as_fn_error $? "invalid package name: $ac_useropt"
1777    ac_useropt_orig=$ac_useropt
1778    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1779    case $ac_user_opts in
1780      *"
1781"with_$ac_useropt"
1782"*) ;;
1783      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1784	 ac_unrecognized_sep=', ';;
1785    esac
1786    eval with_$ac_useropt=no ;;
1787
1788  --x)
1789    # Obsolete; use --with-x.
1790    with_x=yes ;;
1791
1792  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1793  | --x-incl | --x-inc | --x-in | --x-i)
1794    ac_prev=x_includes ;;
1795  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1796  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1797    x_includes=$ac_optarg ;;
1798
1799  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1800  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1801    ac_prev=x_libraries ;;
1802  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1803  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1804    x_libraries=$ac_optarg ;;
1805
1806  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1807Try \`$0 --help' for more information"
1808    ;;
1809
1810  *=*)
1811    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1812    # Reject names that are not valid shell variable names.
1813    case $ac_envvar in #(
1814      '' | [0-9]* | *[!_$as_cr_alnum]* )
1815      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1816    esac
1817    eval $ac_envvar=\$ac_optarg
1818    export $ac_envvar ;;
1819
1820  *)
1821    # FIXME: should be removed in autoconf 3.0.
1822    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1823    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1824      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1825    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1826    ;;
1827
1828  esac
1829done
1830
1831if test -n "$ac_prev"; then
1832  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1833  as_fn_error $? "missing argument to $ac_option"
1834fi
1835
1836if test -n "$ac_unrecognized_opts"; then
1837  case $enable_option_checking in
1838    no) ;;
1839    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1840    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1841  esac
1842fi
1843
1844# Check all directory arguments for consistency.
1845for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1846		datadir sysconfdir sharedstatedir localstatedir includedir \
1847		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1848		libdir localedir mandir
1849do
1850  eval ac_val=\$$ac_var
1851  # Remove trailing slashes.
1852  case $ac_val in
1853    */ )
1854      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1855      eval $ac_var=\$ac_val;;
1856  esac
1857  # Be sure to have absolute directory names.
1858  case $ac_val in
1859    [\\/$]* | ?:[\\/]* )  continue;;
1860    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1861  esac
1862  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1863done
1864
1865# There might be people who depend on the old broken behavior: `$host'
1866# used to hold the argument of --host etc.
1867# FIXME: To remove some day.
1868build=$build_alias
1869host=$host_alias
1870target=$target_alias
1871
1872# FIXME: To remove some day.
1873if test "x$host_alias" != x; then
1874  if test "x$build_alias" = x; then
1875    cross_compiling=maybe
1876    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1877    If a cross compiler is detected then cross compile mode will be used" >&2
1878  elif test "x$build_alias" != "x$host_alias"; then
1879    cross_compiling=yes
1880  fi
1881fi
1882
1883ac_tool_prefix=
1884test -n "$host_alias" && ac_tool_prefix=$host_alias-
1885
1886test "$silent" = yes && exec 6>/dev/null
1887
1888
1889ac_pwd=`pwd` && test -n "$ac_pwd" &&
1890ac_ls_di=`ls -di .` &&
1891ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1892  as_fn_error $? "working directory cannot be determined"
1893test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1894  as_fn_error $? "pwd does not report name of working directory"
1895
1896
1897# Find the source files, if location was not specified.
1898if test -z "$srcdir"; then
1899  ac_srcdir_defaulted=yes
1900  # Try the directory containing this script, then the parent directory.
1901  ac_confdir=`$as_dirname -- "$as_myself" ||
1902$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1903	 X"$as_myself" : 'X\(//\)[^/]' \| \
1904	 X"$as_myself" : 'X\(//\)$' \| \
1905	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1906$as_echo X"$as_myself" |
1907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1908	    s//\1/
1909	    q
1910	  }
1911	  /^X\(\/\/\)[^/].*/{
1912	    s//\1/
1913	    q
1914	  }
1915	  /^X\(\/\/\)$/{
1916	    s//\1/
1917	    q
1918	  }
1919	  /^X\(\/\).*/{
1920	    s//\1/
1921	    q
1922	  }
1923	  s/.*/./; q'`
1924  srcdir=$ac_confdir
1925  if test ! -r "$srcdir/$ac_unique_file"; then
1926    srcdir=..
1927  fi
1928else
1929  ac_srcdir_defaulted=no
1930fi
1931if test ! -r "$srcdir/$ac_unique_file"; then
1932  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1933  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1934fi
1935ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1936ac_abs_confdir=`(
1937	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1938	pwd)`
1939# When building in place, set srcdir=.
1940if test "$ac_abs_confdir" = "$ac_pwd"; then
1941  srcdir=.
1942fi
1943# Remove unnecessary trailing slashes from srcdir.
1944# Double slashes in file names in object file debugging info
1945# mess up M-x gdb in Emacs.
1946case $srcdir in
1947*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1948esac
1949for ac_var in $ac_precious_vars; do
1950  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1951  eval ac_env_${ac_var}_value=\$${ac_var}
1952  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1953  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1954done
1955
1956#
1957# Report the --help message.
1958#
1959if test "$ac_init_help" = "long"; then
1960  # Omit some internal or obsolete options to make the list less imposing.
1961  # This message is too long to be a string in the A/UX 3.1 sh.
1962  cat <<_ACEOF
1963\`configure' configures xorg-server 1.9.2 to adapt to many kinds of systems.
1964
1965Usage: $0 [OPTION]... [VAR=VALUE]...
1966
1967To assign environment variables (e.g., CC, CFLAGS...), specify them as
1968VAR=VALUE.  See below for descriptions of some of the useful variables.
1969
1970Defaults for the options are specified in brackets.
1971
1972Configuration:
1973  -h, --help              display this help and exit
1974      --help=short        display options specific to this package
1975      --help=recursive    display the short help of all the included packages
1976  -V, --version           display version information and exit
1977  -q, --quiet, --silent   do not print \`checking ...' messages
1978      --cache-file=FILE   cache test results in FILE [disabled]
1979  -C, --config-cache      alias for \`--cache-file=config.cache'
1980  -n, --no-create         do not create output files
1981      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1982
1983Installation directories:
1984  --prefix=PREFIX         install architecture-independent files in PREFIX
1985                          [$ac_default_prefix]
1986  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1987                          [PREFIX]
1988
1989By default, \`make install' will install all the files in
1990\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1991an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1992for instance \`--prefix=\$HOME'.
1993
1994For better control, use the options below.
1995
1996Fine tuning of the installation directories:
1997  --bindir=DIR            user executables [EPREFIX/bin]
1998  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1999  --libexecdir=DIR        program executables [EPREFIX/libexec]
2000  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2001  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2002  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2003  --libdir=DIR            object code libraries [EPREFIX/lib]
2004  --includedir=DIR        C header files [PREFIX/include]
2005  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2006  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2007  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2008  --infodir=DIR           info documentation [DATAROOTDIR/info]
2009  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2010  --mandir=DIR            man documentation [DATAROOTDIR/man]
2011  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2012  --htmldir=DIR           html documentation [DOCDIR]
2013  --dvidir=DIR            dvi documentation [DOCDIR]
2014  --pdfdir=DIR            pdf documentation [DOCDIR]
2015  --psdir=DIR             ps documentation [DOCDIR]
2016_ACEOF
2017
2018  cat <<\_ACEOF
2019
2020Program names:
2021  --program-prefix=PREFIX            prepend PREFIX to installed program names
2022  --program-suffix=SUFFIX            append SUFFIX to installed program names
2023  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2024
2025System types:
2026  --build=BUILD     configure for building on BUILD [guessed]
2027  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2028_ACEOF
2029fi
2030
2031if test -n "$ac_init_help"; then
2032  case $ac_init_help in
2033     short | recursive ) echo "Configuration of xorg-server 1.9.2:";;
2034   esac
2035  cat <<\_ACEOF
2036
2037Optional Features:
2038  --disable-option-checking  ignore unrecognized --enable/--with options
2039  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2040  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2041  --enable-maintainer-mode  enable make rules and dependencies not useful
2042			  (and sometimes confusing) to the casual installer
2043  --disable-dependency-tracking  speeds up one-time build
2044  --enable-dependency-tracking   do not reject slow dependency extractors
2045  --enable-strict-compilation
2046                          Enable all warnings from compiler and make them
2047                          errors (default: disabled)
2048  --enable-silent-rules          less verbose build output (undo: `make V=1')
2049  --disable-silent-rules         verbose build output (undo: `make V=0')
2050  --enable-static[=PKGS]  build static libraries [default=no]
2051  --enable-shared[=PKGS]  build shared libraries [default=yes]
2052  --enable-fast-install[=PKGS]
2053                          optimize for fast installation [default=yes]
2054  --disable-libtool-lock  avoid locking (might break parallel builds)
2055  --disable-largefile     omit support for large files
2056  --enable-werror         Obsolete - use --enable-strict-compilation instead
2057  --enable-debug          Enable debugging (default: disabled)
2058  --enable-unit-tests     Enable unit-tests (default: auto)
2059  --enable-use-sigio-by-default
2060  Enable SIGIO input handlers by default (default: $USE_SIGIO_BY_DEFAULT)
2061
2062  --enable-sparkle        Enable updating of X11.app using the Sparkle
2063                          Framework (default: disabled)
2064  --enable-builddocs      Build docs (default: disabled)
2065  --enable-install-libxf86config
2066                          Install libxf86config (default: disabled)
2067  --enable-visibility     Enable symbol visibility (default: auto)
2068  --enable-pc98           Enable PC98 support in Xorg (default: auto)
2069  --enable-aiglx          Build accelerated indirect GLX (default: enabled)
2070  --enable-glx-tls        Build GLX with TLS support (default: disabled)
2071  --disable-registry      Build string registry module (default: enabled)
2072  --disable-composite     Build Composite extension (default: enabled)
2073  --disable-shm           Build SHM extension (default: enabled)
2074  --disable-xres          Build XRes extension (default: enabled)
2075  --disable-record        Build Record extension (default: enabled)
2076  --disable-xv            Build Xv extension (default: enabled)
2077  --disable-xvmc          Build XvMC extension (default: enabled)
2078  --disable-dga           Build DGA extension (default: auto)
2079  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2080  --disable-xdmcp         Build XDMCP extension (default: auto)
2081  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2082  --disable-glx           Build GLX extension (default: enabled)
2083  --enable-dri            Build DRI extension (default: auto)
2084  --enable-dri2           Build DRI2 extension (default: auto)
2085  --disable-xinerama      Build Xinerama extension (default: enabled)
2086  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2087  --disable-xace          Build X-ACE extension (default: enabled)
2088  --enable-xselinux       Build SELinux extension (default: disabled)
2089  --enable-xcsecurity     Build Security extension (default: disabled)
2090  --enable-xcalibrate     Build XCalibrate extension (default: disabled)
2091  --enable-tslib          Build kdrive tslib touchscreen support (default:
2092                          disabled)
2093  --disable-dbe           Build DBE extension (default: enabled)
2094  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2095  --disable-dpms          Build DPMS extension (default: enabled)
2096  --enable-config-udev    Build udev support (default: auto)
2097  --enable-config-dbus    Build D-BUS API support (default: no)
2098  --disable-config-hal    Build HAL support (default: auto)
2099  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2100  --enable-xaa            Build XAA (default: enabled)
2101  --enable-vgahw          Build Xorg with vga access (default: enabled)
2102  --enable-vbe            Build Xorg with VBE module (default: enabled)
2103  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2104  --enable-windowswm      Build XWin with WindowsWM extension (default: no)
2105  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2106  --enable-xorg           Build Xorg server (default: auto)
2107  --enable-dmx            Build DMX server (default: auto)
2108  --enable-xvfb           Build Xvfb server (default: yes)
2109  --enable-xnest          Build Xnest server (default: auto)
2110  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2111  --enable-standalone-xpbproxy
2112                          Build a standalone xpbproxy (in addition to the one
2113                          integrated into Xquartz as a separate thread)
2114                          (default: no)
2115  --enable-xwin           Build XWin server (default: auto)
2116  --enable-kdrive         Build kdrive servers (default: no)
2117  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2118  --enable-xfake          Build the kdrive 'fake' server (default: auto)
2119  --enable-xfbdev         Build the kdrive framebuffer device server (default:
2120                          auto)
2121  --enable-kdrive-kbd     Build kbd driver for kdrive (default: auto)
2122  --enable-kdrive-mouse   Build mouse driver for kdrive (default: auto)
2123  --enable-kdrive-evdev   Build evdev driver for kdrive (default: auto)
2124  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2125                          (default: auto)
2126  --enable-unix-transport Enable UNIX domain socket transport
2127  --enable-tcp-transport  Enable TCP socket transport
2128  --enable-ipv6           Enable IPv6 support
2129  --enable-local-transport
2130                          Enable os-specific local transport
2131  --enable-secure-rpc     Enable Secure RPC
2132  --enable-devel-docs     Enable building the developer documentation
2133                          (default: yes)
2134
2135Optional Packages:
2136  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2137  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2138  --with-doxygen          Use doxygen to regenerate documentation (default:
2139                          auto)
2140  --with-pic              try to use only PIC/non-PIC objects [default=use
2141                          both]
2142  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2143  --with-sysroot=DIR Search for dependent libraries within DIR
2144                        (or the compiler's sysroot if not specified).
2145  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2146                          found)
2147  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2148  --with-vendor-name=VENDOR
2149                          Vendor string reported by the server
2150  --with-vendor-name-short=VENDOR
2151                          Short version of vendor string reported by the
2152                          server
2153  --with-vendor-web=URL   Vendor web address reported by the server
2154  --with-module-dir=DIR   Directory where modules are installed (default:
2155                          $libdir/xorg/modules)
2156  --with-log-dir=DIR      Directory where log files are kept (default:
2157                          $localstatedir/log)
2158  --with-builder-addr=ADDRESS
2159                          Builder address (default:
2160                          xorg@lists.freedesktop.org)
2161  --with-os-name=OSNAME   Name of OS (default: output of "uname -srm")
2162  --with-os-vendor=OSVENDOR
2163                          Name of OS vendor
2164  --with-builderstring=BUILDERSTRING
2165                          Additional builder string
2166  --with-fontrootdir=DIR  Path to root directory for font files
2167  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2168  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2169  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2170  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2171  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2172  --with-font100dpidir=DIR
2173                          Path to 100dpi files [FONTROOTDIR/100dpi]
2174  --with-default-font-path=PATH
2175                          Comma separated list of font dirs
2176  --with-xkb-path=PATH    Path to XKB base dir (default: ${datadir}/X11/xkb)
2177  --with-xkb-output=PATH  Path to XKB output dir (default:
2178                          ${datadir}/X11/xkb/compiled)
2179  --with-default-xkb-rules=RULES
2180                          Keyboard ruleset (default: base/evdev)
2181  --with-default-xkb-model=MODEL
2182                          Keyboard model (default: pc105)
2183  --with-default-xkb-layout=LAYOUT
2184                          Keyboard layout (default: us)
2185  --with-default-xkb-variant=VARIANT
2186                          Keyboard variant (default: (none))
2187  --with-default-xkb-options=OPTIONS
2188                          Keyboard layout options (default: (none))
2189  --with-serverconfig-path=PATH
2190                          Directory where ancillary server config files are
2191                          installed (default: ${libdir}/xorg)
2192  --with-apple-applications-dir=PATH
2193                          Path to the Applications directory (default:
2194                          /Applications/Utilities)
2195  --with-apple-application-name=NAME
2196                          Name for the .app (default: X11)
2197  --with-launchd-id-prefix=PATH
2198                          Prefix to use for launchd identifiers (default:
2199                          org.x)
2200  --with-dri-driver-path=PATH
2201                          Path to DRI drivers (default: ${libdir}/dri)
2202  --with-xmlto            Use xmlto to regenerate documentation (default:
2203                          auto)
2204  --with-fop              Use fop to regenerate documentation (default: auto)
2205  --with-xkb-bin-directory=DIR
2206                          Directory containing xkbcomp program
2207  --with-sha1=libc|libmd|libgcrypt|libcrypto|libsha1|CommonCrypto
2208                          choose SHA1 implementation
2209
2210Some influential environment variables:
2211  CC          C compiler command
2212  CFLAGS      C compiler flags
2213  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2214              nonstandard directory <lib dir>
2215  LIBS        libraries to pass to the linker, e.g. -l<library>
2216  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2217              you have headers in a nonstandard directory <include dir>
2218  CPP         C preprocessor
2219  PKG_CONFIG  path to pkg-config utility
2220  PKG_CONFIG_PATH
2221              directories to add to pkg-config's search path
2222  PKG_CONFIG_LIBDIR
2223              path overriding pkg-config's built-in search path
2224  DOXYGEN     Path to doxygen command
2225  CCAS        assembler compiler command (defaults to CC)
2226  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2227  YACC        The `Yet Another Compiler Compiler' implementation to use.
2228              Defaults to the first program found out of: `bison -y', `byacc',
2229              `yacc'.
2230  YFLAGS      The list of arguments that will be passed by default to $YACC.
2231              This script will default YFLAGS to the empty string to avoid a
2232              default value of `-d' given by some make applications.
2233  XMLTO       Path to xmlto command
2234  FOP         Path to fop command
2235  PIXMAN_CFLAGS
2236              C compiler flags for PIXMAN, overriding pkg-config
2237  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2238  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2239  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2240  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2241  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2242  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2243  HAL_LIBS    linker flags for HAL, overriding pkg-config
2244  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2245  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2246  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2247  GL_LIBS     linker flags for GL, overriding pkg-config
2248  DRIPROTO_CFLAGS
2249              C compiler flags for DRIPROTO, overriding pkg-config
2250  DRIPROTO_LIBS
2251              linker flags for DRIPROTO, overriding pkg-config
2252  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
2253  DRI_LIBS    linker flags for DRI, overriding pkg-config
2254  DRI2PROTO_CFLAGS
2255              C compiler flags for DRI2PROTO, overriding pkg-config
2256  DRI2PROTO_LIBS
2257              linker flags for DRI2PROTO, overriding pkg-config
2258  LIBDRM_CFLAGS
2259              C compiler flags for LIBDRM, overriding pkg-config
2260  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2261  SELINUX_CFLAGS
2262              C compiler flags for SELINUX, overriding pkg-config
2263  SELINUX_LIBS
2264              linker flags for SELINUX, overriding pkg-config
2265  XDMCP_CFLAGS
2266              C compiler flags for XDMCP, overriding pkg-config
2267  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2268  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2269  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2270  LIBSHA1_CFLAGS
2271              C compiler flags for LIBSHA1, overriding pkg-config
2272  LIBSHA1_LIBS
2273              linker flags for LIBSHA1, overriding pkg-config
2274  OPENSSL_CFLAGS
2275              C compiler flags for OPENSSL, overriding pkg-config
2276  OPENSSL_LIBS
2277              linker flags for OPENSSL, overriding pkg-config
2278  XSERVERCFLAGS_CFLAGS
2279              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2280  XSERVERCFLAGS_LIBS
2281              linker flags for XSERVERCFLAGS, overriding pkg-config
2282  XSERVERLIBS_CFLAGS
2283              C compiler flags for XSERVERLIBS, overriding pkg-config
2284  XSERVERLIBS_LIBS
2285              linker flags for XSERVERLIBS, overriding pkg-config
2286  XNESTMODULES_CFLAGS
2287              C compiler flags for XNESTMODULES, overriding pkg-config
2288  XNESTMODULES_LIBS
2289              linker flags for XNESTMODULES, overriding pkg-config
2290  PCIACCESS_CFLAGS
2291              C compiler flags for PCIACCESS, overriding pkg-config
2292  PCIACCESS_LIBS
2293              linker flags for PCIACCESS, overriding pkg-config
2294  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2295  DGA_LIBS    linker flags for DGA, overriding pkg-config
2296  XF86VIDMODE_CFLAGS
2297              C compiler flags for XF86VIDMODE, overriding pkg-config
2298  XF86VIDMODE_LIBS
2299              linker flags for XF86VIDMODE, overriding pkg-config
2300  XORG_MODULES_CFLAGS
2301              C compiler flags for XORG_MODULES, overriding pkg-config
2302  XORG_MODULES_LIBS
2303              linker flags for XORG_MODULES, overriding pkg-config
2304  XWINMODULES_CFLAGS
2305              C compiler flags for XWINMODULES, overriding pkg-config
2306  XWINMODULES_LIBS
2307              linker flags for XWINMODULES, overriding pkg-config
2308  WINDOWSWM_CFLAGS
2309              C compiler flags for WINDOWSWM, overriding pkg-config
2310  WINDOWSWM_LIBS
2311              linker flags for WINDOWSWM, overriding pkg-config
2312  XPBPROXY_CFLAGS
2313              C compiler flags for XPBPROXY, overriding pkg-config
2314  XPBPROXY_LIBS
2315              linker flags for XPBPROXY, overriding pkg-config
2316  DMXMODULES_CFLAGS
2317              C compiler flags for DMXMODULES, overriding pkg-config
2318  DMXMODULES_LIBS
2319              linker flags for DMXMODULES, overriding pkg-config
2320  XDMXCONFIG_DEP_CFLAGS
2321              C compiler flags for XDMXCONFIG_DEP, overriding pkg-config
2322  XDMXCONFIG_DEP_LIBS
2323              linker flags for XDMXCONFIG_DEP, overriding pkg-config
2324  DMXEXAMPLES_DEP_CFLAGS
2325              C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config
2326  DMXEXAMPLES_DEP_LIBS
2327              linker flags for DMXEXAMPLES_DEP, overriding pkg-config
2328  DMXXMUEXAMPLES_DEP_CFLAGS
2329              C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2330  DMXXMUEXAMPLES_DEP_LIBS
2331              linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config
2332  DMXXIEXAMPLES_DEP_CFLAGS
2333              C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2334  DMXXIEXAMPLES_DEP_LIBS
2335              linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config
2336  XTSTEXAMPLES_DEP_CFLAGS
2337              C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config
2338  XTSTEXAMPLES_DEP_LIBS
2339              linker flags for XTSTEXAMPLES_DEP, overriding pkg-config
2340  XRESEXAMPLES_DEP_CFLAGS
2341              C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config
2342  XRESEXAMPLES_DEP_LIBS
2343              linker flags for XRESEXAMPLES_DEP, overriding pkg-config
2344  X11EXAMPLES_DEP_CFLAGS
2345              C compiler flags for X11EXAMPLES_DEP, overriding pkg-config
2346  X11EXAMPLES_DEP_LIBS
2347              linker flags for X11EXAMPLES_DEP, overriding pkg-config
2348  TSLIB_CFLAGS
2349              C compiler flags for TSLIB, overriding pkg-config
2350  TSLIB_LIBS  linker flags for TSLIB, overriding pkg-config
2351  XEPHYR_CFLAGS
2352              C compiler flags for XEPHYR, overriding pkg-config
2353  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2354
2355Use these variables to override the choices made by `configure' or to help
2356it to find libraries and programs with nonstandard names/locations.
2357
2358Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
2359_ACEOF
2360ac_status=$?
2361fi
2362
2363if test "$ac_init_help" = "recursive"; then
2364  # If there are subdirs, report their specific --help.
2365  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2366    test -d "$ac_dir" ||
2367      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2368      continue
2369    ac_builddir=.
2370
2371case "$ac_dir" in
2372.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2373*)
2374  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2375  # A ".." for each directory in $ac_dir_suffix.
2376  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2377  case $ac_top_builddir_sub in
2378  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2379  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2380  esac ;;
2381esac
2382ac_abs_top_builddir=$ac_pwd
2383ac_abs_builddir=$ac_pwd$ac_dir_suffix
2384# for backward compatibility:
2385ac_top_builddir=$ac_top_build_prefix
2386
2387case $srcdir in
2388  .)  # We are building in place.
2389    ac_srcdir=.
2390    ac_top_srcdir=$ac_top_builddir_sub
2391    ac_abs_top_srcdir=$ac_pwd ;;
2392  [\\/]* | ?:[\\/]* )  # Absolute name.
2393    ac_srcdir=$srcdir$ac_dir_suffix;
2394    ac_top_srcdir=$srcdir
2395    ac_abs_top_srcdir=$srcdir ;;
2396  *) # Relative name.
2397    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2398    ac_top_srcdir=$ac_top_build_prefix$srcdir
2399    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2400esac
2401ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2402
2403    cd "$ac_dir" || { ac_status=$?; continue; }
2404    # Check for guested configure.
2405    if test -f "$ac_srcdir/configure.gnu"; then
2406      echo &&
2407      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2408    elif test -f "$ac_srcdir/configure"; then
2409      echo &&
2410      $SHELL "$ac_srcdir/configure" --help=recursive
2411    else
2412      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2413    fi || ac_status=$?
2414    cd "$ac_pwd" || { ac_status=$?; break; }
2415  done
2416fi
2417
2418test -n "$ac_init_help" && exit $ac_status
2419if $ac_init_version; then
2420  cat <<\_ACEOF
2421xorg-server configure 1.9.2
2422generated by GNU Autoconf 2.68
2423
2424Copyright (C) 2010 Free Software Foundation, Inc.
2425This configure script is free software; the Free Software Foundation
2426gives unlimited permission to copy, distribute and modify it.
2427_ACEOF
2428  exit
2429fi
2430
2431## ------------------------ ##
2432## Autoconf initialization. ##
2433## ------------------------ ##
2434
2435# ac_fn_c_try_compile LINENO
2436# --------------------------
2437# Try to compile conftest.$ac_ext, and return whether this succeeded.
2438ac_fn_c_try_compile ()
2439{
2440  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441  rm -f conftest.$ac_objext
2442  if { { ac_try="$ac_compile"
2443case "(($ac_try" in
2444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445  *) ac_try_echo=$ac_try;;
2446esac
2447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448$as_echo "$ac_try_echo"; } >&5
2449  (eval "$ac_compile") 2>conftest.err
2450  ac_status=$?
2451  if test -s conftest.err; then
2452    grep -v '^ *+' conftest.err >conftest.er1
2453    cat conftest.er1 >&5
2454    mv -f conftest.er1 conftest.err
2455  fi
2456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457  test $ac_status = 0; } && {
2458	 test -z "$ac_c_werror_flag" ||
2459	 test ! -s conftest.err
2460       } && test -s conftest.$ac_objext; then :
2461  ac_retval=0
2462else
2463  $as_echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466	ac_retval=1
2467fi
2468  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2469  as_fn_set_status $ac_retval
2470
2471} # ac_fn_c_try_compile
2472
2473# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2474# ---------------------------------------------
2475# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2476# accordingly.
2477ac_fn_c_check_decl ()
2478{
2479  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480  as_decl_name=`echo $2|sed 's/ *(.*//'`
2481  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2483$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2484if eval \${$3+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488/* end confdefs.h.  */
2489$4
2490int
2491main ()
2492{
2493#ifndef $as_decl_name
2494#ifdef __cplusplus
2495  (void) $as_decl_use;
2496#else
2497  (void) $as_decl_name;
2498#endif
2499#endif
2500
2501  ;
2502  return 0;
2503}
2504_ACEOF
2505if ac_fn_c_try_compile "$LINENO"; then :
2506  eval "$3=yes"
2507else
2508  eval "$3=no"
2509fi
2510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511fi
2512eval ac_res=\$$3
2513	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514$as_echo "$ac_res" >&6; }
2515  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516
2517} # ac_fn_c_check_decl
2518
2519# ac_fn_c_try_cpp LINENO
2520# ----------------------
2521# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2522ac_fn_c_try_cpp ()
2523{
2524  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525  if { { ac_try="$ac_cpp conftest.$ac_ext"
2526case "(($ac_try" in
2527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528  *) ac_try_echo=$ac_try;;
2529esac
2530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2531$as_echo "$ac_try_echo"; } >&5
2532  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2533  ac_status=$?
2534  if test -s conftest.err; then
2535    grep -v '^ *+' conftest.err >conftest.er1
2536    cat conftest.er1 >&5
2537    mv -f conftest.er1 conftest.err
2538  fi
2539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540  test $ac_status = 0; } > conftest.i && {
2541	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2542	 test ! -s conftest.err
2543       }; then :
2544  ac_retval=0
2545else
2546  $as_echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549    ac_retval=1
2550fi
2551  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552  as_fn_set_status $ac_retval
2553
2554} # ac_fn_c_try_cpp
2555
2556# ac_fn_c_try_run LINENO
2557# ----------------------
2558# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2559# that executables *can* be run.
2560ac_fn_c_try_run ()
2561{
2562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563  if { { ac_try="$ac_link"
2564case "(($ac_try" in
2565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566  *) ac_try_echo=$ac_try;;
2567esac
2568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2569$as_echo "$ac_try_echo"; } >&5
2570  (eval "$ac_link") 2>&5
2571  ac_status=$?
2572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2574  { { case "(($ac_try" in
2575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576  *) ac_try_echo=$ac_try;;
2577esac
2578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579$as_echo "$ac_try_echo"; } >&5
2580  (eval "$ac_try") 2>&5
2581  ac_status=$?
2582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2583  test $ac_status = 0; }; }; then :
2584  ac_retval=0
2585else
2586  $as_echo "$as_me: program exited with status $ac_status" >&5
2587       $as_echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590       ac_retval=$ac_status
2591fi
2592  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594  as_fn_set_status $ac_retval
2595
2596} # ac_fn_c_try_run
2597
2598# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2599# -------------------------------------------------------
2600# Tests whether HEADER exists and can be compiled using the include files in
2601# INCLUDES, setting the cache variable VAR accordingly.
2602ac_fn_c_check_header_compile ()
2603{
2604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606$as_echo_n "checking for $2... " >&6; }
2607if eval \${$3+:} false; then :
2608  $as_echo_n "(cached) " >&6
2609else
2610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h.  */
2612$4
2613#include <$2>
2614_ACEOF
2615if ac_fn_c_try_compile "$LINENO"; then :
2616  eval "$3=yes"
2617else
2618  eval "$3=no"
2619fi
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621fi
2622eval ac_res=\$$3
2623	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624$as_echo "$ac_res" >&6; }
2625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626
2627} # ac_fn_c_check_header_compile
2628
2629# ac_fn_c_try_link LINENO
2630# -----------------------
2631# Try to link conftest.$ac_ext, and return whether this succeeded.
2632ac_fn_c_try_link ()
2633{
2634  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635  rm -f conftest.$ac_objext conftest$ac_exeext
2636  if { { ac_try="$ac_link"
2637case "(($ac_try" in
2638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639  *) ac_try_echo=$ac_try;;
2640esac
2641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642$as_echo "$ac_try_echo"; } >&5
2643  (eval "$ac_link") 2>conftest.err
2644  ac_status=$?
2645  if test -s conftest.err; then
2646    grep -v '^ *+' conftest.err >conftest.er1
2647    cat conftest.er1 >&5
2648    mv -f conftest.er1 conftest.err
2649  fi
2650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651  test $ac_status = 0; } && {
2652	 test -z "$ac_c_werror_flag" ||
2653	 test ! -s conftest.err
2654       } && test -s conftest$ac_exeext && {
2655	 test "$cross_compiling" = yes ||
2656	 $as_test_x conftest$ac_exeext
2657       }; then :
2658  ac_retval=0
2659else
2660  $as_echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663	ac_retval=1
2664fi
2665  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2666  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2667  # interfere with the next link command; also delete a directory that is
2668  # left behind by Apple's compiler.  We do this before executing the actions.
2669  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671  as_fn_set_status $ac_retval
2672
2673} # ac_fn_c_try_link
2674
2675# ac_fn_c_check_func LINENO FUNC VAR
2676# ----------------------------------
2677# Tests whether FUNC exists, setting the cache variable VAR accordingly
2678ac_fn_c_check_func ()
2679{
2680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2682$as_echo_n "checking for $2... " >&6; }
2683if eval \${$3+:} false; then :
2684  $as_echo_n "(cached) " >&6
2685else
2686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687/* end confdefs.h.  */
2688/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2689   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2690#define $2 innocuous_$2
2691
2692/* System header to define __stub macros and hopefully few prototypes,
2693    which can conflict with char $2 (); below.
2694    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2695    <limits.h> exists even on freestanding compilers.  */
2696
2697#ifdef __STDC__
2698# include <limits.h>
2699#else
2700# include <assert.h>
2701#endif
2702
2703#undef $2
2704
2705/* Override any GCC internal prototype to avoid an error.
2706   Use char because int might match the return type of a GCC
2707   builtin and then its argument prototype would still apply.  */
2708#ifdef __cplusplus
2709extern "C"
2710#endif
2711char $2 ();
2712/* The GNU C library defines this for functions which it implements
2713    to always fail with ENOSYS.  Some functions are actually named
2714    something starting with __ and the normal name is an alias.  */
2715#if defined __stub_$2 || defined __stub___$2
2716choke me
2717#endif
2718
2719int
2720main ()
2721{
2722return $2 ();
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727if ac_fn_c_try_link "$LINENO"; then :
2728  eval "$3=yes"
2729else
2730  eval "$3=no"
2731fi
2732rm -f core conftest.err conftest.$ac_objext \
2733    conftest$ac_exeext conftest.$ac_ext
2734fi
2735eval ac_res=\$$3
2736	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737$as_echo "$ac_res" >&6; }
2738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2739
2740} # ac_fn_c_check_func
2741
2742# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2743# -------------------------------------------------------
2744# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2745# the include files in INCLUDES and setting the cache variable VAR
2746# accordingly.
2747ac_fn_c_check_header_mongrel ()
2748{
2749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750  if eval \${$3+:} false; then :
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2752$as_echo_n "checking for $2... " >&6; }
2753if eval \${$3+:} false; then :
2754  $as_echo_n "(cached) " >&6
2755fi
2756eval ac_res=\$$3
2757	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758$as_echo "$ac_res" >&6; }
2759else
2760  # Is the header compilable?
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2762$as_echo_n "checking $2 usability... " >&6; }
2763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764/* end confdefs.h.  */
2765$4
2766#include <$2>
2767_ACEOF
2768if ac_fn_c_try_compile "$LINENO"; then :
2769  ac_header_compiler=yes
2770else
2771  ac_header_compiler=no
2772fi
2773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2775$as_echo "$ac_header_compiler" >&6; }
2776
2777# Is the header present?
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2779$as_echo_n "checking $2 presence... " >&6; }
2780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781/* end confdefs.h.  */
2782#include <$2>
2783_ACEOF
2784if ac_fn_c_try_cpp "$LINENO"; then :
2785  ac_header_preproc=yes
2786else
2787  ac_header_preproc=no
2788fi
2789rm -f conftest.err conftest.i conftest.$ac_ext
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2791$as_echo "$ac_header_preproc" >&6; }
2792
2793# So?  What about this header?
2794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2795  yes:no: )
2796    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2797$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2798    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2799$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2800    ;;
2801  no:yes:* )
2802    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2803$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2805$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2806    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2807$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2808    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2809$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2812( $as_echo "## ---------------------------------------------------------------------- ##
2813## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2814## ---------------------------------------------------------------------- ##"
2815     ) | sed "s/^/$as_me: WARNING:     /" >&2
2816    ;;
2817esac
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2819$as_echo_n "checking for $2... " >&6; }
2820if eval \${$3+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  eval "$3=\$ac_header_compiler"
2824fi
2825eval ac_res=\$$3
2826	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2827$as_echo "$ac_res" >&6; }
2828fi
2829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2830
2831} # ac_fn_c_check_header_mongrel
2832
2833# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2834# --------------------------------------------
2835# Tries to find the compile-time value of EXPR in a program that includes
2836# INCLUDES, setting VAR accordingly. Returns whether the value could be
2837# computed
2838ac_fn_c_compute_int ()
2839{
2840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2841  if test "$cross_compiling" = yes; then
2842    # Depending upon the size, compute the lo and hi bounds.
2843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h.  */
2845$4
2846int
2847main ()
2848{
2849static int test_array [1 - 2 * !(($2) >= 0)];
2850test_array [0] = 0
2851
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857  ac_lo=0 ac_mid=0
2858  while :; do
2859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860/* end confdefs.h.  */
2861$4
2862int
2863main ()
2864{
2865static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2866test_array [0] = 0
2867
2868  ;
2869  return 0;
2870}
2871_ACEOF
2872if ac_fn_c_try_compile "$LINENO"; then :
2873  ac_hi=$ac_mid; break
2874else
2875  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2876			if test $ac_lo -le $ac_mid; then
2877			  ac_lo= ac_hi=
2878			  break
2879			fi
2880			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2881fi
2882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883  done
2884else
2885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h.  */
2887$4
2888int
2889main ()
2890{
2891static int test_array [1 - 2 * !(($2) < 0)];
2892test_array [0] = 0
2893
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899  ac_hi=-1 ac_mid=-1
2900  while :; do
2901    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902/* end confdefs.h.  */
2903$4
2904int
2905main ()
2906{
2907static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2908test_array [0] = 0
2909
2910  ;
2911  return 0;
2912}
2913_ACEOF
2914if ac_fn_c_try_compile "$LINENO"; then :
2915  ac_lo=$ac_mid; break
2916else
2917  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2918			if test $ac_mid -le $ac_hi; then
2919			  ac_lo= ac_hi=
2920			  break
2921			fi
2922			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2923fi
2924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925  done
2926else
2927  ac_lo= ac_hi=
2928fi
2929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930fi
2931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932# Binary search between lo and hi bounds.
2933while test "x$ac_lo" != "x$ac_hi"; do
2934  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936/* end confdefs.h.  */
2937$4
2938int
2939main ()
2940{
2941static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2942test_array [0] = 0
2943
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948if ac_fn_c_try_compile "$LINENO"; then :
2949  ac_hi=$ac_mid
2950else
2951  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2952fi
2953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954done
2955case $ac_lo in #((
2956?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2957'') ac_retval=1 ;;
2958esac
2959  else
2960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961/* end confdefs.h.  */
2962$4
2963static long int longval () { return $2; }
2964static unsigned long int ulongval () { return $2; }
2965#include <stdio.h>
2966#include <stdlib.h>
2967int
2968main ()
2969{
2970
2971  FILE *f = fopen ("conftest.val", "w");
2972  if (! f)
2973    return 1;
2974  if (($2) < 0)
2975    {
2976      long int i = longval ();
2977      if (i != ($2))
2978	return 1;
2979      fprintf (f, "%ld", i);
2980    }
2981  else
2982    {
2983      unsigned long int i = ulongval ();
2984      if (i != ($2))
2985	return 1;
2986      fprintf (f, "%lu", i);
2987    }
2988  /* Do not output a trailing newline, as this causes \r\n confusion
2989     on some platforms.  */
2990  return ferror (f) || fclose (f) != 0;
2991
2992  ;
2993  return 0;
2994}
2995_ACEOF
2996if ac_fn_c_try_run "$LINENO"; then :
2997  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2998else
2999  ac_retval=1
3000fi
3001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3002  conftest.$ac_objext conftest.beam conftest.$ac_ext
3003rm -f conftest.val
3004
3005  fi
3006  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3007  as_fn_set_status $ac_retval
3008
3009} # ac_fn_c_compute_int
3010
3011# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3012# -------------------------------------------
3013# Tests whether TYPE exists after having included INCLUDES, setting cache
3014# variable VAR accordingly.
3015ac_fn_c_check_type ()
3016{
3017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3019$as_echo_n "checking for $2... " >&6; }
3020if eval \${$3+:} false; then :
3021  $as_echo_n "(cached) " >&6
3022else
3023  eval "$3=no"
3024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025/* end confdefs.h.  */
3026$4
3027int
3028main ()
3029{
3030if (sizeof ($2))
3031	 return 0;
3032  ;
3033  return 0;
3034}
3035_ACEOF
3036if ac_fn_c_try_compile "$LINENO"; then :
3037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h.  */
3039$4
3040int
3041main ()
3042{
3043if (sizeof (($2)))
3044	    return 0;
3045  ;
3046  return 0;
3047}
3048_ACEOF
3049if ac_fn_c_try_compile "$LINENO"; then :
3050
3051else
3052  eval "$3=yes"
3053fi
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055fi
3056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057fi
3058eval ac_res=\$$3
3059	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3060$as_echo "$ac_res" >&6; }
3061  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3062
3063} # ac_fn_c_check_type
3064
3065# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3066# ----------------------------------------------------
3067# Tries to find if the field MEMBER exists in type AGGR, after including
3068# INCLUDES, setting cache variable VAR accordingly.
3069ac_fn_c_check_member ()
3070{
3071  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3073$as_echo_n "checking for $2.$3... " >&6; }
3074if eval \${$4+:} false; then :
3075  $as_echo_n "(cached) " >&6
3076else
3077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078/* end confdefs.h.  */
3079$5
3080int
3081main ()
3082{
3083static $2 ac_aggr;
3084if (ac_aggr.$3)
3085return 0;
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090if ac_fn_c_try_compile "$LINENO"; then :
3091  eval "$4=yes"
3092else
3093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094/* end confdefs.h.  */
3095$5
3096int
3097main ()
3098{
3099static $2 ac_aggr;
3100if (sizeof ac_aggr.$3)
3101return 0;
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106if ac_fn_c_try_compile "$LINENO"; then :
3107  eval "$4=yes"
3108else
3109  eval "$4=no"
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112fi
3113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114fi
3115eval ac_res=\$$4
3116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3117$as_echo "$ac_res" >&6; }
3118  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3119
3120} # ac_fn_c_check_member
3121cat >config.log <<_ACEOF
3122This file contains any messages produced by compilers while
3123running configure, to aid debugging if configure makes a mistake.
3124
3125It was created by xorg-server $as_me 1.9.2, which was
3126generated by GNU Autoconf 2.68.  Invocation command line was
3127
3128  $ $0 $@
3129
3130_ACEOF
3131exec 5>>config.log
3132{
3133cat <<_ASUNAME
3134## --------- ##
3135## Platform. ##
3136## --------- ##
3137
3138hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3139uname -m = `(uname -m) 2>/dev/null || echo unknown`
3140uname -r = `(uname -r) 2>/dev/null || echo unknown`
3141uname -s = `(uname -s) 2>/dev/null || echo unknown`
3142uname -v = `(uname -v) 2>/dev/null || echo unknown`
3143
3144/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3145/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3146
3147/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3148/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3149/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3150/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3151/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3152/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3153/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3154
3155_ASUNAME
3156
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    $as_echo "PATH: $as_dir"
3163  done
3164IFS=$as_save_IFS
3165
3166} >&5
3167
3168cat >&5 <<_ACEOF
3169
3170
3171## ----------- ##
3172## Core tests. ##
3173## ----------- ##
3174
3175_ACEOF
3176
3177
3178# Keep a trace of the command line.
3179# Strip out --no-create and --no-recursion so they do not pile up.
3180# Strip out --silent because we don't want to record it for future runs.
3181# Also quote any args containing shell meta-characters.
3182# Make two passes to allow for proper duplicate-argument suppression.
3183ac_configure_args=
3184ac_configure_args0=
3185ac_configure_args1=
3186ac_must_keep_next=false
3187for ac_pass in 1 2
3188do
3189  for ac_arg
3190  do
3191    case $ac_arg in
3192    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3193    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3194    | -silent | --silent | --silen | --sile | --sil)
3195      continue ;;
3196    *\'*)
3197      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3198    esac
3199    case $ac_pass in
3200    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3201    2)
3202      as_fn_append ac_configure_args1 " '$ac_arg'"
3203      if test $ac_must_keep_next = true; then
3204	ac_must_keep_next=false # Got value, back to normal.
3205      else
3206	case $ac_arg in
3207	  *=* | --config-cache | -C | -disable-* | --disable-* \
3208	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3209	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3210	  | -with-* | --with-* | -without-* | --without-* | --x)
3211	    case "$ac_configure_args0 " in
3212	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3213	    esac
3214	    ;;
3215	  -* ) ac_must_keep_next=true ;;
3216	esac
3217      fi
3218      as_fn_append ac_configure_args " '$ac_arg'"
3219      ;;
3220    esac
3221  done
3222done
3223{ ac_configure_args0=; unset ac_configure_args0;}
3224{ ac_configure_args1=; unset ac_configure_args1;}
3225
3226# When interrupted or exit'd, cleanup temporary files, and complete
3227# config.log.  We remove comments because anyway the quotes in there
3228# would cause problems or look ugly.
3229# WARNING: Use '\'' to represent an apostrophe within the trap.
3230# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3231trap 'exit_status=$?
3232  # Save into config.log some information that might help in debugging.
3233  {
3234    echo
3235
3236    $as_echo "## ---------------- ##
3237## Cache variables. ##
3238## ---------------- ##"
3239    echo
3240    # The following way of writing the cache mishandles newlines in values,
3241(
3242  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3243    eval ac_val=\$$ac_var
3244    case $ac_val in #(
3245    *${as_nl}*)
3246      case $ac_var in #(
3247      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3248$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3249      esac
3250      case $ac_var in #(
3251      _ | IFS | as_nl) ;; #(
3252      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3253      *) { eval $ac_var=; unset $ac_var;} ;;
3254      esac ;;
3255    esac
3256  done
3257  (set) 2>&1 |
3258    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3259    *${as_nl}ac_space=\ *)
3260      sed -n \
3261	"s/'\''/'\''\\\\'\'''\''/g;
3262	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3263      ;; #(
3264    *)
3265      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3266      ;;
3267    esac |
3268    sort
3269)
3270    echo
3271
3272    $as_echo "## ----------------- ##
3273## Output variables. ##
3274## ----------------- ##"
3275    echo
3276    for ac_var in $ac_subst_vars
3277    do
3278      eval ac_val=\$$ac_var
3279      case $ac_val in
3280      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3281      esac
3282      $as_echo "$ac_var='\''$ac_val'\''"
3283    done | sort
3284    echo
3285
3286    if test -n "$ac_subst_files"; then
3287      $as_echo "## ------------------- ##
3288## File substitutions. ##
3289## ------------------- ##"
3290      echo
3291      for ac_var in $ac_subst_files
3292      do
3293	eval ac_val=\$$ac_var
3294	case $ac_val in
3295	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3296	esac
3297	$as_echo "$ac_var='\''$ac_val'\''"
3298      done | sort
3299      echo
3300    fi
3301
3302    if test -s confdefs.h; then
3303      $as_echo "## ----------- ##
3304## confdefs.h. ##
3305## ----------- ##"
3306      echo
3307      cat confdefs.h
3308      echo
3309    fi
3310    test "$ac_signal" != 0 &&
3311      $as_echo "$as_me: caught signal $ac_signal"
3312    $as_echo "$as_me: exit $exit_status"
3313  } >&5
3314  rm -f core *.core core.conftest.* &&
3315    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3316    exit $exit_status
3317' 0
3318for ac_signal in 1 2 13 15; do
3319  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3320done
3321ac_signal=0
3322
3323# confdefs.h avoids OS command line length limits that DEFS can exceed.
3324rm -f -r conftest* confdefs.h
3325
3326$as_echo "/* confdefs.h */" > confdefs.h
3327
3328# Predefined preprocessor variables.
3329
3330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_NAME "$PACKAGE_NAME"
3332_ACEOF
3333
3334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3336_ACEOF
3337
3338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_VERSION "$PACKAGE_VERSION"
3340_ACEOF
3341
3342cat >>confdefs.h <<_ACEOF
3343#define PACKAGE_STRING "$PACKAGE_STRING"
3344_ACEOF
3345
3346cat >>confdefs.h <<_ACEOF
3347#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3348_ACEOF
3349
3350cat >>confdefs.h <<_ACEOF
3351#define PACKAGE_URL "$PACKAGE_URL"
3352_ACEOF
3353
3354
3355# Let the site file select an alternate cache file if it wants to.
3356# Prefer an explicitly selected file to automatically selected ones.
3357ac_site_file1=NONE
3358ac_site_file2=NONE
3359if test -n "$CONFIG_SITE"; then
3360  # We do not want a PATH search for config.site.
3361  case $CONFIG_SITE in #((
3362    -*)  ac_site_file1=./$CONFIG_SITE;;
3363    */*) ac_site_file1=$CONFIG_SITE;;
3364    *)   ac_site_file1=./$CONFIG_SITE;;
3365  esac
3366elif test "x$prefix" != xNONE; then
3367  ac_site_file1=$prefix/share/config.site
3368  ac_site_file2=$prefix/etc/config.site
3369else
3370  ac_site_file1=$ac_default_prefix/share/config.site
3371  ac_site_file2=$ac_default_prefix/etc/config.site
3372fi
3373for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3374do
3375  test "x$ac_site_file" = xNONE && continue
3376  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3377    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3378$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3379    sed 's/^/| /' "$ac_site_file" >&5
3380    . "$ac_site_file" \
3381      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383as_fn_error $? "failed to load site script $ac_site_file
3384See \`config.log' for more details" "$LINENO" 5; }
3385  fi
3386done
3387
3388if test -r "$cache_file"; then
3389  # Some versions of bash will fail to source /dev/null (special files
3390  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3391  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3392    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3393$as_echo "$as_me: loading cache $cache_file" >&6;}
3394    case $cache_file in
3395      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3396      *)                      . "./$cache_file";;
3397    esac
3398  fi
3399else
3400  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3401$as_echo "$as_me: creating cache $cache_file" >&6;}
3402  >$cache_file
3403fi
3404
3405# Check that the precious variables saved in the cache have kept the same
3406# value.
3407ac_cache_corrupted=false
3408for ac_var in $ac_precious_vars; do
3409  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3410  eval ac_new_set=\$ac_env_${ac_var}_set
3411  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3412  eval ac_new_val=\$ac_env_${ac_var}_value
3413  case $ac_old_set,$ac_new_set in
3414    set,)
3415      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3416$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3417      ac_cache_corrupted=: ;;
3418    ,set)
3419      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3420$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3421      ac_cache_corrupted=: ;;
3422    ,);;
3423    *)
3424      if test "x$ac_old_val" != "x$ac_new_val"; then
3425	# differences in whitespace do not lead to failure.
3426	ac_old_val_w=`echo x $ac_old_val`
3427	ac_new_val_w=`echo x $ac_new_val`
3428	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3429	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3430$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3431	  ac_cache_corrupted=:
3432	else
3433	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3434$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3435	  eval $ac_var=\$ac_old_val
3436	fi
3437	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3438$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3439	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3440$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3441      fi;;
3442  esac
3443  # Pass precious variables to config.status.
3444  if test "$ac_new_set" = set; then
3445    case $ac_new_val in
3446    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3447    *) ac_arg=$ac_var=$ac_new_val ;;
3448    esac
3449    case " $ac_configure_args " in
3450      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3451      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3452    esac
3453  fi
3454done
3455if $ac_cache_corrupted; then
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3459$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3460  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3461fi
3462## -------------------- ##
3463## Main body of script. ##
3464## -------------------- ##
3465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471
3472
3473RELEASE_DATE="2010-10-30"
3474
3475am__api_version='1.11'
3476
3477ac_aux_dir=
3478for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3479  if test -f "$ac_dir/install-sh"; then
3480    ac_aux_dir=$ac_dir
3481    ac_install_sh="$ac_aux_dir/install-sh -c"
3482    break
3483  elif test -f "$ac_dir/install.sh"; then
3484    ac_aux_dir=$ac_dir
3485    ac_install_sh="$ac_aux_dir/install.sh -c"
3486    break
3487  elif test -f "$ac_dir/shtool"; then
3488    ac_aux_dir=$ac_dir
3489    ac_install_sh="$ac_aux_dir/shtool install -c"
3490    break
3491  fi
3492done
3493if test -z "$ac_aux_dir"; then
3494  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3495fi
3496
3497# These three variables are undocumented and unsupported,
3498# and are intended to be withdrawn in a future Autoconf release.
3499# They can cause serious problems if a builder's source tree is in a directory
3500# whose full name contains unusual characters.
3501ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3502ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3503ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3504
3505
3506# Find a good install program.  We prefer a C program (faster),
3507# so one script is as good as another.  But avoid the broken or
3508# incompatible versions:
3509# SysV /etc/install, /usr/sbin/install
3510# SunOS /usr/etc/install
3511# IRIX /sbin/install
3512# AIX /bin/install
3513# AmigaOS /C/install, which installs bootblocks on floppy discs
3514# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3515# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3516# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3517# OS/2's system install, which has a completely different semantic
3518# ./install, which can be erroneously created by make from ./install.sh.
3519# Reject install programs that cannot install multiple files.
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3521$as_echo_n "checking for a BSD-compatible install... " >&6; }
3522if test -z "$INSTALL"; then
3523if ${ac_cv_path_install+:} false; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529  IFS=$as_save_IFS
3530  test -z "$as_dir" && as_dir=.
3531    # Account for people who put trailing slashes in PATH elements.
3532case $as_dir/ in #((
3533  ./ | .// | /[cC]/* | \
3534  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3535  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3536  /usr/ucb/* ) ;;
3537  *)
3538    # OSF1 and SCO ODT 3.0 have their own names for install.
3539    # Don't use installbsd from OSF since it installs stuff as root
3540    # by default.
3541    for ac_prog in ginstall scoinst install; do
3542      for ac_exec_ext in '' $ac_executable_extensions; do
3543	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3544	  if test $ac_prog = install &&
3545	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3546	    # AIX install.  It has an incompatible calling convention.
3547	    :
3548	  elif test $ac_prog = install &&
3549	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550	    # program-specific install script used by HP pwplus--don't use.
3551	    :
3552	  else
3553	    rm -rf conftest.one conftest.two conftest.dir
3554	    echo one > conftest.one
3555	    echo two > conftest.two
3556	    mkdir conftest.dir
3557	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3558	      test -s conftest.one && test -s conftest.two &&
3559	      test -s conftest.dir/conftest.one &&
3560	      test -s conftest.dir/conftest.two
3561	    then
3562	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3563	      break 3
3564	    fi
3565	  fi
3566	fi
3567      done
3568    done
3569    ;;
3570esac
3571
3572  done
3573IFS=$as_save_IFS
3574
3575rm -rf conftest.one conftest.two conftest.dir
3576
3577fi
3578  if test "${ac_cv_path_install+set}" = set; then
3579    INSTALL=$ac_cv_path_install
3580  else
3581    # As a last resort, use the slow shell script.  Don't cache a
3582    # value for INSTALL within a source directory, because that will
3583    # break other packages using the cache if that directory is
3584    # removed, or if the value is a relative name.
3585    INSTALL=$ac_install_sh
3586  fi
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3589$as_echo "$INSTALL" >&6; }
3590
3591# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3592# It thinks the first close brace ends the variable substitution.
3593test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3594
3595test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3596
3597test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3598
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3600$as_echo_n "checking whether build environment is sane... " >&6; }
3601# Just in case
3602sleep 1
3603echo timestamp > conftest.file
3604# Reject unsafe characters in $srcdir or the absolute working directory
3605# name.  Accept space and tab only in the latter.
3606am_lf='
3607'
3608case `pwd` in
3609  *[\\\"\#\$\&\'\`$am_lf]*)
3610    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3611esac
3612case $srcdir in
3613  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3614    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3615esac
3616
3617# Do `set' in a subshell so we don't clobber the current shell's
3618# arguments.  Must try -L first in case configure is actually a
3619# symlink; some systems play weird games with the mod time of symlinks
3620# (eg FreeBSD returns the mod time of the symlink's containing
3621# directory).
3622if (
3623   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3624   if test "$*" = "X"; then
3625      # -L didn't work.
3626      set X `ls -t "$srcdir/configure" conftest.file`
3627   fi
3628   rm -f conftest.file
3629   if test "$*" != "X $srcdir/configure conftest.file" \
3630      && test "$*" != "X conftest.file $srcdir/configure"; then
3631
3632      # If neither matched, then we have a broken ls.  This can happen
3633      # if, for instance, CONFIG_SHELL is bash and it inherits a
3634      # broken ls alias from the environment.  This has actually
3635      # happened.  Such a system could not be considered "sane".
3636      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3637alias in your environment" "$LINENO" 5
3638   fi
3639
3640   test "$2" = conftest.file
3641   )
3642then
3643   # Ok.
3644   :
3645else
3646   as_fn_error $? "newly created file is older than distributed files!
3647Check your system clock" "$LINENO" 5
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3650$as_echo "yes" >&6; }
3651test "$program_prefix" != NONE &&
3652  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3653# Use a double $ so make ignores it.
3654test "$program_suffix" != NONE &&
3655  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3656# Double any \ or $.
3657# By default was `s,x,x', remove it if useless.
3658ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3659program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3660
3661# expand $ac_aux_dir to an absolute path
3662am_aux_dir=`cd $ac_aux_dir && pwd`
3663
3664if test x"${MISSING+set}" != xset; then
3665  case $am_aux_dir in
3666  *\ * | *\	*)
3667    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3668  *)
3669    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3670  esac
3671fi
3672# Use eval to expand $SHELL
3673if eval "$MISSING --run true"; then
3674  am_missing_run="$MISSING --run "
3675else
3676  am_missing_run=
3677  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3678$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3679fi
3680
3681if test x"${install_sh}" != xset; then
3682  case $am_aux_dir in
3683  *\ * | *\	*)
3684    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3685  *)
3686    install_sh="\${SHELL} $am_aux_dir/install-sh"
3687  esac
3688fi
3689
3690# Installed binaries are usually stripped using `strip' when the user
3691# run `make install-strip'.  However `strip' might not be the right
3692# tool to use in cross-compilation environments, therefore Automake
3693# will honor the `STRIP' environment variable to overrule this program.
3694if test "$cross_compiling" != no; then
3695  if test -n "$ac_tool_prefix"; then
3696  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3697set dummy ${ac_tool_prefix}strip; ac_word=$2
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699$as_echo_n "checking for $ac_word... " >&6; }
3700if ${ac_cv_prog_STRIP+:} false; then :
3701  $as_echo_n "(cached) " >&6
3702else
3703  if test -n "$STRIP"; then
3704  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3705else
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709  IFS=$as_save_IFS
3710  test -z "$as_dir" && as_dir=.
3711    for ac_exec_ext in '' $ac_executable_extensions; do
3712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715    break 2
3716  fi
3717done
3718  done
3719IFS=$as_save_IFS
3720
3721fi
3722fi
3723STRIP=$ac_cv_prog_STRIP
3724if test -n "$STRIP"; then
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3726$as_echo "$STRIP" >&6; }
3727else
3728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729$as_echo "no" >&6; }
3730fi
3731
3732
3733fi
3734if test -z "$ac_cv_prog_STRIP"; then
3735  ac_ct_STRIP=$STRIP
3736  # Extract the first word of "strip", so it can be a program name with args.
3737set dummy strip; ac_word=$2
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739$as_echo_n "checking for $ac_word... " >&6; }
3740if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3741  $as_echo_n "(cached) " >&6
3742else
3743  if test -n "$ac_ct_STRIP"; then
3744  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3745else
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749  IFS=$as_save_IFS
3750  test -z "$as_dir" && as_dir=.
3751    for ac_exec_ext in '' $ac_executable_extensions; do
3752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753    ac_cv_prog_ac_ct_STRIP="strip"
3754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755    break 2
3756  fi
3757done
3758  done
3759IFS=$as_save_IFS
3760
3761fi
3762fi
3763ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3764if test -n "$ac_ct_STRIP"; then
3765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3766$as_echo "$ac_ct_STRIP" >&6; }
3767else
3768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769$as_echo "no" >&6; }
3770fi
3771
3772  if test "x$ac_ct_STRIP" = x; then
3773    STRIP=":"
3774  else
3775    case $cross_compiling:$ac_tool_warned in
3776yes:)
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3779ac_tool_warned=yes ;;
3780esac
3781    STRIP=$ac_ct_STRIP
3782  fi
3783else
3784  STRIP="$ac_cv_prog_STRIP"
3785fi
3786
3787fi
3788INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3789
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3791$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3792if test -z "$MKDIR_P"; then
3793  if ${ac_cv_path_mkdir+:} false; then :
3794  $as_echo_n "(cached) " >&6
3795else
3796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3798do
3799  IFS=$as_save_IFS
3800  test -z "$as_dir" && as_dir=.
3801    for ac_prog in mkdir gmkdir; do
3802	 for ac_exec_ext in '' $ac_executable_extensions; do
3803	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3804	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3805	     'mkdir (GNU coreutils) '* | \
3806	     'mkdir (coreutils) '* | \
3807	     'mkdir (fileutils) '4.1*)
3808	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3809	       break 3;;
3810	   esac
3811	 done
3812       done
3813  done
3814IFS=$as_save_IFS
3815
3816fi
3817
3818  test -d ./--version && rmdir ./--version
3819  if test "${ac_cv_path_mkdir+set}" = set; then
3820    MKDIR_P="$ac_cv_path_mkdir -p"
3821  else
3822    # As a last resort, use the slow shell script.  Don't cache a
3823    # value for MKDIR_P within a source directory, because that will
3824    # break other packages using the cache if that directory is
3825    # removed, or if the value is a relative name.
3826    MKDIR_P="$ac_install_sh -d"
3827  fi
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3830$as_echo "$MKDIR_P" >&6; }
3831
3832mkdir_p="$MKDIR_P"
3833case $mkdir_p in
3834  [\\/$]* | ?:[\\/]*) ;;
3835  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3836esac
3837
3838for ac_prog in gawk mawk nawk awk
3839do
3840  # Extract the first word of "$ac_prog", so it can be a program name with args.
3841set dummy $ac_prog; ac_word=$2
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843$as_echo_n "checking for $ac_word... " >&6; }
3844if ${ac_cv_prog_AWK+:} false; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  if test -n "$AWK"; then
3848  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3849else
3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH
3852do
3853  IFS=$as_save_IFS
3854  test -z "$as_dir" && as_dir=.
3855    for ac_exec_ext in '' $ac_executable_extensions; do
3856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857    ac_cv_prog_AWK="$ac_prog"
3858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859    break 2
3860  fi
3861done
3862  done
3863IFS=$as_save_IFS
3864
3865fi
3866fi
3867AWK=$ac_cv_prog_AWK
3868if test -n "$AWK"; then
3869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3870$as_echo "$AWK" >&6; }
3871else
3872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873$as_echo "no" >&6; }
3874fi
3875
3876
3877  test -n "$AWK" && break
3878done
3879
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3881$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3882set x ${MAKE-make}
3883ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3884if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887  cat >conftest.make <<\_ACEOF
3888SHELL = /bin/sh
3889all:
3890	@echo '@@@%%%=$(MAKE)=@@@%%%'
3891_ACEOF
3892# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3893case `${MAKE-make} -f conftest.make 2>/dev/null` in
3894  *@@@%%%=?*=@@@%%%*)
3895    eval ac_cv_prog_make_${ac_make}_set=yes;;
3896  *)
3897    eval ac_cv_prog_make_${ac_make}_set=no;;
3898esac
3899rm -f conftest.make
3900fi
3901if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3903$as_echo "yes" >&6; }
3904  SET_MAKE=
3905else
3906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907$as_echo "no" >&6; }
3908  SET_MAKE="MAKE=${MAKE-make}"
3909fi
3910
3911rm -rf .tst 2>/dev/null
3912mkdir .tst 2>/dev/null
3913if test -d .tst; then
3914  am__leading_dot=.
3915else
3916  am__leading_dot=_
3917fi
3918rmdir .tst 2>/dev/null
3919
3920if test "`cd $srcdir && pwd`" != "`pwd`"; then
3921  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3922  # is not polluted with repeated "-I."
3923  am__isrc=' -I$(srcdir)'
3924  # test to see if srcdir already configured
3925  if test -f $srcdir/config.status; then
3926    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3927  fi
3928fi
3929
3930# test whether we have cygpath
3931if test -z "$CYGPATH_W"; then
3932  if (cygpath --version) >/dev/null 2>/dev/null; then
3933    CYGPATH_W='cygpath -w'
3934  else
3935    CYGPATH_W=echo
3936  fi
3937fi
3938
3939
3940# Define the identity of the package.
3941 PACKAGE='xorg-server'
3942 VERSION='1.9.2'
3943
3944
3945cat >>confdefs.h <<_ACEOF
3946#define PACKAGE "$PACKAGE"
3947_ACEOF
3948
3949
3950cat >>confdefs.h <<_ACEOF
3951#define VERSION "$VERSION"
3952_ACEOF
3953
3954# Some tools Automake needs.
3955
3956ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3957
3958
3959AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3960
3961
3962AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3963
3964
3965AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3966
3967
3968MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3969
3970# We need awk for the "check" target.  The system "awk" is bad on
3971# some platforms.
3972# Always define AMTAR for backward compatibility.
3973
3974AMTAR=${AMTAR-"${am_missing_run}tar"}
3975
3976am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3977
3978
3979
3980
3981
3982
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3984$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3985    # Check whether --enable-maintainer-mode was given.
3986if test "${enable_maintainer_mode+set}" = set; then :
3987  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3988else
3989  USE_MAINTAINER_MODE=no
3990fi
3991
3992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3993$as_echo "$USE_MAINTAINER_MODE" >&6; }
3994   if test $USE_MAINTAINER_MODE = yes; then
3995  MAINTAINER_MODE_TRUE=
3996  MAINTAINER_MODE_FALSE='#'
3997else
3998  MAINTAINER_MODE_TRUE='#'
3999  MAINTAINER_MODE_FALSE=
4000fi
4001
4002  MAINT=$MAINTAINER_MODE_TRUE
4003
4004
4005
4006# Require xorg-macros minimum of 1.10 for XORG_CHECK_SGML_DOCTOOLS
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018DEPDIR="${am__leading_dot}deps"
4019
4020ac_config_commands="$ac_config_commands depfiles"
4021
4022
4023am_make=${MAKE-make}
4024cat > confinc << 'END'
4025am__doit:
4026	@echo this is the am__doit target
4027.PHONY: am__doit
4028END
4029# If we don't find an include directive, just comment out the code.
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4031$as_echo_n "checking for style of include used by $am_make... " >&6; }
4032am__include="#"
4033am__quote=
4034_am_result=none
4035# First try GNU make style include.
4036echo "include confinc" > confmf
4037# Ignore all kinds of additional output from `make'.
4038case `$am_make -s -f confmf 2> /dev/null` in #(
4039*the\ am__doit\ target*)
4040  am__include=include
4041  am__quote=
4042  _am_result=GNU
4043  ;;
4044esac
4045# Now try BSD make style include.
4046if test "$am__include" = "#"; then
4047   echo '.include "confinc"' > confmf
4048   case `$am_make -s -f confmf 2> /dev/null` in #(
4049   *the\ am__doit\ target*)
4050     am__include=.include
4051     am__quote="\""
4052     _am_result=BSD
4053     ;;
4054   esac
4055fi
4056
4057
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4059$as_echo "$_am_result" >&6; }
4060rm -f confinc confmf
4061
4062# Check whether --enable-dependency-tracking was given.
4063if test "${enable_dependency_tracking+set}" = set; then :
4064  enableval=$enable_dependency_tracking;
4065fi
4066
4067if test "x$enable_dependency_tracking" != xno; then
4068  am_depcomp="$ac_aux_dir/depcomp"
4069  AMDEPBACKSLASH='\'
4070fi
4071 if test "x$enable_dependency_tracking" != xno; then
4072  AMDEP_TRUE=
4073  AMDEP_FALSE='#'
4074else
4075  AMDEP_TRUE='#'
4076  AMDEP_FALSE=
4077fi
4078
4079
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085if test -n "$ac_tool_prefix"; then
4086  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4087set dummy ${ac_tool_prefix}gcc; ac_word=$2
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089$as_echo_n "checking for $ac_word... " >&6; }
4090if ${ac_cv_prog_CC+:} false; then :
4091  $as_echo_n "(cached) " >&6
4092else
4093  if test -n "$CC"; then
4094  ac_cv_prog_CC="$CC" # Let the user override the test.
4095else
4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101    for ac_exec_ext in '' $ac_executable_extensions; do
4102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4103    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105    break 2
4106  fi
4107done
4108  done
4109IFS=$as_save_IFS
4110
4111fi
4112fi
4113CC=$ac_cv_prog_CC
4114if test -n "$CC"; then
4115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4116$as_echo "$CC" >&6; }
4117else
4118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119$as_echo "no" >&6; }
4120fi
4121
4122
4123fi
4124if test -z "$ac_cv_prog_CC"; then
4125  ac_ct_CC=$CC
4126  # Extract the first word of "gcc", so it can be a program name with args.
4127set dummy gcc; ac_word=$2
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129$as_echo_n "checking for $ac_word... " >&6; }
4130if ${ac_cv_prog_ac_ct_CC+:} false; then :
4131  $as_echo_n "(cached) " >&6
4132else
4133  if test -n "$ac_ct_CC"; then
4134  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4135else
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139  IFS=$as_save_IFS
4140  test -z "$as_dir" && as_dir=.
4141    for ac_exec_ext in '' $ac_executable_extensions; do
4142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143    ac_cv_prog_ac_ct_CC="gcc"
4144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145    break 2
4146  fi
4147done
4148  done
4149IFS=$as_save_IFS
4150
4151fi
4152fi
4153ac_ct_CC=$ac_cv_prog_ac_ct_CC
4154if test -n "$ac_ct_CC"; then
4155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4156$as_echo "$ac_ct_CC" >&6; }
4157else
4158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159$as_echo "no" >&6; }
4160fi
4161
4162  if test "x$ac_ct_CC" = x; then
4163    CC=""
4164  else
4165    case $cross_compiling:$ac_tool_warned in
4166yes:)
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4169ac_tool_warned=yes ;;
4170esac
4171    CC=$ac_ct_CC
4172  fi
4173else
4174  CC="$ac_cv_prog_CC"
4175fi
4176
4177if test -z "$CC"; then
4178          if test -n "$ac_tool_prefix"; then
4179    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4180set dummy ${ac_tool_prefix}cc; ac_word=$2
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
4183if ${ac_cv_prog_CC+:} false; then :
4184  $as_echo_n "(cached) " >&6
4185else
4186  if test -n "$CC"; then
4187  ac_cv_prog_CC="$CC" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194    for ac_exec_ext in '' $ac_executable_extensions; do
4195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196    ac_cv_prog_CC="${ac_tool_prefix}cc"
4197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198    break 2
4199  fi
4200done
4201  done
4202IFS=$as_save_IFS
4203
4204fi
4205fi
4206CC=$ac_cv_prog_CC
4207if test -n "$CC"; then
4208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209$as_echo "$CC" >&6; }
4210else
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
4213fi
4214
4215
4216  fi
4217fi
4218if test -z "$CC"; then
4219  # Extract the first word of "cc", so it can be a program name with args.
4220set dummy cc; ac_word=$2
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222$as_echo_n "checking for $ac_word... " >&6; }
4223if ${ac_cv_prog_CC+:} false; then :
4224  $as_echo_n "(cached) " >&6
4225else
4226  if test -n "$CC"; then
4227  ac_cv_prog_CC="$CC" # Let the user override the test.
4228else
4229  ac_prog_rejected=no
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235    for ac_exec_ext in '' $ac_executable_extensions; do
4236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4238       ac_prog_rejected=yes
4239       continue
4240     fi
4241    ac_cv_prog_CC="cc"
4242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249if test $ac_prog_rejected = yes; then
4250  # We found a bogon in the path, so make sure we never use it.
4251  set dummy $ac_cv_prog_CC
4252  shift
4253  if test $# != 0; then
4254    # We chose a different compiler from the bogus one.
4255    # However, it has the same basename, so the bogon will be chosen
4256    # first if we set CC to just the basename; use the full file name.
4257    shift
4258    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4259  fi
4260fi
4261fi
4262fi
4263CC=$ac_cv_prog_CC
4264if test -n "$CC"; then
4265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4266$as_echo "$CC" >&6; }
4267else
4268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269$as_echo "no" >&6; }
4270fi
4271
4272
4273fi
4274if test -z "$CC"; then
4275  if test -n "$ac_tool_prefix"; then
4276  for ac_prog in cl.exe
4277  do
4278    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281$as_echo_n "checking for $ac_word... " >&6; }
4282if ${ac_cv_prog_CC+:} false; then :
4283  $as_echo_n "(cached) " >&6
4284else
4285  if test -n "$CC"; then
4286  ac_cv_prog_CC="$CC" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291  IFS=$as_save_IFS
4292  test -z "$as_dir" && as_dir=.
4293    for ac_exec_ext in '' $ac_executable_extensions; do
4294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297    break 2
4298  fi
4299done
4300  done
4301IFS=$as_save_IFS
4302
4303fi
4304fi
4305CC=$ac_cv_prog_CC
4306if test -n "$CC"; then
4307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308$as_echo "$CC" >&6; }
4309else
4310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311$as_echo "no" >&6; }
4312fi
4313
4314
4315    test -n "$CC" && break
4316  done
4317fi
4318if test -z "$CC"; then
4319  ac_ct_CC=$CC
4320  for ac_prog in cl.exe
4321do
4322  # Extract the first word of "$ac_prog", so it can be a program name with args.
4323set dummy $ac_prog; ac_word=$2
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325$as_echo_n "checking for $ac_word... " >&6; }
4326if ${ac_cv_prog_ac_ct_CC+:} false; then :
4327  $as_echo_n "(cached) " >&6
4328else
4329  if test -n "$ac_ct_CC"; then
4330  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4331else
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337    for ac_exec_ext in '' $ac_executable_extensions; do
4338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339    ac_cv_prog_ac_ct_CC="$ac_prog"
4340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341    break 2
4342  fi
4343done
4344  done
4345IFS=$as_save_IFS
4346
4347fi
4348fi
4349ac_ct_CC=$ac_cv_prog_ac_ct_CC
4350if test -n "$ac_ct_CC"; then
4351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4352$as_echo "$ac_ct_CC" >&6; }
4353else
4354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355$as_echo "no" >&6; }
4356fi
4357
4358
4359  test -n "$ac_ct_CC" && break
4360done
4361
4362  if test "x$ac_ct_CC" = x; then
4363    CC=""
4364  else
4365    case $cross_compiling:$ac_tool_warned in
4366yes:)
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4369ac_tool_warned=yes ;;
4370esac
4371    CC=$ac_ct_CC
4372  fi
4373fi
4374
4375fi
4376
4377
4378test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380as_fn_error $? "no acceptable C compiler found in \$PATH
4381See \`config.log' for more details" "$LINENO" 5; }
4382
4383# Provide some information about the compiler.
4384$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4385set X $ac_compile
4386ac_compiler=$2
4387for ac_option in --version -v -V -qversion; do
4388  { { ac_try="$ac_compiler $ac_option >&5"
4389case "(($ac_try" in
4390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391  *) ac_try_echo=$ac_try;;
4392esac
4393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4394$as_echo "$ac_try_echo"; } >&5
4395  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4396  ac_status=$?
4397  if test -s conftest.err; then
4398    sed '10a\
4399... rest of stderr output deleted ...
4400         10q' conftest.err >conftest.er1
4401    cat conftest.er1 >&5
4402  fi
4403  rm -f conftest.er1 conftest.err
4404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405  test $ac_status = 0; }
4406done
4407
4408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h.  */
4410
4411int
4412main ()
4413{
4414
4415  ;
4416  return 0;
4417}
4418_ACEOF
4419ac_clean_files_save=$ac_clean_files
4420ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4421# Try to create an executable without -o first, disregard a.out.
4422# It will help us diagnose broken compilers, and finding out an intuition
4423# of exeext.
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4425$as_echo_n "checking whether the C compiler works... " >&6; }
4426ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4427
4428# The possible output files:
4429ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4430
4431ac_rmfiles=
4432for ac_file in $ac_files
4433do
4434  case $ac_file in
4435    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4436    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4437  esac
4438done
4439rm -f $ac_rmfiles
4440
4441if { { ac_try="$ac_link_default"
4442case "(($ac_try" in
4443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444  *) ac_try_echo=$ac_try;;
4445esac
4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447$as_echo "$ac_try_echo"; } >&5
4448  (eval "$ac_link_default") 2>&5
4449  ac_status=$?
4450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451  test $ac_status = 0; }; then :
4452  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4453# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4454# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4455# so that the user can short-circuit this test for compilers unknown to
4456# Autoconf.
4457for ac_file in $ac_files ''
4458do
4459  test -f "$ac_file" || continue
4460  case $ac_file in
4461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4462	;;
4463    [ab].out )
4464	# We found the default executable, but exeext='' is most
4465	# certainly right.
4466	break;;
4467    *.* )
4468	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4469	then :; else
4470	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4471	fi
4472	# We set ac_cv_exeext here because the later test for it is not
4473	# safe: cross compilers may not add the suffix if given an `-o'
4474	# argument, so we may need to know it at that point already.
4475	# Even if this section looks crufty: it has the advantage of
4476	# actually working.
4477	break;;
4478    * )
4479	break;;
4480  esac
4481done
4482test "$ac_cv_exeext" = no && ac_cv_exeext=
4483
4484else
4485  ac_file=''
4486fi
4487if test -z "$ac_file"; then :
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490$as_echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
4493{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495as_fn_error 77 "C compiler cannot create executables
4496See \`config.log' for more details" "$LINENO" 5; }
4497else
4498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4499$as_echo "yes" >&6; }
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4502$as_echo_n "checking for C compiler default output file name... " >&6; }
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4504$as_echo "$ac_file" >&6; }
4505ac_exeext=$ac_cv_exeext
4506
4507rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4508ac_clean_files=$ac_clean_files_save
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4510$as_echo_n "checking for suffix of executables... " >&6; }
4511if { { ac_try="$ac_link"
4512case "(($ac_try" in
4513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514  *) ac_try_echo=$ac_try;;
4515esac
4516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517$as_echo "$ac_try_echo"; } >&5
4518  (eval "$ac_link") 2>&5
4519  ac_status=$?
4520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521  test $ac_status = 0; }; then :
4522  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4523# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4524# work properly (i.e., refer to `conftest.exe'), while it won't with
4525# `rm'.
4526for ac_file in conftest.exe conftest conftest.*; do
4527  test -f "$ac_file" || continue
4528  case $ac_file in
4529    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4530    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4531	  break;;
4532    * ) break;;
4533  esac
4534done
4535else
4536  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4539See \`config.log' for more details" "$LINENO" 5; }
4540fi
4541rm -f conftest conftest$ac_cv_exeext
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4543$as_echo "$ac_cv_exeext" >&6; }
4544
4545rm -f conftest.$ac_ext
4546EXEEXT=$ac_cv_exeext
4547ac_exeext=$EXEEXT
4548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550#include <stdio.h>
4551int
4552main ()
4553{
4554FILE *f = fopen ("conftest.out", "w");
4555 return ferror (f) || fclose (f) != 0;
4556
4557  ;
4558  return 0;
4559}
4560_ACEOF
4561ac_clean_files="$ac_clean_files conftest.out"
4562# Check that the compiler produces executables we can run.  If not, either
4563# the compiler is broken, or we cross compile.
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4565$as_echo_n "checking whether we are cross compiling... " >&6; }
4566if test "$cross_compiling" != yes; then
4567  { { ac_try="$ac_link"
4568case "(($ac_try" in
4569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570  *) ac_try_echo=$ac_try;;
4571esac
4572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573$as_echo "$ac_try_echo"; } >&5
4574  (eval "$ac_link") 2>&5
4575  ac_status=$?
4576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577  test $ac_status = 0; }
4578  if { ac_try='./conftest$ac_cv_exeext'
4579  { { case "(($ac_try" in
4580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581  *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585  (eval "$ac_try") 2>&5
4586  ac_status=$?
4587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588  test $ac_status = 0; }; }; then
4589    cross_compiling=no
4590  else
4591    if test "$cross_compiling" = maybe; then
4592	cross_compiling=yes
4593    else
4594	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4596as_fn_error $? "cannot run C compiled programs.
4597If you meant to cross compile, use \`--host'.
4598See \`config.log' for more details" "$LINENO" 5; }
4599    fi
4600  fi
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4603$as_echo "$cross_compiling" >&6; }
4604
4605rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4606ac_clean_files=$ac_clean_files_save
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4608$as_echo_n "checking for suffix of object files... " >&6; }
4609if ${ac_cv_objext+:} false; then :
4610  $as_echo_n "(cached) " >&6
4611else
4612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h.  */
4614
4615int
4616main ()
4617{
4618
4619  ;
4620  return 0;
4621}
4622_ACEOF
4623rm -f conftest.o conftest.obj
4624if { { ac_try="$ac_compile"
4625case "(($ac_try" in
4626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627  *) ac_try_echo=$ac_try;;
4628esac
4629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630$as_echo "$ac_try_echo"; } >&5
4631  (eval "$ac_compile") 2>&5
4632  ac_status=$?
4633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634  test $ac_status = 0; }; then :
4635  for ac_file in conftest.o conftest.obj conftest.*; do
4636  test -f "$ac_file" || continue;
4637  case $ac_file in
4638    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4639    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4640       break;;
4641  esac
4642done
4643else
4644  $as_echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4649as_fn_error $? "cannot compute suffix of object files: cannot compile
4650See \`config.log' for more details" "$LINENO" 5; }
4651fi
4652rm -f conftest.$ac_cv_objext conftest.$ac_ext
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4655$as_echo "$ac_cv_objext" >&6; }
4656OBJEXT=$ac_cv_objext
4657ac_objext=$OBJEXT
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4659$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4660if ${ac_cv_c_compiler_gnu+:} false; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664/* end confdefs.h.  */
4665
4666int
4667main ()
4668{
4669#ifndef __GNUC__
4670       choke me
4671#endif
4672
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677if ac_fn_c_try_compile "$LINENO"; then :
4678  ac_compiler_gnu=yes
4679else
4680  ac_compiler_gnu=no
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683ac_cv_c_compiler_gnu=$ac_compiler_gnu
4684
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4687$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4688if test $ac_compiler_gnu = yes; then
4689  GCC=yes
4690else
4691  GCC=
4692fi
4693ac_test_CFLAGS=${CFLAGS+set}
4694ac_save_CFLAGS=$CFLAGS
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4696$as_echo_n "checking whether $CC accepts -g... " >&6; }
4697if ${ac_cv_prog_cc_g+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  ac_save_c_werror_flag=$ac_c_werror_flag
4701   ac_c_werror_flag=yes
4702   ac_cv_prog_cc_g=no
4703   CFLAGS="-g"
4704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705/* end confdefs.h.  */
4706
4707int
4708main ()
4709{
4710
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715if ac_fn_c_try_compile "$LINENO"; then :
4716  ac_cv_prog_cc_g=yes
4717else
4718  CFLAGS=""
4719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720/* end confdefs.h.  */
4721
4722int
4723main ()
4724{
4725
4726  ;
4727  return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"; then :
4731
4732else
4733  ac_c_werror_flag=$ac_save_c_werror_flag
4734	 CFLAGS="-g"
4735	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737
4738int
4739main ()
4740{
4741
4742  ;
4743  return 0;
4744}
4745_ACEOF
4746if ac_fn_c_try_compile "$LINENO"; then :
4747  ac_cv_prog_cc_g=yes
4748fi
4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750fi
4751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754   ac_c_werror_flag=$ac_save_c_werror_flag
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4757$as_echo "$ac_cv_prog_cc_g" >&6; }
4758if test "$ac_test_CFLAGS" = set; then
4759  CFLAGS=$ac_save_CFLAGS
4760elif test $ac_cv_prog_cc_g = yes; then
4761  if test "$GCC" = yes; then
4762    CFLAGS="-g -O2"
4763  else
4764    CFLAGS="-g"
4765  fi
4766else
4767  if test "$GCC" = yes; then
4768    CFLAGS="-O2"
4769  else
4770    CFLAGS=
4771  fi
4772fi
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4774$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4775if ${ac_cv_prog_cc_c89+:} false; then :
4776  $as_echo_n "(cached) " >&6
4777else
4778  ac_cv_prog_cc_c89=no
4779ac_save_CC=$CC
4780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h.  */
4782#include <stdarg.h>
4783#include <stdio.h>
4784#include <sys/types.h>
4785#include <sys/stat.h>
4786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4787struct buf { int x; };
4788FILE * (*rcsopen) (struct buf *, struct stat *, int);
4789static char *e (p, i)
4790     char **p;
4791     int i;
4792{
4793  return p[i];
4794}
4795static char *f (char * (*g) (char **, int), char **p, ...)
4796{
4797  char *s;
4798  va_list v;
4799  va_start (v,p);
4800  s = g (p, va_arg (v,int));
4801  va_end (v);
4802  return s;
4803}
4804
4805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4806   function prototypes and stuff, but not '\xHH' hex character constants.
4807   These don't provoke an error unfortunately, instead are silently treated
4808   as 'x'.  The following induces an error, until -std is added to get
4809   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4810   array size at least.  It's necessary to write '\x00'==0 to get something
4811   that's true only with -std.  */
4812int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4813
4814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4815   inside strings and character constants.  */
4816#define FOO(x) 'x'
4817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4818
4819int test (int i, double x);
4820struct s1 {int (*f) (int a);};
4821struct s2 {int (*f) (double a);};
4822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4823int argc;
4824char **argv;
4825int
4826main ()
4827{
4828return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4829  ;
4830  return 0;
4831}
4832_ACEOF
4833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4834	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4835do
4836  CC="$ac_save_CC $ac_arg"
4837  if ac_fn_c_try_compile "$LINENO"; then :
4838  ac_cv_prog_cc_c89=$ac_arg
4839fi
4840rm -f core conftest.err conftest.$ac_objext
4841  test "x$ac_cv_prog_cc_c89" != "xno" && break
4842done
4843rm -f conftest.$ac_ext
4844CC=$ac_save_CC
4845
4846fi
4847# AC_CACHE_VAL
4848case "x$ac_cv_prog_cc_c89" in
4849  x)
4850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4851$as_echo "none needed" >&6; } ;;
4852  xno)
4853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4854$as_echo "unsupported" >&6; } ;;
4855  *)
4856    CC="$CC $ac_cv_prog_cc_c89"
4857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4858$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4859esac
4860if test "x$ac_cv_prog_cc_c89" != xno; then :
4861
4862fi
4863
4864ac_ext=c
4865ac_cpp='$CPP $CPPFLAGS'
4866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869
4870depcc="$CC"   am_compiler_list=
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4873$as_echo_n "checking dependency style of $depcc... " >&6; }
4874if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4875  $as_echo_n "(cached) " >&6
4876else
4877  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4878  # We make a subdir and do the tests there.  Otherwise we can end up
4879  # making bogus files that we don't know about and never remove.  For
4880  # instance it was reported that on HP-UX the gcc test will end up
4881  # making a dummy file named `D' -- because `-MD' means `put the output
4882  # in D'.
4883  mkdir conftest.dir
4884  # Copy depcomp to subdir because otherwise we won't find it if we're
4885  # using a relative directory.
4886  cp "$am_depcomp" conftest.dir
4887  cd conftest.dir
4888  # We will build objects and dependencies in a subdirectory because
4889  # it helps to detect inapplicable dependency modes.  For instance
4890  # both Tru64's cc and ICC support -MD to output dependencies as a
4891  # side effect of compilation, but ICC will put the dependencies in
4892  # the current directory while Tru64 will put them in the object
4893  # directory.
4894  mkdir sub
4895
4896  am_cv_CC_dependencies_compiler_type=none
4897  if test "$am_compiler_list" = ""; then
4898     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4899  fi
4900  am__universal=false
4901  case " $depcc " in #(
4902     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4903     esac
4904
4905  for depmode in $am_compiler_list; do
4906    # Setup a source with many dependencies, because some compilers
4907    # like to wrap large dependency lists on column 80 (with \), and
4908    # we should not choose a depcomp mode which is confused by this.
4909    #
4910    # We need to recreate these files for each test, as the compiler may
4911    # overwrite some of them when testing with obscure command lines.
4912    # This happens at least with the AIX C compiler.
4913    : > sub/conftest.c
4914    for i in 1 2 3 4 5 6; do
4915      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4916      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4917      # Solaris 8's {/usr,}/bin/sh.
4918      touch sub/conftst$i.h
4919    done
4920    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921
4922    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4923    # mode.  It turns out that the SunPro C++ compiler does not properly
4924    # handle `-M -o', and we need to detect this.  Also, some Intel
4925    # versions had trouble with output in subdirs
4926    am__obj=sub/conftest.${OBJEXT-o}
4927    am__minus_obj="-o $am__obj"
4928    case $depmode in
4929    gcc)
4930      # This depmode causes a compiler race in universal mode.
4931      test "$am__universal" = false || continue
4932      ;;
4933    nosideeffect)
4934      # after this tag, mechanisms are not by side-effect, so they'll
4935      # only be used when explicitly requested
4936      if test "x$enable_dependency_tracking" = xyes; then
4937	continue
4938      else
4939	break
4940      fi
4941      ;;
4942    msvisualcpp | msvcmsys)
4943      # This compiler won't grok `-c -o', but also, the minuso test has
4944      # not run yet.  These depmodes are late enough in the game, and
4945      # so weak that their functioning should not be impacted.
4946      am__obj=conftest.${OBJEXT-o}
4947      am__minus_obj=
4948      ;;
4949    none) break ;;
4950    esac
4951    if depmode=$depmode \
4952       source=sub/conftest.c object=$am__obj \
4953       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4954       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4955         >/dev/null 2>conftest.err &&
4956       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4957       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4958       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4959       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4960      # icc doesn't choke on unknown options, it will just issue warnings
4961      # or remarks (even with -Werror).  So we grep stderr for any message
4962      # that says an option was ignored or not supported.
4963      # When given -MP, icc 7.0 and 7.1 complain thusly:
4964      #   icc: Command line warning: ignoring option '-M'; no argument required
4965      # The diagnosis changed in icc 8.0:
4966      #   icc: Command line remark: option '-MP' not supported
4967      if (grep 'ignoring option' conftest.err ||
4968          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4969        am_cv_CC_dependencies_compiler_type=$depmode
4970        break
4971      fi
4972    fi
4973  done
4974
4975  cd ..
4976  rm -rf conftest.dir
4977else
4978  am_cv_CC_dependencies_compiler_type=none
4979fi
4980
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4983$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4984CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4985
4986 if
4987  test "x$enable_dependency_tracking" != xno \
4988  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4989  am__fastdepCC_TRUE=
4990  am__fastdepCC_FALSE='#'
4991else
4992  am__fastdepCC_TRUE='#'
4993  am__fastdepCC_FALSE=
4994fi
4995
4996
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4998$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4999if ${ac_cv_prog_cc_c99+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002  ac_cv_prog_cc_c99=no
5003ac_save_CC=$CC
5004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006#include <stdarg.h>
5007#include <stdbool.h>
5008#include <stdlib.h>
5009#include <wchar.h>
5010#include <stdio.h>
5011
5012// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5013#define debug(...) fprintf (stderr, __VA_ARGS__)
5014#define showlist(...) puts (#__VA_ARGS__)
5015#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5016static void
5017test_varargs_macros (void)
5018{
5019  int x = 1234;
5020  int y = 5678;
5021  debug ("Flag");
5022  debug ("X = %d\n", x);
5023  showlist (The first, second, and third items.);
5024  report (x>y, "x is %d but y is %d", x, y);
5025}
5026
5027// Check long long types.
5028#define BIG64 18446744073709551615ull
5029#define BIG32 4294967295ul
5030#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5031#if !BIG_OK
5032  your preprocessor is broken;
5033#endif
5034#if BIG_OK
5035#else
5036  your preprocessor is broken;
5037#endif
5038static long long int bignum = -9223372036854775807LL;
5039static unsigned long long int ubignum = BIG64;
5040
5041struct incomplete_array
5042{
5043  int datasize;
5044  double data[];
5045};
5046
5047struct named_init {
5048  int number;
5049  const wchar_t *name;
5050  double average;
5051};
5052
5053typedef const char *ccp;
5054
5055static inline int
5056test_restrict (ccp restrict text)
5057{
5058  // See if C++-style comments work.
5059  // Iterate through items via the restricted pointer.
5060  // Also check for declarations in for loops.
5061  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5062    continue;
5063  return 0;
5064}
5065
5066// Check varargs and va_copy.
5067static void
5068test_varargs (const char *format, ...)
5069{
5070  va_list args;
5071  va_start (args, format);
5072  va_list args_copy;
5073  va_copy (args_copy, args);
5074
5075  const char *str;
5076  int number;
5077  float fnumber;
5078
5079  while (*format)
5080    {
5081      switch (*format++)
5082	{
5083	case 's': // string
5084	  str = va_arg (args_copy, const char *);
5085	  break;
5086	case 'd': // int
5087	  number = va_arg (args_copy, int);
5088	  break;
5089	case 'f': // float
5090	  fnumber = va_arg (args_copy, double);
5091	  break;
5092	default:
5093	  break;
5094	}
5095    }
5096  va_end (args_copy);
5097  va_end (args);
5098}
5099
5100int
5101main ()
5102{
5103
5104  // Check bool.
5105  _Bool success = false;
5106
5107  // Check restrict.
5108  if (test_restrict ("String literal") == 0)
5109    success = true;
5110  char *restrict newvar = "Another string";
5111
5112  // Check varargs.
5113  test_varargs ("s, d' f .", "string", 65, 34.234);
5114  test_varargs_macros ();
5115
5116  // Check flexible array members.
5117  struct incomplete_array *ia =
5118    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5119  ia->datasize = 10;
5120  for (int i = 0; i < ia->datasize; ++i)
5121    ia->data[i] = i * 1.234;
5122
5123  // Check named initializers.
5124  struct named_init ni = {
5125    .number = 34,
5126    .name = L"Test wide string",
5127    .average = 543.34343,
5128  };
5129
5130  ni.number = 58;
5131
5132  int dynamic_array[ni.number];
5133  dynamic_array[ni.number - 1] = 543;
5134
5135  // work around unused variable warnings
5136  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5137	  || dynamic_array[ni.number - 1] != 543);
5138
5139  ;
5140  return 0;
5141}
5142_ACEOF
5143for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5144do
5145  CC="$ac_save_CC $ac_arg"
5146  if ac_fn_c_try_compile "$LINENO"; then :
5147  ac_cv_prog_cc_c99=$ac_arg
5148fi
5149rm -f core conftest.err conftest.$ac_objext
5150  test "x$ac_cv_prog_cc_c99" != "xno" && break
5151done
5152rm -f conftest.$ac_ext
5153CC=$ac_save_CC
5154
5155fi
5156# AC_CACHE_VAL
5157case "x$ac_cv_prog_cc_c99" in
5158  x)
5159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5160$as_echo "none needed" >&6; } ;;
5161  xno)
5162    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5163$as_echo "unsupported" >&6; } ;;
5164  *)
5165    CC="$CC $ac_cv_prog_cc_c99"
5166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5167$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5168esac
5169if test "x$ac_cv_prog_cc_c99" != xno; then :
5170
5171fi
5172
5173
5174
5175ac_ext=c
5176ac_cpp='$CPP $CPPFLAGS'
5177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5181$as_echo_n "checking how to run the C preprocessor... " >&6; }
5182# On Suns, sometimes $CPP names a directory.
5183if test -n "$CPP" && test -d "$CPP"; then
5184  CPP=
5185fi
5186if test -z "$CPP"; then
5187  if ${ac_cv_prog_CPP+:} false; then :
5188  $as_echo_n "(cached) " >&6
5189else
5190      # Double quotes because CPP needs to be expanded
5191    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5192    do
5193      ac_preproc_ok=false
5194for ac_c_preproc_warn_flag in '' yes
5195do
5196  # Use a header file that comes with gcc, so configuring glibc
5197  # with a fresh cross-compiler works.
5198  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5199  # <limits.h> exists even on freestanding compilers.
5200  # On the NeXT, cc -E runs the code through the compiler's parser,
5201  # not just through cpp. "Syntax error" is here to catch this case.
5202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h.  */
5204#ifdef __STDC__
5205# include <limits.h>
5206#else
5207# include <assert.h>
5208#endif
5209		     Syntax error
5210_ACEOF
5211if ac_fn_c_try_cpp "$LINENO"; then :
5212
5213else
5214  # Broken: fails on valid input.
5215continue
5216fi
5217rm -f conftest.err conftest.i conftest.$ac_ext
5218
5219  # OK, works on sane cases.  Now check whether nonexistent headers
5220  # can be detected and how.
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223#include <ac_nonexistent.h>
5224_ACEOF
5225if ac_fn_c_try_cpp "$LINENO"; then :
5226  # Broken: success on invalid input.
5227continue
5228else
5229  # Passes both tests.
5230ac_preproc_ok=:
5231break
5232fi
5233rm -f conftest.err conftest.i conftest.$ac_ext
5234
5235done
5236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237rm -f conftest.i conftest.err conftest.$ac_ext
5238if $ac_preproc_ok; then :
5239  break
5240fi
5241
5242    done
5243    ac_cv_prog_CPP=$CPP
5244
5245fi
5246  CPP=$ac_cv_prog_CPP
5247else
5248  ac_cv_prog_CPP=$CPP
5249fi
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5251$as_echo "$CPP" >&6; }
5252ac_preproc_ok=false
5253for ac_c_preproc_warn_flag in '' yes
5254do
5255  # Use a header file that comes with gcc, so configuring glibc
5256  # with a fresh cross-compiler works.
5257  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5258  # <limits.h> exists even on freestanding compilers.
5259  # On the NeXT, cc -E runs the code through the compiler's parser,
5260  # not just through cpp. "Syntax error" is here to catch this case.
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263#ifdef __STDC__
5264# include <limits.h>
5265#else
5266# include <assert.h>
5267#endif
5268		     Syntax error
5269_ACEOF
5270if ac_fn_c_try_cpp "$LINENO"; then :
5271
5272else
5273  # Broken: fails on valid input.
5274continue
5275fi
5276rm -f conftest.err conftest.i conftest.$ac_ext
5277
5278  # OK, works on sane cases.  Now check whether nonexistent headers
5279  # can be detected and how.
5280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282#include <ac_nonexistent.h>
5283_ACEOF
5284if ac_fn_c_try_cpp "$LINENO"; then :
5285  # Broken: success on invalid input.
5286continue
5287else
5288  # Passes both tests.
5289ac_preproc_ok=:
5290break
5291fi
5292rm -f conftest.err conftest.i conftest.$ac_ext
5293
5294done
5295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296rm -f conftest.i conftest.err conftest.$ac_ext
5297if $ac_preproc_ok; then :
5298
5299else
5300  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5302as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5303See \`config.log' for more details" "$LINENO" 5; }
5304fi
5305
5306ac_ext=c
5307ac_cpp='$CPP $CPPFLAGS'
5308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5314$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5315if ${ac_cv_path_GREP+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  if test -z "$GREP"; then
5319  ac_path_GREP_found=false
5320  # Loop through the user's path and test for each of PROGNAME-LIST
5321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323do
5324  IFS=$as_save_IFS
5325  test -z "$as_dir" && as_dir=.
5326    for ac_prog in grep ggrep; do
5327    for ac_exec_ext in '' $ac_executable_extensions; do
5328      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5329      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5330# Check for GNU ac_path_GREP and select it if it is found.
5331  # Check for GNU $ac_path_GREP
5332case `"$ac_path_GREP" --version 2>&1` in
5333*GNU*)
5334  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5335*)
5336  ac_count=0
5337  $as_echo_n 0123456789 >"conftest.in"
5338  while :
5339  do
5340    cat "conftest.in" "conftest.in" >"conftest.tmp"
5341    mv "conftest.tmp" "conftest.in"
5342    cp "conftest.in" "conftest.nl"
5343    $as_echo 'GREP' >> "conftest.nl"
5344    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346    as_fn_arith $ac_count + 1 && ac_count=$as_val
5347    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5348      # Best one so far, save it but keep looking for a better one
5349      ac_cv_path_GREP="$ac_path_GREP"
5350      ac_path_GREP_max=$ac_count
5351    fi
5352    # 10*(2^10) chars as input seems more than enough
5353    test $ac_count -gt 10 && break
5354  done
5355  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356esac
5357
5358      $ac_path_GREP_found && break 3
5359    done
5360  done
5361  done
5362IFS=$as_save_IFS
5363  if test -z "$ac_cv_path_GREP"; then
5364    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5365  fi
5366else
5367  ac_cv_path_GREP=$GREP
5368fi
5369
5370fi
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5372$as_echo "$ac_cv_path_GREP" >&6; }
5373 GREP="$ac_cv_path_GREP"
5374
5375
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5377$as_echo_n "checking for egrep... " >&6; }
5378if ${ac_cv_path_EGREP+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5382   then ac_cv_path_EGREP="$GREP -E"
5383   else
5384     if test -z "$EGREP"; then
5385  ac_path_EGREP_found=false
5386  # Loop through the user's path and test for each of PROGNAME-LIST
5387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392    for ac_prog in egrep; do
5393    for ac_exec_ext in '' $ac_executable_extensions; do
5394      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5395      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5396# Check for GNU ac_path_EGREP and select it if it is found.
5397  # Check for GNU $ac_path_EGREP
5398case `"$ac_path_EGREP" --version 2>&1` in
5399*GNU*)
5400  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5401*)
5402  ac_count=0
5403  $as_echo_n 0123456789 >"conftest.in"
5404  while :
5405  do
5406    cat "conftest.in" "conftest.in" >"conftest.tmp"
5407    mv "conftest.tmp" "conftest.in"
5408    cp "conftest.in" "conftest.nl"
5409    $as_echo 'EGREP' >> "conftest.nl"
5410    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5411    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5412    as_fn_arith $ac_count + 1 && ac_count=$as_val
5413    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5414      # Best one so far, save it but keep looking for a better one
5415      ac_cv_path_EGREP="$ac_path_EGREP"
5416      ac_path_EGREP_max=$ac_count
5417    fi
5418    # 10*(2^10) chars as input seems more than enough
5419    test $ac_count -gt 10 && break
5420  done
5421  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5422esac
5423
5424      $ac_path_EGREP_found && break 3
5425    done
5426  done
5427  done
5428IFS=$as_save_IFS
5429  if test -z "$ac_cv_path_EGREP"; then
5430    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5431  fi
5432else
5433  ac_cv_path_EGREP=$EGREP
5434fi
5435
5436   fi
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5439$as_echo "$ac_cv_path_EGREP" >&6; }
5440 EGREP="$ac_cv_path_EGREP"
5441
5442
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5444$as_echo_n "checking for ANSI C header files... " >&6; }
5445if ${ac_cv_header_stdc+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h.  */
5450#include <stdlib.h>
5451#include <stdarg.h>
5452#include <string.h>
5453#include <float.h>
5454
5455int
5456main ()
5457{
5458
5459  ;
5460  return 0;
5461}
5462_ACEOF
5463if ac_fn_c_try_compile "$LINENO"; then :
5464  ac_cv_header_stdc=yes
5465else
5466  ac_cv_header_stdc=no
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469
5470if test $ac_cv_header_stdc = yes; then
5471  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473/* end confdefs.h.  */
5474#include <string.h>
5475
5476_ACEOF
5477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5478  $EGREP "memchr" >/dev/null 2>&1; then :
5479
5480else
5481  ac_cv_header_stdc=no
5482fi
5483rm -f conftest*
5484
5485fi
5486
5487if test $ac_cv_header_stdc = yes; then
5488  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491#include <stdlib.h>
5492
5493_ACEOF
5494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5495  $EGREP "free" >/dev/null 2>&1; then :
5496
5497else
5498  ac_cv_header_stdc=no
5499fi
5500rm -f conftest*
5501
5502fi
5503
5504if test $ac_cv_header_stdc = yes; then
5505  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5506  if test "$cross_compiling" = yes; then :
5507  :
5508else
5509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510/* end confdefs.h.  */
5511#include <ctype.h>
5512#include <stdlib.h>
5513#if ((' ' & 0x0FF) == 0x020)
5514# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5515# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5516#else
5517# define ISLOWER(c) \
5518		   (('a' <= (c) && (c) <= 'i') \
5519		     || ('j' <= (c) && (c) <= 'r') \
5520		     || ('s' <= (c) && (c) <= 'z'))
5521# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5522#endif
5523
5524#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5525int
5526main ()
5527{
5528  int i;
5529  for (i = 0; i < 256; i++)
5530    if (XOR (islower (i), ISLOWER (i))
5531	|| toupper (i) != TOUPPER (i))
5532      return 2;
5533  return 0;
5534}
5535_ACEOF
5536if ac_fn_c_try_run "$LINENO"; then :
5537
5538else
5539  ac_cv_header_stdc=no
5540fi
5541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5542  conftest.$ac_objext conftest.beam conftest.$ac_ext
5543fi
5544
5545fi
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5548$as_echo "$ac_cv_header_stdc" >&6; }
5549if test $ac_cv_header_stdc = yes; then
5550
5551$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5552
5553fi
5554
5555# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5556for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5557		  inttypes.h stdint.h unistd.h
5558do :
5559  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5560ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5561"
5562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5563  cat >>confdefs.h <<_ACEOF
5564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5565_ACEOF
5566
5567fi
5568
5569done
5570
5571
5572
5573
5574
5575
5576
5577
5578if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5579	if test -n "$ac_tool_prefix"; then
5580  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5581set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if ${ac_cv_path_PKG_CONFIG+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  case $PKG_CONFIG in
5588  [\\/]* | ?:[\\/]*)
5589  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5590  ;;
5591  *)
5592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595  IFS=$as_save_IFS
5596  test -z "$as_dir" && as_dir=.
5597    for ac_exec_ext in '' $ac_executable_extensions; do
5598  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601    break 2
5602  fi
5603done
5604  done
5605IFS=$as_save_IFS
5606
5607  ;;
5608esac
5609fi
5610PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5611if test -n "$PKG_CONFIG"; then
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5613$as_echo "$PKG_CONFIG" >&6; }
5614else
5615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616$as_echo "no" >&6; }
5617fi
5618
5619
5620fi
5621if test -z "$ac_cv_path_PKG_CONFIG"; then
5622  ac_pt_PKG_CONFIG=$PKG_CONFIG
5623  # Extract the first word of "pkg-config", so it can be a program name with args.
5624set dummy pkg-config; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  case $ac_pt_PKG_CONFIG in
5631  [\\/]* | ?:[\\/]*)
5632  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5633  ;;
5634  *)
5635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH
5637do
5638  IFS=$as_save_IFS
5639  test -z "$as_dir" && as_dir=.
5640    for ac_exec_ext in '' $ac_executable_extensions; do
5641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644    break 2
5645  fi
5646done
5647  done
5648IFS=$as_save_IFS
5649
5650  ;;
5651esac
5652fi
5653ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5654if test -n "$ac_pt_PKG_CONFIG"; then
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5656$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5657else
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659$as_echo "no" >&6; }
5660fi
5661
5662  if test "x$ac_pt_PKG_CONFIG" = x; then
5663    PKG_CONFIG=""
5664  else
5665    case $cross_compiling:$ac_tool_warned in
5666yes:)
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5669ac_tool_warned=yes ;;
5670esac
5671    PKG_CONFIG=$ac_pt_PKG_CONFIG
5672  fi
5673else
5674  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5675fi
5676
5677fi
5678if test -n "$PKG_CONFIG"; then
5679	_pkg_min_version=0.9.0
5680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5681$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5682	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684$as_echo "yes" >&6; }
5685	else
5686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687$as_echo "no" >&6; }
5688		PKG_CONFIG=""
5689	fi
5690fi
5691# Make sure we can run config.sub.
5692$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5693  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5694
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5696$as_echo_n "checking build system type... " >&6; }
5697if ${ac_cv_build+:} false; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700  ac_build_alias=$build_alias
5701test "x$ac_build_alias" = x &&
5702  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5703test "x$ac_build_alias" = x &&
5704  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5705ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5706  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5707
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5710$as_echo "$ac_cv_build" >&6; }
5711case $ac_cv_build in
5712*-*-*) ;;
5713*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5714esac
5715build=$ac_cv_build
5716ac_save_IFS=$IFS; IFS='-'
5717set x $ac_cv_build
5718shift
5719build_cpu=$1
5720build_vendor=$2
5721shift; shift
5722# Remember, the first character of IFS is used to create $*,
5723# except with old shells:
5724build_os=$*
5725IFS=$ac_save_IFS
5726case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5727
5728
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5730$as_echo_n "checking host system type... " >&6; }
5731if ${ac_cv_host+:} false; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  if test "x$host_alias" = x; then
5735  ac_cv_host=$ac_cv_build
5736else
5737  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5738    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5739fi
5740
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5743$as_echo "$ac_cv_host" >&6; }
5744case $ac_cv_host in
5745*-*-*) ;;
5746*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5747esac
5748host=$ac_cv_host
5749ac_save_IFS=$IFS; IFS='-'
5750set x $ac_cv_host
5751shift
5752host_cpu=$1
5753host_vendor=$2
5754shift; shift
5755# Remember, the first character of IFS is used to create $*,
5756# except with old shells:
5757host_os=$*
5758IFS=$ac_save_IFS
5759case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5760
5761
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5763$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5764if ${ac_cv_path_SED+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5768     for ac_i in 1 2 3 4 5 6 7; do
5769       ac_script="$ac_script$as_nl$ac_script"
5770     done
5771     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5772     { ac_script=; unset ac_script;}
5773     if test -z "$SED"; then
5774  ac_path_SED_found=false
5775  # Loop through the user's path and test for each of PROGNAME-LIST
5776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781    for ac_prog in sed gsed; do
5782    for ac_exec_ext in '' $ac_executable_extensions; do
5783      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5784      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5785# Check for GNU ac_path_SED and select it if it is found.
5786  # Check for GNU $ac_path_SED
5787case `"$ac_path_SED" --version 2>&1` in
5788*GNU*)
5789  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5790*)
5791  ac_count=0
5792  $as_echo_n 0123456789 >"conftest.in"
5793  while :
5794  do
5795    cat "conftest.in" "conftest.in" >"conftest.tmp"
5796    mv "conftest.tmp" "conftest.in"
5797    cp "conftest.in" "conftest.nl"
5798    $as_echo '' >> "conftest.nl"
5799    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5800    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5801    as_fn_arith $ac_count + 1 && ac_count=$as_val
5802    if test $ac_count -gt ${ac_path_SED_max-0}; then
5803      # Best one so far, save it but keep looking for a better one
5804      ac_cv_path_SED="$ac_path_SED"
5805      ac_path_SED_max=$ac_count
5806    fi
5807    # 10*(2^10) chars as input seems more than enough
5808    test $ac_count -gt 10 && break
5809  done
5810  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5811esac
5812
5813      $ac_path_SED_found && break 3
5814    done
5815  done
5816  done
5817IFS=$as_save_IFS
5818  if test -z "$ac_cv_path_SED"; then
5819    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5820  fi
5821else
5822  ac_cv_path_SED=$SED
5823fi
5824
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5827$as_echo "$ac_cv_path_SED" >&6; }
5828 SED="$ac_cv_path_SED"
5829  rm -f conftest.sed
5830
5831
5832
5833
5834
5835if  test "x$GCC" = xyes ; then
5836    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
5837-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
5838-Wbad-function-cast -Wformat=2"
5839    case `$CC -dumpversion` in
5840    3.4.* | 4.*)
5841	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
5842	;;
5843    esac
5844else
5845    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5846if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5847  SUNCC="yes"
5848else
5849  SUNCC="no"
5850fi
5851
5852    if test "x$SUNCC" = "xyes"; then
5853	CWARNFLAGS="-v"
5854    fi
5855fi
5856
5857
5858
5859# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
5860
5861
5862
5863# Check whether --enable-strict-compilation was given.
5864if test "${enable_strict_compilation+set}" = set; then :
5865  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
5866else
5867  STRICT_COMPILE=no
5868fi
5869
5870if test "x$STRICT_COMPILE" = "xyes"; then
5871	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5872if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5873  SUNCC="yes"
5874else
5875  SUNCC="no"
5876fi
5877
5878	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5879if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5880  INTELCC="yes"
5881else
5882  INTELCC="no"
5883fi
5884
5885	if test "x$GCC" = xyes ; then
5886		STRICT_CFLAGS="-pedantic -Werror"
5887	elif test "x$SUNCC" = "xyes"; then
5888		STRICT_CFLAGS="-errwarn"
5889    elif test "x$INTELCC" = "xyes"; then
5890		STRICT_CFLAGS="-Werror"
5891	fi
5892fi
5893CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
5894
5895
5896
5897
5898cat >>confdefs.h <<_ACEOF
5899#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
5900_ACEOF
5901
5902	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
5903	if test "x$PVM" = "x"; then
5904		PVM="0"
5905	fi
5906
5907cat >>confdefs.h <<_ACEOF
5908#define PACKAGE_VERSION_MINOR $PVM
5909_ACEOF
5910
5911	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
5912	if test "x$PVP" = "x"; then
5913		PVP="0"
5914	fi
5915
5916cat >>confdefs.h <<_ACEOF
5917#define PACKAGE_VERSION_PATCHLEVEL $PVP
5918_ACEOF
5919
5920
5921
5922CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
5923mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
5924|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
5925echo 'git directory not found: installing possibly empty changelog.' >&2)"
5926
5927
5928
5929
5930macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
5931INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
5932mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
5933|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
5934echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
5935
5936
5937
5938
5939
5940
5941if test x$APP_MAN_SUFFIX = x    ; then
5942    APP_MAN_SUFFIX=1
5943fi
5944if test x$APP_MAN_DIR = x    ; then
5945    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
5946fi
5947
5948if test x$LIB_MAN_SUFFIX = x    ; then
5949    LIB_MAN_SUFFIX=3
5950fi
5951if test x$LIB_MAN_DIR = x    ; then
5952    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
5953fi
5954
5955if test x$FILE_MAN_SUFFIX = x    ; then
5956    case $host_os in
5957	solaris*)	FILE_MAN_SUFFIX=4  ;;
5958	*)		FILE_MAN_SUFFIX=5  ;;
5959    esac
5960fi
5961if test x$FILE_MAN_DIR = x    ; then
5962    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
5963fi
5964
5965if test x$MISC_MAN_SUFFIX = x    ; then
5966    case $host_os in
5967	solaris*)	MISC_MAN_SUFFIX=5  ;;
5968	*)		MISC_MAN_SUFFIX=7  ;;
5969    esac
5970fi
5971if test x$MISC_MAN_DIR = x    ; then
5972    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
5973fi
5974
5975if test x$DRIVER_MAN_SUFFIX = x    ; then
5976    case $host_os in
5977	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
5978	*)		DRIVER_MAN_SUFFIX=4  ;;
5979    esac
5980fi
5981if test x$DRIVER_MAN_DIR = x    ; then
5982    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
5983fi
5984
5985if test x$ADMIN_MAN_SUFFIX = x    ; then
5986    case $host_os in
5987	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
5988	*)		ADMIN_MAN_SUFFIX=8  ;;
5989    esac
5990fi
5991if test x$ADMIN_MAN_DIR = x    ; then
5992    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
5993fi
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009XORG_MAN_PAGE="X Version 11"
6010
6011MAN_SUBSTS="\
6012	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
6013	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
6014	-e 's|__xservername__|Xorg|g' \
6015	-e 's|__xconfigfile__|xorg.conf|g' \
6016	-e 's|__projectroot__|\$(prefix)|g' \
6017	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
6018	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
6019	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
6020	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
6021	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
6022	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
6023	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
6024
6025
6026
6027# Check whether --enable-silent-rules was given.
6028if test "${enable_silent_rules+set}" = set; then :
6029  enableval=$enable_silent_rules;
6030fi
6031
6032case $enable_silent_rules in
6033yes) AM_DEFAULT_VERBOSITY=0;;
6034no)  AM_DEFAULT_VERBOSITY=1;;
6035*)   AM_DEFAULT_VERBOSITY=0;;
6036esac
6037AM_BACKSLASH='\'
6038
6039
6040
6041
6042
6043
6044# Check whether --with-doxygen was given.
6045if test "${with_doxygen+set}" = set; then :
6046  withval=$with_doxygen; use_doxygen=$withval
6047else
6048  use_doxygen=auto
6049fi
6050
6051
6052
6053if test "x$use_doxygen" = x"auto"; then
6054   # Extract the first word of "doxygen", so it can be a program name with args.
6055set dummy doxygen; ac_word=$2
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057$as_echo_n "checking for $ac_word... " >&6; }
6058if ${ac_cv_path_DOXYGEN+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  case $DOXYGEN in
6062  [\\/]* | ?:[\\/]*)
6063  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6064  ;;
6065  *)
6066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069  IFS=$as_save_IFS
6070  test -z "$as_dir" && as_dir=.
6071    for ac_exec_ext in '' $ac_executable_extensions; do
6072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075    break 2
6076  fi
6077done
6078  done
6079IFS=$as_save_IFS
6080
6081  ;;
6082esac
6083fi
6084DOXYGEN=$ac_cv_path_DOXYGEN
6085if test -n "$DOXYGEN"; then
6086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
6087$as_echo "$DOXYGEN" >&6; }
6088else
6089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090$as_echo "no" >&6; }
6091fi
6092
6093
6094   if test "x$DOXYGEN" = "x"; then
6095        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
6096$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
6097	have_doxygen=no
6098   else
6099        have_doxygen=yes
6100   fi
6101elif test "x$use_doxygen" = x"yes" ; then
6102   # Extract the first word of "doxygen", so it can be a program name with args.
6103set dummy doxygen; ac_word=$2
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if ${ac_cv_path_DOXYGEN+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  case $DOXYGEN in
6110  [\\/]* | ?:[\\/]*)
6111  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6112  ;;
6113  *)
6114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117  IFS=$as_save_IFS
6118  test -z "$as_dir" && as_dir=.
6119    for ac_exec_ext in '' $ac_executable_extensions; do
6120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123    break 2
6124  fi
6125done
6126  done
6127IFS=$as_save_IFS
6128
6129  ;;
6130esac
6131fi
6132DOXYGEN=$ac_cv_path_DOXYGEN
6133if test -n "$DOXYGEN"; then
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
6135$as_echo "$DOXYGEN" >&6; }
6136else
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142   if test "x$DOXYGEN" = "x"; then
6143        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
6144   fi
6145   have_doxygen=yes
6146elif test "x$use_doxygen" = x"no" ; then
6147   if test "x$DOXYGEN" != "x"; then
6148      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
6149$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
6150   fi
6151   have_doxygen=no
6152else
6153   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
6154fi
6155if test "$have_doxygen" = yes; then
6156    # scrape the doxygen version
6157    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
6158$as_echo_n "checking the doxygen version... " >&6; }
6159    doxygen_version=`$DOXYGEN --version 2>/dev/null`
6160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
6161$as_echo "$doxygen_version" >&6; }
6162    as_arg_v1=$doxygen_version
6163as_arg_v2=1.6.1
6164awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
6165case $? in #(
6166  1) :
6167    if test "x$use_doxygen" = xauto; then
6168            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
6169$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
6170            have_doxygen=no
6171        else
6172            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
6173        fi ;; #(
6174  0) :
6175     ;; #(
6176  2) :
6177     ;; #(
6178  *) :
6179     ;;
6180esac
6181fi
6182 if test "$have_doxygen" = yes; then
6183  HAVE_DOXYGEN_TRUE=
6184  HAVE_DOXYGEN_FALSE='#'
6185else
6186  HAVE_DOXYGEN_TRUE='#'
6187  HAVE_DOXYGEN_FALSE=
6188fi
6189
6190
6191
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
6193$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
6194XORG_SGML_PATH=
6195if test -n "$PKG_CONFIG" && \
6196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
6197  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
6198  ac_status=$?
6199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200  test $ac_status = 0; }; then
6201  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
6202else
6203  :
6204
6205fi
6206
6207# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
6208# the path and the name of the doc stylesheet
6209if test "x$XORG_SGML_PATH" != "x" ; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
6211$as_echo "$XORG_SGML_PATH" >&6; }
6212   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
6213   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
6214else
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220
6221
6222 if test "x$XSL_STYLESHEET" != "x"; then
6223  HAVE_STYLESHEETS_TRUE=
6224  HAVE_STYLESHEETS_FALSE='#'
6225else
6226  HAVE_STYLESHEETS_TRUE='#'
6227  HAVE_STYLESHEETS_FALSE=
6228fi
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244ac_config_headers="$ac_config_headers include/do-not-use-config.h"
6245
6246ac_config_headers="$ac_config_headers include/xorg-server.h"
6247
6248ac_config_headers="$ac_config_headers include/dix-config.h"
6249
6250ac_config_headers="$ac_config_headers include/xorg-config.h"
6251
6252ac_config_headers="$ac_config_headers include/xkb-config.h"
6253
6254ac_config_headers="$ac_config_headers include/xwin-config.h"
6255
6256ac_config_headers="$ac_config_headers include/kdrive-config.h"
6257
6258ac_config_headers="$ac_config_headers include/version-config.h"
6259
6260
6261ac_ext=c
6262ac_cpp='$CPP $CPPFLAGS'
6263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6265ac_compiler_gnu=$ac_cv_c_compiler_gnu
6266if test -n "$ac_tool_prefix"; then
6267  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6268set dummy ${ac_tool_prefix}gcc; ac_word=$2
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270$as_echo_n "checking for $ac_word... " >&6; }
6271if ${ac_cv_prog_CC+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  if test -n "$CC"; then
6275  ac_cv_prog_CC="$CC" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  test -z "$as_dir" && as_dir=.
6282    for ac_exec_ext in '' $ac_executable_extensions; do
6283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286    break 2
6287  fi
6288done
6289  done
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294CC=$ac_cv_prog_CC
6295if test -n "$CC"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6297$as_echo "$CC" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300$as_echo "no" >&6; }
6301fi
6302
6303
6304fi
6305if test -z "$ac_cv_prog_CC"; then
6306  ac_ct_CC=$CC
6307  # Extract the first word of "gcc", so it can be a program name with args.
6308set dummy gcc; ac_word=$2
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
6311if ${ac_cv_prog_ac_ct_CC+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -n "$ac_ct_CC"; then
6315  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322    for ac_exec_ext in '' $ac_executable_extensions; do
6323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324    ac_cv_prog_ac_ct_CC="gcc"
6325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329  done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334ac_ct_CC=$ac_cv_prog_ac_ct_CC
6335if test -n "$ac_ct_CC"; then
6336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6337$as_echo "$ac_ct_CC" >&6; }
6338else
6339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343  if test "x$ac_ct_CC" = x; then
6344    CC=""
6345  else
6346    case $cross_compiling:$ac_tool_warned in
6347yes:)
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350ac_tool_warned=yes ;;
6351esac
6352    CC=$ac_ct_CC
6353  fi
6354else
6355  CC="$ac_cv_prog_CC"
6356fi
6357
6358if test -z "$CC"; then
6359          if test -n "$ac_tool_prefix"; then
6360    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6361set dummy ${ac_tool_prefix}cc; ac_word=$2
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; }
6364if ${ac_cv_prog_CC+:} false; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  if test -n "$CC"; then
6368  ac_cv_prog_CC="$CC" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373  IFS=$as_save_IFS
6374  test -z "$as_dir" && as_dir=.
6375    for ac_exec_ext in '' $ac_executable_extensions; do
6376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377    ac_cv_prog_CC="${ac_tool_prefix}cc"
6378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379    break 2
6380  fi
6381done
6382  done
6383IFS=$as_save_IFS
6384
6385fi
6386fi
6387CC=$ac_cv_prog_CC
6388if test -n "$CC"; then
6389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6390$as_echo "$CC" >&6; }
6391else
6392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395
6396
6397  fi
6398fi
6399if test -z "$CC"; then
6400  # Extract the first word of "cc", so it can be a program name with args.
6401set dummy cc; ac_word=$2
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403$as_echo_n "checking for $ac_word... " >&6; }
6404if ${ac_cv_prog_CC+:} false; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407  if test -n "$CC"; then
6408  ac_cv_prog_CC="$CC" # Let the user override the test.
6409else
6410  ac_prog_rejected=no
6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412for as_dir in $PATH
6413do
6414  IFS=$as_save_IFS
6415  test -z "$as_dir" && as_dir=.
6416    for ac_exec_ext in '' $ac_executable_extensions; do
6417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6419       ac_prog_rejected=yes
6420       continue
6421     fi
6422    ac_cv_prog_CC="cc"
6423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424    break 2
6425  fi
6426done
6427  done
6428IFS=$as_save_IFS
6429
6430if test $ac_prog_rejected = yes; then
6431  # We found a bogon in the path, so make sure we never use it.
6432  set dummy $ac_cv_prog_CC
6433  shift
6434  if test $# != 0; then
6435    # We chose a different compiler from the bogus one.
6436    # However, it has the same basename, so the bogon will be chosen
6437    # first if we set CC to just the basename; use the full file name.
6438    shift
6439    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6440  fi
6441fi
6442fi
6443fi
6444CC=$ac_cv_prog_CC
6445if test -n "$CC"; then
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6447$as_echo "$CC" >&6; }
6448else
6449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450$as_echo "no" >&6; }
6451fi
6452
6453
6454fi
6455if test -z "$CC"; then
6456  if test -n "$ac_tool_prefix"; then
6457  for ac_prog in cl.exe
6458  do
6459    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6460set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462$as_echo_n "checking for $ac_word... " >&6; }
6463if ${ac_cv_prog_CC+:} false; then :
6464  $as_echo_n "(cached) " >&6
6465else
6466  if test -n "$CC"; then
6467  ac_cv_prog_CC="$CC" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472  IFS=$as_save_IFS
6473  test -z "$as_dir" && as_dir=.
6474    for ac_exec_ext in '' $ac_executable_extensions; do
6475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478    break 2
6479  fi
6480done
6481  done
6482IFS=$as_save_IFS
6483
6484fi
6485fi
6486CC=$ac_cv_prog_CC
6487if test -n "$CC"; then
6488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6489$as_echo "$CC" >&6; }
6490else
6491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
6493fi
6494
6495
6496    test -n "$CC" && break
6497  done
6498fi
6499if test -z "$CC"; then
6500  ac_ct_CC=$CC
6501  for ac_prog in cl.exe
6502do
6503  # Extract the first word of "$ac_prog", so it can be a program name with args.
6504set dummy $ac_prog; ac_word=$2
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
6507if ${ac_cv_prog_ac_ct_CC+:} false; then :
6508  $as_echo_n "(cached) " >&6
6509else
6510  if test -n "$ac_ct_CC"; then
6511  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516  IFS=$as_save_IFS
6517  test -z "$as_dir" && as_dir=.
6518    for ac_exec_ext in '' $ac_executable_extensions; do
6519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520    ac_cv_prog_ac_ct_CC="$ac_prog"
6521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522    break 2
6523  fi
6524done
6525  done
6526IFS=$as_save_IFS
6527
6528fi
6529fi
6530ac_ct_CC=$ac_cv_prog_ac_ct_CC
6531if test -n "$ac_ct_CC"; then
6532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6533$as_echo "$ac_ct_CC" >&6; }
6534else
6535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
6537fi
6538
6539
6540  test -n "$ac_ct_CC" && break
6541done
6542
6543  if test "x$ac_ct_CC" = x; then
6544    CC=""
6545  else
6546    case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552    CC=$ac_ct_CC
6553  fi
6554fi
6555
6556fi
6557
6558
6559test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6561as_fn_error $? "no acceptable C compiler found in \$PATH
6562See \`config.log' for more details" "$LINENO" 5; }
6563
6564# Provide some information about the compiler.
6565$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6566set X $ac_compile
6567ac_compiler=$2
6568for ac_option in --version -v -V -qversion; do
6569  { { ac_try="$ac_compiler $ac_option >&5"
6570case "(($ac_try" in
6571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572  *) ac_try_echo=$ac_try;;
6573esac
6574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6575$as_echo "$ac_try_echo"; } >&5
6576  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6577  ac_status=$?
6578  if test -s conftest.err; then
6579    sed '10a\
6580... rest of stderr output deleted ...
6581         10q' conftest.err >conftest.er1
6582    cat conftest.er1 >&5
6583  fi
6584  rm -f conftest.er1 conftest.err
6585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586  test $ac_status = 0; }
6587done
6588
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6590$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6591if ${ac_cv_c_compiler_gnu+:} false; then :
6592  $as_echo_n "(cached) " >&6
6593else
6594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595/* end confdefs.h.  */
6596
6597int
6598main ()
6599{
6600#ifndef __GNUC__
6601       choke me
6602#endif
6603
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_compile "$LINENO"; then :
6609  ac_compiler_gnu=yes
6610else
6611  ac_compiler_gnu=no
6612fi
6613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614ac_cv_c_compiler_gnu=$ac_compiler_gnu
6615
6616fi
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6618$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6619if test $ac_compiler_gnu = yes; then
6620  GCC=yes
6621else
6622  GCC=
6623fi
6624ac_test_CFLAGS=${CFLAGS+set}
6625ac_save_CFLAGS=$CFLAGS
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6627$as_echo_n "checking whether $CC accepts -g... " >&6; }
6628if ${ac_cv_prog_cc_g+:} false; then :
6629  $as_echo_n "(cached) " >&6
6630else
6631  ac_save_c_werror_flag=$ac_c_werror_flag
6632   ac_c_werror_flag=yes
6633   ac_cv_prog_cc_g=no
6634   CFLAGS="-g"
6635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637
6638int
6639main ()
6640{
6641
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_compile "$LINENO"; then :
6647  ac_cv_prog_cc_g=yes
6648else
6649  CFLAGS=""
6650      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h.  */
6652
6653int
6654main ()
6655{
6656
6657  ;
6658  return 0;
6659}
6660_ACEOF
6661if ac_fn_c_try_compile "$LINENO"; then :
6662
6663else
6664  ac_c_werror_flag=$ac_save_c_werror_flag
6665	 CFLAGS="-g"
6666	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667/* end confdefs.h.  */
6668
6669int
6670main ()
6671{
6672
6673  ;
6674  return 0;
6675}
6676_ACEOF
6677if ac_fn_c_try_compile "$LINENO"; then :
6678  ac_cv_prog_cc_g=yes
6679fi
6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681fi
6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685   ac_c_werror_flag=$ac_save_c_werror_flag
6686fi
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6688$as_echo "$ac_cv_prog_cc_g" >&6; }
6689if test "$ac_test_CFLAGS" = set; then
6690  CFLAGS=$ac_save_CFLAGS
6691elif test $ac_cv_prog_cc_g = yes; then
6692  if test "$GCC" = yes; then
6693    CFLAGS="-g -O2"
6694  else
6695    CFLAGS="-g"
6696  fi
6697else
6698  if test "$GCC" = yes; then
6699    CFLAGS="-O2"
6700  else
6701    CFLAGS=
6702  fi
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6705$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6706if ${ac_cv_prog_cc_c89+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  ac_cv_prog_cc_c89=no
6710ac_save_CC=$CC
6711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h.  */
6713#include <stdarg.h>
6714#include <stdio.h>
6715#include <sys/types.h>
6716#include <sys/stat.h>
6717/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6718struct buf { int x; };
6719FILE * (*rcsopen) (struct buf *, struct stat *, int);
6720static char *e (p, i)
6721     char **p;
6722     int i;
6723{
6724  return p[i];
6725}
6726static char *f (char * (*g) (char **, int), char **p, ...)
6727{
6728  char *s;
6729  va_list v;
6730  va_start (v,p);
6731  s = g (p, va_arg (v,int));
6732  va_end (v);
6733  return s;
6734}
6735
6736/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6737   function prototypes and stuff, but not '\xHH' hex character constants.
6738   These don't provoke an error unfortunately, instead are silently treated
6739   as 'x'.  The following induces an error, until -std is added to get
6740   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6741   array size at least.  It's necessary to write '\x00'==0 to get something
6742   that's true only with -std.  */
6743int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6744
6745/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6746   inside strings and character constants.  */
6747#define FOO(x) 'x'
6748int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6749
6750int test (int i, double x);
6751struct s1 {int (*f) (int a);};
6752struct s2 {int (*f) (double a);};
6753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6754int argc;
6755char **argv;
6756int
6757main ()
6758{
6759return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6760  ;
6761  return 0;
6762}
6763_ACEOF
6764for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6765	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6766do
6767  CC="$ac_save_CC $ac_arg"
6768  if ac_fn_c_try_compile "$LINENO"; then :
6769  ac_cv_prog_cc_c89=$ac_arg
6770fi
6771rm -f core conftest.err conftest.$ac_objext
6772  test "x$ac_cv_prog_cc_c89" != "xno" && break
6773done
6774rm -f conftest.$ac_ext
6775CC=$ac_save_CC
6776
6777fi
6778# AC_CACHE_VAL
6779case "x$ac_cv_prog_cc_c89" in
6780  x)
6781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6782$as_echo "none needed" >&6; } ;;
6783  xno)
6784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6785$as_echo "unsupported" >&6; } ;;
6786  *)
6787    CC="$CC $ac_cv_prog_cc_c89"
6788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6789$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6790esac
6791if test "x$ac_cv_prog_cc_c89" != xno; then :
6792
6793fi
6794
6795ac_ext=c
6796ac_cpp='$CPP $CPPFLAGS'
6797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800
6801depcc="$CC"   am_compiler_list=
6802
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6804$as_echo_n "checking dependency style of $depcc... " >&6; }
6805if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6809  # We make a subdir and do the tests there.  Otherwise we can end up
6810  # making bogus files that we don't know about and never remove.  For
6811  # instance it was reported that on HP-UX the gcc test will end up
6812  # making a dummy file named `D' -- because `-MD' means `put the output
6813  # in D'.
6814  mkdir conftest.dir
6815  # Copy depcomp to subdir because otherwise we won't find it if we're
6816  # using a relative directory.
6817  cp "$am_depcomp" conftest.dir
6818  cd conftest.dir
6819  # We will build objects and dependencies in a subdirectory because
6820  # it helps to detect inapplicable dependency modes.  For instance
6821  # both Tru64's cc and ICC support -MD to output dependencies as a
6822  # side effect of compilation, but ICC will put the dependencies in
6823  # the current directory while Tru64 will put them in the object
6824  # directory.
6825  mkdir sub
6826
6827  am_cv_CC_dependencies_compiler_type=none
6828  if test "$am_compiler_list" = ""; then
6829     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6830  fi
6831  am__universal=false
6832  case " $depcc " in #(
6833     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6834     esac
6835
6836  for depmode in $am_compiler_list; do
6837    # Setup a source with many dependencies, because some compilers
6838    # like to wrap large dependency lists on column 80 (with \), and
6839    # we should not choose a depcomp mode which is confused by this.
6840    #
6841    # We need to recreate these files for each test, as the compiler may
6842    # overwrite some of them when testing with obscure command lines.
6843    # This happens at least with the AIX C compiler.
6844    : > sub/conftest.c
6845    for i in 1 2 3 4 5 6; do
6846      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6847      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6848      # Solaris 8's {/usr,}/bin/sh.
6849      touch sub/conftst$i.h
6850    done
6851    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6852
6853    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6854    # mode.  It turns out that the SunPro C++ compiler does not properly
6855    # handle `-M -o', and we need to detect this.  Also, some Intel
6856    # versions had trouble with output in subdirs
6857    am__obj=sub/conftest.${OBJEXT-o}
6858    am__minus_obj="-o $am__obj"
6859    case $depmode in
6860    gcc)
6861      # This depmode causes a compiler race in universal mode.
6862      test "$am__universal" = false || continue
6863      ;;
6864    nosideeffect)
6865      # after this tag, mechanisms are not by side-effect, so they'll
6866      # only be used when explicitly requested
6867      if test "x$enable_dependency_tracking" = xyes; then
6868	continue
6869      else
6870	break
6871      fi
6872      ;;
6873    msvisualcpp | msvcmsys)
6874      # This compiler won't grok `-c -o', but also, the minuso test has
6875      # not run yet.  These depmodes are late enough in the game, and
6876      # so weak that their functioning should not be impacted.
6877      am__obj=conftest.${OBJEXT-o}
6878      am__minus_obj=
6879      ;;
6880    none) break ;;
6881    esac
6882    if depmode=$depmode \
6883       source=sub/conftest.c object=$am__obj \
6884       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6885       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6886         >/dev/null 2>conftest.err &&
6887       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6888       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6889       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6890       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6891      # icc doesn't choke on unknown options, it will just issue warnings
6892      # or remarks (even with -Werror).  So we grep stderr for any message
6893      # that says an option was ignored or not supported.
6894      # When given -MP, icc 7.0 and 7.1 complain thusly:
6895      #   icc: Command line warning: ignoring option '-M'; no argument required
6896      # The diagnosis changed in icc 8.0:
6897      #   icc: Command line remark: option '-MP' not supported
6898      if (grep 'ignoring option' conftest.err ||
6899          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6900        am_cv_CC_dependencies_compiler_type=$depmode
6901        break
6902      fi
6903    fi
6904  done
6905
6906  cd ..
6907  rm -rf conftest.dir
6908else
6909  am_cv_CC_dependencies_compiler_type=none
6910fi
6911
6912fi
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6914$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6915CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6916
6917 if
6918  test "x$enable_dependency_tracking" != xno \
6919  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6920  am__fastdepCC_TRUE=
6921  am__fastdepCC_FALSE='#'
6922else
6923  am__fastdepCC_TRUE='#'
6924  am__fastdepCC_FALSE=
6925fi
6926
6927
6928# By default we simply use the C compiler to build assembly code.
6929
6930test "${CCAS+set}" = set || CCAS=$CC
6931test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6932
6933
6934
6935depcc="$CCAS"   am_compiler_list=
6936
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6938$as_echo_n "checking dependency style of $depcc... " >&6; }
6939if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6943  # We make a subdir and do the tests there.  Otherwise we can end up
6944  # making bogus files that we don't know about and never remove.  For
6945  # instance it was reported that on HP-UX the gcc test will end up
6946  # making a dummy file named `D' -- because `-MD' means `put the output
6947  # in D'.
6948  mkdir conftest.dir
6949  # Copy depcomp to subdir because otherwise we won't find it if we're
6950  # using a relative directory.
6951  cp "$am_depcomp" conftest.dir
6952  cd conftest.dir
6953  # We will build objects and dependencies in a subdirectory because
6954  # it helps to detect inapplicable dependency modes.  For instance
6955  # both Tru64's cc and ICC support -MD to output dependencies as a
6956  # side effect of compilation, but ICC will put the dependencies in
6957  # the current directory while Tru64 will put them in the object
6958  # directory.
6959  mkdir sub
6960
6961  am_cv_CCAS_dependencies_compiler_type=none
6962  if test "$am_compiler_list" = ""; then
6963     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6964  fi
6965  am__universal=false
6966
6967
6968  for depmode in $am_compiler_list; do
6969    # Setup a source with many dependencies, because some compilers
6970    # like to wrap large dependency lists on column 80 (with \), and
6971    # we should not choose a depcomp mode which is confused by this.
6972    #
6973    # We need to recreate these files for each test, as the compiler may
6974    # overwrite some of them when testing with obscure command lines.
6975    # This happens at least with the AIX C compiler.
6976    : > sub/conftest.c
6977    for i in 1 2 3 4 5 6; do
6978      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6979      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6980      # Solaris 8's {/usr,}/bin/sh.
6981      touch sub/conftst$i.h
6982    done
6983    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6984
6985    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6986    # mode.  It turns out that the SunPro C++ compiler does not properly
6987    # handle `-M -o', and we need to detect this.  Also, some Intel
6988    # versions had trouble with output in subdirs
6989    am__obj=sub/conftest.${OBJEXT-o}
6990    am__minus_obj="-o $am__obj"
6991    case $depmode in
6992    gcc)
6993      # This depmode causes a compiler race in universal mode.
6994      test "$am__universal" = false || continue
6995      ;;
6996    nosideeffect)
6997      # after this tag, mechanisms are not by side-effect, so they'll
6998      # only be used when explicitly requested
6999      if test "x$enable_dependency_tracking" = xyes; then
7000	continue
7001      else
7002	break
7003      fi
7004      ;;
7005    msvisualcpp | msvcmsys)
7006      # This compiler won't grok `-c -o', but also, the minuso test has
7007      # not run yet.  These depmodes are late enough in the game, and
7008      # so weak that their functioning should not be impacted.
7009      am__obj=conftest.${OBJEXT-o}
7010      am__minus_obj=
7011      ;;
7012    none) break ;;
7013    esac
7014    if depmode=$depmode \
7015       source=sub/conftest.c object=$am__obj \
7016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7017       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7018         >/dev/null 2>conftest.err &&
7019       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7020       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7021       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7022       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7023      # icc doesn't choke on unknown options, it will just issue warnings
7024      # or remarks (even with -Werror).  So we grep stderr for any message
7025      # that says an option was ignored or not supported.
7026      # When given -MP, icc 7.0 and 7.1 complain thusly:
7027      #   icc: Command line warning: ignoring option '-M'; no argument required
7028      # The diagnosis changed in icc 8.0:
7029      #   icc: Command line remark: option '-MP' not supported
7030      if (grep 'ignoring option' conftest.err ||
7031          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7032        am_cv_CCAS_dependencies_compiler_type=$depmode
7033        break
7034      fi
7035    fi
7036  done
7037
7038  cd ..
7039  rm -rf conftest.dir
7040else
7041  am_cv_CCAS_dependencies_compiler_type=none
7042fi
7043
7044fi
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7046$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7047CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7048
7049 if
7050  test "x$enable_dependency_tracking" != xno \
7051  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7052  am__fastdepCCAS_TRUE=
7053  am__fastdepCCAS_FALSE='#'
7054else
7055  am__fastdepCCAS_TRUE='#'
7056  am__fastdepCCAS_FALSE=
7057fi
7058
7059
7060
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7062$as_echo_n "checking whether ln -s works... " >&6; }
7063LN_S=$as_ln_s
7064if test "$LN_S" = "ln -s"; then
7065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066$as_echo "yes" >&6; }
7067else
7068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7069$as_echo "no, using $LN_S" >&6; }
7070fi
7071
7072enable_win32_dll=yes
7073
7074case $host in
7075*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7076  if test -n "$ac_tool_prefix"; then
7077  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7078set dummy ${ac_tool_prefix}as; ac_word=$2
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if ${ac_cv_prog_AS+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  if test -n "$AS"; then
7085  ac_cv_prog_AS="$AS" # Let the user override the test.
7086else
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090  IFS=$as_save_IFS
7091  test -z "$as_dir" && as_dir=.
7092    for ac_exec_ext in '' $ac_executable_extensions; do
7093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094    ac_cv_prog_AS="${ac_tool_prefix}as"
7095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096    break 2
7097  fi
7098done
7099  done
7100IFS=$as_save_IFS
7101
7102fi
7103fi
7104AS=$ac_cv_prog_AS
7105if test -n "$AS"; then
7106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7107$as_echo "$AS" >&6; }
7108else
7109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
7111fi
7112
7113
7114fi
7115if test -z "$ac_cv_prog_AS"; then
7116  ac_ct_AS=$AS
7117  # Extract the first word of "as", so it can be a program name with args.
7118set dummy as; ac_word=$2
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120$as_echo_n "checking for $ac_word... " >&6; }
7121if ${ac_cv_prog_ac_ct_AS+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  if test -n "$ac_ct_AS"; then
7125  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130  IFS=$as_save_IFS
7131  test -z "$as_dir" && as_dir=.
7132    for ac_exec_ext in '' $ac_executable_extensions; do
7133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134    ac_cv_prog_ac_ct_AS="as"
7135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136    break 2
7137  fi
7138done
7139  done
7140IFS=$as_save_IFS
7141
7142fi
7143fi
7144ac_ct_AS=$ac_cv_prog_ac_ct_AS
7145if test -n "$ac_ct_AS"; then
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7147$as_echo "$ac_ct_AS" >&6; }
7148else
7149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150$as_echo "no" >&6; }
7151fi
7152
7153  if test "x$ac_ct_AS" = x; then
7154    AS="false"
7155  else
7156    case $cross_compiling:$ac_tool_warned in
7157yes:)
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160ac_tool_warned=yes ;;
7161esac
7162    AS=$ac_ct_AS
7163  fi
7164else
7165  AS="$ac_cv_prog_AS"
7166fi
7167
7168  if test -n "$ac_tool_prefix"; then
7169  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7170set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172$as_echo_n "checking for $ac_word... " >&6; }
7173if ${ac_cv_prog_DLLTOOL+:} false; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  if test -n "$DLLTOOL"; then
7177  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  test -z "$as_dir" && as_dir=.
7184    for ac_exec_ext in '' $ac_executable_extensions; do
7185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188    break 2
7189  fi
7190done
7191  done
7192IFS=$as_save_IFS
7193
7194fi
7195fi
7196DLLTOOL=$ac_cv_prog_DLLTOOL
7197if test -n "$DLLTOOL"; then
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7199$as_echo "$DLLTOOL" >&6; }
7200else
7201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202$as_echo "no" >&6; }
7203fi
7204
7205
7206fi
7207if test -z "$ac_cv_prog_DLLTOOL"; then
7208  ac_ct_DLLTOOL=$DLLTOOL
7209  # Extract the first word of "dlltool", so it can be a program name with args.
7210set dummy dlltool; ac_word=$2
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212$as_echo_n "checking for $ac_word... " >&6; }
7213if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  if test -n "$ac_ct_DLLTOOL"; then
7217  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222  IFS=$as_save_IFS
7223  test -z "$as_dir" && as_dir=.
7224    for ac_exec_ext in '' $ac_executable_extensions; do
7225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228    break 2
7229  fi
7230done
7231  done
7232IFS=$as_save_IFS
7233
7234fi
7235fi
7236ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7237if test -n "$ac_ct_DLLTOOL"; then
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7239$as_echo "$ac_ct_DLLTOOL" >&6; }
7240else
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245  if test "x$ac_ct_DLLTOOL" = x; then
7246    DLLTOOL="false"
7247  else
7248    case $cross_compiling:$ac_tool_warned in
7249yes:)
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252ac_tool_warned=yes ;;
7253esac
7254    DLLTOOL=$ac_ct_DLLTOOL
7255  fi
7256else
7257  DLLTOOL="$ac_cv_prog_DLLTOOL"
7258fi
7259
7260  if test -n "$ac_tool_prefix"; then
7261  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7262set dummy ${ac_tool_prefix}objdump; ac_word=$2
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264$as_echo_n "checking for $ac_word... " >&6; }
7265if ${ac_cv_prog_OBJDUMP+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  if test -n "$OBJDUMP"; then
7269  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276    for ac_exec_ext in '' $ac_executable_extensions; do
7277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283  done
7284IFS=$as_save_IFS
7285
7286fi
7287fi
7288OBJDUMP=$ac_cv_prog_OBJDUMP
7289if test -n "$OBJDUMP"; then
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7291$as_echo "$OBJDUMP" >&6; }
7292else
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296
7297
7298fi
7299if test -z "$ac_cv_prog_OBJDUMP"; then
7300  ac_ct_OBJDUMP=$OBJDUMP
7301  # Extract the first word of "objdump", so it can be a program name with args.
7302set dummy objdump; ac_word=$2
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  if test -n "$ac_ct_OBJDUMP"; then
7309  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314  IFS=$as_save_IFS
7315  test -z "$as_dir" && as_dir=.
7316    for ac_exec_ext in '' $ac_executable_extensions; do
7317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320    break 2
7321  fi
7322done
7323  done
7324IFS=$as_save_IFS
7325
7326fi
7327fi
7328ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7329if test -n "$ac_ct_OBJDUMP"; then
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7331$as_echo "$ac_ct_OBJDUMP" >&6; }
7332else
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
7336
7337  if test "x$ac_ct_OBJDUMP" = x; then
7338    OBJDUMP="false"
7339  else
7340    case $cross_compiling:$ac_tool_warned in
7341yes:)
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344ac_tool_warned=yes ;;
7345esac
7346    OBJDUMP=$ac_ct_OBJDUMP
7347  fi
7348else
7349  OBJDUMP="$ac_cv_prog_OBJDUMP"
7350fi
7351
7352  ;;
7353esac
7354
7355test -z "$AS" && AS=as
7356
7357
7358
7359
7360
7361test -z "$DLLTOOL" && DLLTOOL=dlltool
7362
7363
7364
7365
7366
7367test -z "$OBJDUMP" && OBJDUMP=objdump
7368
7369
7370
7371
7372
7373
7374
7375# Check whether --enable-static was given.
7376if test "${enable_static+set}" = set; then :
7377  enableval=$enable_static; p=${PACKAGE-default}
7378    case $enableval in
7379    yes) enable_static=yes ;;
7380    no) enable_static=no ;;
7381    *)
7382     enable_static=no
7383      # Look at the argument we got.  We use all the common list separators.
7384      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7385      for pkg in $enableval; do
7386	IFS="$lt_save_ifs"
7387	if test "X$pkg" = "X$p"; then
7388	  enable_static=yes
7389	fi
7390      done
7391      IFS="$lt_save_ifs"
7392      ;;
7393    esac
7394else
7395  enable_static=no
7396fi
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406case `pwd` in
7407  *\ * | *\	*)
7408    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7409$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7410esac
7411
7412
7413
7414macro_version='2.4'
7415macro_revision='1.3293'
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429ltmain="$ac_aux_dir/ltmain.sh"
7430
7431# Backslashify metacharacters that are still active within
7432# double-quoted strings.
7433sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7434
7435# Same as above, but do not quote variable references.
7436double_quote_subst='s/\(["`\\]\)/\\\1/g'
7437
7438# Sed substitution to delay expansion of an escaped shell variable in a
7439# double_quote_subst'ed string.
7440delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7441
7442# Sed substitution to delay expansion of an escaped single quote.
7443delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7444
7445# Sed substitution to avoid accidental globbing in evaled expressions
7446no_glob_subst='s/\*/\\\*/g'
7447
7448ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7449ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7450ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7451
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7453$as_echo_n "checking how to print strings... " >&6; }
7454# Test print first, because it will be a builtin if present.
7455if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7456   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7457  ECHO='print -r --'
7458elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7459  ECHO='printf %s\n'
7460else
7461  # Use this function as a fallback that always works.
7462  func_fallback_echo ()
7463  {
7464    eval 'cat <<_LTECHO_EOF
7465$1
7466_LTECHO_EOF'
7467  }
7468  ECHO='func_fallback_echo'
7469fi
7470
7471# func_echo_all arg...
7472# Invoke $ECHO with all args, space-separated.
7473func_echo_all ()
7474{
7475    $ECHO ""
7476}
7477
7478case "$ECHO" in
7479  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7480$as_echo "printf" >&6; } ;;
7481  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7482$as_echo "print -r" >&6; } ;;
7483  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7484$as_echo "cat" >&6; } ;;
7485esac
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7501$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7502if ${ac_cv_path_SED+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7506     for ac_i in 1 2 3 4 5 6 7; do
7507       ac_script="$ac_script$as_nl$ac_script"
7508     done
7509     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7510     { ac_script=; unset ac_script;}
7511     if test -z "$SED"; then
7512  ac_path_SED_found=false
7513  # Loop through the user's path and test for each of PROGNAME-LIST
7514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517  IFS=$as_save_IFS
7518  test -z "$as_dir" && as_dir=.
7519    for ac_prog in sed gsed; do
7520    for ac_exec_ext in '' $ac_executable_extensions; do
7521      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7522      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7523# Check for GNU ac_path_SED and select it if it is found.
7524  # Check for GNU $ac_path_SED
7525case `"$ac_path_SED" --version 2>&1` in
7526*GNU*)
7527  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7528*)
7529  ac_count=0
7530  $as_echo_n 0123456789 >"conftest.in"
7531  while :
7532  do
7533    cat "conftest.in" "conftest.in" >"conftest.tmp"
7534    mv "conftest.tmp" "conftest.in"
7535    cp "conftest.in" "conftest.nl"
7536    $as_echo '' >> "conftest.nl"
7537    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7538    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7539    as_fn_arith $ac_count + 1 && ac_count=$as_val
7540    if test $ac_count -gt ${ac_path_SED_max-0}; then
7541      # Best one so far, save it but keep looking for a better one
7542      ac_cv_path_SED="$ac_path_SED"
7543      ac_path_SED_max=$ac_count
7544    fi
7545    # 10*(2^10) chars as input seems more than enough
7546    test $ac_count -gt 10 && break
7547  done
7548  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7549esac
7550
7551      $ac_path_SED_found && break 3
7552    done
7553  done
7554  done
7555IFS=$as_save_IFS
7556  if test -z "$ac_cv_path_SED"; then
7557    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7558  fi
7559else
7560  ac_cv_path_SED=$SED
7561fi
7562
7563fi
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7565$as_echo "$ac_cv_path_SED" >&6; }
7566 SED="$ac_cv_path_SED"
7567  rm -f conftest.sed
7568
7569test -z "$SED" && SED=sed
7570Xsed="$SED -e 1s/^X//"
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7583$as_echo_n "checking for fgrep... " >&6; }
7584if ${ac_cv_path_FGREP+:} false; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7588   then ac_cv_path_FGREP="$GREP -F"
7589   else
7590     if test -z "$FGREP"; then
7591  ac_path_FGREP_found=false
7592  # Loop through the user's path and test for each of PROGNAME-LIST
7593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7595do
7596  IFS=$as_save_IFS
7597  test -z "$as_dir" && as_dir=.
7598    for ac_prog in fgrep; do
7599    for ac_exec_ext in '' $ac_executable_extensions; do
7600      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7601      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7602# Check for GNU ac_path_FGREP and select it if it is found.
7603  # Check for GNU $ac_path_FGREP
7604case `"$ac_path_FGREP" --version 2>&1` in
7605*GNU*)
7606  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7607*)
7608  ac_count=0
7609  $as_echo_n 0123456789 >"conftest.in"
7610  while :
7611  do
7612    cat "conftest.in" "conftest.in" >"conftest.tmp"
7613    mv "conftest.tmp" "conftest.in"
7614    cp "conftest.in" "conftest.nl"
7615    $as_echo 'FGREP' >> "conftest.nl"
7616    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7617    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7618    as_fn_arith $ac_count + 1 && ac_count=$as_val
7619    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7620      # Best one so far, save it but keep looking for a better one
7621      ac_cv_path_FGREP="$ac_path_FGREP"
7622      ac_path_FGREP_max=$ac_count
7623    fi
7624    # 10*(2^10) chars as input seems more than enough
7625    test $ac_count -gt 10 && break
7626  done
7627  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7628esac
7629
7630      $ac_path_FGREP_found && break 3
7631    done
7632  done
7633  done
7634IFS=$as_save_IFS
7635  if test -z "$ac_cv_path_FGREP"; then
7636    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7637  fi
7638else
7639  ac_cv_path_FGREP=$FGREP
7640fi
7641
7642   fi
7643fi
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7645$as_echo "$ac_cv_path_FGREP" >&6; }
7646 FGREP="$ac_cv_path_FGREP"
7647
7648
7649test -z "$GREP" && GREP=grep
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669# Check whether --with-gnu-ld was given.
7670if test "${with_gnu_ld+set}" = set; then :
7671  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7672else
7673  with_gnu_ld=no
7674fi
7675
7676ac_prog=ld
7677if test "$GCC" = yes; then
7678  # Check if gcc -print-prog-name=ld gives a path.
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7680$as_echo_n "checking for ld used by $CC... " >&6; }
7681  case $host in
7682  *-*-mingw*)
7683    # gcc leaves a trailing carriage return which upsets mingw
7684    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7685  *)
7686    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7687  esac
7688  case $ac_prog in
7689    # Accept absolute paths.
7690    [\\/]* | ?:[\\/]*)
7691      re_direlt='/[^/][^/]*/\.\./'
7692      # Canonicalize the pathname of ld
7693      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7694      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7695	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7696      done
7697      test -z "$LD" && LD="$ac_prog"
7698      ;;
7699  "")
7700    # If it fails, then pretend we aren't using GCC.
7701    ac_prog=ld
7702    ;;
7703  *)
7704    # If it is relative, then search for the first ld in PATH.
7705    with_gnu_ld=unknown
7706    ;;
7707  esac
7708elif test "$with_gnu_ld" = yes; then
7709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7710$as_echo_n "checking for GNU ld... " >&6; }
7711else
7712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7713$as_echo_n "checking for non-GNU ld... " >&6; }
7714fi
7715if ${lt_cv_path_LD+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  if test -z "$LD"; then
7719  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7720  for ac_dir in $PATH; do
7721    IFS="$lt_save_ifs"
7722    test -z "$ac_dir" && ac_dir=.
7723    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7724      lt_cv_path_LD="$ac_dir/$ac_prog"
7725      # Check to see if the program is GNU ld.  I'd rather use --version,
7726      # but apparently some variants of GNU ld only accept -v.
7727      # Break only if it was the GNU/non-GNU ld that we prefer.
7728      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7729      *GNU* | *'with BFD'*)
7730	test "$with_gnu_ld" != no && break
7731	;;
7732      *)
7733	test "$with_gnu_ld" != yes && break
7734	;;
7735      esac
7736    fi
7737  done
7738  IFS="$lt_save_ifs"
7739else
7740  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7741fi
7742fi
7743
7744LD="$lt_cv_path_LD"
7745if test -n "$LD"; then
7746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7747$as_echo "$LD" >&6; }
7748else
7749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
7751fi
7752test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7754$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7755if ${lt_cv_prog_gnu_ld+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7759case `$LD -v 2>&1 </dev/null` in
7760*GNU* | *'with BFD'*)
7761  lt_cv_prog_gnu_ld=yes
7762  ;;
7763*)
7764  lt_cv_prog_gnu_ld=no
7765  ;;
7766esac
7767fi
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7769$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7770with_gnu_ld=$lt_cv_prog_gnu_ld
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7781$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7782if ${lt_cv_path_NM+:} false; then :
7783  $as_echo_n "(cached) " >&6
7784else
7785  if test -n "$NM"; then
7786  # Let the user override the test.
7787  lt_cv_path_NM="$NM"
7788else
7789  lt_nm_to_check="${ac_tool_prefix}nm"
7790  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7791    lt_nm_to_check="$lt_nm_to_check nm"
7792  fi
7793  for lt_tmp_nm in $lt_nm_to_check; do
7794    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7795    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7796      IFS="$lt_save_ifs"
7797      test -z "$ac_dir" && ac_dir=.
7798      tmp_nm="$ac_dir/$lt_tmp_nm"
7799      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7800	# Check to see if the nm accepts a BSD-compat flag.
7801	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7802	#   nm: unknown option "B" ignored
7803	# Tru64's nm complains that /dev/null is an invalid object file
7804	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7805	*/dev/null* | *'Invalid file or object type'*)
7806	  lt_cv_path_NM="$tmp_nm -B"
7807	  break
7808	  ;;
7809	*)
7810	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7811	  */dev/null*)
7812	    lt_cv_path_NM="$tmp_nm -p"
7813	    break
7814	    ;;
7815	  *)
7816	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7817	    continue # so that we can try to find one that supports BSD flags
7818	    ;;
7819	  esac
7820	  ;;
7821	esac
7822      fi
7823    done
7824    IFS="$lt_save_ifs"
7825  done
7826  : ${lt_cv_path_NM=no}
7827fi
7828fi
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7830$as_echo "$lt_cv_path_NM" >&6; }
7831if test "$lt_cv_path_NM" != "no"; then
7832  NM="$lt_cv_path_NM"
7833else
7834  # Didn't find any BSD compatible name lister, look for dumpbin.
7835  if test -n "$DUMPBIN"; then :
7836    # Let the user override the test.
7837  else
7838    if test -n "$ac_tool_prefix"; then
7839  for ac_prog in dumpbin "link -dump"
7840  do
7841    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if ${ac_cv_prog_DUMPBIN+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  if test -n "$DUMPBIN"; then
7849  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854  IFS=$as_save_IFS
7855  test -z "$as_dir" && as_dir=.
7856    for ac_exec_ext in '' $ac_executable_extensions; do
7857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860    break 2
7861  fi
7862done
7863  done
7864IFS=$as_save_IFS
7865
7866fi
7867fi
7868DUMPBIN=$ac_cv_prog_DUMPBIN
7869if test -n "$DUMPBIN"; then
7870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7871$as_echo "$DUMPBIN" >&6; }
7872else
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877
7878    test -n "$DUMPBIN" && break
7879  done
7880fi
7881if test -z "$DUMPBIN"; then
7882  ac_ct_DUMPBIN=$DUMPBIN
7883  for ac_prog in dumpbin "link -dump"
7884do
7885  # Extract the first word of "$ac_prog", so it can be a program name with args.
7886set dummy $ac_prog; ac_word=$2
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888$as_echo_n "checking for $ac_word... " >&6; }
7889if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  if test -n "$ac_ct_DUMPBIN"; then
7893  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7894else
7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898  IFS=$as_save_IFS
7899  test -z "$as_dir" && as_dir=.
7900    for ac_exec_ext in '' $ac_executable_extensions; do
7901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904    break 2
7905  fi
7906done
7907  done
7908IFS=$as_save_IFS
7909
7910fi
7911fi
7912ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7913if test -n "$ac_ct_DUMPBIN"; then
7914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7915$as_echo "$ac_ct_DUMPBIN" >&6; }
7916else
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919fi
7920
7921
7922  test -n "$ac_ct_DUMPBIN" && break
7923done
7924
7925  if test "x$ac_ct_DUMPBIN" = x; then
7926    DUMPBIN=":"
7927  else
7928    case $cross_compiling:$ac_tool_warned in
7929yes:)
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932ac_tool_warned=yes ;;
7933esac
7934    DUMPBIN=$ac_ct_DUMPBIN
7935  fi
7936fi
7937
7938    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7939    *COFF*)
7940      DUMPBIN="$DUMPBIN -symbols"
7941      ;;
7942    *)
7943      DUMPBIN=:
7944      ;;
7945    esac
7946  fi
7947
7948  if test "$DUMPBIN" != ":"; then
7949    NM="$DUMPBIN"
7950  fi
7951fi
7952test -z "$NM" && NM=nm
7953
7954
7955
7956
7957
7958
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7960$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7961if ${lt_cv_nm_interface+:} false; then :
7962  $as_echo_n "(cached) " >&6
7963else
7964  lt_cv_nm_interface="BSD nm"
7965  echo "int some_variable = 0;" > conftest.$ac_ext
7966  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7967  (eval "$ac_compile" 2>conftest.err)
7968  cat conftest.err >&5
7969  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7970  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7971  cat conftest.err >&5
7972  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7973  cat conftest.out >&5
7974  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7975    lt_cv_nm_interface="MS dumpbin"
7976  fi
7977  rm -f conftest*
7978fi
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7980$as_echo "$lt_cv_nm_interface" >&6; }
7981
7982# find the maximum length of command line arguments
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7984$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7985if ${lt_cv_sys_max_cmd_len+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988    i=0
7989  teststring="ABCD"
7990
7991  case $build_os in
7992  msdosdjgpp*)
7993    # On DJGPP, this test can blow up pretty badly due to problems in libc
7994    # (any single argument exceeding 2000 bytes causes a buffer overrun
7995    # during glob expansion).  Even if it were fixed, the result of this
7996    # check would be larger than it should be.
7997    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7998    ;;
7999
8000  gnu*)
8001    # Under GNU Hurd, this test is not required because there is
8002    # no limit to the length of command line arguments.
8003    # Libtool will interpret -1 as no limit whatsoever
8004    lt_cv_sys_max_cmd_len=-1;
8005    ;;
8006
8007  cygwin* | mingw* | cegcc*)
8008    # On Win9x/ME, this test blows up -- it succeeds, but takes
8009    # about 5 minutes as the teststring grows exponentially.
8010    # Worse, since 9x/ME are not pre-emptively multitasking,
8011    # you end up with a "frozen" computer, even though with patience
8012    # the test eventually succeeds (with a max line length of 256k).
8013    # Instead, let's just punt: use the minimum linelength reported by
8014    # all of the supported platforms: 8192 (on NT/2K/XP).
8015    lt_cv_sys_max_cmd_len=8192;
8016    ;;
8017
8018  mint*)
8019    # On MiNT this can take a long time and run out of memory.
8020    lt_cv_sys_max_cmd_len=8192;
8021    ;;
8022
8023  amigaos*)
8024    # On AmigaOS with pdksh, this test takes hours, literally.
8025    # So we just punt and use a minimum line length of 8192.
8026    lt_cv_sys_max_cmd_len=8192;
8027    ;;
8028
8029  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8030    # This has been around since 386BSD, at least.  Likely further.
8031    if test -x /sbin/sysctl; then
8032      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8033    elif test -x /usr/sbin/sysctl; then
8034      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8035    else
8036      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8037    fi
8038    # And add a safety zone
8039    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8040    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8041    ;;
8042
8043  interix*)
8044    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8045    lt_cv_sys_max_cmd_len=196608
8046    ;;
8047
8048  osf*)
8049    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8050    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8051    # nice to cause kernel panics so lets avoid the loop below.
8052    # First set a reasonable default.
8053    lt_cv_sys_max_cmd_len=16384
8054    #
8055    if test -x /sbin/sysconfig; then
8056      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8057        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8058      esac
8059    fi
8060    ;;
8061  sco3.2v5*)
8062    lt_cv_sys_max_cmd_len=102400
8063    ;;
8064  sysv5* | sco5v6* | sysv4.2uw2*)
8065    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8066    if test -n "$kargmax"; then
8067      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8068    else
8069      lt_cv_sys_max_cmd_len=32768
8070    fi
8071    ;;
8072  *)
8073    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8074    if test -n "$lt_cv_sys_max_cmd_len"; then
8075      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8076      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8077    else
8078      # Make teststring a little bigger before we do anything with it.
8079      # a 1K string should be a reasonable start.
8080      for i in 1 2 3 4 5 6 7 8 ; do
8081        teststring=$teststring$teststring
8082      done
8083      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8084      # If test is not a shell built-in, we'll probably end up computing a
8085      # maximum length that is only half of the actual maximum length, but
8086      # we can't tell.
8087      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8088	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8089	      test $i != 17 # 1/2 MB should be enough
8090      do
8091        i=`expr $i + 1`
8092        teststring=$teststring$teststring
8093      done
8094      # Only check the string length outside the loop.
8095      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8096      teststring=
8097      # Add a significant safety factor because C++ compilers can tack on
8098      # massive amounts of additional arguments before passing them to the
8099      # linker.  It appears as though 1/2 is a usable value.
8100      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8101    fi
8102    ;;
8103  esac
8104
8105fi
8106
8107if test -n $lt_cv_sys_max_cmd_len ; then
8108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8109$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8110else
8111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8112$as_echo "none" >&6; }
8113fi
8114max_cmd_len=$lt_cv_sys_max_cmd_len
8115
8116
8117
8118
8119
8120
8121: ${CP="cp -f"}
8122: ${MV="mv -f"}
8123: ${RM="rm -f"}
8124
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8126$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8127# Try some XSI features
8128xsi_shell=no
8129( _lt_dummy="a/b/c"
8130  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8131      = c,a/b,b/c, \
8132    && eval 'test $(( 1 + 1 )) -eq 2 \
8133    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8134  && xsi_shell=yes
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8136$as_echo "$xsi_shell" >&6; }
8137
8138
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8140$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8141lt_shell_append=no
8142( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8143    >/dev/null 2>&1 \
8144  && lt_shell_append=yes
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8146$as_echo "$lt_shell_append" >&6; }
8147
8148
8149if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8150  lt_unset=unset
8151else
8152  lt_unset=false
8153fi
8154
8155
8156
8157
8158
8159# test EBCDIC or ASCII
8160case `echo X|tr X '\101'` in
8161 A) # ASCII based system
8162    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8163  lt_SP2NL='tr \040 \012'
8164  lt_NL2SP='tr \015\012 \040\040'
8165  ;;
8166 *) # EBCDIC based system
8167  lt_SP2NL='tr \100 \n'
8168  lt_NL2SP='tr \r\n \100\100'
8169  ;;
8170esac
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8181$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8182if ${lt_cv_to_host_file_cmd+:} false; then :
8183  $as_echo_n "(cached) " >&6
8184else
8185  case $host in
8186  *-*-mingw* )
8187    case $build in
8188      *-*-mingw* ) # actually msys
8189        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8190        ;;
8191      *-*-cygwin* )
8192        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8193        ;;
8194      * ) # otherwise, assume *nix
8195        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8196        ;;
8197    esac
8198    ;;
8199  *-*-cygwin* )
8200    case $build in
8201      *-*-mingw* ) # actually msys
8202        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8203        ;;
8204      *-*-cygwin* )
8205        lt_cv_to_host_file_cmd=func_convert_file_noop
8206        ;;
8207      * ) # otherwise, assume *nix
8208        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8209        ;;
8210    esac
8211    ;;
8212  * ) # unhandled hosts (and "normal" native builds)
8213    lt_cv_to_host_file_cmd=func_convert_file_noop
8214    ;;
8215esac
8216
8217fi
8218
8219to_host_file_cmd=$lt_cv_to_host_file_cmd
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8221$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8222
8223
8224
8225
8226
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8228$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8229if ${lt_cv_to_tool_file_cmd+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  #assume ordinary cross tools, or native build.
8233lt_cv_to_tool_file_cmd=func_convert_file_noop
8234case $host in
8235  *-*-mingw* )
8236    case $build in
8237      *-*-mingw* ) # actually msys
8238        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8239        ;;
8240    esac
8241    ;;
8242esac
8243
8244fi
8245
8246to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8248$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8249
8250
8251
8252
8253
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8255$as_echo_n "checking for $LD option to reload object files... " >&6; }
8256if ${lt_cv_ld_reload_flag+:} false; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  lt_cv_ld_reload_flag='-r'
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8262$as_echo "$lt_cv_ld_reload_flag" >&6; }
8263reload_flag=$lt_cv_ld_reload_flag
8264case $reload_flag in
8265"" | " "*) ;;
8266*) reload_flag=" $reload_flag" ;;
8267esac
8268reload_cmds='$LD$reload_flag -o $output$reload_objs'
8269case $host_os in
8270  cygwin* | mingw* | pw32* | cegcc*)
8271    if test "$GCC" != yes; then
8272      reload_cmds=false
8273    fi
8274    ;;
8275  darwin*)
8276    if test "$GCC" = yes; then
8277      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8278    else
8279      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8280    fi
8281    ;;
8282esac
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292if test -n "$ac_tool_prefix"; then
8293  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8294set dummy ${ac_tool_prefix}objdump; ac_word=$2
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296$as_echo_n "checking for $ac_word... " >&6; }
8297if ${ac_cv_prog_OBJDUMP+:} false; then :
8298  $as_echo_n "(cached) " >&6
8299else
8300  if test -n "$OBJDUMP"; then
8301  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8302else
8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304for as_dir in $PATH
8305do
8306  IFS=$as_save_IFS
8307  test -z "$as_dir" && as_dir=.
8308    for ac_exec_ext in '' $ac_executable_extensions; do
8309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312    break 2
8313  fi
8314done
8315  done
8316IFS=$as_save_IFS
8317
8318fi
8319fi
8320OBJDUMP=$ac_cv_prog_OBJDUMP
8321if test -n "$OBJDUMP"; then
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8323$as_echo "$OBJDUMP" >&6; }
8324else
8325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326$as_echo "no" >&6; }
8327fi
8328
8329
8330fi
8331if test -z "$ac_cv_prog_OBJDUMP"; then
8332  ac_ct_OBJDUMP=$OBJDUMP
8333  # Extract the first word of "objdump", so it can be a program name with args.
8334set dummy objdump; ac_word=$2
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336$as_echo_n "checking for $ac_word... " >&6; }
8337if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8338  $as_echo_n "(cached) " >&6
8339else
8340  if test -n "$ac_ct_OBJDUMP"; then
8341  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8342else
8343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344for as_dir in $PATH
8345do
8346  IFS=$as_save_IFS
8347  test -z "$as_dir" && as_dir=.
8348    for ac_exec_ext in '' $ac_executable_extensions; do
8349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352    break 2
8353  fi
8354done
8355  done
8356IFS=$as_save_IFS
8357
8358fi
8359fi
8360ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8361if test -n "$ac_ct_OBJDUMP"; then
8362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8363$as_echo "$ac_ct_OBJDUMP" >&6; }
8364else
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
8367fi
8368
8369  if test "x$ac_ct_OBJDUMP" = x; then
8370    OBJDUMP="false"
8371  else
8372    case $cross_compiling:$ac_tool_warned in
8373yes:)
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376ac_tool_warned=yes ;;
8377esac
8378    OBJDUMP=$ac_ct_OBJDUMP
8379  fi
8380else
8381  OBJDUMP="$ac_cv_prog_OBJDUMP"
8382fi
8383
8384test -z "$OBJDUMP" && OBJDUMP=objdump
8385
8386
8387
8388
8389
8390
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8392$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8393if ${lt_cv_deplibs_check_method+:} false; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  lt_cv_file_magic_cmd='$MAGIC_CMD'
8397lt_cv_file_magic_test_file=
8398lt_cv_deplibs_check_method='unknown'
8399# Need to set the preceding variable on all platforms that support
8400# interlibrary dependencies.
8401# 'none' -- dependencies not supported.
8402# `unknown' -- same as none, but documents that we really don't know.
8403# 'pass_all' -- all dependencies passed with no checks.
8404# 'test_compile' -- check by making test program.
8405# 'file_magic [[regex]]' -- check by looking for files in library path
8406# which responds to the $file_magic_cmd with a given extended regex.
8407# If you have `file' or equivalent on your system and you're not sure
8408# whether `pass_all' will *always* work, you probably want this one.
8409
8410case $host_os in
8411aix[4-9]*)
8412  lt_cv_deplibs_check_method=pass_all
8413  ;;
8414
8415beos*)
8416  lt_cv_deplibs_check_method=pass_all
8417  ;;
8418
8419bsdi[45]*)
8420  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8421  lt_cv_file_magic_cmd='/usr/bin/file -L'
8422  lt_cv_file_magic_test_file=/shlib/libc.so
8423  ;;
8424
8425cygwin*)
8426  # func_win32_libid is a shell function defined in ltmain.sh
8427  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8428  lt_cv_file_magic_cmd='func_win32_libid'
8429  ;;
8430
8431mingw* | pw32*)
8432  # Base MSYS/MinGW do not provide the 'file' command needed by
8433  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8434  # unless we find 'file', for example because we are cross-compiling.
8435  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8436  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8437    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8438    lt_cv_file_magic_cmd='func_win32_libid'
8439  else
8440    # Keep this pattern in sync with the one in func_win32_libid.
8441    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8442    lt_cv_file_magic_cmd='$OBJDUMP -f'
8443  fi
8444  ;;
8445
8446cegcc*)
8447  # use the weaker test based on 'objdump'. See mingw*.
8448  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8449  lt_cv_file_magic_cmd='$OBJDUMP -f'
8450  ;;
8451
8452darwin* | rhapsody*)
8453  lt_cv_deplibs_check_method=pass_all
8454  ;;
8455
8456freebsd* | dragonfly*)
8457  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8458    case $host_cpu in
8459    i*86 )
8460      # Not sure whether the presence of OpenBSD here was a mistake.
8461      # Let's accept both of them until this is cleared up.
8462      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8463      lt_cv_file_magic_cmd=/usr/bin/file
8464      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8465      ;;
8466    esac
8467  else
8468    lt_cv_deplibs_check_method=pass_all
8469  fi
8470  ;;
8471
8472gnu*)
8473  lt_cv_deplibs_check_method=pass_all
8474  ;;
8475
8476haiku*)
8477  lt_cv_deplibs_check_method=pass_all
8478  ;;
8479
8480hpux10.20* | hpux11*)
8481  lt_cv_file_magic_cmd=/usr/bin/file
8482  case $host_cpu in
8483  ia64*)
8484    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8485    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8486    ;;
8487  hppa*64*)
8488    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]'
8489    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8490    ;;
8491  *)
8492    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8493    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8494    ;;
8495  esac
8496  ;;
8497
8498interix[3-9]*)
8499  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8500  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8501  ;;
8502
8503irix5* | irix6* | nonstopux*)
8504  case $LD in
8505  *-32|*"-32 ") libmagic=32-bit;;
8506  *-n32|*"-n32 ") libmagic=N32;;
8507  *-64|*"-64 ") libmagic=64-bit;;
8508  *) libmagic=never-match;;
8509  esac
8510  lt_cv_deplibs_check_method=pass_all
8511  ;;
8512
8513# This must be Linux ELF.
8514linux* | k*bsd*-gnu | kopensolaris*-gnu)
8515  lt_cv_deplibs_check_method=pass_all
8516  ;;
8517
8518netbsd*)
8519  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8520    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8521  else
8522    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8523  fi
8524  ;;
8525
8526newos6*)
8527  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8528  lt_cv_file_magic_cmd=/usr/bin/file
8529  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8530  ;;
8531
8532*nto* | *qnx*)
8533  lt_cv_deplibs_check_method=pass_all
8534  ;;
8535
8536openbsd*)
8537  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8538    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8539  else
8540    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8541  fi
8542  ;;
8543
8544osf3* | osf4* | osf5*)
8545  lt_cv_deplibs_check_method=pass_all
8546  ;;
8547
8548rdos*)
8549  lt_cv_deplibs_check_method=pass_all
8550  ;;
8551
8552solaris*)
8553  lt_cv_deplibs_check_method=pass_all
8554  ;;
8555
8556sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8557  lt_cv_deplibs_check_method=pass_all
8558  ;;
8559
8560sysv4 | sysv4.3*)
8561  case $host_vendor in
8562  motorola)
8563    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]'
8564    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8565    ;;
8566  ncr)
8567    lt_cv_deplibs_check_method=pass_all
8568    ;;
8569  sequent)
8570    lt_cv_file_magic_cmd='/bin/file'
8571    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8572    ;;
8573  sni)
8574    lt_cv_file_magic_cmd='/bin/file'
8575    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8576    lt_cv_file_magic_test_file=/lib/libc.so
8577    ;;
8578  siemens)
8579    lt_cv_deplibs_check_method=pass_all
8580    ;;
8581  pc)
8582    lt_cv_deplibs_check_method=pass_all
8583    ;;
8584  esac
8585  ;;
8586
8587tpf*)
8588  lt_cv_deplibs_check_method=pass_all
8589  ;;
8590esac
8591
8592fi
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8594$as_echo "$lt_cv_deplibs_check_method" >&6; }
8595
8596file_magic_glob=
8597want_nocaseglob=no
8598if test "$build" = "$host"; then
8599  case $host_os in
8600  mingw* | pw32*)
8601    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8602      want_nocaseglob=yes
8603    else
8604      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8605    fi
8606    ;;
8607  esac
8608fi
8609
8610file_magic_cmd=$lt_cv_file_magic_cmd
8611deplibs_check_method=$lt_cv_deplibs_check_method
8612test -z "$deplibs_check_method" && deplibs_check_method=unknown
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635if test -n "$ac_tool_prefix"; then
8636  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8637set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if ${ac_cv_prog_DLLTOOL+:} false; then :
8641  $as_echo_n "(cached) " >&6
8642else
8643  if test -n "$DLLTOOL"; then
8644  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8645else
8646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649  IFS=$as_save_IFS
8650  test -z "$as_dir" && as_dir=.
8651    for ac_exec_ext in '' $ac_executable_extensions; do
8652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655    break 2
8656  fi
8657done
8658  done
8659IFS=$as_save_IFS
8660
8661fi
8662fi
8663DLLTOOL=$ac_cv_prog_DLLTOOL
8664if test -n "$DLLTOOL"; then
8665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8666$as_echo "$DLLTOOL" >&6; }
8667else
8668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669$as_echo "no" >&6; }
8670fi
8671
8672
8673fi
8674if test -z "$ac_cv_prog_DLLTOOL"; then
8675  ac_ct_DLLTOOL=$DLLTOOL
8676  # Extract the first word of "dlltool", so it can be a program name with args.
8677set dummy dlltool; ac_word=$2
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679$as_echo_n "checking for $ac_word... " >&6; }
8680if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  if test -n "$ac_ct_DLLTOOL"; then
8684  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8685else
8686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689  IFS=$as_save_IFS
8690  test -z "$as_dir" && as_dir=.
8691    for ac_exec_ext in '' $ac_executable_extensions; do
8692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695    break 2
8696  fi
8697done
8698  done
8699IFS=$as_save_IFS
8700
8701fi
8702fi
8703ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8704if test -n "$ac_ct_DLLTOOL"; then
8705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8706$as_echo "$ac_ct_DLLTOOL" >&6; }
8707else
8708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709$as_echo "no" >&6; }
8710fi
8711
8712  if test "x$ac_ct_DLLTOOL" = x; then
8713    DLLTOOL="false"
8714  else
8715    case $cross_compiling:$ac_tool_warned in
8716yes:)
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8719ac_tool_warned=yes ;;
8720esac
8721    DLLTOOL=$ac_ct_DLLTOOL
8722  fi
8723else
8724  DLLTOOL="$ac_cv_prog_DLLTOOL"
8725fi
8726
8727test -z "$DLLTOOL" && DLLTOOL=dlltool
8728
8729
8730
8731
8732
8733
8734
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8736$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8737if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  lt_cv_sharedlib_from_linklib_cmd='unknown'
8741
8742case $host_os in
8743cygwin* | mingw* | pw32* | cegcc*)
8744  # two different shell functions defined in ltmain.sh
8745  # decide which to use based on capabilities of $DLLTOOL
8746  case `$DLLTOOL --help 2>&1` in
8747  *--identify-strict*)
8748    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8749    ;;
8750  *)
8751    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8752    ;;
8753  esac
8754  ;;
8755*)
8756  # fallback: assume linklib IS sharedlib
8757  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8758  ;;
8759esac
8760
8761fi
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8763$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8764sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8765test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8766
8767
8768
8769
8770
8771
8772
8773if test -n "$ac_tool_prefix"; then
8774  for ac_prog in ar
8775  do
8776    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
8780if ${ac_cv_prog_AR+:} false; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  if test -n "$AR"; then
8784  ac_cv_prog_AR="$AR" # Let the user override the test.
8785else
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789  IFS=$as_save_IFS
8790  test -z "$as_dir" && as_dir=.
8791    for ac_exec_ext in '' $ac_executable_extensions; do
8792  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795    break 2
8796  fi
8797done
8798  done
8799IFS=$as_save_IFS
8800
8801fi
8802fi
8803AR=$ac_cv_prog_AR
8804if test -n "$AR"; then
8805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8806$as_echo "$AR" >&6; }
8807else
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809$as_echo "no" >&6; }
8810fi
8811
8812
8813    test -n "$AR" && break
8814  done
8815fi
8816if test -z "$AR"; then
8817  ac_ct_AR=$AR
8818  for ac_prog in ar
8819do
8820  # Extract the first word of "$ac_prog", so it can be a program name with args.
8821set dummy $ac_prog; ac_word=$2
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823$as_echo_n "checking for $ac_word... " >&6; }
8824if ${ac_cv_prog_ac_ct_AR+:} false; then :
8825  $as_echo_n "(cached) " >&6
8826else
8827  if test -n "$ac_ct_AR"; then
8828  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8829else
8830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831for as_dir in $PATH
8832do
8833  IFS=$as_save_IFS
8834  test -z "$as_dir" && as_dir=.
8835    for ac_exec_ext in '' $ac_executable_extensions; do
8836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837    ac_cv_prog_ac_ct_AR="$ac_prog"
8838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839    break 2
8840  fi
8841done
8842  done
8843IFS=$as_save_IFS
8844
8845fi
8846fi
8847ac_ct_AR=$ac_cv_prog_ac_ct_AR
8848if test -n "$ac_ct_AR"; then
8849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8850$as_echo "$ac_ct_AR" >&6; }
8851else
8852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853$as_echo "no" >&6; }
8854fi
8855
8856
8857  test -n "$ac_ct_AR" && break
8858done
8859
8860  if test "x$ac_ct_AR" = x; then
8861    AR="false"
8862  else
8863    case $cross_compiling:$ac_tool_warned in
8864yes:)
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8867ac_tool_warned=yes ;;
8868esac
8869    AR=$ac_ct_AR
8870  fi
8871fi
8872
8873: ${AR=ar}
8874: ${AR_FLAGS=cru}
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8887$as_echo_n "checking for archiver @FILE support... " >&6; }
8888if ${lt_cv_ar_at_file+:} false; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  lt_cv_ar_at_file=no
8892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h.  */
8894
8895int
8896main ()
8897{
8898
8899  ;
8900  return 0;
8901}
8902_ACEOF
8903if ac_fn_c_try_compile "$LINENO"; then :
8904  echo conftest.$ac_objext > conftest.lst
8905      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8906      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8907  (eval $lt_ar_try) 2>&5
8908  ac_status=$?
8909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8910  test $ac_status = 0; }
8911      if test "$ac_status" -eq 0; then
8912	# Ensure the archiver fails upon bogus file names.
8913	rm -f conftest.$ac_objext libconftest.a
8914	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8915  (eval $lt_ar_try) 2>&5
8916  ac_status=$?
8917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8918  test $ac_status = 0; }
8919	if test "$ac_status" -ne 0; then
8920          lt_cv_ar_at_file=@
8921        fi
8922      fi
8923      rm -f conftest.* libconftest.a
8924
8925fi
8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8930$as_echo "$lt_cv_ar_at_file" >&6; }
8931
8932if test "x$lt_cv_ar_at_file" = xno; then
8933  archiver_list_spec=
8934else
8935  archiver_list_spec=$lt_cv_ar_at_file
8936fi
8937
8938
8939
8940
8941
8942
8943
8944if test -n "$ac_tool_prefix"; then
8945  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8946set dummy ${ac_tool_prefix}strip; ac_word=$2
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948$as_echo_n "checking for $ac_word... " >&6; }
8949if ${ac_cv_prog_STRIP+:} false; then :
8950  $as_echo_n "(cached) " >&6
8951else
8952  if test -n "$STRIP"; then
8953  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8954else
8955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956for as_dir in $PATH
8957do
8958  IFS=$as_save_IFS
8959  test -z "$as_dir" && as_dir=.
8960    for ac_exec_ext in '' $ac_executable_extensions; do
8961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8962    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964    break 2
8965  fi
8966done
8967  done
8968IFS=$as_save_IFS
8969
8970fi
8971fi
8972STRIP=$ac_cv_prog_STRIP
8973if test -n "$STRIP"; then
8974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8975$as_echo "$STRIP" >&6; }
8976else
8977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978$as_echo "no" >&6; }
8979fi
8980
8981
8982fi
8983if test -z "$ac_cv_prog_STRIP"; then
8984  ac_ct_STRIP=$STRIP
8985  # Extract the first word of "strip", so it can be a program name with args.
8986set dummy strip; ac_word=$2
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8988$as_echo_n "checking for $ac_word... " >&6; }
8989if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8990  $as_echo_n "(cached) " >&6
8991else
8992  if test -n "$ac_ct_STRIP"; then
8993  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8994else
8995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996for as_dir in $PATH
8997do
8998  IFS=$as_save_IFS
8999  test -z "$as_dir" && as_dir=.
9000    for ac_exec_ext in '' $ac_executable_extensions; do
9001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9002    ac_cv_prog_ac_ct_STRIP="strip"
9003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004    break 2
9005  fi
9006done
9007  done
9008IFS=$as_save_IFS
9009
9010fi
9011fi
9012ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9013if test -n "$ac_ct_STRIP"; then
9014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9015$as_echo "$ac_ct_STRIP" >&6; }
9016else
9017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018$as_echo "no" >&6; }
9019fi
9020
9021  if test "x$ac_ct_STRIP" = x; then
9022    STRIP=":"
9023  else
9024    case $cross_compiling:$ac_tool_warned in
9025yes:)
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9028ac_tool_warned=yes ;;
9029esac
9030    STRIP=$ac_ct_STRIP
9031  fi
9032else
9033  STRIP="$ac_cv_prog_STRIP"
9034fi
9035
9036test -z "$STRIP" && STRIP=:
9037
9038
9039
9040
9041
9042
9043if test -n "$ac_tool_prefix"; then
9044  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047$as_echo_n "checking for $ac_word... " >&6; }
9048if ${ac_cv_prog_RANLIB+:} false; then :
9049  $as_echo_n "(cached) " >&6
9050else
9051  if test -n "$RANLIB"; then
9052  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9053else
9054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055for as_dir in $PATH
9056do
9057  IFS=$as_save_IFS
9058  test -z "$as_dir" && as_dir=.
9059    for ac_exec_ext in '' $ac_executable_extensions; do
9060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9061    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063    break 2
9064  fi
9065done
9066  done
9067IFS=$as_save_IFS
9068
9069fi
9070fi
9071RANLIB=$ac_cv_prog_RANLIB
9072if test -n "$RANLIB"; then
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9074$as_echo "$RANLIB" >&6; }
9075else
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077$as_echo "no" >&6; }
9078fi
9079
9080
9081fi
9082if test -z "$ac_cv_prog_RANLIB"; then
9083  ac_ct_RANLIB=$RANLIB
9084  # Extract the first word of "ranlib", so it can be a program name with args.
9085set dummy ranlib; ac_word=$2
9086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087$as_echo_n "checking for $ac_word... " >&6; }
9088if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  if test -n "$ac_ct_RANLIB"; then
9092  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9093else
9094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095for as_dir in $PATH
9096do
9097  IFS=$as_save_IFS
9098  test -z "$as_dir" && as_dir=.
9099    for ac_exec_ext in '' $ac_executable_extensions; do
9100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9101    ac_cv_prog_ac_ct_RANLIB="ranlib"
9102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103    break 2
9104  fi
9105done
9106  done
9107IFS=$as_save_IFS
9108
9109fi
9110fi
9111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9112if test -n "$ac_ct_RANLIB"; then
9113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9114$as_echo "$ac_ct_RANLIB" >&6; }
9115else
9116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117$as_echo "no" >&6; }
9118fi
9119
9120  if test "x$ac_ct_RANLIB" = x; then
9121    RANLIB=":"
9122  else
9123    case $cross_compiling:$ac_tool_warned in
9124yes:)
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9127ac_tool_warned=yes ;;
9128esac
9129    RANLIB=$ac_ct_RANLIB
9130  fi
9131else
9132  RANLIB="$ac_cv_prog_RANLIB"
9133fi
9134
9135test -z "$RANLIB" && RANLIB=:
9136
9137
9138
9139
9140
9141
9142# Determine commands to create old-style static archives.
9143old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9144old_postinstall_cmds='chmod 644 $oldlib'
9145old_postuninstall_cmds=
9146
9147if test -n "$RANLIB"; then
9148  case $host_os in
9149  openbsd*)
9150    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9151    ;;
9152  *)
9153    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9154    ;;
9155  esac
9156  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9157fi
9158
9159case $host_os in
9160  darwin*)
9161    lock_old_archive_extraction=yes ;;
9162  *)
9163    lock_old_archive_extraction=no ;;
9164esac
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204# If no C compiler was specified, use CC.
9205LTCC=${LTCC-"$CC"}
9206
9207# If no C compiler flags were specified, use CFLAGS.
9208LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9209
9210# Allow CC to be a program name with arguments.
9211compiler=$CC
9212
9213
9214# Check for command to grab the raw symbol name followed by C symbol from nm.
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9216$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9217if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9218  $as_echo_n "(cached) " >&6
9219else
9220
9221# These are sane defaults that work on at least a few old systems.
9222# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9223
9224# Character class describing NM global symbol codes.
9225symcode='[BCDEGRST]'
9226
9227# Regexp to match symbols that can be accessed directly from C.
9228sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9229
9230# Define system-specific variables.
9231case $host_os in
9232aix*)
9233  symcode='[BCDT]'
9234  ;;
9235cygwin* | mingw* | pw32* | cegcc*)
9236  symcode='[ABCDGISTW]'
9237  ;;
9238hpux*)
9239  if test "$host_cpu" = ia64; then
9240    symcode='[ABCDEGRST]'
9241  fi
9242  ;;
9243irix* | nonstopux*)
9244  symcode='[BCDEGRST]'
9245  ;;
9246osf*)
9247  symcode='[BCDEGQRST]'
9248  ;;
9249solaris*)
9250  symcode='[BDRT]'
9251  ;;
9252sco3.2v5*)
9253  symcode='[DT]'
9254  ;;
9255sysv4.2uw2*)
9256  symcode='[DT]'
9257  ;;
9258sysv5* | sco5v6* | unixware* | OpenUNIX*)
9259  symcode='[ABDT]'
9260  ;;
9261sysv4)
9262  symcode='[DFNSTU]'
9263  ;;
9264esac
9265
9266# If we're using GNU nm, then use its standard symbol codes.
9267case `$NM -V 2>&1` in
9268*GNU* | *'with BFD'*)
9269  symcode='[ABCDGIRSTW]' ;;
9270esac
9271
9272# Transform an extracted symbol line into a proper C declaration.
9273# Some systems (esp. on ia64) link data and code symbols differently,
9274# so use this general approach.
9275lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9276
9277# Transform an extracted symbol line into symbol name and symbol address
9278lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9279lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9280
9281# Handle CRLF in mingw tool chain
9282opt_cr=
9283case $build_os in
9284mingw*)
9285  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9286  ;;
9287esac
9288
9289# Try without a prefix underscore, then with it.
9290for ac_symprfx in "" "_"; do
9291
9292  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9293  symxfrm="\\1 $ac_symprfx\\2 \\2"
9294
9295  # Write the raw and C identifiers.
9296  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9297    # Fake it for dumpbin and say T for any non-static function
9298    # and D for any global variable.
9299    # Also find C++ and __fastcall symbols from MSVC++,
9300    # which start with @ or ?.
9301    lt_cv_sys_global_symbol_pipe="$AWK '"\
9302"     {last_section=section; section=\$ 3};"\
9303"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9304"     \$ 0!~/External *\|/{next};"\
9305"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9306"     {if(hide[section]) next};"\
9307"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9308"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9309"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9310"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9311"     ' prfx=^$ac_symprfx"
9312  else
9313    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9314  fi
9315  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9316
9317  # Check to see that the pipe works correctly.
9318  pipe_works=no
9319
9320  rm -f conftest*
9321  cat > conftest.$ac_ext <<_LT_EOF
9322#ifdef __cplusplus
9323extern "C" {
9324#endif
9325char nm_test_var;
9326void nm_test_func(void);
9327void nm_test_func(void){}
9328#ifdef __cplusplus
9329}
9330#endif
9331int main(){nm_test_var='a';nm_test_func();return(0);}
9332_LT_EOF
9333
9334  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9335  (eval $ac_compile) 2>&5
9336  ac_status=$?
9337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9338  test $ac_status = 0; }; then
9339    # Now try to grab the symbols.
9340    nlist=conftest.nm
9341    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9342  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9343  ac_status=$?
9344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9345  test $ac_status = 0; } && test -s "$nlist"; then
9346      # Try sorting and uniquifying the output.
9347      if sort "$nlist" | uniq > "$nlist"T; then
9348	mv -f "$nlist"T "$nlist"
9349      else
9350	rm -f "$nlist"T
9351      fi
9352
9353      # Make sure that we snagged all the symbols we need.
9354      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9355	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9356	  cat <<_LT_EOF > conftest.$ac_ext
9357/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9358#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9359/* DATA imports from DLLs on WIN32 con't be const, because runtime
9360   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9361# define LT_DLSYM_CONST
9362#elif defined(__osf__)
9363/* This system does not cope well with relocations in const data.  */
9364# define LT_DLSYM_CONST
9365#else
9366# define LT_DLSYM_CONST const
9367#endif
9368
9369#ifdef __cplusplus
9370extern "C" {
9371#endif
9372
9373_LT_EOF
9374	  # Now generate the symbol file.
9375	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9376
9377	  cat <<_LT_EOF >> conftest.$ac_ext
9378
9379/* The mapping between symbol names and symbols.  */
9380LT_DLSYM_CONST struct {
9381  const char *name;
9382  void       *address;
9383}
9384lt__PROGRAM__LTX_preloaded_symbols[] =
9385{
9386  { "@PROGRAM@", (void *) 0 },
9387_LT_EOF
9388	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9389	  cat <<\_LT_EOF >> conftest.$ac_ext
9390  {0, (void *) 0}
9391};
9392
9393/* This works around a problem in FreeBSD linker */
9394#ifdef FREEBSD_WORKAROUND
9395static const void *lt_preloaded_setup() {
9396  return lt__PROGRAM__LTX_preloaded_symbols;
9397}
9398#endif
9399
9400#ifdef __cplusplus
9401}
9402#endif
9403_LT_EOF
9404	  # Now try linking the two files.
9405	  mv conftest.$ac_objext conftstm.$ac_objext
9406	  lt_globsym_save_LIBS=$LIBS
9407	  lt_globsym_save_CFLAGS=$CFLAGS
9408	  LIBS="conftstm.$ac_objext"
9409	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9410	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9411  (eval $ac_link) 2>&5
9412  ac_status=$?
9413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9414  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9415	    pipe_works=yes
9416	  fi
9417	  LIBS=$lt_globsym_save_LIBS
9418	  CFLAGS=$lt_globsym_save_CFLAGS
9419	else
9420	  echo "cannot find nm_test_func in $nlist" >&5
9421	fi
9422      else
9423	echo "cannot find nm_test_var in $nlist" >&5
9424      fi
9425    else
9426      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9427    fi
9428  else
9429    echo "$progname: failed program was:" >&5
9430    cat conftest.$ac_ext >&5
9431  fi
9432  rm -rf conftest* conftst*
9433
9434  # Do not use the global_symbol_pipe unless it works.
9435  if test "$pipe_works" = yes; then
9436    break
9437  else
9438    lt_cv_sys_global_symbol_pipe=
9439  fi
9440done
9441
9442fi
9443
9444if test -z "$lt_cv_sys_global_symbol_pipe"; then
9445  lt_cv_sys_global_symbol_to_cdecl=
9446fi
9447if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9449$as_echo "failed" >&6; }
9450else
9451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9452$as_echo "ok" >&6; }
9453fi
9454
9455# Response file support.
9456if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9457  nm_file_list_spec='@'
9458elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9459  nm_file_list_spec='@'
9460fi
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9489$as_echo_n "checking for sysroot... " >&6; }
9490
9491# Check whether --with-sysroot was given.
9492if test "${with_sysroot+set}" = set; then :
9493  withval=$with_sysroot;
9494else
9495  with_sysroot=no
9496fi
9497
9498
9499lt_sysroot=
9500case ${with_sysroot} in #(
9501 yes)
9502   if test "$GCC" = yes; then
9503     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9504   fi
9505   ;; #(
9506 /*)
9507   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9508   ;; #(
9509 no|'')
9510   ;; #(
9511 *)
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9513$as_echo "${with_sysroot}" >&6; }
9514   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9515   ;;
9516esac
9517
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9519$as_echo "${lt_sysroot:-no}" >&6; }
9520
9521
9522
9523
9524
9525# Check whether --enable-libtool-lock was given.
9526if test "${enable_libtool_lock+set}" = set; then :
9527  enableval=$enable_libtool_lock;
9528fi
9529
9530test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9531
9532# Some flags need to be propagated to the compiler or linker for good
9533# libtool support.
9534case $host in
9535ia64-*-hpux*)
9536  # Find out which ABI we are using.
9537  echo 'int i;' > conftest.$ac_ext
9538  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9539  (eval $ac_compile) 2>&5
9540  ac_status=$?
9541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9542  test $ac_status = 0; }; then
9543    case `/usr/bin/file conftest.$ac_objext` in
9544      *ELF-32*)
9545	HPUX_IA64_MODE="32"
9546	;;
9547      *ELF-64*)
9548	HPUX_IA64_MODE="64"
9549	;;
9550    esac
9551  fi
9552  rm -rf conftest*
9553  ;;
9554*-*-irix6*)
9555  # Find out which ABI we are using.
9556  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9558  (eval $ac_compile) 2>&5
9559  ac_status=$?
9560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9561  test $ac_status = 0; }; then
9562    if test "$lt_cv_prog_gnu_ld" = yes; then
9563      case `/usr/bin/file conftest.$ac_objext` in
9564	*32-bit*)
9565	  LD="${LD-ld} -melf32bsmip"
9566	  ;;
9567	*N32*)
9568	  LD="${LD-ld} -melf32bmipn32"
9569	  ;;
9570	*64-bit*)
9571	  LD="${LD-ld} -melf64bmip"
9572	;;
9573      esac
9574    else
9575      case `/usr/bin/file conftest.$ac_objext` in
9576	*32-bit*)
9577	  LD="${LD-ld} -32"
9578	  ;;
9579	*N32*)
9580	  LD="${LD-ld} -n32"
9581	  ;;
9582	*64-bit*)
9583	  LD="${LD-ld} -64"
9584	  ;;
9585      esac
9586    fi
9587  fi
9588  rm -rf conftest*
9589  ;;
9590
9591x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9592s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9593  # Find out which ABI we are using.
9594  echo 'int i;' > conftest.$ac_ext
9595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9596  (eval $ac_compile) 2>&5
9597  ac_status=$?
9598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9599  test $ac_status = 0; }; then
9600    case `/usr/bin/file conftest.o` in
9601      *32-bit*)
9602	case $host in
9603	  x86_64-*kfreebsd*-gnu)
9604	    LD="${LD-ld} -m elf_i386_fbsd"
9605	    ;;
9606	  x86_64-*linux*)
9607	    LD="${LD-ld} -m elf_i386"
9608	    ;;
9609	  ppc64-*linux*|powerpc64-*linux*)
9610	    LD="${LD-ld} -m elf32ppclinux"
9611	    ;;
9612	  s390x-*linux*)
9613	    LD="${LD-ld} -m elf_s390"
9614	    ;;
9615	  sparc64-*linux*)
9616	    LD="${LD-ld} -m elf32_sparc"
9617	    ;;
9618	esac
9619	;;
9620      *64-bit*)
9621	case $host in
9622	  x86_64-*kfreebsd*-gnu)
9623	    LD="${LD-ld} -m elf_x86_64_fbsd"
9624	    ;;
9625	  x86_64-*linux*)
9626	    LD="${LD-ld} -m elf_x86_64"
9627	    ;;
9628	  ppc*-*linux*|powerpc*-*linux*)
9629	    LD="${LD-ld} -m elf64ppc"
9630	    ;;
9631	  s390*-*linux*|s390*-*tpf*)
9632	    LD="${LD-ld} -m elf64_s390"
9633	    ;;
9634	  sparc*-*linux*)
9635	    LD="${LD-ld} -m elf64_sparc"
9636	    ;;
9637	esac
9638	;;
9639    esac
9640  fi
9641  rm -rf conftest*
9642  ;;
9643
9644*-*-sco3.2v5*)
9645  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9646  SAVE_CFLAGS="$CFLAGS"
9647  CFLAGS="$CFLAGS -belf"
9648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9649$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9650if ${lt_cv_cc_needs_belf+:} false; then :
9651  $as_echo_n "(cached) " >&6
9652else
9653  ac_ext=c
9654ac_cpp='$CPP $CPPFLAGS'
9655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657ac_compiler_gnu=$ac_cv_c_compiler_gnu
9658
9659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661
9662int
9663main ()
9664{
9665
9666  ;
9667  return 0;
9668}
9669_ACEOF
9670if ac_fn_c_try_link "$LINENO"; then :
9671  lt_cv_cc_needs_belf=yes
9672else
9673  lt_cv_cc_needs_belf=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext \
9676    conftest$ac_exeext conftest.$ac_ext
9677     ac_ext=c
9678ac_cpp='$CPP $CPPFLAGS'
9679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9681ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9685$as_echo "$lt_cv_cc_needs_belf" >&6; }
9686  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9687    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9688    CFLAGS="$SAVE_CFLAGS"
9689  fi
9690  ;;
9691sparc*-*solaris*)
9692  # Find out which ABI we are using.
9693  echo 'int i;' > conftest.$ac_ext
9694  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9695  (eval $ac_compile) 2>&5
9696  ac_status=$?
9697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9698  test $ac_status = 0; }; then
9699    case `/usr/bin/file conftest.o` in
9700    *64-bit*)
9701      case $lt_cv_prog_gnu_ld in
9702      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9703      *)
9704	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9705	  LD="${LD-ld} -64"
9706	fi
9707	;;
9708      esac
9709      ;;
9710    esac
9711  fi
9712  rm -rf conftest*
9713  ;;
9714esac
9715
9716need_locks="$enable_libtool_lock"
9717
9718if test -n "$ac_tool_prefix"; then
9719  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9720set dummy ${ac_tool_prefix}mt; ac_word=$2
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
9723if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9724  $as_echo_n "(cached) " >&6
9725else
9726  if test -n "$MANIFEST_TOOL"; then
9727  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732  IFS=$as_save_IFS
9733  test -z "$as_dir" && as_dir=.
9734    for ac_exec_ext in '' $ac_executable_extensions; do
9735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738    break 2
9739  fi
9740done
9741  done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9747if test -n "$MANIFEST_TOOL"; then
9748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9749$as_echo "$MANIFEST_TOOL" >&6; }
9750else
9751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756fi
9757if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9758  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9759  # Extract the first word of "mt", so it can be a program name with args.
9760set dummy mt; ac_word=$2
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762$as_echo_n "checking for $ac_word... " >&6; }
9763if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  if test -n "$ac_ct_MANIFEST_TOOL"; then
9767  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9768else
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772  IFS=$as_save_IFS
9773  test -z "$as_dir" && as_dir=.
9774    for ac_exec_ext in '' $ac_executable_extensions; do
9775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778    break 2
9779  fi
9780done
9781  done
9782IFS=$as_save_IFS
9783
9784fi
9785fi
9786ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9787if test -n "$ac_ct_MANIFEST_TOOL"; then
9788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9789$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9790else
9791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792$as_echo "no" >&6; }
9793fi
9794
9795  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9796    MANIFEST_TOOL=":"
9797  else
9798    case $cross_compiling:$ac_tool_warned in
9799yes:)
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9802ac_tool_warned=yes ;;
9803esac
9804    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9805  fi
9806else
9807  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9808fi
9809
9810test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9812$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9813if ${lt_cv_path_mainfest_tool+:} false; then :
9814  $as_echo_n "(cached) " >&6
9815else
9816  lt_cv_path_mainfest_tool=no
9817  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9818  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9819  cat conftest.err >&5
9820  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9821    lt_cv_path_mainfest_tool=yes
9822  fi
9823  rm -f conftest*
9824fi
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9826$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9827if test "x$lt_cv_path_mainfest_tool" != xyes; then
9828  MANIFEST_TOOL=:
9829fi
9830
9831
9832
9833
9834
9835
9836  case $host_os in
9837    rhapsody* | darwin*)
9838    if test -n "$ac_tool_prefix"; then
9839  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9840set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842$as_echo_n "checking for $ac_word... " >&6; }
9843if ${ac_cv_prog_DSYMUTIL+:} false; then :
9844  $as_echo_n "(cached) " >&6
9845else
9846  if test -n "$DSYMUTIL"; then
9847  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9848else
9849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850for as_dir in $PATH
9851do
9852  IFS=$as_save_IFS
9853  test -z "$as_dir" && as_dir=.
9854    for ac_exec_ext in '' $ac_executable_extensions; do
9855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9856    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858    break 2
9859  fi
9860done
9861  done
9862IFS=$as_save_IFS
9863
9864fi
9865fi
9866DSYMUTIL=$ac_cv_prog_DSYMUTIL
9867if test -n "$DSYMUTIL"; then
9868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9869$as_echo "$DSYMUTIL" >&6; }
9870else
9871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
9873fi
9874
9875
9876fi
9877if test -z "$ac_cv_prog_DSYMUTIL"; then
9878  ac_ct_DSYMUTIL=$DSYMUTIL
9879  # Extract the first word of "dsymutil", so it can be a program name with args.
9880set dummy dsymutil; ac_word=$2
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882$as_echo_n "checking for $ac_word... " >&6; }
9883if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9884  $as_echo_n "(cached) " >&6
9885else
9886  if test -n "$ac_ct_DSYMUTIL"; then
9887  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9888else
9889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890for as_dir in $PATH
9891do
9892  IFS=$as_save_IFS
9893  test -z "$as_dir" && as_dir=.
9894    for ac_exec_ext in '' $ac_executable_extensions; do
9895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898    break 2
9899  fi
9900done
9901  done
9902IFS=$as_save_IFS
9903
9904fi
9905fi
9906ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9907if test -n "$ac_ct_DSYMUTIL"; then
9908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9909$as_echo "$ac_ct_DSYMUTIL" >&6; }
9910else
9911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912$as_echo "no" >&6; }
9913fi
9914
9915  if test "x$ac_ct_DSYMUTIL" = x; then
9916    DSYMUTIL=":"
9917  else
9918    case $cross_compiling:$ac_tool_warned in
9919yes:)
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9922ac_tool_warned=yes ;;
9923esac
9924    DSYMUTIL=$ac_ct_DSYMUTIL
9925  fi
9926else
9927  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9928fi
9929
9930    if test -n "$ac_tool_prefix"; then
9931  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9932set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934$as_echo_n "checking for $ac_word... " >&6; }
9935if ${ac_cv_prog_NMEDIT+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  if test -n "$NMEDIT"; then
9939  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9940else
9941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942for as_dir in $PATH
9943do
9944  IFS=$as_save_IFS
9945  test -z "$as_dir" && as_dir=.
9946    for ac_exec_ext in '' $ac_executable_extensions; do
9947  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9948    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950    break 2
9951  fi
9952done
9953  done
9954IFS=$as_save_IFS
9955
9956fi
9957fi
9958NMEDIT=$ac_cv_prog_NMEDIT
9959if test -n "$NMEDIT"; then
9960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9961$as_echo "$NMEDIT" >&6; }
9962else
9963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964$as_echo "no" >&6; }
9965fi
9966
9967
9968fi
9969if test -z "$ac_cv_prog_NMEDIT"; then
9970  ac_ct_NMEDIT=$NMEDIT
9971  # Extract the first word of "nmedit", so it can be a program name with args.
9972set dummy nmedit; ac_word=$2
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974$as_echo_n "checking for $ac_word... " >&6; }
9975if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9976  $as_echo_n "(cached) " >&6
9977else
9978  if test -n "$ac_ct_NMEDIT"; then
9979  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9980else
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984  IFS=$as_save_IFS
9985  test -z "$as_dir" && as_dir=.
9986    for ac_exec_ext in '' $ac_executable_extensions; do
9987  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9988    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990    break 2
9991  fi
9992done
9993  done
9994IFS=$as_save_IFS
9995
9996fi
9997fi
9998ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9999if test -n "$ac_ct_NMEDIT"; then
10000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10001$as_echo "$ac_ct_NMEDIT" >&6; }
10002else
10003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004$as_echo "no" >&6; }
10005fi
10006
10007  if test "x$ac_ct_NMEDIT" = x; then
10008    NMEDIT=":"
10009  else
10010    case $cross_compiling:$ac_tool_warned in
10011yes:)
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10014ac_tool_warned=yes ;;
10015esac
10016    NMEDIT=$ac_ct_NMEDIT
10017  fi
10018else
10019  NMEDIT="$ac_cv_prog_NMEDIT"
10020fi
10021
10022    if test -n "$ac_tool_prefix"; then
10023  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10024set dummy ${ac_tool_prefix}lipo; ac_word=$2
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026$as_echo_n "checking for $ac_word... " >&6; }
10027if ${ac_cv_prog_LIPO+:} false; then :
10028  $as_echo_n "(cached) " >&6
10029else
10030  if test -n "$LIPO"; then
10031  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10032else
10033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034for as_dir in $PATH
10035do
10036  IFS=$as_save_IFS
10037  test -z "$as_dir" && as_dir=.
10038    for ac_exec_ext in '' $ac_executable_extensions; do
10039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042    break 2
10043  fi
10044done
10045  done
10046IFS=$as_save_IFS
10047
10048fi
10049fi
10050LIPO=$ac_cv_prog_LIPO
10051if test -n "$LIPO"; then
10052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10053$as_echo "$LIPO" >&6; }
10054else
10055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056$as_echo "no" >&6; }
10057fi
10058
10059
10060fi
10061if test -z "$ac_cv_prog_LIPO"; then
10062  ac_ct_LIPO=$LIPO
10063  # Extract the first word of "lipo", so it can be a program name with args.
10064set dummy lipo; ac_word=$2
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10066$as_echo_n "checking for $ac_word... " >&6; }
10067if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10068  $as_echo_n "(cached) " >&6
10069else
10070  if test -n "$ac_ct_LIPO"; then
10071  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10072else
10073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074for as_dir in $PATH
10075do
10076  IFS=$as_save_IFS
10077  test -z "$as_dir" && as_dir=.
10078    for ac_exec_ext in '' $ac_executable_extensions; do
10079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10080    ac_cv_prog_ac_ct_LIPO="lipo"
10081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082    break 2
10083  fi
10084done
10085  done
10086IFS=$as_save_IFS
10087
10088fi
10089fi
10090ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10091if test -n "$ac_ct_LIPO"; then
10092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10093$as_echo "$ac_ct_LIPO" >&6; }
10094else
10095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096$as_echo "no" >&6; }
10097fi
10098
10099  if test "x$ac_ct_LIPO" = x; then
10100    LIPO=":"
10101  else
10102    case $cross_compiling:$ac_tool_warned in
10103yes:)
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10106ac_tool_warned=yes ;;
10107esac
10108    LIPO=$ac_ct_LIPO
10109  fi
10110else
10111  LIPO="$ac_cv_prog_LIPO"
10112fi
10113
10114    if test -n "$ac_tool_prefix"; then
10115  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10116set dummy ${ac_tool_prefix}otool; ac_word=$2
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10118$as_echo_n "checking for $ac_word... " >&6; }
10119if ${ac_cv_prog_OTOOL+:} false; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  if test -n "$OTOOL"; then
10123  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10124else
10125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126for as_dir in $PATH
10127do
10128  IFS=$as_save_IFS
10129  test -z "$as_dir" && as_dir=.
10130    for ac_exec_ext in '' $ac_executable_extensions; do
10131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10132    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134    break 2
10135  fi
10136done
10137  done
10138IFS=$as_save_IFS
10139
10140fi
10141fi
10142OTOOL=$ac_cv_prog_OTOOL
10143if test -n "$OTOOL"; then
10144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10145$as_echo "$OTOOL" >&6; }
10146else
10147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148$as_echo "no" >&6; }
10149fi
10150
10151
10152fi
10153if test -z "$ac_cv_prog_OTOOL"; then
10154  ac_ct_OTOOL=$OTOOL
10155  # Extract the first word of "otool", so it can be a program name with args.
10156set dummy otool; ac_word=$2
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158$as_echo_n "checking for $ac_word... " >&6; }
10159if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10160  $as_echo_n "(cached) " >&6
10161else
10162  if test -n "$ac_ct_OTOOL"; then
10163  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10164else
10165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166for as_dir in $PATH
10167do
10168  IFS=$as_save_IFS
10169  test -z "$as_dir" && as_dir=.
10170    for ac_exec_ext in '' $ac_executable_extensions; do
10171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10172    ac_cv_prog_ac_ct_OTOOL="otool"
10173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174    break 2
10175  fi
10176done
10177  done
10178IFS=$as_save_IFS
10179
10180fi
10181fi
10182ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10183if test -n "$ac_ct_OTOOL"; then
10184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10185$as_echo "$ac_ct_OTOOL" >&6; }
10186else
10187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188$as_echo "no" >&6; }
10189fi
10190
10191  if test "x$ac_ct_OTOOL" = x; then
10192    OTOOL=":"
10193  else
10194    case $cross_compiling:$ac_tool_warned in
10195yes:)
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10198ac_tool_warned=yes ;;
10199esac
10200    OTOOL=$ac_ct_OTOOL
10201  fi
10202else
10203  OTOOL="$ac_cv_prog_OTOOL"
10204fi
10205
10206    if test -n "$ac_tool_prefix"; then
10207  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10208set dummy ${ac_tool_prefix}otool64; ac_word=$2
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10210$as_echo_n "checking for $ac_word... " >&6; }
10211if ${ac_cv_prog_OTOOL64+:} false; then :
10212  $as_echo_n "(cached) " >&6
10213else
10214  if test -n "$OTOOL64"; then
10215  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10216else
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220  IFS=$as_save_IFS
10221  test -z "$as_dir" && as_dir=.
10222    for ac_exec_ext in '' $ac_executable_extensions; do
10223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10226    break 2
10227  fi
10228done
10229  done
10230IFS=$as_save_IFS
10231
10232fi
10233fi
10234OTOOL64=$ac_cv_prog_OTOOL64
10235if test -n "$OTOOL64"; then
10236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10237$as_echo "$OTOOL64" >&6; }
10238else
10239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240$as_echo "no" >&6; }
10241fi
10242
10243
10244fi
10245if test -z "$ac_cv_prog_OTOOL64"; then
10246  ac_ct_OTOOL64=$OTOOL64
10247  # Extract the first word of "otool64", so it can be a program name with args.
10248set dummy otool64; ac_word=$2
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250$as_echo_n "checking for $ac_word... " >&6; }
10251if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10252  $as_echo_n "(cached) " >&6
10253else
10254  if test -n "$ac_ct_OTOOL64"; then
10255  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10256else
10257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $PATH
10259do
10260  IFS=$as_save_IFS
10261  test -z "$as_dir" && as_dir=.
10262    for ac_exec_ext in '' $ac_executable_extensions; do
10263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264    ac_cv_prog_ac_ct_OTOOL64="otool64"
10265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266    break 2
10267  fi
10268done
10269  done
10270IFS=$as_save_IFS
10271
10272fi
10273fi
10274ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10275if test -n "$ac_ct_OTOOL64"; then
10276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10277$as_echo "$ac_ct_OTOOL64" >&6; }
10278else
10279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280$as_echo "no" >&6; }
10281fi
10282
10283  if test "x$ac_ct_OTOOL64" = x; then
10284    OTOOL64=":"
10285  else
10286    case $cross_compiling:$ac_tool_warned in
10287yes:)
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10290ac_tool_warned=yes ;;
10291esac
10292    OTOOL64=$ac_ct_OTOOL64
10293  fi
10294else
10295  OTOOL64="$ac_cv_prog_OTOOL64"
10296fi
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10325$as_echo_n "checking for -single_module linker flag... " >&6; }
10326if ${lt_cv_apple_cc_single_mod+:} false; then :
10327  $as_echo_n "(cached) " >&6
10328else
10329  lt_cv_apple_cc_single_mod=no
10330      if test -z "${LT_MULTI_MODULE}"; then
10331	# By default we will add the -single_module flag. You can override
10332	# by either setting the environment variable LT_MULTI_MODULE
10333	# non-empty at configure time, or by adding -multi_module to the
10334	# link flags.
10335	rm -rf libconftest.dylib*
10336	echo "int foo(void){return 1;}" > conftest.c
10337	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10338-dynamiclib -Wl,-single_module conftest.c" >&5
10339	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10340	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10341        _lt_result=$?
10342	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10343	  lt_cv_apple_cc_single_mod=yes
10344	else
10345	  cat conftest.err >&5
10346	fi
10347	rm -rf libconftest.dylib*
10348	rm -f conftest.*
10349      fi
10350fi
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10352$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10354$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10355if ${lt_cv_ld_exported_symbols_list+:} false; then :
10356  $as_echo_n "(cached) " >&6
10357else
10358  lt_cv_ld_exported_symbols_list=no
10359      save_LDFLAGS=$LDFLAGS
10360      echo "_main" > conftest.sym
10361      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364
10365int
10366main ()
10367{
10368
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
10374  lt_cv_ld_exported_symbols_list=yes
10375else
10376  lt_cv_ld_exported_symbols_list=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379    conftest$ac_exeext conftest.$ac_ext
10380	LDFLAGS="$save_LDFLAGS"
10381
10382fi
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10384$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10386$as_echo_n "checking for -force_load linker flag... " >&6; }
10387if ${lt_cv_ld_force_load+:} false; then :
10388  $as_echo_n "(cached) " >&6
10389else
10390  lt_cv_ld_force_load=no
10391      cat > conftest.c << _LT_EOF
10392int forced_loaded() { return 2;}
10393_LT_EOF
10394      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10395      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10396      echo "$AR cru libconftest.a conftest.o" >&5
10397      $AR cru libconftest.a conftest.o 2>&5
10398      echo "$RANLIB libconftest.a" >&5
10399      $RANLIB libconftest.a 2>&5
10400      cat > conftest.c << _LT_EOF
10401int main() { return 0;}
10402_LT_EOF
10403      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10404      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10405      _lt_result=$?
10406      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10407	lt_cv_ld_force_load=yes
10408      else
10409	cat conftest.err >&5
10410      fi
10411        rm -f conftest.err libconftest.a conftest conftest.c
10412        rm -rf conftest.dSYM
10413
10414fi
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10416$as_echo "$lt_cv_ld_force_load" >&6; }
10417    case $host_os in
10418    rhapsody* | darwin1.[012])
10419      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10420    darwin1.*)
10421      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10422    darwin*) # darwin 5.x on
10423      # if running on 10.5 or later, the deployment target defaults
10424      # to the OS version, if on x86, and 10.4, the deployment
10425      # target defaults to 10.4. Don't you love it?
10426      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10427	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10428	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10429	10.[012]*)
10430	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10431	10.*)
10432	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10433      esac
10434    ;;
10435  esac
10436    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10437      _lt_dar_single_mod='$single_module'
10438    fi
10439    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10440      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10441    else
10442      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10443    fi
10444    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10445      _lt_dsymutil='~$DSYMUTIL $lib || :'
10446    else
10447      _lt_dsymutil=
10448    fi
10449    ;;
10450  esac
10451
10452for ac_header in dlfcn.h
10453do :
10454  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10455"
10456if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10457  cat >>confdefs.h <<_ACEOF
10458#define HAVE_DLFCN_H 1
10459_ACEOF
10460
10461fi
10462
10463done
10464
10465
10466
10467
10468
10469# Set options
10470
10471
10472
10473        enable_dlopen=no
10474
10475
10476
10477            # Check whether --enable-shared was given.
10478if test "${enable_shared+set}" = set; then :
10479  enableval=$enable_shared; p=${PACKAGE-default}
10480    case $enableval in
10481    yes) enable_shared=yes ;;
10482    no) enable_shared=no ;;
10483    *)
10484      enable_shared=no
10485      # Look at the argument we got.  We use all the common list separators.
10486      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10487      for pkg in $enableval; do
10488	IFS="$lt_save_ifs"
10489	if test "X$pkg" = "X$p"; then
10490	  enable_shared=yes
10491	fi
10492      done
10493      IFS="$lt_save_ifs"
10494      ;;
10495    esac
10496else
10497  enable_shared=yes
10498fi
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510# Check whether --with-pic was given.
10511if test "${with_pic+set}" = set; then :
10512  withval=$with_pic; pic_mode="$withval"
10513else
10514  pic_mode=default
10515fi
10516
10517
10518test -z "$pic_mode" && pic_mode=default
10519
10520
10521
10522
10523
10524
10525
10526  # Check whether --enable-fast-install was given.
10527if test "${enable_fast_install+set}" = set; then :
10528  enableval=$enable_fast_install; p=${PACKAGE-default}
10529    case $enableval in
10530    yes) enable_fast_install=yes ;;
10531    no) enable_fast_install=no ;;
10532    *)
10533      enable_fast_install=no
10534      # Look at the argument we got.  We use all the common list separators.
10535      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10536      for pkg in $enableval; do
10537	IFS="$lt_save_ifs"
10538	if test "X$pkg" = "X$p"; then
10539	  enable_fast_install=yes
10540	fi
10541      done
10542      IFS="$lt_save_ifs"
10543      ;;
10544    esac
10545else
10546  enable_fast_install=yes
10547fi
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559# This can be used to rebuild libtool when needed
10560LIBTOOL_DEPS="$ltmain"
10561
10562# Always use our own libtool.
10563LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590test -z "$LN_S" && LN_S="ln -s"
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605if test -n "${ZSH_VERSION+set}" ; then
10606   setopt NO_GLOB_SUBST
10607fi
10608
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10610$as_echo_n "checking for objdir... " >&6; }
10611if ${lt_cv_objdir+:} false; then :
10612  $as_echo_n "(cached) " >&6
10613else
10614  rm -f .libs 2>/dev/null
10615mkdir .libs 2>/dev/null
10616if test -d .libs; then
10617  lt_cv_objdir=.libs
10618else
10619  # MS-DOS does not allow filenames that begin with a dot.
10620  lt_cv_objdir=_libs
10621fi
10622rmdir .libs 2>/dev/null
10623fi
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10625$as_echo "$lt_cv_objdir" >&6; }
10626objdir=$lt_cv_objdir
10627
10628
10629
10630
10631
10632cat >>confdefs.h <<_ACEOF
10633#define LT_OBJDIR "$lt_cv_objdir/"
10634_ACEOF
10635
10636
10637
10638
10639case $host_os in
10640aix3*)
10641  # AIX sometimes has problems with the GCC collect2 program.  For some
10642  # reason, if we set the COLLECT_NAMES environment variable, the problems
10643  # vanish in a puff of smoke.
10644  if test "X${COLLECT_NAMES+set}" != Xset; then
10645    COLLECT_NAMES=
10646    export COLLECT_NAMES
10647  fi
10648  ;;
10649esac
10650
10651# Global variables:
10652ofile=libtool
10653can_build_shared=yes
10654
10655# All known linkers require a `.a' archive for static linking (except MSVC,
10656# which needs '.lib').
10657libext=a
10658
10659with_gnu_ld="$lt_cv_prog_gnu_ld"
10660
10661old_CC="$CC"
10662old_CFLAGS="$CFLAGS"
10663
10664# Set sane defaults for various variables
10665test -z "$CC" && CC=cc
10666test -z "$LTCC" && LTCC=$CC
10667test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10668test -z "$LD" && LD=ld
10669test -z "$ac_objext" && ac_objext=o
10670
10671for cc_temp in $compiler""; do
10672  case $cc_temp in
10673    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10674    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10675    \-*) ;;
10676    *) break;;
10677  esac
10678done
10679cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10680
10681
10682# Only perform the check for file, if the check method requires it
10683test -z "$MAGIC_CMD" && MAGIC_CMD=file
10684case $deplibs_check_method in
10685file_magic*)
10686  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10688$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10689if ${lt_cv_path_MAGIC_CMD+:} false; then :
10690  $as_echo_n "(cached) " >&6
10691else
10692  case $MAGIC_CMD in
10693[\\/*] |  ?:[\\/]*)
10694  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10695  ;;
10696*)
10697  lt_save_MAGIC_CMD="$MAGIC_CMD"
10698  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10699  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10700  for ac_dir in $ac_dummy; do
10701    IFS="$lt_save_ifs"
10702    test -z "$ac_dir" && ac_dir=.
10703    if test -f $ac_dir/${ac_tool_prefix}file; then
10704      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10705      if test -n "$file_magic_test_file"; then
10706	case $deplibs_check_method in
10707	"file_magic "*)
10708	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10709	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10710	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10711	    $EGREP "$file_magic_regex" > /dev/null; then
10712	    :
10713	  else
10714	    cat <<_LT_EOF 1>&2
10715
10716*** Warning: the command libtool uses to detect shared libraries,
10717*** $file_magic_cmd, produces output that libtool cannot recognize.
10718*** The result is that libtool may fail to recognize shared libraries
10719*** as such.  This will affect the creation of libtool libraries that
10720*** depend on shared libraries, but programs linked with such libtool
10721*** libraries will work regardless of this problem.  Nevertheless, you
10722*** may want to report the problem to your system manager and/or to
10723*** bug-libtool@gnu.org
10724
10725_LT_EOF
10726	  fi ;;
10727	esac
10728      fi
10729      break
10730    fi
10731  done
10732  IFS="$lt_save_ifs"
10733  MAGIC_CMD="$lt_save_MAGIC_CMD"
10734  ;;
10735esac
10736fi
10737
10738MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10739if test -n "$MAGIC_CMD"; then
10740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10741$as_echo "$MAGIC_CMD" >&6; }
10742else
10743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744$as_echo "no" >&6; }
10745fi
10746
10747
10748
10749
10750
10751if test -z "$lt_cv_path_MAGIC_CMD"; then
10752  if test -n "$ac_tool_prefix"; then
10753    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10754$as_echo_n "checking for file... " >&6; }
10755if ${lt_cv_path_MAGIC_CMD+:} false; then :
10756  $as_echo_n "(cached) " >&6
10757else
10758  case $MAGIC_CMD in
10759[\\/*] |  ?:[\\/]*)
10760  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10761  ;;
10762*)
10763  lt_save_MAGIC_CMD="$MAGIC_CMD"
10764  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10765  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10766  for ac_dir in $ac_dummy; do
10767    IFS="$lt_save_ifs"
10768    test -z "$ac_dir" && ac_dir=.
10769    if test -f $ac_dir/file; then
10770      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10771      if test -n "$file_magic_test_file"; then
10772	case $deplibs_check_method in
10773	"file_magic "*)
10774	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10775	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10776	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10777	    $EGREP "$file_magic_regex" > /dev/null; then
10778	    :
10779	  else
10780	    cat <<_LT_EOF 1>&2
10781
10782*** Warning: the command libtool uses to detect shared libraries,
10783*** $file_magic_cmd, produces output that libtool cannot recognize.
10784*** The result is that libtool may fail to recognize shared libraries
10785*** as such.  This will affect the creation of libtool libraries that
10786*** depend on shared libraries, but programs linked with such libtool
10787*** libraries will work regardless of this problem.  Nevertheless, you
10788*** may want to report the problem to your system manager and/or to
10789*** bug-libtool@gnu.org
10790
10791_LT_EOF
10792	  fi ;;
10793	esac
10794      fi
10795      break
10796    fi
10797  done
10798  IFS="$lt_save_ifs"
10799  MAGIC_CMD="$lt_save_MAGIC_CMD"
10800  ;;
10801esac
10802fi
10803
10804MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10805if test -n "$MAGIC_CMD"; then
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10807$as_echo "$MAGIC_CMD" >&6; }
10808else
10809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810$as_echo "no" >&6; }
10811fi
10812
10813
10814  else
10815    MAGIC_CMD=:
10816  fi
10817fi
10818
10819  fi
10820  ;;
10821esac
10822
10823# Use C for the default configuration in the libtool script
10824
10825lt_save_CC="$CC"
10826ac_ext=c
10827ac_cpp='$CPP $CPPFLAGS'
10828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10830ac_compiler_gnu=$ac_cv_c_compiler_gnu
10831
10832
10833# Source file extension for C test sources.
10834ac_ext=c
10835
10836# Object file extension for compiled C test sources.
10837objext=o
10838objext=$objext
10839
10840# Code to be used in simple compile tests
10841lt_simple_compile_test_code="int some_variable = 0;"
10842
10843# Code to be used in simple link tests
10844lt_simple_link_test_code='int main(){return(0);}'
10845
10846
10847
10848
10849
10850
10851
10852# If no C compiler was specified, use CC.
10853LTCC=${LTCC-"$CC"}
10854
10855# If no C compiler flags were specified, use CFLAGS.
10856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10857
10858# Allow CC to be a program name with arguments.
10859compiler=$CC
10860
10861# Save the default compiler, since it gets overwritten when the other
10862# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10863compiler_DEFAULT=$CC
10864
10865# save warnings/boilerplate of simple test code
10866ac_outfile=conftest.$ac_objext
10867echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10868eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10869_lt_compiler_boilerplate=`cat conftest.err`
10870$RM conftest*
10871
10872ac_outfile=conftest.$ac_objext
10873echo "$lt_simple_link_test_code" >conftest.$ac_ext
10874eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10875_lt_linker_boilerplate=`cat conftest.err`
10876$RM -r conftest*
10877
10878
10879if test -n "$compiler"; then
10880
10881lt_prog_compiler_no_builtin_flag=
10882
10883if test "$GCC" = yes; then
10884  case $cc_basename in
10885  nvcc*)
10886    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10887  *)
10888    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10889  esac
10890
10891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10892$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10893if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10894  $as_echo_n "(cached) " >&6
10895else
10896  lt_cv_prog_compiler_rtti_exceptions=no
10897   ac_outfile=conftest.$ac_objext
10898   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10899   lt_compiler_flag="-fno-rtti -fno-exceptions"
10900   # Insert the option either (1) after the last *FLAGS variable, or
10901   # (2) before a word containing "conftest.", or (3) at the end.
10902   # Note that $ac_compile itself does not contain backslashes and begins
10903   # with a dollar sign (not a hyphen), so the echo should work correctly.
10904   # The option is referenced via a variable to avoid confusing sed.
10905   lt_compile=`echo "$ac_compile" | $SED \
10906   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10907   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10908   -e 's:$: $lt_compiler_flag:'`
10909   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10910   (eval "$lt_compile" 2>conftest.err)
10911   ac_status=$?
10912   cat conftest.err >&5
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   if (exit $ac_status) && test -s "$ac_outfile"; then
10915     # The compiler can only warn and ignore the option if not recognized
10916     # So say no if there are warnings other than the usual output.
10917     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10918     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10919     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10920       lt_cv_prog_compiler_rtti_exceptions=yes
10921     fi
10922   fi
10923   $RM conftest*
10924
10925fi
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10927$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10928
10929if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10930    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10931else
10932    :
10933fi
10934
10935fi
10936
10937
10938
10939
10940
10941
10942  lt_prog_compiler_wl=
10943lt_prog_compiler_pic=
10944lt_prog_compiler_static=
10945
10946
10947  if test "$GCC" = yes; then
10948    lt_prog_compiler_wl='-Wl,'
10949    lt_prog_compiler_static='-static'
10950
10951    case $host_os in
10952      aix*)
10953      # All AIX code is PIC.
10954      if test "$host_cpu" = ia64; then
10955	# AIX 5 now supports IA64 processor
10956	lt_prog_compiler_static='-Bstatic'
10957      fi
10958      ;;
10959
10960    amigaos*)
10961      case $host_cpu in
10962      powerpc)
10963            # see comment about AmigaOS4 .so support
10964            lt_prog_compiler_pic='-fPIC'
10965        ;;
10966      m68k)
10967            # FIXME: we need at least 68020 code to build shared libraries, but
10968            # adding the `-m68020' flag to GCC prevents building anything better,
10969            # like `-m68040'.
10970            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10971        ;;
10972      esac
10973      ;;
10974
10975    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10976      # PIC is the default for these OSes.
10977      ;;
10978
10979    mingw* | cygwin* | pw32* | os2* | cegcc*)
10980      # This hack is so that the source file can tell whether it is being
10981      # built for inclusion in a dll (and should export symbols for example).
10982      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10983      # (--disable-auto-import) libraries
10984      lt_prog_compiler_pic='-DDLL_EXPORT'
10985      ;;
10986
10987    darwin* | rhapsody*)
10988      # PIC is the default on this platform
10989      # Common symbols not allowed in MH_DYLIB files
10990      lt_prog_compiler_pic='-fno-common'
10991      ;;
10992
10993    haiku*)
10994      # PIC is the default for Haiku.
10995      # The "-static" flag exists, but is broken.
10996      lt_prog_compiler_static=
10997      ;;
10998
10999    hpux*)
11000      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11001      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11002      # sets the default TLS model and affects inlining.
11003      case $host_cpu in
11004      hppa*64*)
11005	# +Z the default
11006	;;
11007      *)
11008	lt_prog_compiler_pic='-fPIC'
11009	;;
11010      esac
11011      ;;
11012
11013    interix[3-9]*)
11014      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11015      # Instead, we relocate shared libraries at runtime.
11016      ;;
11017
11018    msdosdjgpp*)
11019      # Just because we use GCC doesn't mean we suddenly get shared libraries
11020      # on systems that don't support them.
11021      lt_prog_compiler_can_build_shared=no
11022      enable_shared=no
11023      ;;
11024
11025    *nto* | *qnx*)
11026      # QNX uses GNU C++, but need to define -shared option too, otherwise
11027      # it will coredump.
11028      lt_prog_compiler_pic='-fPIC -shared'
11029      ;;
11030
11031    sysv4*MP*)
11032      if test -d /usr/nec; then
11033	lt_prog_compiler_pic=-Kconform_pic
11034      fi
11035      ;;
11036
11037    *)
11038      lt_prog_compiler_pic='-fPIC'
11039      ;;
11040    esac
11041
11042    case $cc_basename in
11043    nvcc*) # Cuda Compiler Driver 2.2
11044      lt_prog_compiler_wl='-Xlinker '
11045      lt_prog_compiler_pic='-Xcompiler -fPIC'
11046      ;;
11047    esac
11048  else
11049    # PORTME Check for flag to pass linker flags through the system compiler.
11050    case $host_os in
11051    aix*)
11052      lt_prog_compiler_wl='-Wl,'
11053      if test "$host_cpu" = ia64; then
11054	# AIX 5 now supports IA64 processor
11055	lt_prog_compiler_static='-Bstatic'
11056      else
11057	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11058      fi
11059      ;;
11060
11061    mingw* | cygwin* | pw32* | os2* | cegcc*)
11062      # This hack is so that the source file can tell whether it is being
11063      # built for inclusion in a dll (and should export symbols for example).
11064      lt_prog_compiler_pic='-DDLL_EXPORT'
11065      ;;
11066
11067    hpux9* | hpux10* | hpux11*)
11068      lt_prog_compiler_wl='-Wl,'
11069      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11070      # not for PA HP-UX.
11071      case $host_cpu in
11072      hppa*64*|ia64*)
11073	# +Z the default
11074	;;
11075      *)
11076	lt_prog_compiler_pic='+Z'
11077	;;
11078      esac
11079      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11080      lt_prog_compiler_static='${wl}-a ${wl}archive'
11081      ;;
11082
11083    irix5* | irix6* | nonstopux*)
11084      lt_prog_compiler_wl='-Wl,'
11085      # PIC (with -KPIC) is the default.
11086      lt_prog_compiler_static='-non_shared'
11087      ;;
11088
11089    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11090      case $cc_basename in
11091      # old Intel for x86_64 which still supported -KPIC.
11092      ecc*)
11093	lt_prog_compiler_wl='-Wl,'
11094	lt_prog_compiler_pic='-KPIC'
11095	lt_prog_compiler_static='-static'
11096        ;;
11097      # icc used to be incompatible with GCC.
11098      # ICC 10 doesn't accept -KPIC any more.
11099      icc* | ifort*)
11100	lt_prog_compiler_wl='-Wl,'
11101	lt_prog_compiler_pic='-fPIC'
11102	lt_prog_compiler_static='-static'
11103        ;;
11104      # Lahey Fortran 8.1.
11105      lf95*)
11106	lt_prog_compiler_wl='-Wl,'
11107	lt_prog_compiler_pic='--shared'
11108	lt_prog_compiler_static='--static'
11109	;;
11110      nagfor*)
11111	# NAG Fortran compiler
11112	lt_prog_compiler_wl='-Wl,-Wl,,'
11113	lt_prog_compiler_pic='-PIC'
11114	lt_prog_compiler_static='-Bstatic'
11115	;;
11116      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11117        # Portland Group compilers (*not* the Pentium gcc compiler,
11118	# which looks to be a dead project)
11119	lt_prog_compiler_wl='-Wl,'
11120	lt_prog_compiler_pic='-fpic'
11121	lt_prog_compiler_static='-Bstatic'
11122        ;;
11123      ccc*)
11124        lt_prog_compiler_wl='-Wl,'
11125        # All Alpha code is PIC.
11126        lt_prog_compiler_static='-non_shared'
11127        ;;
11128      xl* | bgxl* | bgf* | mpixl*)
11129	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11130	lt_prog_compiler_wl='-Wl,'
11131	lt_prog_compiler_pic='-qpic'
11132	lt_prog_compiler_static='-qstaticlink'
11133	;;
11134      *)
11135	case `$CC -V 2>&1 | sed 5q` in
11136	*Sun\ F* | *Sun*Fortran*)
11137	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11138	  lt_prog_compiler_pic='-KPIC'
11139	  lt_prog_compiler_static='-Bstatic'
11140	  lt_prog_compiler_wl=''
11141	  ;;
11142	*Sun\ C*)
11143	  # Sun C 5.9
11144	  lt_prog_compiler_pic='-KPIC'
11145	  lt_prog_compiler_static='-Bstatic'
11146	  lt_prog_compiler_wl='-Wl,'
11147	  ;;
11148	esac
11149	;;
11150      esac
11151      ;;
11152
11153    newsos6)
11154      lt_prog_compiler_pic='-KPIC'
11155      lt_prog_compiler_static='-Bstatic'
11156      ;;
11157
11158    *nto* | *qnx*)
11159      # QNX uses GNU C++, but need to define -shared option too, otherwise
11160      # it will coredump.
11161      lt_prog_compiler_pic='-fPIC -shared'
11162      ;;
11163
11164    osf3* | osf4* | osf5*)
11165      lt_prog_compiler_wl='-Wl,'
11166      # All OSF/1 code is PIC.
11167      lt_prog_compiler_static='-non_shared'
11168      ;;
11169
11170    rdos*)
11171      lt_prog_compiler_static='-non_shared'
11172      ;;
11173
11174    solaris*)
11175      lt_prog_compiler_pic='-KPIC'
11176      lt_prog_compiler_static='-Bstatic'
11177      case $cc_basename in
11178      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11179	lt_prog_compiler_wl='-Qoption ld ';;
11180      *)
11181	lt_prog_compiler_wl='-Wl,';;
11182      esac
11183      ;;
11184
11185    sunos4*)
11186      lt_prog_compiler_wl='-Qoption ld '
11187      lt_prog_compiler_pic='-PIC'
11188      lt_prog_compiler_static='-Bstatic'
11189      ;;
11190
11191    sysv4 | sysv4.2uw2* | sysv4.3*)
11192      lt_prog_compiler_wl='-Wl,'
11193      lt_prog_compiler_pic='-KPIC'
11194      lt_prog_compiler_static='-Bstatic'
11195      ;;
11196
11197    sysv4*MP*)
11198      if test -d /usr/nec ;then
11199	lt_prog_compiler_pic='-Kconform_pic'
11200	lt_prog_compiler_static='-Bstatic'
11201      fi
11202      ;;
11203
11204    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11205      lt_prog_compiler_wl='-Wl,'
11206      lt_prog_compiler_pic='-KPIC'
11207      lt_prog_compiler_static='-Bstatic'
11208      ;;
11209
11210    unicos*)
11211      lt_prog_compiler_wl='-Wl,'
11212      lt_prog_compiler_can_build_shared=no
11213      ;;
11214
11215    uts4*)
11216      lt_prog_compiler_pic='-pic'
11217      lt_prog_compiler_static='-Bstatic'
11218      ;;
11219
11220    *)
11221      lt_prog_compiler_can_build_shared=no
11222      ;;
11223    esac
11224  fi
11225
11226case $host_os in
11227  # For platforms which do not support PIC, -DPIC is meaningless:
11228  *djgpp*)
11229    lt_prog_compiler_pic=
11230    ;;
11231  *)
11232    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11233    ;;
11234esac
11235
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11237$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11238if ${lt_cv_prog_compiler_pic+:} false; then :
11239  $as_echo_n "(cached) " >&6
11240else
11241  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11242fi
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11244$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11245lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11246
11247#
11248# Check to make sure the PIC flag actually works.
11249#
11250if test -n "$lt_prog_compiler_pic"; then
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11252$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11253if ${lt_cv_prog_compiler_pic_works+:} false; then :
11254  $as_echo_n "(cached) " >&6
11255else
11256  lt_cv_prog_compiler_pic_works=no
11257   ac_outfile=conftest.$ac_objext
11258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11259   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11260   # Insert the option either (1) after the last *FLAGS variable, or
11261   # (2) before a word containing "conftest.", or (3) at the end.
11262   # Note that $ac_compile itself does not contain backslashes and begins
11263   # with a dollar sign (not a hyphen), so the echo should work correctly.
11264   # The option is referenced via a variable to avoid confusing sed.
11265   lt_compile=`echo "$ac_compile" | $SED \
11266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11268   -e 's:$: $lt_compiler_flag:'`
11269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11270   (eval "$lt_compile" 2>conftest.err)
11271   ac_status=$?
11272   cat conftest.err >&5
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   if (exit $ac_status) && test -s "$ac_outfile"; then
11275     # The compiler can only warn and ignore the option if not recognized
11276     # So say no if there are warnings other than the usual output.
11277     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11278     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11279     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11280       lt_cv_prog_compiler_pic_works=yes
11281     fi
11282   fi
11283   $RM conftest*
11284
11285fi
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11287$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11288
11289if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11290    case $lt_prog_compiler_pic in
11291     "" | " "*) ;;
11292     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11293     esac
11294else
11295    lt_prog_compiler_pic=
11296     lt_prog_compiler_can_build_shared=no
11297fi
11298
11299fi
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311#
11312# Check to make sure the static flag actually works.
11313#
11314wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11316$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11317if ${lt_cv_prog_compiler_static_works+:} false; then :
11318  $as_echo_n "(cached) " >&6
11319else
11320  lt_cv_prog_compiler_static_works=no
11321   save_LDFLAGS="$LDFLAGS"
11322   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11323   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11324   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11325     # The linker can only warn and ignore the option if not recognized
11326     # So say no if there are warnings
11327     if test -s conftest.err; then
11328       # Append any errors to the config.log.
11329       cat conftest.err 1>&5
11330       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11331       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11332       if diff conftest.exp conftest.er2 >/dev/null; then
11333         lt_cv_prog_compiler_static_works=yes
11334       fi
11335     else
11336       lt_cv_prog_compiler_static_works=yes
11337     fi
11338   fi
11339   $RM -r conftest*
11340   LDFLAGS="$save_LDFLAGS"
11341
11342fi
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11344$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11345
11346if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11347    :
11348else
11349    lt_prog_compiler_static=
11350fi
11351
11352
11353
11354
11355
11356
11357
11358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11359$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11360if ${lt_cv_prog_compiler_c_o+:} false; then :
11361  $as_echo_n "(cached) " >&6
11362else
11363  lt_cv_prog_compiler_c_o=no
11364   $RM -r conftest 2>/dev/null
11365   mkdir conftest
11366   cd conftest
11367   mkdir out
11368   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11369
11370   lt_compiler_flag="-o out/conftest2.$ac_objext"
11371   # Insert the option either (1) after the last *FLAGS variable, or
11372   # (2) before a word containing "conftest.", or (3) at the end.
11373   # Note that $ac_compile itself does not contain backslashes and begins
11374   # with a dollar sign (not a hyphen), so the echo should work correctly.
11375   lt_compile=`echo "$ac_compile" | $SED \
11376   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11377   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11378   -e 's:$: $lt_compiler_flag:'`
11379   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11380   (eval "$lt_compile" 2>out/conftest.err)
11381   ac_status=$?
11382   cat out/conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11385   then
11386     # The compiler can only warn and ignore the option if not recognized
11387     # So say no if there are warnings
11388     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11389     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11390     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11391       lt_cv_prog_compiler_c_o=yes
11392     fi
11393   fi
11394   chmod u+w . 2>&5
11395   $RM conftest*
11396   # SGI C++ compiler will create directory out/ii_files/ for
11397   # template instantiation
11398   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11399   $RM out/* && rmdir out
11400   cd ..
11401   $RM -r conftest
11402   $RM conftest*
11403
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11406$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11407
11408
11409
11410
11411
11412
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11414$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11415if ${lt_cv_prog_compiler_c_o+:} false; then :
11416  $as_echo_n "(cached) " >&6
11417else
11418  lt_cv_prog_compiler_c_o=no
11419   $RM -r conftest 2>/dev/null
11420   mkdir conftest
11421   cd conftest
11422   mkdir out
11423   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11424
11425   lt_compiler_flag="-o out/conftest2.$ac_objext"
11426   # Insert the option either (1) after the last *FLAGS variable, or
11427   # (2) before a word containing "conftest.", or (3) at the end.
11428   # Note that $ac_compile itself does not contain backslashes and begins
11429   # with a dollar sign (not a hyphen), so the echo should work correctly.
11430   lt_compile=`echo "$ac_compile" | $SED \
11431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11433   -e 's:$: $lt_compiler_flag:'`
11434   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11435   (eval "$lt_compile" 2>out/conftest.err)
11436   ac_status=$?
11437   cat out/conftest.err >&5
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11440   then
11441     # The compiler can only warn and ignore the option if not recognized
11442     # So say no if there are warnings
11443     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11444     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11445     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11446       lt_cv_prog_compiler_c_o=yes
11447     fi
11448   fi
11449   chmod u+w . 2>&5
11450   $RM conftest*
11451   # SGI C++ compiler will create directory out/ii_files/ for
11452   # template instantiation
11453   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11454   $RM out/* && rmdir out
11455   cd ..
11456   $RM -r conftest
11457   $RM conftest*
11458
11459fi
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11461$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11462
11463
11464
11465
11466hard_links="nottested"
11467if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11468  # do not overwrite the value of need_locks provided by the user
11469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11470$as_echo_n "checking if we can lock with hard links... " >&6; }
11471  hard_links=yes
11472  $RM conftest*
11473  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11474  touch conftest.a
11475  ln conftest.a conftest.b 2>&5 || hard_links=no
11476  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11478$as_echo "$hard_links" >&6; }
11479  if test "$hard_links" = no; then
11480    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11481$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11482    need_locks=warn
11483  fi
11484else
11485  need_locks=no
11486fi
11487
11488
11489
11490
11491
11492
11493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11494$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11495
11496  runpath_var=
11497  allow_undefined_flag=
11498  always_export_symbols=no
11499  archive_cmds=
11500  archive_expsym_cmds=
11501  compiler_needs_object=no
11502  enable_shared_with_static_runtimes=no
11503  export_dynamic_flag_spec=
11504  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11505  hardcode_automatic=no
11506  hardcode_direct=no
11507  hardcode_direct_absolute=no
11508  hardcode_libdir_flag_spec=
11509  hardcode_libdir_flag_spec_ld=
11510  hardcode_libdir_separator=
11511  hardcode_minus_L=no
11512  hardcode_shlibpath_var=unsupported
11513  inherit_rpath=no
11514  link_all_deplibs=unknown
11515  module_cmds=
11516  module_expsym_cmds=
11517  old_archive_from_new_cmds=
11518  old_archive_from_expsyms_cmds=
11519  thread_safe_flag_spec=
11520  whole_archive_flag_spec=
11521  # include_expsyms should be a list of space-separated symbols to be *always*
11522  # included in the symbol list
11523  include_expsyms=
11524  # exclude_expsyms can be an extended regexp of symbols to exclude
11525  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11526  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11527  # as well as any symbol that contains `d'.
11528  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11529  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11530  # platforms (ab)use it in PIC code, but their linkers get confused if
11531  # the symbol is explicitly referenced.  Since portable code cannot
11532  # rely on this symbol name, it's probably fine to never include it in
11533  # preloaded symbol tables.
11534  # Exclude shared library initialization/finalization symbols.
11535  extract_expsyms_cmds=
11536
11537  case $host_os in
11538  cygwin* | mingw* | pw32* | cegcc*)
11539    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11540    # When not using gcc, we currently assume that we are using
11541    # Microsoft Visual C++.
11542    if test "$GCC" != yes; then
11543      with_gnu_ld=no
11544    fi
11545    ;;
11546  interix*)
11547    # we just hope/assume this is gcc and not c89 (= MSVC++)
11548    with_gnu_ld=yes
11549    ;;
11550  openbsd*)
11551    with_gnu_ld=no
11552    ;;
11553  esac
11554
11555  ld_shlibs=yes
11556
11557  # On some targets, GNU ld is compatible enough with the native linker
11558  # that we're better off using the native interface for both.
11559  lt_use_gnu_ld_interface=no
11560  if test "$with_gnu_ld" = yes; then
11561    case $host_os in
11562      aix*)
11563	# The AIX port of GNU ld has always aspired to compatibility
11564	# with the native linker.  However, as the warning in the GNU ld
11565	# block says, versions before 2.19.5* couldn't really create working
11566	# shared libraries, regardless of the interface used.
11567	case `$LD -v 2>&1` in
11568	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11569	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11570	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11571	  *)
11572	    lt_use_gnu_ld_interface=yes
11573	    ;;
11574	esac
11575	;;
11576      *)
11577	lt_use_gnu_ld_interface=yes
11578	;;
11579    esac
11580  fi
11581
11582  if test "$lt_use_gnu_ld_interface" = yes; then
11583    # If archive_cmds runs LD, not CC, wlarc should be empty
11584    wlarc='${wl}'
11585
11586    # Set some defaults for GNU ld with shared library support. These
11587    # are reset later if shared libraries are not supported. Putting them
11588    # here allows them to be overridden if necessary.
11589    runpath_var=LD_RUN_PATH
11590    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11591    export_dynamic_flag_spec='${wl}--export-dynamic'
11592    # ancient GNU ld didn't support --whole-archive et. al.
11593    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11594      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11595    else
11596      whole_archive_flag_spec=
11597    fi
11598    supports_anon_versioning=no
11599    case `$LD -v 2>&1` in
11600      *GNU\ gold*) supports_anon_versioning=yes ;;
11601      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11602      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11603      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11604      *\ 2.11.*) ;; # other 2.11 versions
11605      *) supports_anon_versioning=yes ;;
11606    esac
11607
11608    # See if GNU ld supports shared libraries.
11609    case $host_os in
11610    aix[3-9]*)
11611      # On AIX/PPC, the GNU linker is very broken
11612      if test "$host_cpu" != ia64; then
11613	ld_shlibs=no
11614	cat <<_LT_EOF 1>&2
11615
11616*** Warning: the GNU linker, at least up to release 2.19, is reported
11617*** to be unable to reliably create shared libraries on AIX.
11618*** Therefore, libtool is disabling shared libraries support.  If you
11619*** really care for shared libraries, you may want to install binutils
11620*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11621*** You will then need to restart the configuration process.
11622
11623_LT_EOF
11624      fi
11625      ;;
11626
11627    amigaos*)
11628      case $host_cpu in
11629      powerpc)
11630            # see comment about AmigaOS4 .so support
11631            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632            archive_expsym_cmds=''
11633        ;;
11634      m68k)
11635            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)'
11636            hardcode_libdir_flag_spec='-L$libdir'
11637            hardcode_minus_L=yes
11638        ;;
11639      esac
11640      ;;
11641
11642    beos*)
11643      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11644	allow_undefined_flag=unsupported
11645	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11646	# support --undefined.  This deserves some investigation.  FIXME
11647	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11648      else
11649	ld_shlibs=no
11650      fi
11651      ;;
11652
11653    cygwin* | mingw* | pw32* | cegcc*)
11654      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11655      # as there is no search path for DLLs.
11656      hardcode_libdir_flag_spec='-L$libdir'
11657      export_dynamic_flag_spec='${wl}--export-all-symbols'
11658      allow_undefined_flag=unsupported
11659      always_export_symbols=no
11660      enable_shared_with_static_runtimes=yes
11661      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'
11662      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11663
11664      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11665        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11666	# If the export-symbols file already is a .def file (1st line
11667	# is EXPORTS), use it as is; otherwise, prepend...
11668	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11669	  cp $export_symbols $output_objdir/$soname.def;
11670	else
11671	  echo EXPORTS > $output_objdir/$soname.def;
11672	  cat $export_symbols >> $output_objdir/$soname.def;
11673	fi~
11674	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11675      else
11676	ld_shlibs=no
11677      fi
11678      ;;
11679
11680    haiku*)
11681      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11682      link_all_deplibs=yes
11683      ;;
11684
11685    interix[3-9]*)
11686      hardcode_direct=no
11687      hardcode_shlibpath_var=no
11688      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11689      export_dynamic_flag_spec='${wl}-E'
11690      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11691      # Instead, shared libraries are loaded at an image base (0x10000000 by
11692      # default) and relocated if they conflict, which is a slow very memory
11693      # consuming and fragmenting process.  To avoid this, we pick a random,
11694      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11695      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11696      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11697      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'
11698      ;;
11699
11700    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11701      tmp_diet=no
11702      if test "$host_os" = linux-dietlibc; then
11703	case $cc_basename in
11704	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11705	esac
11706      fi
11707      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11708	 && test "$tmp_diet" = no
11709      then
11710	tmp_addflag=' $pic_flag'
11711	tmp_sharedflag='-shared'
11712	case $cc_basename,$host_cpu in
11713        pgcc*)				# Portland Group C compiler
11714	  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'
11715	  tmp_addflag=' $pic_flag'
11716	  ;;
11717	pgf77* | pgf90* | pgf95* | pgfortran*)
11718					# Portland Group f77 and f90 compilers
11719	  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'
11720	  tmp_addflag=' $pic_flag -Mnomain' ;;
11721	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11722	  tmp_addflag=' -i_dynamic' ;;
11723	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11724	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11725	ifc* | ifort*)			# Intel Fortran compiler
11726	  tmp_addflag=' -nofor_main' ;;
11727	lf95*)				# Lahey Fortran 8.1
11728	  whole_archive_flag_spec=
11729	  tmp_sharedflag='--shared' ;;
11730	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11731	  tmp_sharedflag='-qmkshrobj'
11732	  tmp_addflag= ;;
11733	nvcc*)	# Cuda Compiler Driver 2.2
11734	  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'
11735	  compiler_needs_object=yes
11736	  ;;
11737	esac
11738	case `$CC -V 2>&1 | sed 5q` in
11739	*Sun\ C*)			# Sun C 5.9
11740	  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'
11741	  compiler_needs_object=yes
11742	  tmp_sharedflag='-G' ;;
11743	*Sun\ F*)			# Sun Fortran 8.3
11744	  tmp_sharedflag='-G' ;;
11745	esac
11746	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11747
11748        if test "x$supports_anon_versioning" = xyes; then
11749          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11750	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11751	    echo "local: *; };" >> $output_objdir/$libname.ver~
11752	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11753        fi
11754
11755	case $cc_basename in
11756	xlf* | bgf* | bgxlf* | mpixlf*)
11757	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11758	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11759	  hardcode_libdir_flag_spec=
11760	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11761	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11762	  if test "x$supports_anon_versioning" = xyes; then
11763	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11764	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11765	      echo "local: *; };" >> $output_objdir/$libname.ver~
11766	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11767	  fi
11768	  ;;
11769	esac
11770      else
11771        ld_shlibs=no
11772      fi
11773      ;;
11774
11775    netbsd*)
11776      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11777	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11778	wlarc=
11779      else
11780	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11781	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11782      fi
11783      ;;
11784
11785    solaris*)
11786      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11787	ld_shlibs=no
11788	cat <<_LT_EOF 1>&2
11789
11790*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11791*** create shared libraries on Solaris systems.  Therefore, libtool
11792*** is disabling shared libraries support.  We urge you to upgrade GNU
11793*** binutils to release 2.9.1 or newer.  Another option is to modify
11794*** your PATH or compiler configuration so that the native linker is
11795*** used, and then restart.
11796
11797_LT_EOF
11798      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11799	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11800	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11801      else
11802	ld_shlibs=no
11803      fi
11804      ;;
11805
11806    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11807      case `$LD -v 2>&1` in
11808        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11809	ld_shlibs=no
11810	cat <<_LT_EOF 1>&2
11811
11812*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11813*** reliably create shared libraries on SCO systems.  Therefore, libtool
11814*** is disabling shared libraries support.  We urge you to upgrade GNU
11815*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11816*** your PATH or compiler configuration so that the native linker is
11817*** used, and then restart.
11818
11819_LT_EOF
11820	;;
11821	*)
11822	  # For security reasons, it is highly recommended that you always
11823	  # use absolute paths for naming shared libraries, and exclude the
11824	  # DT_RUNPATH tag from executables and libraries.  But doing so
11825	  # requires that you compile everything twice, which is a pain.
11826	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11827	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11828	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11829	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11830	  else
11831	    ld_shlibs=no
11832	  fi
11833	;;
11834      esac
11835      ;;
11836
11837    sunos4*)
11838      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11839      wlarc=
11840      hardcode_direct=yes
11841      hardcode_shlibpath_var=no
11842      ;;
11843
11844    *)
11845      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11846	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11847	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11848      else
11849	ld_shlibs=no
11850      fi
11851      ;;
11852    esac
11853
11854    if test "$ld_shlibs" = no; then
11855      runpath_var=
11856      hardcode_libdir_flag_spec=
11857      export_dynamic_flag_spec=
11858      whole_archive_flag_spec=
11859    fi
11860  else
11861    # PORTME fill in a description of your system's linker (not GNU ld)
11862    case $host_os in
11863    aix3*)
11864      allow_undefined_flag=unsupported
11865      always_export_symbols=yes
11866      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'
11867      # Note: this linker hardcodes the directories in LIBPATH if there
11868      # are no directories specified by -L.
11869      hardcode_minus_L=yes
11870      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11871	# Neither direct hardcoding nor static linking is supported with a
11872	# broken collect2.
11873	hardcode_direct=unsupported
11874      fi
11875      ;;
11876
11877    aix[4-9]*)
11878      if test "$host_cpu" = ia64; then
11879	# On IA64, the linker does run time linking by default, so we don't
11880	# have to do anything special.
11881	aix_use_runtimelinking=no
11882	exp_sym_flag='-Bexport'
11883	no_entry_flag=""
11884      else
11885	# If we're using GNU nm, then we don't want the "-C" option.
11886	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11887	# Also, AIX nm treats weak defined symbols like other global
11888	# defined symbols, whereas GNU nm marks them as "W".
11889	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11890	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11891	else
11892	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11893	fi
11894	aix_use_runtimelinking=no
11895
11896	# Test if we are trying to use run time linking or normal
11897	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11898	# need to do runtime linking.
11899	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11900	  for ld_flag in $LDFLAGS; do
11901	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11902	    aix_use_runtimelinking=yes
11903	    break
11904	  fi
11905	  done
11906	  ;;
11907	esac
11908
11909	exp_sym_flag='-bexport'
11910	no_entry_flag='-bnoentry'
11911      fi
11912
11913      # When large executables or shared objects are built, AIX ld can
11914      # have problems creating the table of contents.  If linking a library
11915      # or program results in "error TOC overflow" add -mminimal-toc to
11916      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11917      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11918
11919      archive_cmds=''
11920      hardcode_direct=yes
11921      hardcode_direct_absolute=yes
11922      hardcode_libdir_separator=':'
11923      link_all_deplibs=yes
11924      file_list_spec='${wl}-f,'
11925
11926      if test "$GCC" = yes; then
11927	case $host_os in aix4.[012]|aix4.[012].*)
11928	# We only want to do this on AIX 4.2 and lower, the check
11929	# below for broken collect2 doesn't work under 4.3+
11930	  collect2name=`${CC} -print-prog-name=collect2`
11931	  if test -f "$collect2name" &&
11932	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11933	  then
11934	  # We have reworked collect2
11935	  :
11936	  else
11937	  # We have old collect2
11938	  hardcode_direct=unsupported
11939	  # It fails to find uninstalled libraries when the uninstalled
11940	  # path is not listed in the libpath.  Setting hardcode_minus_L
11941	  # to unsupported forces relinking
11942	  hardcode_minus_L=yes
11943	  hardcode_libdir_flag_spec='-L$libdir'
11944	  hardcode_libdir_separator=
11945	  fi
11946	  ;;
11947	esac
11948	shared_flag='-shared'
11949	if test "$aix_use_runtimelinking" = yes; then
11950	  shared_flag="$shared_flag "'${wl}-G'
11951	fi
11952      else
11953	# not using gcc
11954	if test "$host_cpu" = ia64; then
11955	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11956	# chokes on -Wl,-G. The following line is correct:
11957	  shared_flag='-G'
11958	else
11959	  if test "$aix_use_runtimelinking" = yes; then
11960	    shared_flag='${wl}-G'
11961	  else
11962	    shared_flag='${wl}-bM:SRE'
11963	  fi
11964	fi
11965      fi
11966
11967      export_dynamic_flag_spec='${wl}-bexpall'
11968      # It seems that -bexpall does not export symbols beginning with
11969      # underscore (_), so it is better to generate a list of symbols to export.
11970      always_export_symbols=yes
11971      if test "$aix_use_runtimelinking" = yes; then
11972	# Warning - without using the other runtime loading flags (-brtl),
11973	# -berok will link without error, but may produce a broken library.
11974	allow_undefined_flag='-berok'
11975        # Determine the default libpath from the value encoded in an
11976        # empty executable.
11977        if test "${lt_cv_aix_libpath+set}" = set; then
11978  aix_libpath=$lt_cv_aix_libpath
11979else
11980  if ${lt_cv_aix_libpath_+:} false; then :
11981  $as_echo_n "(cached) " >&6
11982else
11983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h.  */
11985
11986int
11987main ()
11988{
11989
11990  ;
11991  return 0;
11992}
11993_ACEOF
11994if ac_fn_c_try_link "$LINENO"; then :
11995
11996  lt_aix_libpath_sed='
11997      /Import File Strings/,/^$/ {
11998	  /^0/ {
11999	      s/^0  *\([^ ]*\) *$/\1/
12000	      p
12001	  }
12002      }'
12003  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12004  # Check for a 64-bit object if we didn't find anything.
12005  if test -z "$lt_cv_aix_libpath_"; then
12006    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12007  fi
12008fi
12009rm -f core conftest.err conftest.$ac_objext \
12010    conftest$ac_exeext conftest.$ac_ext
12011  if test -z "$lt_cv_aix_libpath_"; then
12012    lt_cv_aix_libpath_="/usr/lib:/lib"
12013  fi
12014
12015fi
12016
12017  aix_libpath=$lt_cv_aix_libpath_
12018fi
12019
12020        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12021        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12022      else
12023	if test "$host_cpu" = ia64; then
12024	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12025	  allow_undefined_flag="-z nodefs"
12026	  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"
12027	else
12028	 # Determine the default libpath from the value encoded in an
12029	 # empty executable.
12030	 if test "${lt_cv_aix_libpath+set}" = set; then
12031  aix_libpath=$lt_cv_aix_libpath
12032else
12033  if ${lt_cv_aix_libpath_+:} false; then :
12034  $as_echo_n "(cached) " >&6
12035else
12036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037/* end confdefs.h.  */
12038
12039int
12040main ()
12041{
12042
12043  ;
12044  return 0;
12045}
12046_ACEOF
12047if ac_fn_c_try_link "$LINENO"; then :
12048
12049  lt_aix_libpath_sed='
12050      /Import File Strings/,/^$/ {
12051	  /^0/ {
12052	      s/^0  *\([^ ]*\) *$/\1/
12053	      p
12054	  }
12055      }'
12056  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12057  # Check for a 64-bit object if we didn't find anything.
12058  if test -z "$lt_cv_aix_libpath_"; then
12059    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12060  fi
12061fi
12062rm -f core conftest.err conftest.$ac_objext \
12063    conftest$ac_exeext conftest.$ac_ext
12064  if test -z "$lt_cv_aix_libpath_"; then
12065    lt_cv_aix_libpath_="/usr/lib:/lib"
12066  fi
12067
12068fi
12069
12070  aix_libpath=$lt_cv_aix_libpath_
12071fi
12072
12073	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12074	  # Warning - without using the other run time loading flags,
12075	  # -berok will link without error, but may produce a broken library.
12076	  no_undefined_flag=' ${wl}-bernotok'
12077	  allow_undefined_flag=' ${wl}-berok'
12078	  if test "$with_gnu_ld" = yes; then
12079	    # We only use this code for GNU lds that support --whole-archive.
12080	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12081	  else
12082	    # Exported symbols can be pulled into shared objects from archives
12083	    whole_archive_flag_spec='$convenience'
12084	  fi
12085	  archive_cmds_need_lc=yes
12086	  # This is similar to how AIX traditionally builds its shared libraries.
12087	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12088	fi
12089      fi
12090      ;;
12091
12092    amigaos*)
12093      case $host_cpu in
12094      powerpc)
12095            # see comment about AmigaOS4 .so support
12096            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12097            archive_expsym_cmds=''
12098        ;;
12099      m68k)
12100            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)'
12101            hardcode_libdir_flag_spec='-L$libdir'
12102            hardcode_minus_L=yes
12103        ;;
12104      esac
12105      ;;
12106
12107    bsdi[45]*)
12108      export_dynamic_flag_spec=-rdynamic
12109      ;;
12110
12111    cygwin* | mingw* | pw32* | cegcc*)
12112      # When not using gcc, we currently assume that we are using
12113      # Microsoft Visual C++.
12114      # hardcode_libdir_flag_spec is actually meaningless, as there is
12115      # no search path for DLLs.
12116      case $cc_basename in
12117      cl*)
12118	# Native MSVC
12119	hardcode_libdir_flag_spec=' '
12120	allow_undefined_flag=unsupported
12121	always_export_symbols=yes
12122	file_list_spec='@'
12123	# Tell ltmain to make .lib files, not .a files.
12124	libext=lib
12125	# Tell ltmain to make .dll files, not .so files.
12126	shrext_cmds=".dll"
12127	# FIXME: Setting linknames here is a bad hack.
12128	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12129	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12130	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12131	  else
12132	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12133	  fi~
12134	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12135	  linknames='
12136	# The linker will not automatically build a static lib if we build a DLL.
12137	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12138	enable_shared_with_static_runtimes=yes
12139	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12140	# Don't use ranlib
12141	old_postinstall_cmds='chmod 644 $oldlib'
12142	postlink_cmds='lt_outputfile="@OUTPUT@"~
12143	  lt_tool_outputfile="@TOOL_OUTPUT@"~
12144	  case $lt_outputfile in
12145	    *.exe|*.EXE) ;;
12146	    *)
12147	      lt_outputfile="$lt_outputfile.exe"
12148	      lt_tool_outputfile="$lt_tool_outputfile.exe"
12149	      ;;
12150	  esac~
12151	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12152	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12153	    $RM "$lt_outputfile.manifest";
12154	  fi'
12155	;;
12156      *)
12157	# Assume MSVC wrapper
12158	hardcode_libdir_flag_spec=' '
12159	allow_undefined_flag=unsupported
12160	# Tell ltmain to make .lib files, not .a files.
12161	libext=lib
12162	# Tell ltmain to make .dll files, not .so files.
12163	shrext_cmds=".dll"
12164	# FIXME: Setting linknames here is a bad hack.
12165	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12166	# The linker will automatically build a .lib file if we build a DLL.
12167	old_archive_from_new_cmds='true'
12168	# FIXME: Should let the user specify the lib program.
12169	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12170	enable_shared_with_static_runtimes=yes
12171	;;
12172      esac
12173      ;;
12174
12175    darwin* | rhapsody*)
12176
12177
12178  archive_cmds_need_lc=no
12179  hardcode_direct=no
12180  hardcode_automatic=yes
12181  hardcode_shlibpath_var=unsupported
12182  if test "$lt_cv_ld_force_load" = "yes"; then
12183    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\"`'
12184  else
12185    whole_archive_flag_spec=''
12186  fi
12187  link_all_deplibs=yes
12188  allow_undefined_flag="$_lt_dar_allow_undefined"
12189  case $cc_basename in
12190     ifort*) _lt_dar_can_shared=yes ;;
12191     *) _lt_dar_can_shared=$GCC ;;
12192  esac
12193  if test "$_lt_dar_can_shared" = "yes"; then
12194    output_verbose_link_cmd=func_echo_all
12195    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12196    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12197    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}"
12198    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}"
12199
12200  else
12201  ld_shlibs=no
12202  fi
12203
12204      ;;
12205
12206    dgux*)
12207      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12208      hardcode_libdir_flag_spec='-L$libdir'
12209      hardcode_shlibpath_var=no
12210      ;;
12211
12212    freebsd1*)
12213      ld_shlibs=no
12214      ;;
12215
12216    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12217    # support.  Future versions do this automatically, but an explicit c++rt0.o
12218    # does not break anything, and helps significantly (at the cost of a little
12219    # extra space).
12220    freebsd2.2*)
12221      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12222      hardcode_libdir_flag_spec='-R$libdir'
12223      hardcode_direct=yes
12224      hardcode_shlibpath_var=no
12225      ;;
12226
12227    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12228    freebsd2*)
12229      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12230      hardcode_direct=yes
12231      hardcode_minus_L=yes
12232      hardcode_shlibpath_var=no
12233      ;;
12234
12235    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12236    freebsd* | dragonfly*)
12237      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12238      hardcode_libdir_flag_spec='-R$libdir'
12239      hardcode_direct=yes
12240      hardcode_shlibpath_var=no
12241      ;;
12242
12243    hpux9*)
12244      if test "$GCC" = yes; then
12245	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12246      else
12247	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12248      fi
12249      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12250      hardcode_libdir_separator=:
12251      hardcode_direct=yes
12252
12253      # hardcode_minus_L: Not really in the search PATH,
12254      # but as the default location of the library.
12255      hardcode_minus_L=yes
12256      export_dynamic_flag_spec='${wl}-E'
12257      ;;
12258
12259    hpux10*)
12260      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12261	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12262      else
12263	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12264      fi
12265      if test "$with_gnu_ld" = no; then
12266	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12267	hardcode_libdir_flag_spec_ld='+b $libdir'
12268	hardcode_libdir_separator=:
12269	hardcode_direct=yes
12270	hardcode_direct_absolute=yes
12271	export_dynamic_flag_spec='${wl}-E'
12272	# hardcode_minus_L: Not really in the search PATH,
12273	# but as the default location of the library.
12274	hardcode_minus_L=yes
12275      fi
12276      ;;
12277
12278    hpux11*)
12279      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12280	case $host_cpu in
12281	hppa*64*)
12282	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12283	  ;;
12284	ia64*)
12285	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12286	  ;;
12287	*)
12288	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12289	  ;;
12290	esac
12291      else
12292	case $host_cpu in
12293	hppa*64*)
12294	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12295	  ;;
12296	ia64*)
12297	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12298	  ;;
12299	*)
12300
12301	  # Older versions of the 11.00 compiler do not understand -b yet
12302	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12303	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12304$as_echo_n "checking if $CC understands -b... " >&6; }
12305if ${lt_cv_prog_compiler__b+:} false; then :
12306  $as_echo_n "(cached) " >&6
12307else
12308  lt_cv_prog_compiler__b=no
12309   save_LDFLAGS="$LDFLAGS"
12310   LDFLAGS="$LDFLAGS -b"
12311   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12312   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12313     # The linker can only warn and ignore the option if not recognized
12314     # So say no if there are warnings
12315     if test -s conftest.err; then
12316       # Append any errors to the config.log.
12317       cat conftest.err 1>&5
12318       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12319       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12320       if diff conftest.exp conftest.er2 >/dev/null; then
12321         lt_cv_prog_compiler__b=yes
12322       fi
12323     else
12324       lt_cv_prog_compiler__b=yes
12325     fi
12326   fi
12327   $RM -r conftest*
12328   LDFLAGS="$save_LDFLAGS"
12329
12330fi
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12332$as_echo "$lt_cv_prog_compiler__b" >&6; }
12333
12334if test x"$lt_cv_prog_compiler__b" = xyes; then
12335    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12336else
12337    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12338fi
12339
12340	  ;;
12341	esac
12342      fi
12343      if test "$with_gnu_ld" = no; then
12344	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12345	hardcode_libdir_separator=:
12346
12347	case $host_cpu in
12348	hppa*64*|ia64*)
12349	  hardcode_direct=no
12350	  hardcode_shlibpath_var=no
12351	  ;;
12352	*)
12353	  hardcode_direct=yes
12354	  hardcode_direct_absolute=yes
12355	  export_dynamic_flag_spec='${wl}-E'
12356
12357	  # hardcode_minus_L: Not really in the search PATH,
12358	  # but as the default location of the library.
12359	  hardcode_minus_L=yes
12360	  ;;
12361	esac
12362      fi
12363      ;;
12364
12365    irix5* | irix6* | nonstopux*)
12366      if test "$GCC" = yes; then
12367	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'
12368	# Try to use the -exported_symbol ld option, if it does not
12369	# work, assume that -exports_file does not work either and
12370	# implicitly export all symbols.
12371	# This should be the same for all languages, so no per-tag cache variable.
12372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12373$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12374if ${lt_cv_irix_exported_symbol+:} false; then :
12375  $as_echo_n "(cached) " >&6
12376else
12377  save_LDFLAGS="$LDFLAGS"
12378	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12379	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380/* end confdefs.h.  */
12381int foo (void) { return 0; }
12382_ACEOF
12383if ac_fn_c_try_link "$LINENO"; then :
12384  lt_cv_irix_exported_symbol=yes
12385else
12386  lt_cv_irix_exported_symbol=no
12387fi
12388rm -f core conftest.err conftest.$ac_objext \
12389    conftest$ac_exeext conftest.$ac_ext
12390           LDFLAGS="$save_LDFLAGS"
12391fi
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12393$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12394	if test "$lt_cv_irix_exported_symbol" = yes; then
12395          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'
12396	fi
12397      else
12398	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'
12399	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'
12400      fi
12401      archive_cmds_need_lc='no'
12402      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12403      hardcode_libdir_separator=:
12404      inherit_rpath=yes
12405      link_all_deplibs=yes
12406      ;;
12407
12408    netbsd*)
12409      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12410	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12411      else
12412	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12413      fi
12414      hardcode_libdir_flag_spec='-R$libdir'
12415      hardcode_direct=yes
12416      hardcode_shlibpath_var=no
12417      ;;
12418
12419    newsos6)
12420      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12421      hardcode_direct=yes
12422      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12423      hardcode_libdir_separator=:
12424      hardcode_shlibpath_var=no
12425      ;;
12426
12427    *nto* | *qnx*)
12428      ;;
12429
12430    openbsd*)
12431      if test -f /usr/libexec/ld.so; then
12432	hardcode_direct=yes
12433	hardcode_shlibpath_var=no
12434	hardcode_direct_absolute=yes
12435	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12436	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12437	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12438	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12439	  export_dynamic_flag_spec='${wl}-E'
12440	else
12441	  case $host_os in
12442	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12443	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12444	     hardcode_libdir_flag_spec='-R$libdir'
12445	     ;;
12446	   *)
12447	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12448	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12449	     ;;
12450	  esac
12451	fi
12452      else
12453	ld_shlibs=no
12454      fi
12455      ;;
12456
12457    os2*)
12458      hardcode_libdir_flag_spec='-L$libdir'
12459      hardcode_minus_L=yes
12460      allow_undefined_flag=unsupported
12461      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12462      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12463      ;;
12464
12465    osf3*)
12466      if test "$GCC" = yes; then
12467	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12468	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'
12469      else
12470	allow_undefined_flag=' -expect_unresolved \*'
12471	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'
12472      fi
12473      archive_cmds_need_lc='no'
12474      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12475      hardcode_libdir_separator=:
12476      ;;
12477
12478    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12479      if test "$GCC" = yes; then
12480	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12481	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'
12482	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12483      else
12484	allow_undefined_flag=' -expect_unresolved \*'
12485	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'
12486	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~
12487	$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'
12488
12489	# Both c and cxx compiler support -rpath directly
12490	hardcode_libdir_flag_spec='-rpath $libdir'
12491      fi
12492      archive_cmds_need_lc='no'
12493      hardcode_libdir_separator=:
12494      ;;
12495
12496    solaris*)
12497      no_undefined_flag=' -z defs'
12498      if test "$GCC" = yes; then
12499	wlarc='${wl}'
12500	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12501	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12502	  $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'
12503      else
12504	case `$CC -V 2>&1` in
12505	*"Compilers 5.0"*)
12506	  wlarc=''
12507	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12508	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12509	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12510	  ;;
12511	*)
12512	  wlarc='${wl}'
12513	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12514	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12515	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12516	  ;;
12517	esac
12518      fi
12519      hardcode_libdir_flag_spec='-R$libdir'
12520      hardcode_shlibpath_var=no
12521      case $host_os in
12522      solaris2.[0-5] | solaris2.[0-5].*) ;;
12523      *)
12524	# The compiler driver will combine and reorder linker options,
12525	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12526	# but is careful enough not to reorder.
12527	# Supported since Solaris 2.6 (maybe 2.5.1?)
12528	if test "$GCC" = yes; then
12529	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12530	else
12531	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12532	fi
12533	;;
12534      esac
12535      link_all_deplibs=yes
12536      ;;
12537
12538    sunos4*)
12539      if test "x$host_vendor" = xsequent; then
12540	# Use $CC to link under sequent, because it throws in some extra .o
12541	# files that make .init and .fini sections work.
12542	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12543      else
12544	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12545      fi
12546      hardcode_libdir_flag_spec='-L$libdir'
12547      hardcode_direct=yes
12548      hardcode_minus_L=yes
12549      hardcode_shlibpath_var=no
12550      ;;
12551
12552    sysv4)
12553      case $host_vendor in
12554	sni)
12555	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12556	  hardcode_direct=yes # is this really true???
12557	;;
12558	siemens)
12559	  ## LD is ld it makes a PLAMLIB
12560	  ## CC just makes a GrossModule.
12561	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12562	  reload_cmds='$CC -r -o $output$reload_objs'
12563	  hardcode_direct=no
12564        ;;
12565	motorola)
12566	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12567	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12568	;;
12569      esac
12570      runpath_var='LD_RUN_PATH'
12571      hardcode_shlibpath_var=no
12572      ;;
12573
12574    sysv4.3*)
12575      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12576      hardcode_shlibpath_var=no
12577      export_dynamic_flag_spec='-Bexport'
12578      ;;
12579
12580    sysv4*MP*)
12581      if test -d /usr/nec; then
12582	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12583	hardcode_shlibpath_var=no
12584	runpath_var=LD_RUN_PATH
12585	hardcode_runpath_var=yes
12586	ld_shlibs=yes
12587      fi
12588      ;;
12589
12590    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12591      no_undefined_flag='${wl}-z,text'
12592      archive_cmds_need_lc=no
12593      hardcode_shlibpath_var=no
12594      runpath_var='LD_RUN_PATH'
12595
12596      if test "$GCC" = yes; then
12597	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12599      else
12600	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12602      fi
12603      ;;
12604
12605    sysv5* | sco3.2v5* | sco5v6*)
12606      # Note: We can NOT use -z defs as we might desire, because we do not
12607      # link with -lc, and that would cause any symbols used from libc to
12608      # always be unresolved, which means just about no library would
12609      # ever link correctly.  If we're not using GNU ld we use -z text
12610      # though, which does catch some bad symbols but isn't as heavy-handed
12611      # as -z defs.
12612      no_undefined_flag='${wl}-z,text'
12613      allow_undefined_flag='${wl}-z,nodefs'
12614      archive_cmds_need_lc=no
12615      hardcode_shlibpath_var=no
12616      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12617      hardcode_libdir_separator=':'
12618      link_all_deplibs=yes
12619      export_dynamic_flag_spec='${wl}-Bexport'
12620      runpath_var='LD_RUN_PATH'
12621
12622      if test "$GCC" = yes; then
12623	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12625      else
12626	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628      fi
12629      ;;
12630
12631    uts4*)
12632      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12633      hardcode_libdir_flag_spec='-L$libdir'
12634      hardcode_shlibpath_var=no
12635      ;;
12636
12637    *)
12638      ld_shlibs=no
12639      ;;
12640    esac
12641
12642    if test x$host_vendor = xsni; then
12643      case $host in
12644      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12645	export_dynamic_flag_spec='${wl}-Blargedynsym'
12646	;;
12647      esac
12648    fi
12649  fi
12650
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12652$as_echo "$ld_shlibs" >&6; }
12653test "$ld_shlibs" = no && can_build_shared=no
12654
12655with_gnu_ld=$with_gnu_ld
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671#
12672# Do we need to explicitly link libc?
12673#
12674case "x$archive_cmds_need_lc" in
12675x|xyes)
12676  # Assume -lc should be added
12677  archive_cmds_need_lc=yes
12678
12679  if test "$enable_shared" = yes && test "$GCC" = yes; then
12680    case $archive_cmds in
12681    *'~'*)
12682      # FIXME: we may have to deal with multi-command sequences.
12683      ;;
12684    '$CC '*)
12685      # Test whether the compiler implicitly links with -lc since on some
12686      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12687      # to ld, don't add -lc before -lgcc.
12688      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12689$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12690if ${lt_cv_archive_cmds_need_lc+:} false; then :
12691  $as_echo_n "(cached) " >&6
12692else
12693  $RM conftest*
12694	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12695
12696	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12697  (eval $ac_compile) 2>&5
12698  ac_status=$?
12699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12700  test $ac_status = 0; } 2>conftest.err; then
12701	  soname=conftest
12702	  lib=conftest
12703	  libobjs=conftest.$ac_objext
12704	  deplibs=
12705	  wl=$lt_prog_compiler_wl
12706	  pic_flag=$lt_prog_compiler_pic
12707	  compiler_flags=-v
12708	  linker_flags=-v
12709	  verstring=
12710	  output_objdir=.
12711	  libname=conftest
12712	  lt_save_allow_undefined_flag=$allow_undefined_flag
12713	  allow_undefined_flag=
12714	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12715  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12716  ac_status=$?
12717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718  test $ac_status = 0; }
12719	  then
12720	    lt_cv_archive_cmds_need_lc=no
12721	  else
12722	    lt_cv_archive_cmds_need_lc=yes
12723	  fi
12724	  allow_undefined_flag=$lt_save_allow_undefined_flag
12725	else
12726	  cat conftest.err 1>&5
12727	fi
12728	$RM conftest*
12729
12730fi
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12732$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12733      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12734      ;;
12735    esac
12736  fi
12737  ;;
12738esac
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12897$as_echo_n "checking dynamic linker characteristics... " >&6; }
12898
12899if test "$GCC" = yes; then
12900  case $host_os in
12901    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12902    *) lt_awk_arg="/^libraries:/" ;;
12903  esac
12904  case $host_os in
12905    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12906    *) lt_sed_strip_eq="s,=/,/,g" ;;
12907  esac
12908  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12909  case $lt_search_path_spec in
12910  *\;*)
12911    # if the path contains ";" then we assume it to be the separator
12912    # otherwise default to the standard path separator (i.e. ":") - it is
12913    # assumed that no part of a normal pathname contains ";" but that should
12914    # okay in the real world where ";" in dirpaths is itself problematic.
12915    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12916    ;;
12917  *)
12918    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12919    ;;
12920  esac
12921  # Ok, now we have the path, separated by spaces, we can step through it
12922  # and add multilib dir if necessary.
12923  lt_tmp_lt_search_path_spec=
12924  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12925  for lt_sys_path in $lt_search_path_spec; do
12926    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12927      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12928    else
12929      test -d "$lt_sys_path" && \
12930	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12931    fi
12932  done
12933  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12934BEGIN {RS=" "; FS="/|\n";} {
12935  lt_foo="";
12936  lt_count=0;
12937  for (lt_i = NF; lt_i > 0; lt_i--) {
12938    if ($lt_i != "" && $lt_i != ".") {
12939      if ($lt_i == "..") {
12940        lt_count++;
12941      } else {
12942        if (lt_count == 0) {
12943          lt_foo="/" $lt_i lt_foo;
12944        } else {
12945          lt_count--;
12946        }
12947      }
12948    }
12949  }
12950  if (lt_foo != "") { lt_freq[lt_foo]++; }
12951  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12952}'`
12953  # AWK program above erroneously prepends '/' to C:/dos/paths
12954  # for these hosts.
12955  case $host_os in
12956    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12957      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12958  esac
12959  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12960else
12961  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12962fi
12963library_names_spec=
12964libname_spec='lib$name'
12965soname_spec=
12966shrext_cmds=".so"
12967postinstall_cmds=
12968postuninstall_cmds=
12969finish_cmds=
12970finish_eval=
12971shlibpath_var=
12972shlibpath_overrides_runpath=unknown
12973version_type=none
12974dynamic_linker="$host_os ld.so"
12975sys_lib_dlsearch_path_spec="/lib /usr/lib"
12976need_lib_prefix=unknown
12977hardcode_into_libs=no
12978
12979# when you set need_version to no, make sure it does not cause -set_version
12980# flags to be left without arguments
12981need_version=unknown
12982
12983case $host_os in
12984aix3*)
12985  version_type=linux
12986  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12987  shlibpath_var=LIBPATH
12988
12989  # AIX 3 has no versioning support, so we append a major version to the name.
12990  soname_spec='${libname}${release}${shared_ext}$major'
12991  ;;
12992
12993aix[4-9]*)
12994  version_type=linux
12995  need_lib_prefix=no
12996  need_version=no
12997  hardcode_into_libs=yes
12998  if test "$host_cpu" = ia64; then
12999    # AIX 5 supports IA64
13000    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13001    shlibpath_var=LD_LIBRARY_PATH
13002  else
13003    # With GCC up to 2.95.x, collect2 would create an import file
13004    # for dependence libraries.  The import file would start with
13005    # the line `#! .'.  This would cause the generated library to
13006    # depend on `.', always an invalid library.  This was fixed in
13007    # development snapshots of GCC prior to 3.0.
13008    case $host_os in
13009      aix4 | aix4.[01] | aix4.[01].*)
13010      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13011	   echo ' yes '
13012	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13013	:
13014      else
13015	can_build_shared=no
13016      fi
13017      ;;
13018    esac
13019    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13020    # soname into executable. Probably we can add versioning support to
13021    # collect2, so additional links can be useful in future.
13022    if test "$aix_use_runtimelinking" = yes; then
13023      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13024      # instead of lib<name>.a to let people know that these are not
13025      # typical AIX shared libraries.
13026      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13027    else
13028      # We preserve .a as extension for shared libraries through AIX4.2
13029      # and later when we are not doing run time linking.
13030      library_names_spec='${libname}${release}.a $libname.a'
13031      soname_spec='${libname}${release}${shared_ext}$major'
13032    fi
13033    shlibpath_var=LIBPATH
13034  fi
13035  ;;
13036
13037amigaos*)
13038  case $host_cpu in
13039  powerpc)
13040    # Since July 2007 AmigaOS4 officially supports .so libraries.
13041    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043    ;;
13044  m68k)
13045    library_names_spec='$libname.ixlibrary $libname.a'
13046    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13047    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
13048    ;;
13049  esac
13050  ;;
13051
13052beos*)
13053  library_names_spec='${libname}${shared_ext}'
13054  dynamic_linker="$host_os ld.so"
13055  shlibpath_var=LIBRARY_PATH
13056  ;;
13057
13058bsdi[45]*)
13059  version_type=linux
13060  need_version=no
13061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13062  soname_spec='${libname}${release}${shared_ext}$major'
13063  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13064  shlibpath_var=LD_LIBRARY_PATH
13065  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13066  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13067  # the default ld.so.conf also contains /usr/contrib/lib and
13068  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13069  # libtool to hard-code these into programs
13070  ;;
13071
13072cygwin* | mingw* | pw32* | cegcc*)
13073  version_type=windows
13074  shrext_cmds=".dll"
13075  need_version=no
13076  need_lib_prefix=no
13077
13078  case $GCC,$cc_basename in
13079  yes,*)
13080    # gcc
13081    library_names_spec='$libname.dll.a'
13082    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13083    postinstall_cmds='base_file=`basename \${file}`~
13084      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13085      dldir=$destdir/`dirname \$dlpath`~
13086      test -d \$dldir || mkdir -p \$dldir~
13087      $install_prog $dir/$dlname \$dldir/$dlname~
13088      chmod a+x \$dldir/$dlname~
13089      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13090        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13091      fi'
13092    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13093      dlpath=$dir/\$dldll~
13094       $RM \$dlpath'
13095    shlibpath_overrides_runpath=yes
13096
13097    case $host_os in
13098    cygwin*)
13099      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13100      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13101
13102      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13103      ;;
13104    mingw* | cegcc*)
13105      # MinGW DLLs use traditional 'lib' prefix
13106      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13107      ;;
13108    pw32*)
13109      # pw32 DLLs use 'pw' prefix rather than 'lib'
13110      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13111      ;;
13112    esac
13113    dynamic_linker='Win32 ld.exe'
13114    ;;
13115
13116  *,cl*)
13117    # Native MSVC
13118    libname_spec='$name'
13119    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13120    library_names_spec='${libname}.dll.lib'
13121
13122    case $build_os in
13123    mingw*)
13124      sys_lib_search_path_spec=
13125      lt_save_ifs=$IFS
13126      IFS=';'
13127      for lt_path in $LIB
13128      do
13129        IFS=$lt_save_ifs
13130        # Let DOS variable expansion print the short 8.3 style file name.
13131        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13132        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13133      done
13134      IFS=$lt_save_ifs
13135      # Convert to MSYS style.
13136      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13137      ;;
13138    cygwin*)
13139      # Convert to unix form, then to dos form, then back to unix form
13140      # but this time dos style (no spaces!) so that the unix form looks
13141      # like /cygdrive/c/PROGRA~1:/cygdr...
13142      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13143      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13144      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13145      ;;
13146    *)
13147      sys_lib_search_path_spec="$LIB"
13148      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13149        # It is most probably a Windows format PATH.
13150        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13151      else
13152        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13153      fi
13154      # FIXME: find the short name or the path components, as spaces are
13155      # common. (e.g. "Program Files" -> "PROGRA~1")
13156      ;;
13157    esac
13158
13159    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13160    postinstall_cmds='base_file=`basename \${file}`~
13161      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13162      dldir=$destdir/`dirname \$dlpath`~
13163      test -d \$dldir || mkdir -p \$dldir~
13164      $install_prog $dir/$dlname \$dldir/$dlname'
13165    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166      dlpath=$dir/\$dldll~
13167       $RM \$dlpath'
13168    shlibpath_overrides_runpath=yes
13169    dynamic_linker='Win32 link.exe'
13170    ;;
13171
13172  *)
13173    # Assume MSVC wrapper
13174    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13175    dynamic_linker='Win32 ld.exe'
13176    ;;
13177  esac
13178  # FIXME: first we should search . and the directory the executable is in
13179  shlibpath_var=PATH
13180  ;;
13181
13182darwin* | rhapsody*)
13183  dynamic_linker="$host_os dyld"
13184  version_type=darwin
13185  need_lib_prefix=no
13186  need_version=no
13187  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13188  soname_spec='${libname}${release}${major}$shared_ext'
13189  shlibpath_overrides_runpath=yes
13190  shlibpath_var=DYLD_LIBRARY_PATH
13191  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13192
13193  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13194  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13195  ;;
13196
13197dgux*)
13198  version_type=linux
13199  need_lib_prefix=no
13200  need_version=no
13201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13202  soname_spec='${libname}${release}${shared_ext}$major'
13203  shlibpath_var=LD_LIBRARY_PATH
13204  ;;
13205
13206freebsd1*)
13207  dynamic_linker=no
13208  ;;
13209
13210freebsd* | dragonfly*)
13211  # DragonFly does not have aout.  When/if they implement a new
13212  # versioning mechanism, adjust this.
13213  if test -x /usr/bin/objformat; then
13214    objformat=`/usr/bin/objformat`
13215  else
13216    case $host_os in
13217    freebsd[123]*) objformat=aout ;;
13218    *) objformat=elf ;;
13219    esac
13220  fi
13221  version_type=freebsd-$objformat
13222  case $version_type in
13223    freebsd-elf*)
13224      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13225      need_version=no
13226      need_lib_prefix=no
13227      ;;
13228    freebsd-*)
13229      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13230      need_version=yes
13231      ;;
13232  esac
13233  shlibpath_var=LD_LIBRARY_PATH
13234  case $host_os in
13235  freebsd2*)
13236    shlibpath_overrides_runpath=yes
13237    ;;
13238  freebsd3.[01]* | freebsdelf3.[01]*)
13239    shlibpath_overrides_runpath=yes
13240    hardcode_into_libs=yes
13241    ;;
13242  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13243  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13244    shlibpath_overrides_runpath=no
13245    hardcode_into_libs=yes
13246    ;;
13247  *) # from 4.6 on, and DragonFly
13248    shlibpath_overrides_runpath=yes
13249    hardcode_into_libs=yes
13250    ;;
13251  esac
13252  ;;
13253
13254gnu*)
13255  version_type=linux
13256  need_lib_prefix=no
13257  need_version=no
13258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13259  soname_spec='${libname}${release}${shared_ext}$major'
13260  shlibpath_var=LD_LIBRARY_PATH
13261  hardcode_into_libs=yes
13262  ;;
13263
13264haiku*)
13265  version_type=linux
13266  need_lib_prefix=no
13267  need_version=no
13268  dynamic_linker="$host_os runtime_loader"
13269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13270  soname_spec='${libname}${release}${shared_ext}$major'
13271  shlibpath_var=LIBRARY_PATH
13272  shlibpath_overrides_runpath=yes
13273  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13274  hardcode_into_libs=yes
13275  ;;
13276
13277hpux9* | hpux10* | hpux11*)
13278  # Give a soname corresponding to the major version so that dld.sl refuses to
13279  # link against other versions.
13280  version_type=sunos
13281  need_lib_prefix=no
13282  need_version=no
13283  case $host_cpu in
13284  ia64*)
13285    shrext_cmds='.so'
13286    hardcode_into_libs=yes
13287    dynamic_linker="$host_os dld.so"
13288    shlibpath_var=LD_LIBRARY_PATH
13289    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291    soname_spec='${libname}${release}${shared_ext}$major'
13292    if test "X$HPUX_IA64_MODE" = X32; then
13293      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13294    else
13295      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13296    fi
13297    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13298    ;;
13299  hppa*64*)
13300    shrext_cmds='.sl'
13301    hardcode_into_libs=yes
13302    dynamic_linker="$host_os dld.sl"
13303    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13304    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306    soname_spec='${libname}${release}${shared_ext}$major'
13307    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13308    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13309    ;;
13310  *)
13311    shrext_cmds='.sl'
13312    dynamic_linker="$host_os dld.sl"
13313    shlibpath_var=SHLIB_PATH
13314    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316    soname_spec='${libname}${release}${shared_ext}$major'
13317    ;;
13318  esac
13319  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13320  postinstall_cmds='chmod 555 $lib'
13321  # or fails outright, so override atomically:
13322  install_override_mode=555
13323  ;;
13324
13325interix[3-9]*)
13326  version_type=linux
13327  need_lib_prefix=no
13328  need_version=no
13329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13330  soname_spec='${libname}${release}${shared_ext}$major'
13331  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13332  shlibpath_var=LD_LIBRARY_PATH
13333  shlibpath_overrides_runpath=no
13334  hardcode_into_libs=yes
13335  ;;
13336
13337irix5* | irix6* | nonstopux*)
13338  case $host_os in
13339    nonstopux*) version_type=nonstopux ;;
13340    *)
13341	if test "$lt_cv_prog_gnu_ld" = yes; then
13342		version_type=linux
13343	else
13344		version_type=irix
13345	fi ;;
13346  esac
13347  need_lib_prefix=no
13348  need_version=no
13349  soname_spec='${libname}${release}${shared_ext}$major'
13350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13351  case $host_os in
13352  irix5* | nonstopux*)
13353    libsuff= shlibsuff=
13354    ;;
13355  *)
13356    case $LD in # libtool.m4 will add one of these switches to LD
13357    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13358      libsuff= shlibsuff= libmagic=32-bit;;
13359    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13360      libsuff=32 shlibsuff=N32 libmagic=N32;;
13361    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13362      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13363    *) libsuff= shlibsuff= libmagic=never-match;;
13364    esac
13365    ;;
13366  esac
13367  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13368  shlibpath_overrides_runpath=no
13369  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13370  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13371  hardcode_into_libs=yes
13372  ;;
13373
13374# No shared lib support for Linux oldld, aout, or coff.
13375linux*oldld* | linux*aout* | linux*coff*)
13376  dynamic_linker=no
13377  ;;
13378
13379# This must be Linux ELF.
13380linux* | k*bsd*-gnu | kopensolaris*-gnu)
13381  version_type=linux
13382  need_lib_prefix=no
13383  need_version=no
13384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385  soname_spec='${libname}${release}${shared_ext}$major'
13386  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13387  shlibpath_var=LD_LIBRARY_PATH
13388  shlibpath_overrides_runpath=no
13389
13390  # Some binutils ld are patched to set DT_RUNPATH
13391  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13392  $as_echo_n "(cached) " >&6
13393else
13394  lt_cv_shlibpath_overrides_runpath=no
13395    save_LDFLAGS=$LDFLAGS
13396    save_libdir=$libdir
13397    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13398	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h.  */
13401
13402int
13403main ()
13404{
13405
13406  ;
13407  return 0;
13408}
13409_ACEOF
13410if ac_fn_c_try_link "$LINENO"; then :
13411  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13412  lt_cv_shlibpath_overrides_runpath=yes
13413fi
13414fi
13415rm -f core conftest.err conftest.$ac_objext \
13416    conftest$ac_exeext conftest.$ac_ext
13417    LDFLAGS=$save_LDFLAGS
13418    libdir=$save_libdir
13419
13420fi
13421
13422  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13423
13424  # This implies no fast_install, which is unacceptable.
13425  # Some rework will be needed to allow for fast_install
13426  # before this can be enabled.
13427  hardcode_into_libs=yes
13428
13429  # Append ld.so.conf contents to the search path
13430  if test -f /etc/ld.so.conf; then
13431    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' ' '`
13432    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13433  fi
13434
13435  # We used to test for /lib/ld.so.1 and disable shared libraries on
13436  # powerpc, because MkLinux only supported shared libraries with the
13437  # GNU dynamic linker.  Since this was broken with cross compilers,
13438  # most powerpc-linux boxes support dynamic linking these days and
13439  # people can always --disable-shared, the test was removed, and we
13440  # assume the GNU/Linux dynamic linker is in use.
13441  dynamic_linker='GNU/Linux ld.so'
13442  ;;
13443
13444netbsd*)
13445  version_type=sunos
13446  need_lib_prefix=no
13447  need_version=no
13448  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13450    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13451    dynamic_linker='NetBSD (a.out) ld.so'
13452  else
13453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13454    soname_spec='${libname}${release}${shared_ext}$major'
13455    dynamic_linker='NetBSD ld.elf_so'
13456  fi
13457  shlibpath_var=LD_LIBRARY_PATH
13458  shlibpath_overrides_runpath=yes
13459  hardcode_into_libs=yes
13460  ;;
13461
13462newsos6)
13463  version_type=linux
13464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465  shlibpath_var=LD_LIBRARY_PATH
13466  shlibpath_overrides_runpath=yes
13467  ;;
13468
13469*nto* | *qnx*)
13470  version_type=qnx
13471  need_lib_prefix=no
13472  need_version=no
13473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474  soname_spec='${libname}${release}${shared_ext}$major'
13475  shlibpath_var=LD_LIBRARY_PATH
13476  shlibpath_overrides_runpath=no
13477  hardcode_into_libs=yes
13478  dynamic_linker='ldqnx.so'
13479  ;;
13480
13481openbsd*)
13482  version_type=sunos
13483  sys_lib_dlsearch_path_spec="/usr/lib"
13484  need_lib_prefix=no
13485  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13486  case $host_os in
13487    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13488    *)				need_version=no  ;;
13489  esac
13490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13491  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13492  shlibpath_var=LD_LIBRARY_PATH
13493  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13494    case $host_os in
13495      openbsd2.[89] | openbsd2.[89].*)
13496	shlibpath_overrides_runpath=no
13497	;;
13498      *)
13499	shlibpath_overrides_runpath=yes
13500	;;
13501      esac
13502  else
13503    shlibpath_overrides_runpath=yes
13504  fi
13505  ;;
13506
13507os2*)
13508  libname_spec='$name'
13509  shrext_cmds=".dll"
13510  need_lib_prefix=no
13511  library_names_spec='$libname${shared_ext} $libname.a'
13512  dynamic_linker='OS/2 ld.exe'
13513  shlibpath_var=LIBPATH
13514  ;;
13515
13516osf3* | osf4* | osf5*)
13517  version_type=osf
13518  need_lib_prefix=no
13519  need_version=no
13520  soname_spec='${libname}${release}${shared_ext}$major'
13521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13524  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13525  ;;
13526
13527rdos*)
13528  dynamic_linker=no
13529  ;;
13530
13531solaris*)
13532  version_type=linux
13533  need_lib_prefix=no
13534  need_version=no
13535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536  soname_spec='${libname}${release}${shared_ext}$major'
13537  shlibpath_var=LD_LIBRARY_PATH
13538  shlibpath_overrides_runpath=yes
13539  hardcode_into_libs=yes
13540  # ldd complains unless libraries are executable
13541  postinstall_cmds='chmod +x $lib'
13542  ;;
13543
13544sunos4*)
13545  version_type=sunos
13546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13547  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13548  shlibpath_var=LD_LIBRARY_PATH
13549  shlibpath_overrides_runpath=yes
13550  if test "$with_gnu_ld" = yes; then
13551    need_lib_prefix=no
13552  fi
13553  need_version=yes
13554  ;;
13555
13556sysv4 | sysv4.3*)
13557  version_type=linux
13558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559  soname_spec='${libname}${release}${shared_ext}$major'
13560  shlibpath_var=LD_LIBRARY_PATH
13561  case $host_vendor in
13562    sni)
13563      shlibpath_overrides_runpath=no
13564      need_lib_prefix=no
13565      runpath_var=LD_RUN_PATH
13566      ;;
13567    siemens)
13568      need_lib_prefix=no
13569      ;;
13570    motorola)
13571      need_lib_prefix=no
13572      need_version=no
13573      shlibpath_overrides_runpath=no
13574      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13575      ;;
13576  esac
13577  ;;
13578
13579sysv4*MP*)
13580  if test -d /usr/nec ;then
13581    version_type=linux
13582    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13583    soname_spec='$libname${shared_ext}.$major'
13584    shlibpath_var=LD_LIBRARY_PATH
13585  fi
13586  ;;
13587
13588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13589  version_type=freebsd-elf
13590  need_lib_prefix=no
13591  need_version=no
13592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13593  soname_spec='${libname}${release}${shared_ext}$major'
13594  shlibpath_var=LD_LIBRARY_PATH
13595  shlibpath_overrides_runpath=yes
13596  hardcode_into_libs=yes
13597  if test "$with_gnu_ld" = yes; then
13598    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13599  else
13600    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13601    case $host_os in
13602      sco3.2v5*)
13603        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13604	;;
13605    esac
13606  fi
13607  sys_lib_dlsearch_path_spec='/usr/lib'
13608  ;;
13609
13610tpf*)
13611  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13612  version_type=linux
13613  need_lib_prefix=no
13614  need_version=no
13615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616  shlibpath_var=LD_LIBRARY_PATH
13617  shlibpath_overrides_runpath=no
13618  hardcode_into_libs=yes
13619  ;;
13620
13621uts4*)
13622  version_type=linux
13623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624  soname_spec='${libname}${release}${shared_ext}$major'
13625  shlibpath_var=LD_LIBRARY_PATH
13626  ;;
13627
13628*)
13629  dynamic_linker=no
13630  ;;
13631esac
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13633$as_echo "$dynamic_linker" >&6; }
13634test "$dynamic_linker" = no && can_build_shared=no
13635
13636variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13637if test "$GCC" = yes; then
13638  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13639fi
13640
13641if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13642  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13643fi
13644if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13645  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13646fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13740$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13741hardcode_action=
13742if test -n "$hardcode_libdir_flag_spec" ||
13743   test -n "$runpath_var" ||
13744   test "X$hardcode_automatic" = "Xyes" ; then
13745
13746  # We can hardcode non-existent directories.
13747  if test "$hardcode_direct" != no &&
13748     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13749     # have to relink, otherwise we might link with an installed library
13750     # when we should be linking with a yet-to-be-installed one
13751     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13752     test "$hardcode_minus_L" != no; then
13753    # Linking always hardcodes the temporary library directory.
13754    hardcode_action=relink
13755  else
13756    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13757    hardcode_action=immediate
13758  fi
13759else
13760  # We cannot hardcode anything, or else we can only hardcode existing
13761  # directories.
13762  hardcode_action=unsupported
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13765$as_echo "$hardcode_action" >&6; }
13766
13767if test "$hardcode_action" = relink ||
13768   test "$inherit_rpath" = yes; then
13769  # Fast installation is not supported
13770  enable_fast_install=no
13771elif test "$shlibpath_overrides_runpath" = yes ||
13772     test "$enable_shared" = no; then
13773  # Fast installation is not necessary
13774  enable_fast_install=needless
13775fi
13776
13777
13778
13779
13780
13781
13782  if test "x$enable_dlopen" != xyes; then
13783  enable_dlopen=unknown
13784  enable_dlopen_self=unknown
13785  enable_dlopen_self_static=unknown
13786else
13787  lt_cv_dlopen=no
13788  lt_cv_dlopen_libs=
13789
13790  case $host_os in
13791  beos*)
13792    lt_cv_dlopen="load_add_on"
13793    lt_cv_dlopen_libs=
13794    lt_cv_dlopen_self=yes
13795    ;;
13796
13797  mingw* | pw32* | cegcc*)
13798    lt_cv_dlopen="LoadLibrary"
13799    lt_cv_dlopen_libs=
13800    ;;
13801
13802  cygwin*)
13803    lt_cv_dlopen="dlopen"
13804    lt_cv_dlopen_libs=
13805    ;;
13806
13807  darwin*)
13808  # if libdl is installed we need to link against it
13809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13810$as_echo_n "checking for dlopen in -ldl... " >&6; }
13811if ${ac_cv_lib_dl_dlopen+:} false; then :
13812  $as_echo_n "(cached) " >&6
13813else
13814  ac_check_lib_save_LIBS=$LIBS
13815LIBS="-ldl  $LIBS"
13816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818
13819/* Override any GCC internal prototype to avoid an error.
13820   Use char because int might match the return type of a GCC
13821   builtin and then its argument prototype would still apply.  */
13822#ifdef __cplusplus
13823extern "C"
13824#endif
13825char dlopen ();
13826int
13827main ()
13828{
13829return dlopen ();
13830  ;
13831  return 0;
13832}
13833_ACEOF
13834if ac_fn_c_try_link "$LINENO"; then :
13835  ac_cv_lib_dl_dlopen=yes
13836else
13837  ac_cv_lib_dl_dlopen=no
13838fi
13839rm -f core conftest.err conftest.$ac_objext \
13840    conftest$ac_exeext conftest.$ac_ext
13841LIBS=$ac_check_lib_save_LIBS
13842fi
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13844$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13845if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13846  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13847else
13848
13849    lt_cv_dlopen="dyld"
13850    lt_cv_dlopen_libs=
13851    lt_cv_dlopen_self=yes
13852
13853fi
13854
13855    ;;
13856
13857  *)
13858    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13859if test "x$ac_cv_func_shl_load" = xyes; then :
13860  lt_cv_dlopen="shl_load"
13861else
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13863$as_echo_n "checking for shl_load in -ldld... " >&6; }
13864if ${ac_cv_lib_dld_shl_load+:} false; then :
13865  $as_echo_n "(cached) " >&6
13866else
13867  ac_check_lib_save_LIBS=$LIBS
13868LIBS="-ldld  $LIBS"
13869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h.  */
13871
13872/* Override any GCC internal prototype to avoid an error.
13873   Use char because int might match the return type of a GCC
13874   builtin and then its argument prototype would still apply.  */
13875#ifdef __cplusplus
13876extern "C"
13877#endif
13878char shl_load ();
13879int
13880main ()
13881{
13882return shl_load ();
13883  ;
13884  return 0;
13885}
13886_ACEOF
13887if ac_fn_c_try_link "$LINENO"; then :
13888  ac_cv_lib_dld_shl_load=yes
13889else
13890  ac_cv_lib_dld_shl_load=no
13891fi
13892rm -f core conftest.err conftest.$ac_objext \
13893    conftest$ac_exeext conftest.$ac_ext
13894LIBS=$ac_check_lib_save_LIBS
13895fi
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13897$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13898if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13899  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13900else
13901  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13902if test "x$ac_cv_func_dlopen" = xyes; then :
13903  lt_cv_dlopen="dlopen"
13904else
13905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13906$as_echo_n "checking for dlopen in -ldl... " >&6; }
13907if ${ac_cv_lib_dl_dlopen+:} false; then :
13908  $as_echo_n "(cached) " >&6
13909else
13910  ac_check_lib_save_LIBS=$LIBS
13911LIBS="-ldl  $LIBS"
13912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913/* end confdefs.h.  */
13914
13915/* Override any GCC internal prototype to avoid an error.
13916   Use char because int might match the return type of a GCC
13917   builtin and then its argument prototype would still apply.  */
13918#ifdef __cplusplus
13919extern "C"
13920#endif
13921char dlopen ();
13922int
13923main ()
13924{
13925return dlopen ();
13926  ;
13927  return 0;
13928}
13929_ACEOF
13930if ac_fn_c_try_link "$LINENO"; then :
13931  ac_cv_lib_dl_dlopen=yes
13932else
13933  ac_cv_lib_dl_dlopen=no
13934fi
13935rm -f core conftest.err conftest.$ac_objext \
13936    conftest$ac_exeext conftest.$ac_ext
13937LIBS=$ac_check_lib_save_LIBS
13938fi
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13940$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13941if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13942  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13943else
13944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13945$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13946if ${ac_cv_lib_svld_dlopen+:} false; then :
13947  $as_echo_n "(cached) " >&6
13948else
13949  ac_check_lib_save_LIBS=$LIBS
13950LIBS="-lsvld  $LIBS"
13951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h.  */
13953
13954/* Override any GCC internal prototype to avoid an error.
13955   Use char because int might match the return type of a GCC
13956   builtin and then its argument prototype would still apply.  */
13957#ifdef __cplusplus
13958extern "C"
13959#endif
13960char dlopen ();
13961int
13962main ()
13963{
13964return dlopen ();
13965  ;
13966  return 0;
13967}
13968_ACEOF
13969if ac_fn_c_try_link "$LINENO"; then :
13970  ac_cv_lib_svld_dlopen=yes
13971else
13972  ac_cv_lib_svld_dlopen=no
13973fi
13974rm -f core conftest.err conftest.$ac_objext \
13975    conftest$ac_exeext conftest.$ac_ext
13976LIBS=$ac_check_lib_save_LIBS
13977fi
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13979$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13980if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13981  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13982else
13983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13984$as_echo_n "checking for dld_link in -ldld... " >&6; }
13985if ${ac_cv_lib_dld_dld_link+:} false; then :
13986  $as_echo_n "(cached) " >&6
13987else
13988  ac_check_lib_save_LIBS=$LIBS
13989LIBS="-ldld  $LIBS"
13990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991/* end confdefs.h.  */
13992
13993/* Override any GCC internal prototype to avoid an error.
13994   Use char because int might match the return type of a GCC
13995   builtin and then its argument prototype would still apply.  */
13996#ifdef __cplusplus
13997extern "C"
13998#endif
13999char dld_link ();
14000int
14001main ()
14002{
14003return dld_link ();
14004  ;
14005  return 0;
14006}
14007_ACEOF
14008if ac_fn_c_try_link "$LINENO"; then :
14009  ac_cv_lib_dld_dld_link=yes
14010else
14011  ac_cv_lib_dld_dld_link=no
14012fi
14013rm -f core conftest.err conftest.$ac_objext \
14014    conftest$ac_exeext conftest.$ac_ext
14015LIBS=$ac_check_lib_save_LIBS
14016fi
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14018$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14019if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14020  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14021fi
14022
14023
14024fi
14025
14026
14027fi
14028
14029
14030fi
14031
14032
14033fi
14034
14035
14036fi
14037
14038    ;;
14039  esac
14040
14041  if test "x$lt_cv_dlopen" != xno; then
14042    enable_dlopen=yes
14043  else
14044    enable_dlopen=no
14045  fi
14046
14047  case $lt_cv_dlopen in
14048  dlopen)
14049    save_CPPFLAGS="$CPPFLAGS"
14050    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14051
14052    save_LDFLAGS="$LDFLAGS"
14053    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14054
14055    save_LIBS="$LIBS"
14056    LIBS="$lt_cv_dlopen_libs $LIBS"
14057
14058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14059$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14060if ${lt_cv_dlopen_self+:} false; then :
14061  $as_echo_n "(cached) " >&6
14062else
14063  	  if test "$cross_compiling" = yes; then :
14064  lt_cv_dlopen_self=cross
14065else
14066  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14067  lt_status=$lt_dlunknown
14068  cat > conftest.$ac_ext <<_LT_EOF
14069#line $LINENO "configure"
14070#include "confdefs.h"
14071
14072#if HAVE_DLFCN_H
14073#include <dlfcn.h>
14074#endif
14075
14076#include <stdio.h>
14077
14078#ifdef RTLD_GLOBAL
14079#  define LT_DLGLOBAL		RTLD_GLOBAL
14080#else
14081#  ifdef DL_GLOBAL
14082#    define LT_DLGLOBAL		DL_GLOBAL
14083#  else
14084#    define LT_DLGLOBAL		0
14085#  endif
14086#endif
14087
14088/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14089   find out it does not work in some platform. */
14090#ifndef LT_DLLAZY_OR_NOW
14091#  ifdef RTLD_LAZY
14092#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14093#  else
14094#    ifdef DL_LAZY
14095#      define LT_DLLAZY_OR_NOW		DL_LAZY
14096#    else
14097#      ifdef RTLD_NOW
14098#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14099#      else
14100#        ifdef DL_NOW
14101#          define LT_DLLAZY_OR_NOW	DL_NOW
14102#        else
14103#          define LT_DLLAZY_OR_NOW	0
14104#        endif
14105#      endif
14106#    endif
14107#  endif
14108#endif
14109
14110/* When -fvisbility=hidden is used, assume the code has been annotated
14111   correspondingly for the symbols needed.  */
14112#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14113int fnord () __attribute__((visibility("default")));
14114#endif
14115
14116int fnord () { return 42; }
14117int main ()
14118{
14119  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14120  int status = $lt_dlunknown;
14121
14122  if (self)
14123    {
14124      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14125      else
14126        {
14127	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14128          else puts (dlerror ());
14129	}
14130      /* dlclose (self); */
14131    }
14132  else
14133    puts (dlerror ());
14134
14135  return status;
14136}
14137_LT_EOF
14138  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14139  (eval $ac_link) 2>&5
14140  ac_status=$?
14141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14142  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14143    (./conftest; exit; ) >&5 2>/dev/null
14144    lt_status=$?
14145    case x$lt_status in
14146      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14147      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14148      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14149    esac
14150  else :
14151    # compilation failed
14152    lt_cv_dlopen_self=no
14153  fi
14154fi
14155rm -fr conftest*
14156
14157
14158fi
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14160$as_echo "$lt_cv_dlopen_self" >&6; }
14161
14162    if test "x$lt_cv_dlopen_self" = xyes; then
14163      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14164      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14165$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14166if ${lt_cv_dlopen_self_static+:} false; then :
14167  $as_echo_n "(cached) " >&6
14168else
14169  	  if test "$cross_compiling" = yes; then :
14170  lt_cv_dlopen_self_static=cross
14171else
14172  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14173  lt_status=$lt_dlunknown
14174  cat > conftest.$ac_ext <<_LT_EOF
14175#line $LINENO "configure"
14176#include "confdefs.h"
14177
14178#if HAVE_DLFCN_H
14179#include <dlfcn.h>
14180#endif
14181
14182#include <stdio.h>
14183
14184#ifdef RTLD_GLOBAL
14185#  define LT_DLGLOBAL		RTLD_GLOBAL
14186#else
14187#  ifdef DL_GLOBAL
14188#    define LT_DLGLOBAL		DL_GLOBAL
14189#  else
14190#    define LT_DLGLOBAL		0
14191#  endif
14192#endif
14193
14194/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14195   find out it does not work in some platform. */
14196#ifndef LT_DLLAZY_OR_NOW
14197#  ifdef RTLD_LAZY
14198#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14199#  else
14200#    ifdef DL_LAZY
14201#      define LT_DLLAZY_OR_NOW		DL_LAZY
14202#    else
14203#      ifdef RTLD_NOW
14204#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14205#      else
14206#        ifdef DL_NOW
14207#          define LT_DLLAZY_OR_NOW	DL_NOW
14208#        else
14209#          define LT_DLLAZY_OR_NOW	0
14210#        endif
14211#      endif
14212#    endif
14213#  endif
14214#endif
14215
14216/* When -fvisbility=hidden is used, assume the code has been annotated
14217   correspondingly for the symbols needed.  */
14218#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14219int fnord () __attribute__((visibility("default")));
14220#endif
14221
14222int fnord () { return 42; }
14223int main ()
14224{
14225  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14226  int status = $lt_dlunknown;
14227
14228  if (self)
14229    {
14230      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14231      else
14232        {
14233	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14234          else puts (dlerror ());
14235	}
14236      /* dlclose (self); */
14237    }
14238  else
14239    puts (dlerror ());
14240
14241  return status;
14242}
14243_LT_EOF
14244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14245  (eval $ac_link) 2>&5
14246  ac_status=$?
14247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14248  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14249    (./conftest; exit; ) >&5 2>/dev/null
14250    lt_status=$?
14251    case x$lt_status in
14252      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14253      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14254      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14255    esac
14256  else :
14257    # compilation failed
14258    lt_cv_dlopen_self_static=no
14259  fi
14260fi
14261rm -fr conftest*
14262
14263
14264fi
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14266$as_echo "$lt_cv_dlopen_self_static" >&6; }
14267    fi
14268
14269    CPPFLAGS="$save_CPPFLAGS"
14270    LDFLAGS="$save_LDFLAGS"
14271    LIBS="$save_LIBS"
14272    ;;
14273  esac
14274
14275  case $lt_cv_dlopen_self in
14276  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14277  *) enable_dlopen_self=unknown ;;
14278  esac
14279
14280  case $lt_cv_dlopen_self_static in
14281  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14282  *) enable_dlopen_self_static=unknown ;;
14283  esac
14284fi
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302striplib=
14303old_striplib=
14304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14305$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14306if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14307  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14308  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310$as_echo "yes" >&6; }
14311else
14312# FIXME - insert some real tests, host_os isn't really good enough
14313  case $host_os in
14314  darwin*)
14315    if test -n "$STRIP" ; then
14316      striplib="$STRIP -x"
14317      old_striplib="$STRIP -S"
14318      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14319$as_echo "yes" >&6; }
14320    else
14321      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322$as_echo "no" >&6; }
14323    fi
14324    ;;
14325  *)
14326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327$as_echo "no" >&6; }
14328    ;;
14329  esac
14330fi
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343  # Report which library types will actually be built
14344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14345$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14347$as_echo "$can_build_shared" >&6; }
14348
14349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14350$as_echo_n "checking whether to build shared libraries... " >&6; }
14351  test "$can_build_shared" = "no" && enable_shared=no
14352
14353  # On AIX, shared libraries and static libraries use the same namespace, and
14354  # are all built from PIC.
14355  case $host_os in
14356  aix3*)
14357    test "$enable_shared" = yes && enable_static=no
14358    if test -n "$RANLIB"; then
14359      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14360      postinstall_cmds='$RANLIB $lib'
14361    fi
14362    ;;
14363
14364  aix[4-9]*)
14365    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14366      test "$enable_shared" = yes && enable_static=no
14367    fi
14368    ;;
14369  esac
14370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14371$as_echo "$enable_shared" >&6; }
14372
14373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14374$as_echo_n "checking whether to build static libraries... " >&6; }
14375  # Make sure either enable_shared or enable_static is yes.
14376  test "$enable_shared" = yes || enable_static=yes
14377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14378$as_echo "$enable_static" >&6; }
14379
14380
14381
14382
14383fi
14384ac_ext=c
14385ac_cpp='$CPP $CPPFLAGS'
14386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14388ac_compiler_gnu=$ac_cv_c_compiler_gnu
14389
14390CC="$lt_save_CC"
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404        ac_config_commands="$ac_config_commands libtool"
14405
14406
14407
14408
14409# Only expand once:
14410
14411
14412
14413
14414# dolt, a replacement for libtool
14415# Josh Triplett <josh@freedesktop.org>
14416# Extract the first word of "bash", so it can be a program name with args.
14417set dummy bash; ac_word=$2
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419$as_echo_n "checking for $ac_word... " >&6; }
14420if ${ac_cv_path_DOLT_BASH+:} false; then :
14421  $as_echo_n "(cached) " >&6
14422else
14423  case $DOLT_BASH in
14424  [\\/]* | ?:[\\/]*)
14425  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
14426  ;;
14427  *)
14428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429for as_dir in $PATH
14430do
14431  IFS=$as_save_IFS
14432  test -z "$as_dir" && as_dir=.
14433    for ac_exec_ext in '' $ac_executable_extensions; do
14434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14435    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
14436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14437    break 2
14438  fi
14439done
14440  done
14441IFS=$as_save_IFS
14442
14443  ;;
14444esac
14445fi
14446DOLT_BASH=$ac_cv_path_DOLT_BASH
14447if test -n "$DOLT_BASH"; then
14448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
14449$as_echo "$DOLT_BASH" >&6; }
14450else
14451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452$as_echo "no" >&6; }
14453fi
14454
14455
14456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
14457$as_echo_n "checking if dolt supports this host... " >&6; }
14458dolt_supported=yes
14459if test x$DOLT_BASH = x; then
14460    dolt_supported=no
14461fi
14462if test x$GCC != xyes; then
14463    dolt_supported=no
14464fi
14465case $host in
14466i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
14467|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
14468    pic_options='-fPIC'
14469    ;;
14470i?86-pc-cygwin*)
14471    pic_options='-DDLL_EXPORT'
14472    ;;
14473i?86-apple-darwin*)
14474    pic_options='-fno-common'
14475    ;;
14476*)
14477    dolt_supported=no
14478    ;;
14479esac
14480if test x$dolt_supported = xno ; then
14481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
14482$as_echo "no, falling back to libtool" >&6; }
14483    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
14484    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
14485else
14486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
14487$as_echo "yes, replacing libtool" >&6; }
14488
14489    cat <<__DOLTCOMPILE__EOF__ >doltcompile
14490#!$DOLT_BASH
14491__DOLTCOMPILE__EOF__
14492    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14493args=("$@")
14494for ((arg=0; arg<${#args[@]}; arg++)) ; do
14495    if test x"${args[$arg]}" = x-o ; then
14496        objarg=$((arg+1))
14497        break
14498    fi
14499done
14500if test x$objarg = x ; then
14501    echo 'Error: no -o on compiler command line' 1>&2
14502    exit 1
14503fi
14504lo="${args[$objarg]}"
14505obj="${lo%.lo}"
14506if test x"$lo" = x"$obj" ; then
14507    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
14508    exit 1
14509fi
14510objbase="${obj##*/}"
14511__DOLTCOMPILE__EOF__
14512
14513    if test x$enable_shared = xyes; then
14514        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14515libobjdir="${obj%$objbase}.libs"
14516if test ! -d "$libobjdir" ; then
14517    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
14518    mkdir_ret=$?
14519    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
14520	echo "$mkdir_out" 1>&2
14521        exit $mkdir_ret
14522    fi
14523fi
14524pic_object="$libobjdir/$objbase.o"
14525args[$objarg]="$pic_object"
14526__DOLTCOMPILE__EOF__
14527    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
14528"\${args[@]}" $pic_options -DPIC || exit \$?
14529__DOLTCOMPILE__EOF__
14530    fi
14531
14532    if test x$enable_static = xyes; then
14533        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14534non_pic_object="$obj.o"
14535args[$objarg]="$non_pic_object"
14536__DOLTCOMPILE__EOF__
14537        if test x$enable_shared = xyes; then
14538            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14539"${args[@]}" >/dev/null 2>&1 || exit $?
14540__DOLTCOMPILE__EOF__
14541        else
14542            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14543"${args[@]}" || exit $?
14544__DOLTCOMPILE__EOF__
14545        fi
14546    fi
14547
14548    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14549{
14550echo "# $lo - a libtool object file"
14551echo "# Generated by doltcompile, not libtool"
14552__DOLTCOMPILE__EOF__
14553
14554    if test x$enable_shared = xyes; then
14555        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14556echo "pic_object='.libs/${objbase}.o'"
14557__DOLTCOMPILE__EOF__
14558    else
14559        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14560echo pic_object=none
14561__DOLTCOMPILE__EOF__
14562    fi
14563
14564    if test x$enable_static = xyes; then
14565        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14566echo "non_pic_object='${objbase}.o'"
14567__DOLTCOMPILE__EOF__
14568    else
14569        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14570echo non_pic_object=none
14571__DOLTCOMPILE__EOF__
14572    fi
14573
14574    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
14575} > "$lo"
14576__DOLTCOMPILE__EOF__
14577
14578    chmod +x doltcompile
14579    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
14580    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
14581
14582    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
14583#!$DOLT_BASH
14584__DOLTLIBTOOL__EOF__
14585    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
14586top_builddir_slash="${0%%doltlibtool}"
14587: ${top_builddir_slash:=./}
14588args=()
14589modeok=false
14590tagok=false
14591for arg in "$@"; do
14592    case "$arg" in
14593        --silent) ;;
14594        --mode=compile) modeok=true ;;
14595        --tag=CC|--tag=CXX) tagok=true ;;
14596        *) args[${#args[@]}]="$arg" ;;
14597    esac
14598done
14599if $modeok && $tagok ; then
14600    . ${top_builddir_slash}doltcompile "${args[@]}"
14601else
14602    exec ${top_builddir_slash}libtool "$@"
14603fi
14604__DOLTLIBTOOL__EOF__
14605
14606    chmod +x doltlibtool
14607    LIBTOOL='$(top_builddir)/doltlibtool'
14608fi
14609
14610
14611# end dolt
14612
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14614$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14615set x ${MAKE-make}
14616ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14617if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14618  $as_echo_n "(cached) " >&6
14619else
14620  cat >conftest.make <<\_ACEOF
14621SHELL = /bin/sh
14622all:
14623	@echo '@@@%%%=$(MAKE)=@@@%%%'
14624_ACEOF
14625# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14626case `${MAKE-make} -f conftest.make 2>/dev/null` in
14627  *@@@%%%=?*=@@@%%%*)
14628    eval ac_cv_prog_make_${ac_make}_set=yes;;
14629  *)
14630    eval ac_cv_prog_make_${ac_make}_set=no;;
14631esac
14632rm -f conftest.make
14633fi
14634if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14636$as_echo "yes" >&6; }
14637  SET_MAKE=
14638else
14639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640$as_echo "no" >&6; }
14641  SET_MAKE="MAKE=${MAKE-make}"
14642fi
14643
14644
14645
14646
14647
14648
14649
14650if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14651	if test -n "$ac_tool_prefix"; then
14652  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14653set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655$as_echo_n "checking for $ac_word... " >&6; }
14656if ${ac_cv_path_PKG_CONFIG+:} false; then :
14657  $as_echo_n "(cached) " >&6
14658else
14659  case $PKG_CONFIG in
14660  [\\/]* | ?:[\\/]*)
14661  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14662  ;;
14663  *)
14664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665for as_dir in $PATH
14666do
14667  IFS=$as_save_IFS
14668  test -z "$as_dir" && as_dir=.
14669    for ac_exec_ext in '' $ac_executable_extensions; do
14670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14671    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14673    break 2
14674  fi
14675done
14676  done
14677IFS=$as_save_IFS
14678
14679  ;;
14680esac
14681fi
14682PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14683if test -n "$PKG_CONFIG"; then
14684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14685$as_echo "$PKG_CONFIG" >&6; }
14686else
14687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688$as_echo "no" >&6; }
14689fi
14690
14691
14692fi
14693if test -z "$ac_cv_path_PKG_CONFIG"; then
14694  ac_pt_PKG_CONFIG=$PKG_CONFIG
14695  # Extract the first word of "pkg-config", so it can be a program name with args.
14696set dummy pkg-config; ac_word=$2
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14698$as_echo_n "checking for $ac_word... " >&6; }
14699if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14700  $as_echo_n "(cached) " >&6
14701else
14702  case $ac_pt_PKG_CONFIG in
14703  [\\/]* | ?:[\\/]*)
14704  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14705  ;;
14706  *)
14707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708for as_dir in $PATH
14709do
14710  IFS=$as_save_IFS
14711  test -z "$as_dir" && as_dir=.
14712    for ac_exec_ext in '' $ac_executable_extensions; do
14713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14714    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14716    break 2
14717  fi
14718done
14719  done
14720IFS=$as_save_IFS
14721
14722  ;;
14723esac
14724fi
14725ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14726if test -n "$ac_pt_PKG_CONFIG"; then
14727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14728$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14729else
14730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731$as_echo "no" >&6; }
14732fi
14733
14734  if test "x$ac_pt_PKG_CONFIG" = x; then
14735    PKG_CONFIG=""
14736  else
14737    case $cross_compiling:$ac_tool_warned in
14738yes:)
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14741ac_tool_warned=yes ;;
14742esac
14743    PKG_CONFIG=$ac_pt_PKG_CONFIG
14744  fi
14745else
14746  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14747fi
14748
14749fi
14750if test -n "$PKG_CONFIG"; then
14751	_pkg_min_version=0.9.0
14752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14753$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14754	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14756$as_echo "yes" >&6; }
14757	else
14758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759$as_echo "no" >&6; }
14760		PKG_CONFIG=""
14761	fi
14762fi
14763for ac_prog in flex lex
14764do
14765  # Extract the first word of "$ac_prog", so it can be a program name with args.
14766set dummy $ac_prog; ac_word=$2
14767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14768$as_echo_n "checking for $ac_word... " >&6; }
14769if ${ac_cv_prog_LEX+:} false; then :
14770  $as_echo_n "(cached) " >&6
14771else
14772  if test -n "$LEX"; then
14773  ac_cv_prog_LEX="$LEX" # Let the user override the test.
14774else
14775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776for as_dir in $PATH
14777do
14778  IFS=$as_save_IFS
14779  test -z "$as_dir" && as_dir=.
14780    for ac_exec_ext in '' $ac_executable_extensions; do
14781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14782    ac_cv_prog_LEX="$ac_prog"
14783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14784    break 2
14785  fi
14786done
14787  done
14788IFS=$as_save_IFS
14789
14790fi
14791fi
14792LEX=$ac_cv_prog_LEX
14793if test -n "$LEX"; then
14794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14795$as_echo "$LEX" >&6; }
14796else
14797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798$as_echo "no" >&6; }
14799fi
14800
14801
14802  test -n "$LEX" && break
14803done
14804test -n "$LEX" || LEX=":"
14805
14806if test "x$LEX" != "x:"; then
14807  cat >conftest.l <<_ACEOF
14808%%
14809a { ECHO; }
14810b { REJECT; }
14811c { yymore (); }
14812d { yyless (1); }
14813e { yyless (input () != 0); }
14814f { unput (yytext[0]); }
14815. { BEGIN INITIAL; }
14816%%
14817#ifdef YYTEXT_POINTER
14818extern char *yytext;
14819#endif
14820int
14821main (void)
14822{
14823  return ! yylex () + ! yywrap ();
14824}
14825_ACEOF
14826{ { ac_try="$LEX conftest.l"
14827case "(($ac_try" in
14828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829  *) ac_try_echo=$ac_try;;
14830esac
14831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14832$as_echo "$ac_try_echo"; } >&5
14833  (eval "$LEX conftest.l") 2>&5
14834  ac_status=$?
14835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14836  test $ac_status = 0; }
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14838$as_echo_n "checking lex output file root... " >&6; }
14839if ${ac_cv_prog_lex_root+:} false; then :
14840  $as_echo_n "(cached) " >&6
14841else
14842
14843if test -f lex.yy.c; then
14844  ac_cv_prog_lex_root=lex.yy
14845elif test -f lexyy.c; then
14846  ac_cv_prog_lex_root=lexyy
14847else
14848  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
14849fi
14850fi
14851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14852$as_echo "$ac_cv_prog_lex_root" >&6; }
14853LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14854
14855if test -z "${LEXLIB+set}"; then
14856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14857$as_echo_n "checking lex library... " >&6; }
14858if ${ac_cv_lib_lex+:} false; then :
14859  $as_echo_n "(cached) " >&6
14860else
14861
14862    ac_save_LIBS=$LIBS
14863    ac_cv_lib_lex='none needed'
14864    for ac_lib in '' -lfl -ll; do
14865      LIBS="$ac_lib $ac_save_LIBS"
14866      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h.  */
14868`cat $LEX_OUTPUT_ROOT.c`
14869_ACEOF
14870if ac_fn_c_try_link "$LINENO"; then :
14871  ac_cv_lib_lex=$ac_lib
14872fi
14873rm -f core conftest.err conftest.$ac_objext \
14874    conftest$ac_exeext conftest.$ac_ext
14875      test "$ac_cv_lib_lex" != 'none needed' && break
14876    done
14877    LIBS=$ac_save_LIBS
14878
14879fi
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14881$as_echo "$ac_cv_lib_lex" >&6; }
14882  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14883fi
14884
14885
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14887$as_echo_n "checking whether yytext is a pointer... " >&6; }
14888if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
14889  $as_echo_n "(cached) " >&6
14890else
14891  # POSIX says lex can declare yytext either as a pointer or an array; the
14892# default is implementation-dependent.  Figure out which it is, since
14893# not all implementations provide the %pointer and %array declarations.
14894ac_cv_prog_lex_yytext_pointer=no
14895ac_save_LIBS=$LIBS
14896LIBS="$LEXLIB $ac_save_LIBS"
14897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898/* end confdefs.h.  */
14899
14900  #define YYTEXT_POINTER 1
14901`cat $LEX_OUTPUT_ROOT.c`
14902_ACEOF
14903if ac_fn_c_try_link "$LINENO"; then :
14904  ac_cv_prog_lex_yytext_pointer=yes
14905fi
14906rm -f core conftest.err conftest.$ac_objext \
14907    conftest$ac_exeext conftest.$ac_ext
14908LIBS=$ac_save_LIBS
14909
14910fi
14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14912$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14913if test $ac_cv_prog_lex_yytext_pointer = yes; then
14914
14915$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14916
14917fi
14918rm -f conftest.l $LEX_OUTPUT_ROOT.c
14919
14920fi
14921for ac_prog in 'bison -y' byacc
14922do
14923  # Extract the first word of "$ac_prog", so it can be a program name with args.
14924set dummy $ac_prog; ac_word=$2
14925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14926$as_echo_n "checking for $ac_word... " >&6; }
14927if ${ac_cv_prog_YACC+:} false; then :
14928  $as_echo_n "(cached) " >&6
14929else
14930  if test -n "$YACC"; then
14931  ac_cv_prog_YACC="$YACC" # Let the user override the test.
14932else
14933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14934for as_dir in $PATH
14935do
14936  IFS=$as_save_IFS
14937  test -z "$as_dir" && as_dir=.
14938    for ac_exec_ext in '' $ac_executable_extensions; do
14939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14940    ac_cv_prog_YACC="$ac_prog"
14941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14942    break 2
14943  fi
14944done
14945  done
14946IFS=$as_save_IFS
14947
14948fi
14949fi
14950YACC=$ac_cv_prog_YACC
14951if test -n "$YACC"; then
14952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14953$as_echo "$YACC" >&6; }
14954else
14955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14956$as_echo "no" >&6; }
14957fi
14958
14959
14960  test -n "$YACC" && break
14961done
14962test -n "$YACC" || YACC="yacc"
14963
14964# Check whether --enable-largefile was given.
14965if test "${enable_largefile+set}" = set; then :
14966  enableval=$enable_largefile;
14967fi
14968
14969if test "$enable_largefile" != no; then
14970
14971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14972$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14973if ${ac_cv_sys_largefile_CC+:} false; then :
14974  $as_echo_n "(cached) " >&6
14975else
14976  ac_cv_sys_largefile_CC=no
14977     if test "$GCC" != yes; then
14978       ac_save_CC=$CC
14979       while :; do
14980	 # IRIX 6.2 and later do not support large files by default,
14981	 # so use the C compiler's -n32 option if that helps.
14982	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983/* end confdefs.h.  */
14984#include <sys/types.h>
14985 /* Check that off_t can represent 2**63 - 1 correctly.
14986    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14987    since some C++ compilers masquerading as C compilers
14988    incorrectly reject 9223372036854775807.  */
14989#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14990  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14991		       && LARGE_OFF_T % 2147483647 == 1)
14992		      ? 1 : -1];
14993int
14994main ()
14995{
14996
14997  ;
14998  return 0;
14999}
15000_ACEOF
15001	 if ac_fn_c_try_compile "$LINENO"; then :
15002  break
15003fi
15004rm -f core conftest.err conftest.$ac_objext
15005	 CC="$CC -n32"
15006	 if ac_fn_c_try_compile "$LINENO"; then :
15007  ac_cv_sys_largefile_CC=' -n32'; break
15008fi
15009rm -f core conftest.err conftest.$ac_objext
15010	 break
15011       done
15012       CC=$ac_save_CC
15013       rm -f conftest.$ac_ext
15014    fi
15015fi
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15017$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15018  if test "$ac_cv_sys_largefile_CC" != no; then
15019    CC=$CC$ac_cv_sys_largefile_CC
15020  fi
15021
15022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15023$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15024if ${ac_cv_sys_file_offset_bits+:} false; then :
15025  $as_echo_n "(cached) " >&6
15026else
15027  while :; do
15028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h.  */
15030#include <sys/types.h>
15031 /* Check that off_t can represent 2**63 - 1 correctly.
15032    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15033    since some C++ compilers masquerading as C compilers
15034    incorrectly reject 9223372036854775807.  */
15035#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15036  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15037		       && LARGE_OFF_T % 2147483647 == 1)
15038		      ? 1 : -1];
15039int
15040main ()
15041{
15042
15043  ;
15044  return 0;
15045}
15046_ACEOF
15047if ac_fn_c_try_compile "$LINENO"; then :
15048  ac_cv_sys_file_offset_bits=no; break
15049fi
15050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052/* end confdefs.h.  */
15053#define _FILE_OFFSET_BITS 64
15054#include <sys/types.h>
15055 /* Check that off_t can represent 2**63 - 1 correctly.
15056    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15057    since some C++ compilers masquerading as C compilers
15058    incorrectly reject 9223372036854775807.  */
15059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15060  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15061		       && LARGE_OFF_T % 2147483647 == 1)
15062		      ? 1 : -1];
15063int
15064main ()
15065{
15066
15067  ;
15068  return 0;
15069}
15070_ACEOF
15071if ac_fn_c_try_compile "$LINENO"; then :
15072  ac_cv_sys_file_offset_bits=64; break
15073fi
15074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075  ac_cv_sys_file_offset_bits=unknown
15076  break
15077done
15078fi
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15080$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15081case $ac_cv_sys_file_offset_bits in #(
15082  no | unknown) ;;
15083  *)
15084cat >>confdefs.h <<_ACEOF
15085#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15086_ACEOF
15087;;
15088esac
15089rm -rf conftest*
15090  if test $ac_cv_sys_file_offset_bits = unknown; then
15091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15092$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15093if ${ac_cv_sys_large_files+:} false; then :
15094  $as_echo_n "(cached) " >&6
15095else
15096  while :; do
15097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098/* end confdefs.h.  */
15099#include <sys/types.h>
15100 /* Check that off_t can represent 2**63 - 1 correctly.
15101    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15102    since some C++ compilers masquerading as C compilers
15103    incorrectly reject 9223372036854775807.  */
15104#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15105  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15106		       && LARGE_OFF_T % 2147483647 == 1)
15107		      ? 1 : -1];
15108int
15109main ()
15110{
15111
15112  ;
15113  return 0;
15114}
15115_ACEOF
15116if ac_fn_c_try_compile "$LINENO"; then :
15117  ac_cv_sys_large_files=no; break
15118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121/* end confdefs.h.  */
15122#define _LARGE_FILES 1
15123#include <sys/types.h>
15124 /* Check that off_t can represent 2**63 - 1 correctly.
15125    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15126    since some C++ compilers masquerading as C compilers
15127    incorrectly reject 9223372036854775807.  */
15128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15129  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15130		       && LARGE_OFF_T % 2147483647 == 1)
15131		      ? 1 : -1];
15132int
15133main ()
15134{
15135
15136  ;
15137  return 0;
15138}
15139_ACEOF
15140if ac_fn_c_try_compile "$LINENO"; then :
15141  ac_cv_sys_large_files=1; break
15142fi
15143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144  ac_cv_sys_large_files=unknown
15145  break
15146done
15147fi
15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15149$as_echo "$ac_cv_sys_large_files" >&6; }
15150case $ac_cv_sys_large_files in #(
15151  no | unknown) ;;
15152  *)
15153cat >>confdefs.h <<_ACEOF
15154#define _LARGE_FILES $ac_cv_sys_large_files
15155_ACEOF
15156;;
15157esac
15158rm -rf conftest*
15159  fi
15160fi
15161
15162
15163
15164for ac_prog in cpp
15165do
15166  # Extract the first word of "$ac_prog", so it can be a program name with args.
15167set dummy $ac_prog; ac_word=$2
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15169$as_echo_n "checking for $ac_word... " >&6; }
15170if ${ac_cv_path_RAWCPP+:} false; then :
15171  $as_echo_n "(cached) " >&6
15172else
15173  case $RAWCPP in
15174  [\\/]* | ?:[\\/]*)
15175  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
15176  ;;
15177  *)
15178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15179as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
15180for as_dir in $as_dummy
15181do
15182  IFS=$as_save_IFS
15183  test -z "$as_dir" && as_dir=.
15184    for ac_exec_ext in '' $ac_executable_extensions; do
15185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15186    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
15187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15188    break 2
15189  fi
15190done
15191  done
15192IFS=$as_save_IFS
15193
15194  ;;
15195esac
15196fi
15197RAWCPP=$ac_cv_path_RAWCPP
15198if test -n "$RAWCPP"; then
15199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
15200$as_echo "$RAWCPP" >&6; }
15201else
15202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203$as_echo "no" >&6; }
15204fi
15205
15206
15207  test -n "$RAWCPP" && break
15208done
15209test -n "$RAWCPP" || RAWCPP="${CPP}"
15210
15211
15212# Check for flag to avoid builtin definitions - assumes unix is predefined,
15213# which is not the best choice for supporting other OS'es, but covers most
15214# of the ones we need for now.
15215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
15216$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
15217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h.  */
15219Does cpp redefine unix ?
15220_ACEOF
15221if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
15222	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15223$as_echo "no" >&6; }
15224else
15225	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
15226		RAWCPPFLAGS=-undef
15227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15228$as_echo "yes" >&6; }
15229	# under Cygwin unix is still defined even with -undef
15230	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
15231		RAWCPPFLAGS="-undef -ansi"
15232		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
15233$as_echo "yes, with -ansi" >&6; }
15234	else
15235		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
15236	fi
15237fi
15238rm -f conftest.$ac_ext
15239
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
15241$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
15242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243/* end confdefs.h.  */
15244Does cpp preserve   "whitespace"?
15245_ACEOF
15246if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
15247	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15248$as_echo "no" >&6; }
15249else
15250	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
15251		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
15252		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15253$as_echo "yes" >&6; }
15254	else
15255		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
15256	fi
15257fi
15258rm -f conftest.$ac_ext
15259
15260
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15262$as_echo_n "checking for a sed that does not truncate output... " >&6; }
15263if ${ac_cv_path_SED+:} false; then :
15264  $as_echo_n "(cached) " >&6
15265else
15266            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15267     for ac_i in 1 2 3 4 5 6 7; do
15268       ac_script="$ac_script$as_nl$ac_script"
15269     done
15270     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15271     { ac_script=; unset ac_script;}
15272     if test -z "$SED"; then
15273  ac_path_SED_found=false
15274  # Loop through the user's path and test for each of PROGNAME-LIST
15275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15276for as_dir in $PATH
15277do
15278  IFS=$as_save_IFS
15279  test -z "$as_dir" && as_dir=.
15280    for ac_prog in sed gsed; do
15281    for ac_exec_ext in '' $ac_executable_extensions; do
15282      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15283      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
15284# Check for GNU ac_path_SED and select it if it is found.
15285  # Check for GNU $ac_path_SED
15286case `"$ac_path_SED" --version 2>&1` in
15287*GNU*)
15288  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15289*)
15290  ac_count=0
15291  $as_echo_n 0123456789 >"conftest.in"
15292  while :
15293  do
15294    cat "conftest.in" "conftest.in" >"conftest.tmp"
15295    mv "conftest.tmp" "conftest.in"
15296    cp "conftest.in" "conftest.nl"
15297    $as_echo '' >> "conftest.nl"
15298    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15299    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15300    as_fn_arith $ac_count + 1 && ac_count=$as_val
15301    if test $ac_count -gt ${ac_path_SED_max-0}; then
15302      # Best one so far, save it but keep looking for a better one
15303      ac_cv_path_SED="$ac_path_SED"
15304      ac_path_SED_max=$ac_count
15305    fi
15306    # 10*(2^10) chars as input seems more than enough
15307    test $ac_count -gt 10 && break
15308  done
15309  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15310esac
15311
15312      $ac_path_SED_found && break 3
15313    done
15314  done
15315  done
15316IFS=$as_save_IFS
15317  if test -z "$ac_cv_path_SED"; then
15318    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15319  fi
15320else
15321  ac_cv_path_SED=$SED
15322fi
15323
15324fi
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15326$as_echo "$ac_cv_path_SED" >&6; }
15327 SED="$ac_cv_path_SED"
15328  rm -f conftest.sed
15329
15330
15331# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
15332# easier overrides at build time.
15333XSERVER_CFLAGS='$(CWARNFLAGS)'
15334
15335
15336# Check whether --with-dtrace was given.
15337if test "${with_dtrace+set}" = set; then :
15338  withval=$with_dtrace; WDTRACE=$withval
15339else
15340  WDTRACE=auto
15341fi
15342
15343if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
15344	# Extract the first word of "dtrace", so it can be a program name with args.
15345set dummy dtrace; ac_word=$2
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15347$as_echo_n "checking for $ac_word... " >&6; }
15348if ${ac_cv_path_DTRACE+:} false; then :
15349  $as_echo_n "(cached) " >&6
15350else
15351  case $DTRACE in
15352  [\\/]* | ?:[\\/]*)
15353  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
15354  ;;
15355  *)
15356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357as_dummy="$PATH:/usr/sbin"
15358for as_dir in $as_dummy
15359do
15360  IFS=$as_save_IFS
15361  test -z "$as_dir" && as_dir=.
15362    for ac_exec_ext in '' $ac_executable_extensions; do
15363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15364    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
15365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15366    break 2
15367  fi
15368done
15369  done
15370IFS=$as_save_IFS
15371
15372  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
15373  ;;
15374esac
15375fi
15376DTRACE=$ac_cv_path_DTRACE
15377if test -n "$DTRACE"; then
15378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
15379$as_echo "$DTRACE" >&6; }
15380else
15381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15382$as_echo "no" >&6; }
15383fi
15384
15385
15386	if test "x$DTRACE" = "xnot_found" ; then
15387		if test "x$WDTRACE" = "xyes" ; then
15388			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15390as_fn_error $? "dtrace requested but not found
15391See \`config.log' for more details" "$LINENO" 5; }
15392		fi
15393		WDTRACE="no"
15394	else
15395		ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
15396if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
15397  HAS_SDT_H="yes"
15398else
15399  HAS_SDT_H="no"
15400fi
15401
15402
15403		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
15404			WDTRACE="no"
15405		fi
15406	fi
15407fi
15408if test "x$WDTRACE" != "xno" ; then
15409
15410$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h
15411
15412
15413# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
15414# object files, and require linking with those as relocatable objects, not .a
15415# archives. MacOS X handles all this in the normal compiler toolchain, and on
15416# some releases (like Tiger), will error out on dtrace -G.  For now, other
15417# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
15418# ports appear to, based on my web searches, but have not yet been tested).
15419	case $host_os in
15420		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
15421		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
15422	esac
15423fi
15424 if test "x$WDTRACE" != "xno"; then
15425  XSERVER_DTRACE_TRUE=
15426  XSERVER_DTRACE_FALSE='#'
15427else
15428  XSERVER_DTRACE_TRUE='#'
15429  XSERVER_DTRACE_FALSE=
15430fi
15431
15432 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
15433  SPECIAL_DTRACE_OBJECTS_TRUE=
15434  SPECIAL_DTRACE_OBJECTS_FALSE='#'
15435else
15436  SPECIAL_DTRACE_OBJECTS_TRUE='#'
15437  SPECIAL_DTRACE_OBJECTS_FALSE=
15438fi
15439
15440
15441ac_header_dirent=no
15442for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15443  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15445$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15446if eval \${$as_ac_Header+:} false; then :
15447  $as_echo_n "(cached) " >&6
15448else
15449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450/* end confdefs.h.  */
15451#include <sys/types.h>
15452#include <$ac_hdr>
15453
15454int
15455main ()
15456{
15457if ((DIR *) 0)
15458return 0;
15459  ;
15460  return 0;
15461}
15462_ACEOF
15463if ac_fn_c_try_compile "$LINENO"; then :
15464  eval "$as_ac_Header=yes"
15465else
15466  eval "$as_ac_Header=no"
15467fi
15468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469fi
15470eval ac_res=\$$as_ac_Header
15471	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15472$as_echo "$ac_res" >&6; }
15473if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15474  cat >>confdefs.h <<_ACEOF
15475#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15476_ACEOF
15477
15478ac_header_dirent=$ac_hdr; break
15479fi
15480
15481done
15482# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15483if test $ac_header_dirent = dirent.h; then
15484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15485$as_echo_n "checking for library containing opendir... " >&6; }
15486if ${ac_cv_search_opendir+:} false; then :
15487  $as_echo_n "(cached) " >&6
15488else
15489  ac_func_search_save_LIBS=$LIBS
15490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491/* end confdefs.h.  */
15492
15493/* Override any GCC internal prototype to avoid an error.
15494   Use char because int might match the return type of a GCC
15495   builtin and then its argument prototype would still apply.  */
15496#ifdef __cplusplus
15497extern "C"
15498#endif
15499char opendir ();
15500int
15501main ()
15502{
15503return opendir ();
15504  ;
15505  return 0;
15506}
15507_ACEOF
15508for ac_lib in '' dir; do
15509  if test -z "$ac_lib"; then
15510    ac_res="none required"
15511  else
15512    ac_res=-l$ac_lib
15513    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15514  fi
15515  if ac_fn_c_try_link "$LINENO"; then :
15516  ac_cv_search_opendir=$ac_res
15517fi
15518rm -f core conftest.err conftest.$ac_objext \
15519    conftest$ac_exeext
15520  if ${ac_cv_search_opendir+:} false; then :
15521  break
15522fi
15523done
15524if ${ac_cv_search_opendir+:} false; then :
15525
15526else
15527  ac_cv_search_opendir=no
15528fi
15529rm conftest.$ac_ext
15530LIBS=$ac_func_search_save_LIBS
15531fi
15532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15533$as_echo "$ac_cv_search_opendir" >&6; }
15534ac_res=$ac_cv_search_opendir
15535if test "$ac_res" != no; then :
15536  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15537
15538fi
15539
15540else
15541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15542$as_echo_n "checking for library containing opendir... " >&6; }
15543if ${ac_cv_search_opendir+:} false; then :
15544  $as_echo_n "(cached) " >&6
15545else
15546  ac_func_search_save_LIBS=$LIBS
15547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548/* end confdefs.h.  */
15549
15550/* Override any GCC internal prototype to avoid an error.
15551   Use char because int might match the return type of a GCC
15552   builtin and then its argument prototype would still apply.  */
15553#ifdef __cplusplus
15554extern "C"
15555#endif
15556char opendir ();
15557int
15558main ()
15559{
15560return opendir ();
15561  ;
15562  return 0;
15563}
15564_ACEOF
15565for ac_lib in '' x; do
15566  if test -z "$ac_lib"; then
15567    ac_res="none required"
15568  else
15569    ac_res=-l$ac_lib
15570    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15571  fi
15572  if ac_fn_c_try_link "$LINENO"; then :
15573  ac_cv_search_opendir=$ac_res
15574fi
15575rm -f core conftest.err conftest.$ac_objext \
15576    conftest$ac_exeext
15577  if ${ac_cv_search_opendir+:} false; then :
15578  break
15579fi
15580done
15581if ${ac_cv_search_opendir+:} false; then :
15582
15583else
15584  ac_cv_search_opendir=no
15585fi
15586rm conftest.$ac_ext
15587LIBS=$ac_func_search_save_LIBS
15588fi
15589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15590$as_echo "$ac_cv_search_opendir" >&6; }
15591ac_res=$ac_cv_search_opendir
15592if test "$ac_res" != no; then :
15593  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15594
15595fi
15596
15597fi
15598
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15600$as_echo_n "checking for ANSI C header files... " >&6; }
15601if ${ac_cv_header_stdc+:} false; then :
15602  $as_echo_n "(cached) " >&6
15603else
15604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h.  */
15606#include <stdlib.h>
15607#include <stdarg.h>
15608#include <string.h>
15609#include <float.h>
15610
15611int
15612main ()
15613{
15614
15615  ;
15616  return 0;
15617}
15618_ACEOF
15619if ac_fn_c_try_compile "$LINENO"; then :
15620  ac_cv_header_stdc=yes
15621else
15622  ac_cv_header_stdc=no
15623fi
15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625
15626if test $ac_cv_header_stdc = yes; then
15627  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630#include <string.h>
15631
15632_ACEOF
15633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15634  $EGREP "memchr" >/dev/null 2>&1; then :
15635
15636else
15637  ac_cv_header_stdc=no
15638fi
15639rm -f conftest*
15640
15641fi
15642
15643if test $ac_cv_header_stdc = yes; then
15644  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646/* end confdefs.h.  */
15647#include <stdlib.h>
15648
15649_ACEOF
15650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15651  $EGREP "free" >/dev/null 2>&1; then :
15652
15653else
15654  ac_cv_header_stdc=no
15655fi
15656rm -f conftest*
15657
15658fi
15659
15660if test $ac_cv_header_stdc = yes; then
15661  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15662  if test "$cross_compiling" = yes; then :
15663  :
15664else
15665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h.  */
15667#include <ctype.h>
15668#include <stdlib.h>
15669#if ((' ' & 0x0FF) == 0x020)
15670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15672#else
15673# define ISLOWER(c) \
15674		   (('a' <= (c) && (c) <= 'i') \
15675		     || ('j' <= (c) && (c) <= 'r') \
15676		     || ('s' <= (c) && (c) <= 'z'))
15677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15678#endif
15679
15680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15681int
15682main ()
15683{
15684  int i;
15685  for (i = 0; i < 256; i++)
15686    if (XOR (islower (i), ISLOWER (i))
15687	|| toupper (i) != TOUPPER (i))
15688      return 2;
15689  return 0;
15690}
15691_ACEOF
15692if ac_fn_c_try_run "$LINENO"; then :
15693
15694else
15695  ac_cv_header_stdc=no
15696fi
15697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15698  conftest.$ac_objext conftest.beam conftest.$ac_ext
15699fi
15700
15701fi
15702fi
15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15704$as_echo "$ac_cv_header_stdc" >&6; }
15705if test $ac_cv_header_stdc = yes; then
15706
15707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15708
15709fi
15710
15711for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h fnmatch.h sys/utsname.h
15712do :
15713  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15714ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15715if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15716  cat >>confdefs.h <<_ACEOF
15717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15718_ACEOF
15719
15720fi
15721
15722done
15723
15724
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15726$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15727if ${ac_cv_c_const+:} false; then :
15728  $as_echo_n "(cached) " >&6
15729else
15730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731/* end confdefs.h.  */
15732
15733int
15734main ()
15735{
15736/* FIXME: Include the comments suggested by Paul. */
15737#ifndef __cplusplus
15738  /* Ultrix mips cc rejects this.  */
15739  typedef int charset[2];
15740  const charset cs;
15741  /* SunOS 4.1.1 cc rejects this.  */
15742  char const *const *pcpcc;
15743  char **ppc;
15744  /* NEC SVR4.0.2 mips cc rejects this.  */
15745  struct point {int x, y;};
15746  static struct point const zero = {0,0};
15747  /* AIX XL C 1.02.0.0 rejects this.
15748     It does not let you subtract one const X* pointer from another in
15749     an arm of an if-expression whose if-part is not a constant
15750     expression */
15751  const char *g = "string";
15752  pcpcc = &g + (g ? g-g : 0);
15753  /* HPUX 7.0 cc rejects these. */
15754  ++pcpcc;
15755  ppc = (char**) pcpcc;
15756  pcpcc = (char const *const *) ppc;
15757  { /* SCO 3.2v4 cc rejects this.  */
15758    char *t;
15759    char const *s = 0 ? (char *) 0 : (char const *) 0;
15760
15761    *t++ = 0;
15762    if (s) return 0;
15763  }
15764  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15765    int x[] = {25, 17};
15766    const int *foo = &x[0];
15767    ++foo;
15768  }
15769  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15770    typedef const int *iptr;
15771    iptr p = 0;
15772    ++p;
15773  }
15774  { /* AIX XL C 1.02.0.0 rejects this saying
15775       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15776    struct s { int j; const int *ap[3]; };
15777    struct s *b; b->j = 5;
15778  }
15779  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15780    const int foo = 10;
15781    if (!foo) return 0;
15782  }
15783  return !cs[0] && !zero.x;
15784#endif
15785
15786  ;
15787  return 0;
15788}
15789_ACEOF
15790if ac_fn_c_try_compile "$LINENO"; then :
15791  ac_cv_c_const=yes
15792else
15793  ac_cv_c_const=no
15794fi
15795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15796fi
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15798$as_echo "$ac_cv_c_const" >&6; }
15799if test $ac_cv_c_const = no; then
15800
15801$as_echo "#define const /**/" >>confdefs.h
15802
15803fi
15804
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15806$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15807if ${ac_cv_c_bigendian+:} false; then :
15808  $as_echo_n "(cached) " >&6
15809else
15810  ac_cv_c_bigendian=unknown
15811    # See if we're dealing with a universal compiler.
15812    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813/* end confdefs.h.  */
15814#ifndef __APPLE_CC__
15815	       not a universal capable compiler
15816	     #endif
15817	     typedef int dummy;
15818
15819_ACEOF
15820if ac_fn_c_try_compile "$LINENO"; then :
15821
15822	# Check for potential -arch flags.  It is not universal unless
15823	# there are at least two -arch flags with different values.
15824	ac_arch=
15825	ac_prev=
15826	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15827	 if test -n "$ac_prev"; then
15828	   case $ac_word in
15829	     i?86 | x86_64 | ppc | ppc64)
15830	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15831		 ac_arch=$ac_word
15832	       else
15833		 ac_cv_c_bigendian=universal
15834		 break
15835	       fi
15836	       ;;
15837	   esac
15838	   ac_prev=
15839	 elif test "x$ac_word" = "x-arch"; then
15840	   ac_prev=arch
15841	 fi
15842       done
15843fi
15844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845    if test $ac_cv_c_bigendian = unknown; then
15846      # See if sys/param.h defines the BYTE_ORDER macro.
15847      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848/* end confdefs.h.  */
15849#include <sys/types.h>
15850	     #include <sys/param.h>
15851
15852int
15853main ()
15854{
15855#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15856		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15857		     && LITTLE_ENDIAN)
15858	      bogus endian macros
15859	     #endif
15860
15861  ;
15862  return 0;
15863}
15864_ACEOF
15865if ac_fn_c_try_compile "$LINENO"; then :
15866  # It does; now see whether it defined to BIG_ENDIAN or not.
15867	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868/* end confdefs.h.  */
15869#include <sys/types.h>
15870		#include <sys/param.h>
15871
15872int
15873main ()
15874{
15875#if BYTE_ORDER != BIG_ENDIAN
15876		 not big endian
15877		#endif
15878
15879  ;
15880  return 0;
15881}
15882_ACEOF
15883if ac_fn_c_try_compile "$LINENO"; then :
15884  ac_cv_c_bigendian=yes
15885else
15886  ac_cv_c_bigendian=no
15887fi
15888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889fi
15890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891    fi
15892    if test $ac_cv_c_bigendian = unknown; then
15893      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15894      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h.  */
15896#include <limits.h>
15897
15898int
15899main ()
15900{
15901#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15902	      bogus endian macros
15903	     #endif
15904
15905  ;
15906  return 0;
15907}
15908_ACEOF
15909if ac_fn_c_try_compile "$LINENO"; then :
15910  # It does; now see whether it defined to _BIG_ENDIAN or not.
15911	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912/* end confdefs.h.  */
15913#include <limits.h>
15914
15915int
15916main ()
15917{
15918#ifndef _BIG_ENDIAN
15919		 not big endian
15920		#endif
15921
15922  ;
15923  return 0;
15924}
15925_ACEOF
15926if ac_fn_c_try_compile "$LINENO"; then :
15927  ac_cv_c_bigendian=yes
15928else
15929  ac_cv_c_bigendian=no
15930fi
15931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932fi
15933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934    fi
15935    if test $ac_cv_c_bigendian = unknown; then
15936      # Compile a test program.
15937      if test "$cross_compiling" = yes; then :
15938  # Try to guess by grepping values from an object file.
15939	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940/* end confdefs.h.  */
15941short int ascii_mm[] =
15942		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15943		short int ascii_ii[] =
15944		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15945		int use_ascii (int i) {
15946		  return ascii_mm[i] + ascii_ii[i];
15947		}
15948		short int ebcdic_ii[] =
15949		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15950		short int ebcdic_mm[] =
15951		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15952		int use_ebcdic (int i) {
15953		  return ebcdic_mm[i] + ebcdic_ii[i];
15954		}
15955		extern int foo;
15956
15957int
15958main ()
15959{
15960return use_ascii (foo) == use_ebcdic (foo);
15961  ;
15962  return 0;
15963}
15964_ACEOF
15965if ac_fn_c_try_compile "$LINENO"; then :
15966  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15967	      ac_cv_c_bigendian=yes
15968	    fi
15969	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15970	      if test "$ac_cv_c_bigendian" = unknown; then
15971		ac_cv_c_bigendian=no
15972	      else
15973		# finding both strings is unlikely to happen, but who knows?
15974		ac_cv_c_bigendian=unknown
15975	      fi
15976	    fi
15977fi
15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979else
15980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h.  */
15982$ac_includes_default
15983int
15984main ()
15985{
15986
15987	     /* Are we little or big endian?  From Harbison&Steele.  */
15988	     union
15989	     {
15990	       long int l;
15991	       char c[sizeof (long int)];
15992	     } u;
15993	     u.l = 1;
15994	     return u.c[sizeof (long int) - 1] == 1;
15995
15996  ;
15997  return 0;
15998}
15999_ACEOF
16000if ac_fn_c_try_run "$LINENO"; then :
16001  ac_cv_c_bigendian=no
16002else
16003  ac_cv_c_bigendian=yes
16004fi
16005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16006  conftest.$ac_objext conftest.beam conftest.$ac_ext
16007fi
16008
16009    fi
16010fi
16011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16012$as_echo "$ac_cv_c_bigendian" >&6; }
16013 case $ac_cv_c_bigendian in #(
16014   yes)
16015     ENDIAN="X_BIG_ENDIAN";; #(
16016   no)
16017     ENDIAN="X_LITTLE_ENDIAN" ;; #(
16018   universal)
16019
16020$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16021
16022     ;; #(
16023   *)
16024     as_fn_error $? "unknown endianness
16025 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16026 esac
16027
16028
16029# The cast to long int works around a bug in the HP C Compiler
16030# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16031# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16032# This bug is HP SR number 8606223364.
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16034$as_echo_n "checking size of unsigned long... " >&6; }
16035if ${ac_cv_sizeof_unsigned_long+:} false; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16039
16040else
16041  if test "$ac_cv_type_unsigned_long" = yes; then
16042     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16044as_fn_error 77 "cannot compute sizeof (unsigned long)
16045See \`config.log' for more details" "$LINENO" 5; }
16046   else
16047     ac_cv_sizeof_unsigned_long=0
16048   fi
16049fi
16050
16051fi
16052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16053$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16054
16055
16056
16057cat >>confdefs.h <<_ACEOF
16058#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16059_ACEOF
16060
16061
16062if test "$ac_cv_sizeof_unsigned_long" = 8; then
16063
16064$as_echo "#define _XSERVER64 1" >>confdefs.h
16065
16066fi
16067
16068ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16069if test "x$ac_cv_type_pid_t" = xyes; then :
16070
16071else
16072
16073cat >>confdefs.h <<_ACEOF
16074#define pid_t int
16075_ACEOF
16076
16077fi
16078
16079
16080# Checks for headers/macros for byte swapping
16081# Known variants:
16082#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
16083#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
16084#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
16085#	and a fallback to local macros if none of the above are found
16086
16087# if <byteswap.h> is found, assume it's the correct version
16088for ac_header in byteswap.h
16089do :
16090  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
16091if test "x$ac_cv_header_byteswap_h" = xyes; then :
16092  cat >>confdefs.h <<_ACEOF
16093#define HAVE_BYTESWAP_H 1
16094_ACEOF
16095
16096fi
16097
16098done
16099
16100
16101# if <sys/endian.h> is found, have to check which version
16102ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
16103if test "x$ac_cv_header_sys_endian_h" = xyes; then :
16104  HAVE_SYS_ENDIAN_H="yes"
16105else
16106  HAVE_SYS_ENDIAN_H="no"
16107fi
16108
16109
16110
16111if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
16112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
16113$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
16114	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115/* end confdefs.h.  */
16116
16117#include <sys/types.h>
16118#include <sys/endian.h>
16119
16120int
16121main ()
16122{
16123
16124int a = 1, b;
16125b = __swap16(a);
16126
16127  ;
16128  return 0;
16129}
16130
16131_ACEOF
16132if ac_fn_c_try_link "$LINENO"; then :
16133  SYS_ENDIAN__SWAP='yes'
16134else
16135  SYS_ENDIAN__SWAP='no'
16136fi
16137rm -f core conftest.err conftest.$ac_objext \
16138    conftest$ac_exeext conftest.$ac_ext
16139	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
16140$as_echo "$SYS_ENDIAN__SWAP" >&6; }
16141
16142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
16143$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
16144	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145/* end confdefs.h.  */
16146
16147#include <sys/types.h>
16148#include <sys/endian.h>
16149
16150int
16151main ()
16152{
16153
16154int a = 1, b;
16155b = bswap16(a);
16156
16157  ;
16158  return 0;
16159}
16160
16161_ACEOF
16162if ac_fn_c_try_link "$LINENO"; then :
16163  SYS_ENDIAN_BSWAP='yes'
16164else
16165  SYS_ENDIAN_BSWAP='no'
16166fi
16167rm -f core conftest.err conftest.$ac_objext \
16168    conftest$ac_exeext conftest.$ac_ext
16169	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
16170$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
16171
16172    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
16173		USE_SYS_ENDIAN_H=yes
16174		BSWAP=bswap
16175	else
16176	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
16177			USE_SYS_ENDIAN_H=yes
16178			BSWAP=__swap
16179		else
16180			USE_SYS_ENDIAN_H=no
16181		fi
16182	fi
16183
16184	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
16185
16186$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
16187
16188
16189cat >>confdefs.h <<_ACEOF
16190#define bswap_16 ${BSWAP}16
16191_ACEOF
16192
16193
16194cat >>confdefs.h <<_ACEOF
16195#define bswap_32 ${BSWAP}32
16196_ACEOF
16197
16198
16199cat >>confdefs.h <<_ACEOF
16200#define bswap_64 ${BSWAP}64
16201_ACEOF
16202
16203	fi
16204fi
16205
16206ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16207if test "x$ac_cv_func_dlopen" = xyes; then :
16208
16209else
16210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16211$as_echo_n "checking for dlopen in -ldl... " >&6; }
16212if ${ac_cv_lib_dl_dlopen+:} false; then :
16213  $as_echo_n "(cached) " >&6
16214else
16215  ac_check_lib_save_LIBS=$LIBS
16216LIBS="-ldl  $LIBS"
16217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218/* end confdefs.h.  */
16219
16220/* Override any GCC internal prototype to avoid an error.
16221   Use char because int might match the return type of a GCC
16222   builtin and then its argument prototype would still apply.  */
16223#ifdef __cplusplus
16224extern "C"
16225#endif
16226char dlopen ();
16227int
16228main ()
16229{
16230return dlopen ();
16231  ;
16232  return 0;
16233}
16234_ACEOF
16235if ac_fn_c_try_link "$LINENO"; then :
16236  ac_cv_lib_dl_dlopen=yes
16237else
16238  ac_cv_lib_dl_dlopen=no
16239fi
16240rm -f core conftest.err conftest.$ac_objext \
16241    conftest$ac_exeext conftest.$ac_ext
16242LIBS=$ac_check_lib_save_LIBS
16243fi
16244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16245$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16246if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16247  DLOPEN_LIBS="-ldl"
16248fi
16249
16250fi
16251
16252
16253
16254for ac_func in vprintf
16255do :
16256  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16257if test "x$ac_cv_func_vprintf" = xyes; then :
16258  cat >>confdefs.h <<_ACEOF
16259#define HAVE_VPRINTF 1
16260_ACEOF
16261
16262ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16263if test "x$ac_cv_func__doprnt" = xyes; then :
16264
16265$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16266
16267fi
16268
16269fi
16270done
16271
16272
16273for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr \
16274		strtol getopt getopt_long vsnprintf walkcontext backtrace \
16275		getisax getzoneid shmctl64 strcasestr ffs
16276do :
16277  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16278ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16279if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16280  cat >>confdefs.h <<_ACEOF
16281#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16282_ACEOF
16283
16284fi
16285done
16286
16287ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16288if test "x$ac_cv_type_size_t" = xyes; then :
16289
16290else
16291
16292cat >>confdefs.h <<_ACEOF
16293#define size_t unsigned int
16294_ACEOF
16295
16296fi
16297
16298# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16299# for constant arguments.  Useless!
16300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16301$as_echo_n "checking for working alloca.h... " >&6; }
16302if ${ac_cv_working_alloca_h+:} false; then :
16303  $as_echo_n "(cached) " >&6
16304else
16305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306/* end confdefs.h.  */
16307#include <alloca.h>
16308int
16309main ()
16310{
16311char *p = (char *) alloca (2 * sizeof (int));
16312			  if (p) return 0;
16313  ;
16314  return 0;
16315}
16316_ACEOF
16317if ac_fn_c_try_link "$LINENO"; then :
16318  ac_cv_working_alloca_h=yes
16319else
16320  ac_cv_working_alloca_h=no
16321fi
16322rm -f core conftest.err conftest.$ac_objext \
16323    conftest$ac_exeext conftest.$ac_ext
16324fi
16325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16326$as_echo "$ac_cv_working_alloca_h" >&6; }
16327if test $ac_cv_working_alloca_h = yes; then
16328
16329$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16330
16331fi
16332
16333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16334$as_echo_n "checking for alloca... " >&6; }
16335if ${ac_cv_func_alloca_works+:} false; then :
16336  $as_echo_n "(cached) " >&6
16337else
16338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339/* end confdefs.h.  */
16340#ifdef __GNUC__
16341# define alloca __builtin_alloca
16342#else
16343# ifdef _MSC_VER
16344#  include <malloc.h>
16345#  define alloca _alloca
16346# else
16347#  ifdef HAVE_ALLOCA_H
16348#   include <alloca.h>
16349#  else
16350#   ifdef _AIX
16351 #pragma alloca
16352#   else
16353#    ifndef alloca /* predefined by HP cc +Olibcalls */
16354void *alloca (size_t);
16355#    endif
16356#   endif
16357#  endif
16358# endif
16359#endif
16360
16361int
16362main ()
16363{
16364char *p = (char *) alloca (1);
16365				    if (p) return 0;
16366  ;
16367  return 0;
16368}
16369_ACEOF
16370if ac_fn_c_try_link "$LINENO"; then :
16371  ac_cv_func_alloca_works=yes
16372else
16373  ac_cv_func_alloca_works=no
16374fi
16375rm -f core conftest.err conftest.$ac_objext \
16376    conftest$ac_exeext conftest.$ac_ext
16377fi
16378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16379$as_echo "$ac_cv_func_alloca_works" >&6; }
16380
16381if test $ac_cv_func_alloca_works = yes; then
16382
16383$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16384
16385else
16386  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16387# that cause trouble.  Some versions do not even contain alloca or
16388# contain a buggy version.  If you still want to use their alloca,
16389# use ar to extract alloca.o from them instead of compiling alloca.c.
16390
16391ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16392
16393$as_echo "#define C_ALLOCA 1" >>confdefs.h
16394
16395
16396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16397$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16398if ${ac_cv_os_cray+:} false; then :
16399  $as_echo_n "(cached) " >&6
16400else
16401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402/* end confdefs.h.  */
16403#if defined CRAY && ! defined CRAY2
16404webecray
16405#else
16406wenotbecray
16407#endif
16408
16409_ACEOF
16410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16411  $EGREP "webecray" >/dev/null 2>&1; then :
16412  ac_cv_os_cray=yes
16413else
16414  ac_cv_os_cray=no
16415fi
16416rm -f conftest*
16417
16418fi
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16420$as_echo "$ac_cv_os_cray" >&6; }
16421if test $ac_cv_os_cray = yes; then
16422  for ac_func in _getb67 GETB67 getb67; do
16423    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16424ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16425if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16426
16427cat >>confdefs.h <<_ACEOF
16428#define CRAY_STACKSEG_END $ac_func
16429_ACEOF
16430
16431    break
16432fi
16433
16434  done
16435fi
16436
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16438$as_echo_n "checking stack direction for C alloca... " >&6; }
16439if ${ac_cv_c_stack_direction+:} false; then :
16440  $as_echo_n "(cached) " >&6
16441else
16442  if test "$cross_compiling" = yes; then :
16443  ac_cv_c_stack_direction=0
16444else
16445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446/* end confdefs.h.  */
16447$ac_includes_default
16448int
16449find_stack_direction ()
16450{
16451  static char *addr = 0;
16452  auto char dummy;
16453  if (addr == 0)
16454    {
16455      addr = &dummy;
16456      return find_stack_direction ();
16457    }
16458  else
16459    return (&dummy > addr) ? 1 : -1;
16460}
16461
16462int
16463main ()
16464{
16465  return find_stack_direction () < 0;
16466}
16467_ACEOF
16468if ac_fn_c_try_run "$LINENO"; then :
16469  ac_cv_c_stack_direction=1
16470else
16471  ac_cv_c_stack_direction=-1
16472fi
16473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16474  conftest.$ac_objext conftest.beam conftest.$ac_ext
16475fi
16476
16477fi
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16479$as_echo "$ac_cv_c_stack_direction" >&6; }
16480cat >>confdefs.h <<_ACEOF
16481#define STACK_DIRECTION $ac_cv_c_stack_direction
16482_ACEOF
16483
16484
16485fi
16486
16487ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
16488if test "x$ac_cv_func_getdtablesize" = xyes; then :
16489
16490$as_echo "#define HAS_GETDTABLESIZE 1" >>confdefs.h
16491
16492fi
16493
16494ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16495if test "x$ac_cv_func_getifaddrs" = xyes; then :
16496
16497$as_echo "#define HAS_GETIFADDRS 1" >>confdefs.h
16498
16499fi
16500
16501ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
16502if test "x$ac_cv_func_getpeereid" = xyes; then :
16503
16504$as_echo "#define HAS_GETPEEREID 1" >>confdefs.h
16505
16506fi
16507
16508ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
16509if test "x$ac_cv_func_getpeerucred" = xyes; then :
16510
16511$as_echo "#define HAS_GETPEERUCRED 1" >>confdefs.h
16512
16513fi
16514
16515ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
16516if test "x$ac_cv_func_strlcat" = xyes; then :
16517  HAVE_STRLCAT=yes
16518else
16519  HAVE_STRLCAT=no
16520fi
16521
16522 if test x$HAVE_STRLCAT = xno; then
16523  NEED_STRLCAT_TRUE=
16524  NEED_STRLCAT_FALSE='#'
16525else
16526  NEED_STRLCAT_TRUE='#'
16527  NEED_STRLCAT_FALSE=
16528fi
16529
16530ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16531if test "x$ac_cv_func_strlcpy" = xyes; then :
16532
16533$as_echo "#define HAS_STRLCPY 1" >>confdefs.h
16534
16535fi
16536
16537
16538 if test x$HAVE_VSNPRINTF = xno; then
16539  NEED_VSNPRINTF_TRUE=
16540  NEED_VSNPRINTF_FALSE='#'
16541else
16542  NEED_VSNPRINTF_TRUE='#'
16543  NEED_VSNPRINTF_FALSE=
16544fi
16545
16546
16547ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16548if test "x$ac_cv_func_mmap" = xyes; then :
16549
16550$as_echo "#define HAS_MMAP 1" >>confdefs.h
16551
16552fi
16553
16554
16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
16556$as_echo_n "checking for sqrt in -lm... " >&6; }
16557if ${ac_cv_lib_m_sqrt+:} false; then :
16558  $as_echo_n "(cached) " >&6
16559else
16560  ac_check_lib_save_LIBS=$LIBS
16561LIBS="-lm  $LIBS"
16562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563/* end confdefs.h.  */
16564
16565/* Override any GCC internal prototype to avoid an error.
16566   Use char because int might match the return type of a GCC
16567   builtin and then its argument prototype would still apply.  */
16568#ifdef __cplusplus
16569extern "C"
16570#endif
16571char sqrt ();
16572int
16573main ()
16574{
16575return sqrt ();
16576  ;
16577  return 0;
16578}
16579_ACEOF
16580if ac_fn_c_try_link "$LINENO"; then :
16581  ac_cv_lib_m_sqrt=yes
16582else
16583  ac_cv_lib_m_sqrt=no
16584fi
16585rm -f core conftest.err conftest.$ac_objext \
16586    conftest$ac_exeext conftest.$ac_ext
16587LIBS=$ac_check_lib_save_LIBS
16588fi
16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
16590$as_echo "$ac_cv_lib_m_sqrt" >&6; }
16591if test "x$ac_cv_lib_m_sqrt" = xyes; then :
16592  cat >>confdefs.h <<_ACEOF
16593#define HAVE_LIBM 1
16594_ACEOF
16595
16596  LIBS="-lm $LIBS"
16597
16598fi
16599
16600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrt in -lm" >&5
16601$as_echo_n "checking for cbrt in -lm... " >&6; }
16602if ${ac_cv_lib_m_cbrt+:} false; then :
16603  $as_echo_n "(cached) " >&6
16604else
16605  ac_check_lib_save_LIBS=$LIBS
16606LIBS="-lm  $LIBS"
16607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608/* end confdefs.h.  */
16609
16610/* Override any GCC internal prototype to avoid an error.
16611   Use char because int might match the return type of a GCC
16612   builtin and then its argument prototype would still apply.  */
16613#ifdef __cplusplus
16614extern "C"
16615#endif
16616char cbrt ();
16617int
16618main ()
16619{
16620return cbrt ();
16621  ;
16622  return 0;
16623}
16624_ACEOF
16625if ac_fn_c_try_link "$LINENO"; then :
16626  ac_cv_lib_m_cbrt=yes
16627else
16628  ac_cv_lib_m_cbrt=no
16629fi
16630rm -f core conftest.err conftest.$ac_objext \
16631    conftest$ac_exeext conftest.$ac_ext
16632LIBS=$ac_check_lib_save_LIBS
16633fi
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrt" >&5
16635$as_echo "$ac_cv_lib_m_cbrt" >&6; }
16636if test "x$ac_cv_lib_m_cbrt" = xyes; then :
16637
16638$as_echo "#define HAVE_CBRT 1" >>confdefs.h
16639
16640fi
16641
16642
16643for ac_header in ndbm.h dbm.h rpcsvc/dbm.h
16644do :
16645  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16646ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16647if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16648  cat >>confdefs.h <<_ACEOF
16649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16650_ACEOF
16651
16652fi
16653
16654done
16655
16656
16657for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
16658do :
16659  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16660ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16661if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16662  cat >>confdefs.h <<_ACEOF
16663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16664_ACEOF
16665 AGP=yes
16666fi
16667
16668done
16669
16670 if test "x$AGP" = xyes; then
16671  AGP_TRUE=
16672  AGP_FALSE='#'
16673else
16674  AGP_TRUE='#'
16675  AGP_FALSE=
16676fi
16677
16678
16679for ac_header in linux/apm_bios.h
16680do :
16681  ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
16682if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then :
16683  cat >>confdefs.h <<_ACEOF
16684#define HAVE_LINUX_APM_BIOS_H 1
16685_ACEOF
16686 LNXAPM=yes
16687fi
16688
16689done
16690
16691 if test "x$LNXAPM" = xyes; then
16692  LNXAPM_TRUE=
16693  LNXAPM_FALSE='#'
16694else
16695  LNXAPM_TRUE='#'
16696  LNXAPM_FALSE=
16697fi
16698
16699
16700for ac_header in linux/fb.h
16701do :
16702  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
16703if test "x$ac_cv_header_linux_fb_h" = xyes; then :
16704  cat >>confdefs.h <<_ACEOF
16705#define HAVE_LINUX_FB_H 1
16706_ACEOF
16707 FBDEV=yes
16708fi
16709
16710done
16711
16712 if test "x$FBDEV" = xyes; then
16713  FBDEVHW_TRUE=
16714  FBDEVHW_FALSE='#'
16715else
16716  FBDEVHW_TRUE='#'
16717  FBDEVHW_FALSE=
16718fi
16719
16720
16721for ac_header in asm/mtrr.h
16722do :
16723  ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default"
16724if test "x$ac_cv_header_asm_mtrr_h" = xyes; then :
16725  cat >>confdefs.h <<_ACEOF
16726#define HAVE_ASM_MTRR_H 1
16727_ACEOF
16728 ac_cv_asm_mtrr_h=yes
16729fi
16730
16731done
16732
16733if test "x$ac_cv_asm_mtrr_h" = xyes; then
16734	HAVE_MTRR=yes
16735fi
16736
16737for ac_header in sys/memrange.h
16738do :
16739  ac_fn_c_check_header_mongrel "$LINENO" "sys/memrange.h" "ac_cv_header_sys_memrange_h" "$ac_includes_default"
16740if test "x$ac_cv_header_sys_memrange_h" = xyes; then :
16741  cat >>confdefs.h <<_ACEOF
16742#define HAVE_SYS_MEMRANGE_H 1
16743_ACEOF
16744 ac_cv_memrange_h=yes
16745fi
16746
16747done
16748
16749if test "x$ac_cv_memrange_h" = xyes; then
16750	HAVE_MTRR=yes
16751fi
16752
16753if test "x$HAVE_MTRR" = xyes; then
16754
16755$as_echo "#define HAS_MTRR_SUPPORT 1" >>confdefs.h
16756
16757fi
16758
16759for ac_header in machine/mtrr.h
16760do :
16761  ac_fn_c_check_header_mongrel "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "$ac_includes_default"
16762if test "x$ac_cv_header_machine_mtrr_h" = xyes; then :
16763  cat >>confdefs.h <<_ACEOF
16764#define HAVE_MACHINE_MTRR_H 1
16765_ACEOF
16766 ac_cv_machine_mtrr_h=yes
16767fi
16768
16769done
16770
16771if test "x$ac_cv_machine_mtrr_h" = xyes; then
16772
16773$as_echo "#define HAS_MTRR_BUILTIN 1" >>confdefs.h
16774
16775fi
16776
16777for ac_header in sys/linker.h
16778do :
16779  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
16780"
16781if test "x$ac_cv_header_sys_linker_h" = xyes; then :
16782  cat >>confdefs.h <<_ACEOF
16783#define HAVE_SYS_LINKER_H 1
16784_ACEOF
16785 ac_cv_sys_linker_h=yes
16786else
16787  ac_cv_sys_linker_h=no
16788fi
16789
16790done
16791
16792 if test "x$ac_cv_sys_linker_h" = xyes; then
16793  FREEBSD_KLDLOAD_TRUE=
16794  FREEBSD_KLDLOAD_FALSE='#'
16795else
16796  FREEBSD_KLDLOAD_TRUE='#'
16797  FREEBSD_KLDLOAD_FALSE=
16798fi
16799
16800
16801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
16802$as_echo_n "checking for SYSV IPC... " >&6; }
16803if ${ac_cv_sysv_ipc+:} false; then :
16804  $as_echo_n "(cached) " >&6
16805else
16806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807/* end confdefs.h.  */
16808
16809#include <sys/types.h>
16810#include <sys/ipc.h>
16811#include <sys/shm.h>
16812
16813int
16814main ()
16815{
16816
16817{
16818    int id;
16819    id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
16820    if (id < 0) return -1;
16821    return shmctl(id, IPC_RMID, 0);
16822}
16823  ;
16824  return 0;
16825}
16826_ACEOF
16827if ac_fn_c_try_link "$LINENO"; then :
16828  ac_cv_sysv_ipc=yes
16829else
16830  ac_cv_sysv_ipc=no
16831fi
16832rm -f core conftest.err conftest.$ac_objext \
16833    conftest$ac_exeext conftest.$ac_ext
16834fi
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
16836$as_echo "$ac_cv_sysv_ipc" >&6; }
16837if test "x$ac_cv_sysv_ipc" = xyes; then
16838
16839$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
16840
16841fi
16842
16843if test -c /dev/xf86 ; then
16844
16845$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h
16846
16847fi
16848
16849ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default"
16850if test "x$ac_cv_header_machine_apmvar_h" = xyes; then :
16851
16852	ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
16853if test "x$ac_cv_header_sys_event_h" = xyes; then :
16854  ac_cv_BSD_KQUEUE_APM=yes
16855else
16856  ac_cv_BSD_APM=yes
16857fi
16858
16859
16860fi
16861
16862
16863
16864 if test "x$ac_cv_BSD_APM" = xyes; then
16865  BSD_APM_TRUE=
16866  BSD_APM_FALSE='#'
16867else
16868  BSD_APM_TRUE='#'
16869  BSD_APM_FALSE=
16870fi
16871
16872 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
16873  BSD_KQUEUE_APM_TRUE=
16874  BSD_KQUEUE_APM_FALSE='#'
16875else
16876  BSD_KQUEUE_APM_TRUE='#'
16877  BSD_KQUEUE_APM_FALSE=
16878fi
16879
16880
16881ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
16882if test "x$ac_cv_header_execinfo_h" = xyes; then :
16883
16884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
16885$as_echo_n "checking for backtrace in -lc... " >&6; }
16886if ${ac_cv_lib_c_backtrace+:} false; then :
16887  $as_echo_n "(cached) " >&6
16888else
16889  ac_check_lib_save_LIBS=$LIBS
16890LIBS="-lc  $LIBS"
16891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892/* end confdefs.h.  */
16893
16894/* Override any GCC internal prototype to avoid an error.
16895   Use char because int might match the return type of a GCC
16896   builtin and then its argument prototype would still apply.  */
16897#ifdef __cplusplus
16898extern "C"
16899#endif
16900char backtrace ();
16901int
16902main ()
16903{
16904return backtrace ();
16905  ;
16906  return 0;
16907}
16908_ACEOF
16909if ac_fn_c_try_link "$LINENO"; then :
16910  ac_cv_lib_c_backtrace=yes
16911else
16912  ac_cv_lib_c_backtrace=no
16913fi
16914rm -f core conftest.err conftest.$ac_objext \
16915    conftest$ac_exeext conftest.$ac_ext
16916LIBS=$ac_check_lib_save_LIBS
16917fi
16918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
16919$as_echo "$ac_cv_lib_c_backtrace" >&6; }
16920if test "x$ac_cv_lib_c_backtrace" = xyes; then :
16921
16922
16923$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
16924
16925
16926$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h
16927
16928
16929fi
16930
16931
16932fi
16933
16934
16935
16936old_CFLAGS="$CFLAGS"
16937CFLAGS="-mapcs-frame"
16938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939/* end confdefs.h.  */
16940
16941int
16942main ()
16943{
16944
16945  ;
16946  return 0;
16947}
16948_ACEOF
16949if ac_fn_c_try_compile "$LINENO"; then :
16950  ARM_BACKTRACE_CFLAGS="$CFLAGS"
16951else
16952  ARM_BACKTRACE_CFLAGS=""
16953
16954fi
16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16956CFLAGS="$old_CFLAGS"
16957
16958
16959DEFAULT_INT10="x86emu"
16960
16961
16962case $host_cpu in
16963  alpha*)
16964	ALPHA_VIDEO=yes
16965	case $host_os in
16966	        *freebsd*)	SYS_LIBS=-lio ;;
16967		*netbsd*)
16968$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
16969 ;;
16970	esac
16971	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
16972	;;
16973  arm*)
16974	ARM_VIDEO=yes
16975	;;
16976  i*86)
16977	I386_VIDEO=yes
16978	case $host_os in
16979		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
16980 ;;
16981		*dragonfly*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
16982 ;;
16983		*netbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
16984
16985				SYS_LIBS=-li386
16986				;;
16987		*openbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
16988
16989				SYS_LIBS=-li386
16990				;;
16991	esac
16992        ;;
16993  powerpc*)
16994	PPC_VIDEO=yes
16995	case $host_os in
16996		*freebsd*)	DEFAULT_INT10=stub ;;
16997	esac
16998	;;
16999  sparc*)
17000	SPARC64_VIDEO=yes
17001	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
17002	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17003	;;
17004  x86_64*|amd64*)
17005	I386_VIDEO=yes
17006	case $host_os in
17007		*freebsd*)
17008$as_echo "#define USE_DEV_IO 1" >>confdefs.h
17009 ;;
17010		*dragonfly*)
17011$as_echo "#define USE_DEV_IO 1" >>confdefs.h
17012 ;;
17013		*netbsd*)
17014$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
17015
17016				SYS_LIBS=-lx86_64
17017				;;
17018		*openbsd*)
17019$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
17020
17021				SYS_LIBS=-lamd64
17022				;;
17023	esac
17024	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17025	;;
17026  ia64*)
17027  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17028	;;
17029  s390*)
17030  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
17031	;;
17032esac
17033
17034
17035 if test "x$ALPHA_VIDEO" = xyes; then
17036  ALPHA_VIDEO_TRUE=
17037  ALPHA_VIDEO_FALSE='#'
17038else
17039  ALPHA_VIDEO_TRUE='#'
17040  ALPHA_VIDEO_FALSE=
17041fi
17042
17043 if test "x$ARM_VIDEO" = xyes; then
17044  ARM_VIDEO_TRUE=
17045  ARM_VIDEO_FALSE='#'
17046else
17047  ARM_VIDEO_TRUE='#'
17048  ARM_VIDEO_FALSE=
17049fi
17050
17051 if test "x$I386_VIDEO" = xyes; then
17052  I386_VIDEO_TRUE=
17053  I386_VIDEO_FALSE='#'
17054else
17055  I386_VIDEO_TRUE='#'
17056  I386_VIDEO_FALSE=
17057fi
17058
17059 if test "x$PPC_VIDEO" = xyes; then
17060  PPC_VIDEO_TRUE=
17061  PPC_VIDEO_FALSE='#'
17062else
17063  PPC_VIDEO_TRUE='#'
17064  PPC_VIDEO_FALSE=
17065fi
17066
17067 if test "x$SPARC64_VIDEO" = xyes; then
17068  SPARC64_VIDEO_TRUE=
17069  SPARC64_VIDEO_FALSE='#'
17070else
17071  SPARC64_VIDEO_TRUE='#'
17072  SPARC64_VIDEO_FALSE=
17073fi
17074
17075
17076DRI=no
17077USE_SIGIO_BY_DEFAULT="yes"
17078case $host_os in
17079  *freebsd* | *dragonfly*)
17080	case $host_os in
17081		kfreebsd*-gnu) ;;
17082		*)
17083$as_echo "#define CSRG_BASED 1" >>confdefs.h
17084 ;;
17085	esac
17086
17087$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
17088
17089
17090$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
17091
17092
17093$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h
17094
17095	DRI=yes
17096	;;
17097  *netbsd*)
17098
17099$as_echo "#define CSRG_BASED 1" >>confdefs.h
17100
17101
17102$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
17103
17104
17105$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
17106
17107
17108$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
17109
17110	DRI=yes
17111	;;
17112  *openbsd*)
17113
17114$as_echo "#define CSRG_BASED 1" >>confdefs.h
17115
17116
17117$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
17118
17119
17120$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
17121
17122	;;
17123  *linux*)
17124	DRI=yes
17125	;;
17126  *solaris*)
17127	if test -n "$PKG_CONFIG" && \
17128    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
17129  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
17130  ac_status=$?
17131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17132  test $ac_status = 0; }; then
17133  DRI=yes
17134else
17135  DRI=no
17136fi
17137	# Disable use of SIGIO by default until some system bugs are
17138	# fixed - see Sun/OpenSolaris bug id 6879897
17139	USE_SIGIO_BY_DEFAULT="no"
17140	;;
17141  darwin*)
17142
17143$as_echo "#define CSRG_BASED 1" >>confdefs.h
17144
17145	;;
17146  cygwin*)
17147	CFLAGS="$CFLAGS -DFD_SETSIZE=256"
17148	;;
17149esac
17150
17151PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
17152PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1`
17153if test "x$PVS" = "x"; then
17154	PVS="0"
17155fi
17156
17157VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
17158VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
17159
17160VENDOR_NAME="The X.Org Foundation"
17161VENDOR_NAME_SHORT="X.Org"
17162VENDOR_WEB="http://wiki.x.org"
17163
17164
17165
17166# Check whether --enable-werror was given.
17167if test "${enable_werror+set}" = set; then :
17168  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
17169fi
17170
17171
17172# Check whether --enable-debug was given.
17173if test "${enable_debug+set}" = set; then :
17174  enableval=$enable_debug; DEBUGGING=$enableval
17175else
17176  DEBUGGING=no
17177fi
17178
17179# Check whether --enable-unit-tests was given.
17180if test "${enable_unit_tests+set}" = set; then :
17181  enableval=$enable_unit_tests; UNITTESTS=$enableval
17182else
17183  UNITTESTS=auto
17184fi
17185
17186# Check whether --enable-use-sigio-by-default was given.
17187if test "${enable_use_sigio_by_default+set}" = set; then :
17188  enableval=$enable_use_sigio_by_default; USE_SIGIO_BY_DEFAULT=$enableval
17189fi
17190
17191
17192# Check whether --with-int10 was given.
17193if test "${with_int10+set}" = set; then :
17194  withval=$with_int10; INT10="$withval"
17195else
17196  INT10="$DEFAULT_INT10"
17197fi
17198
17199
17200# Check whether --with-vendor-name was given.
17201if test "${with_vendor_name+set}" = set; then :
17202  withval=$with_vendor_name;  VENDOR_NAME="$withval"
17203fi
17204
17205
17206# Check whether --with-vendor-name-short was given.
17207if test "${with_vendor_name_short+set}" = set; then :
17208  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
17209fi
17210
17211
17212# Check whether --with-vendor-web was given.
17213if test "${with_vendor_web+set}" = set; then :
17214  withval=$with_vendor_web;  VENDOR_WEB="$withval"
17215fi
17216
17217
17218# Check whether --with-module-dir was given.
17219if test "${with_module_dir+set}" = set; then :
17220  withval=$with_module_dir;  moduledir="$withval"
17221else
17222   moduledir="${libdir}/xorg/modules"
17223fi
17224
17225
17226# Check whether --with-log-dir was given.
17227if test "${with_log_dir+set}" = set; then :
17228  withval=$with_log_dir;  logdir="$withval"
17229else
17230   logdir="$localstatedir/log"
17231fi
17232
17233
17234# Check whether --with-builder-addr was given.
17235if test "${with_builder_addr+set}" = set; then :
17236  withval=$with_builder_addr;  BUILDERADDR="$withval"
17237else
17238   BUILDERADDR="xorg@lists.freedesktop.org"
17239fi
17240
17241
17242# Check whether --with-os-name was given.
17243if test "${with_os_name+set}" = set; then :
17244  withval=$with_os_name;  OSNAME="$withval"
17245else
17246   OSNAME=`uname -srm`
17247fi
17248
17249
17250# Check whether --with-os-vendor was given.
17251if test "${with_os_vendor+set}" = set; then :
17252  withval=$with_os_vendor;  OSVENDOR="$withval"
17253else
17254   OSVENDOR=""
17255fi
17256
17257
17258# Check whether --with-builderstring was given.
17259if test "${with_builderstring+set}" = set; then :
17260  withval=$with_builderstring;  BUILDERSTRING="$withval"
17261
17262fi
17263
17264
17265
17266
17267
17268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
17269$as_echo_n "checking for root directory for font files... " >&6; }
17270
17271# Check whether --with-fontrootdir was given.
17272if test "${with_fontrootdir+set}" = set; then :
17273  withval=$with_fontrootdir; FONTROOTDIR="$withval"
17274fi
17275
17276	# if --with-fontrootdir not specified...
17277	if test "x${FONTROOTDIR}" = "x"; then
17278		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
17279	fi
17280	# ...and if pkg-config didn't find fontdir in fontutil.pc...
17281	if test "x${FONTROOTDIR}" = "x"; then
17282		FONTROOTDIR="${datadir}/fonts/X11"
17283	fi
17284
17285	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
17286$as_echo "${FONTROOTDIR}" >&6; }
17287
17288
17289
17290
17291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
17292$as_echo_n "checking for directory for misc files... " >&6; }
17293
17294# Check whether --with-fontmiscdir was given.
17295if test "${with_fontmiscdir+set}" = set; then :
17296  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
17297else
17298  FONTMISCDIR='${FONTROOTDIR}/misc'
17299fi
17300
17301
17302	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
17303$as_echo "${FONTMISCDIR}" >&6; }
17304
17305
17306
17307
17308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
17309$as_echo_n "checking for directory for OTF files... " >&6; }
17310
17311# Check whether --with-fontotfdir was given.
17312if test "${with_fontotfdir+set}" = set; then :
17313  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
17314else
17315  FONTOTFDIR='${FONTROOTDIR}/OTF'
17316fi
17317
17318
17319	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
17320$as_echo "${FONTOTFDIR}" >&6; }
17321
17322
17323
17324
17325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
17326$as_echo_n "checking for directory for TTF files... " >&6; }
17327
17328# Check whether --with-fontttfdir was given.
17329if test "${with_fontttfdir+set}" = set; then :
17330  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
17331else
17332  FONTTTFDIR='${FONTROOTDIR}/TTF'
17333fi
17334
17335
17336	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
17337$as_echo "${FONTTTFDIR}" >&6; }
17338
17339
17340
17341
17342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
17343$as_echo_n "checking for directory for Type1 files... " >&6; }
17344
17345# Check whether --with-fonttype1dir was given.
17346if test "${with_fonttype1dir+set}" = set; then :
17347  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
17348else
17349  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
17350fi
17351
17352
17353	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
17354$as_echo "${FONTTYPE1DIR}" >&6; }
17355
17356
17357
17358
17359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
17360$as_echo_n "checking for directory for 75dpi files... " >&6; }
17361
17362# Check whether --with-font75dpidir was given.
17363if test "${with_font75dpidir+set}" = set; then :
17364  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
17365else
17366  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
17367fi
17368
17369
17370	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
17371$as_echo "${FONT75DPIDIR}" >&6; }
17372
17373
17374
17375
17376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
17377$as_echo_n "checking for directory for 100dpi files... " >&6; }
17378
17379# Check whether --with-font100dpidir was given.
17380if test "${with_font100dpidir+set}" = set; then :
17381  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
17382else
17383  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
17384fi
17385
17386
17387	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
17388$as_echo "${FONT100DPIDIR}" >&6; }
17389
17390
17391DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
17392if test "$cross_compiling" != yes; then
17393	as_ac_File=`$as_echo "ac_cv_file_${sysconfdir}/X11/fontpath.d" | $as_tr_sh`
17394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5
17395$as_echo_n "checking for ${sysconfdir}/X11/fontpath.d... " >&6; }
17396if eval \${$as_ac_File+:} false; then :
17397  $as_echo_n "(cached) " >&6
17398else
17399  test "$cross_compiling" = yes &&
17400  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17401if test -r "${sysconfdir}/X11/fontpath.d"; then
17402  eval "$as_ac_File=yes"
17403else
17404  eval "$as_ac_File=no"
17405fi
17406fi
17407eval ac_res=\$$as_ac_File
17408	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17409$as_echo "$ac_res" >&6; }
17410if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
17411  DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
17412else
17413  case $host_os in
17414			darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
17415		esac
17416fi
17417
17418fi
17419
17420# Check whether --with-default-font-path was given.
17421if test "${with_default_font_path+set}" = set; then :
17422  withval=$with_default_font_path;  FONTPATH="$withval"
17423else
17424   FONTPATH="${DEFAULT_FONT_PATH}"
17425fi
17426
17427
17428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
17429$as_echo_n "checking for default font path... " >&6; }
17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
17431$as_echo "$FONTPATH" >&6; }
17432
17433
17434# Check whether --with-xkb-path was given.
17435if test "${with_xkb_path+set}" = set; then :
17436  withval=$with_xkb_path;  XKBPATH="$withval"
17437else
17438   XKBPATH="${datadir}/X11/xkb"
17439fi
17440
17441
17442# Check whether --with-xkb-output was given.
17443if test "${with_xkb_output+set}" = set; then :
17444  withval=$with_xkb_output;  XKBOUTPUT="$withval"
17445else
17446   XKBOUTPUT="compiled"
17447fi
17448
17449
17450# Check whether --with-default-xkb-rules was given.
17451if test "${with_default_xkb_rules+set}" = set; then :
17452  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
17453else
17454   XKB_DFLT_RULES=""
17455fi
17456
17457
17458# Check whether --with-default-xkb-model was given.
17459if test "${with_default_xkb_model+set}" = set; then :
17460  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
17461else
17462   XKB_DFLT_MODEL="pc105"
17463fi
17464
17465
17466# Check whether --with-default-xkb-layout was given.
17467if test "${with_default_xkb_layout+set}" = set; then :
17468  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
17469else
17470   XKB_DFLT_LAYOUT="us"
17471fi
17472
17473
17474# Check whether --with-default-xkb-variant was given.
17475if test "${with_default_xkb_variant+set}" = set; then :
17476  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
17477else
17478   XKB_DFLT_VARIANT=""
17479fi
17480
17481
17482# Check whether --with-default-xkb-options was given.
17483if test "${with_default_xkb_options+set}" = set; then :
17484  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
17485else
17486   XKB_DFLT_OPTIONS=""
17487fi
17488
17489
17490# Check whether --with-serverconfig-path was given.
17491if test "${with_serverconfig_path+set}" = set; then :
17492  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
17493else
17494   SERVERCONFIG="${libdir}/xorg"
17495fi
17496
17497
17498# Check whether --with-apple-applications-dir was given.
17499if test "${with_apple_applications_dir+set}" = set; then :
17500  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
17501else
17502   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
17503fi
17504
17505
17506
17507# Check whether --with-apple-application-name was given.
17508if test "${with_apple_application_name+set}" = set; then :
17509  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
17510else
17511   APPLE_APPLICATION_NAME="X11"
17512fi
17513
17514
17515
17516# Check whether --with-launchd-id-prefix was given.
17517if test "${with_launchd_id_prefix+set}" = set; then :
17518  withval=$with_launchd_id_prefix;  LAUNCHD_ID_PREFIX="${withval}"
17519else
17520   LAUNCHD_ID_PREFIX="org.x"
17521fi
17522
17523
17524
17525cat >>confdefs.h <<_ACEOF
17526#define LAUNCHD_ID_PREFIX "$LAUNCHD_ID_PREFIX"
17527_ACEOF
17528
17529# Check whether --enable-sparkle was given.
17530if test "${enable_sparkle+set}" = set; then :
17531  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
17532else
17533   XQUARTZ_SPARKLE="no"
17534fi
17535
17536
17537# Check whether --enable-builddocs was given.
17538if test "${enable_builddocs+set}" = set; then :
17539  enableval=$enable_builddocs; BUILDDOCS=$enableval
17540else
17541  BUILDDOCS=no
17542fi
17543
17544# Check whether --enable-install-libxf86config was given.
17545if test "${enable_install_libxf86config+set}" = set; then :
17546  enableval=$enable_install_libxf86config; INSTALL_LIBXF86CONFIG=$enableval
17547else
17548  INSTALL_LIBXF86CONFIG=no
17549fi
17550
17551# Check whether --enable-visibility was given.
17552if test "${enable_visibility+set}" = set; then :
17553  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
17554else
17555  SYMBOL_VISIBILITY=auto
17556fi
17557
17558# Check whether --enable-pc98 was given.
17559if test "${enable_pc98+set}" = set; then :
17560  enableval=$enable_pc98; SUPPORT_PC98=$enableval
17561else
17562  SUPPORT_PC98=auto
17563fi
17564
17565
17566
17567# Check whether --with-dri-driver-path was given.
17568if test "${with_dri_driver_path+set}" = set; then :
17569  withval=$with_dri_driver_path;  DRI_DRIVER_PATH="$withval"
17570else
17571   DRI_DRIVER_PATH="${libdir}/dri"
17572fi
17573
17574# Check whether --enable-aiglx was given.
17575if test "${enable_aiglx+set}" = set; then :
17576  enableval=$enable_aiglx; AIGLX=$enableval
17577else
17578  AIGLX=yes
17579fi
17580
17581# Check whether --enable-glx-tls was given.
17582if test "${enable_glx_tls+set}" = set; then :
17583  enableval=$enable_glx_tls; GLX_USE_TLS=$enableval
17584else
17585  GLX_USE_TLS=no
17586fi
17587
17588
17589# Check whether --enable-registry was given.
17590if test "${enable_registry+set}" = set; then :
17591  enableval=$enable_registry; XREGISTRY=$enableval
17592else
17593  XREGISTRY=yes
17594fi
17595
17596# Check whether --enable-composite was given.
17597if test "${enable_composite+set}" = set; then :
17598  enableval=$enable_composite; COMPOSITE=$enableval
17599else
17600  COMPOSITE=yes
17601fi
17602
17603# Check whether --enable-mitshm was given.
17604if test "${enable_mitshm+set}" = set; then :
17605  enableval=$enable_mitshm; MITSHM=$enableval
17606else
17607  MITSHM=yes
17608fi
17609
17610# Check whether --enable-xres was given.
17611if test "${enable_xres+set}" = set; then :
17612  enableval=$enable_xres; RES=$enableval
17613else
17614  RES=yes
17615fi
17616
17617# Check whether --enable-record was given.
17618if test "${enable_record+set}" = set; then :
17619  enableval=$enable_record; RECORD=$enableval
17620else
17621  RECORD=yes
17622fi
17623
17624# Check whether --enable-xv was given.
17625if test "${enable_xv+set}" = set; then :
17626  enableval=$enable_xv; XV=$enableval
17627else
17628  XV=yes
17629fi
17630
17631# Check whether --enable-xvmc was given.
17632if test "${enable_xvmc+set}" = set; then :
17633  enableval=$enable_xvmc; XVMC=$enableval
17634else
17635  XVMC=yes
17636fi
17637
17638# Check whether --enable-dga was given.
17639if test "${enable_dga+set}" = set; then :
17640  enableval=$enable_dga; DGA=$enableval
17641else
17642  DGA=auto
17643fi
17644
17645# Check whether --enable-screensaver was given.
17646if test "${enable_screensaver+set}" = set; then :
17647  enableval=$enable_screensaver; SCREENSAVER=$enableval
17648else
17649  SCREENSAVER=yes
17650fi
17651
17652# Check whether --enable-xdmcp was given.
17653if test "${enable_xdmcp+set}" = set; then :
17654  enableval=$enable_xdmcp; XDMCP=$enableval
17655else
17656  XDMCP=auto
17657fi
17658
17659# Check whether --enable-xdm-auth-1 was given.
17660if test "${enable_xdm_auth_1+set}" = set; then :
17661  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
17662else
17663  XDMAUTH=auto
17664fi
17665
17666# Check whether --enable-glx was given.
17667if test "${enable_glx+set}" = set; then :
17668  enableval=$enable_glx; GLX=$enableval
17669else
17670  GLX=yes
17671fi
17672
17673# Check whether --enable-dri was given.
17674if test "${enable_dri+set}" = set; then :
17675  enableval=$enable_dri; DRI=$enableval
17676fi
17677
17678# Check whether --enable-dri2 was given.
17679if test "${enable_dri2+set}" = set; then :
17680  enableval=$enable_dri2; DRI2=$enableval
17681else
17682  DRI2=auto
17683fi
17684
17685# Check whether --enable-xinerama was given.
17686if test "${enable_xinerama+set}" = set; then :
17687  enableval=$enable_xinerama; XINERAMA=$enableval
17688else
17689  XINERAMA=yes
17690fi
17691
17692# Check whether --enable-xf86vidmode was given.
17693if test "${enable_xf86vidmode+set}" = set; then :
17694  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
17695else
17696  XF86VIDMODE=auto
17697fi
17698
17699# Check whether --enable-xace was given.
17700if test "${enable_xace+set}" = set; then :
17701  enableval=$enable_xace; XACE=$enableval
17702else
17703  XACE=yes
17704fi
17705
17706# Check whether --enable-xselinux was given.
17707if test "${enable_xselinux+set}" = set; then :
17708  enableval=$enable_xselinux; XSELINUX=$enableval
17709else
17710  XSELINUX=no
17711fi
17712
17713# Check whether --enable-xcsecurity was given.
17714if test "${enable_xcsecurity+set}" = set; then :
17715  enableval=$enable_xcsecurity; XCSECURITY=$enableval
17716else
17717  XCSECURITY=no
17718fi
17719
17720# Check whether --enable-xcalibrate was given.
17721if test "${enable_xcalibrate+set}" = set; then :
17722  enableval=$enable_xcalibrate; XCALIBRATE=$enableval
17723else
17724  XCALIBRATE=no
17725fi
17726
17727# Check whether --enable-tslib was given.
17728if test "${enable_tslib+set}" = set; then :
17729  enableval=$enable_tslib; TSLIB=$enableval
17730else
17731  TSLIB=no
17732fi
17733
17734# Check whether --enable-dbe was given.
17735if test "${enable_dbe+set}" = set; then :
17736  enableval=$enable_dbe; DBE=$enableval
17737else
17738  DBE=yes
17739fi
17740
17741# Check whether --enable-xf86bigfont was given.
17742if test "${enable_xf86bigfont+set}" = set; then :
17743  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
17744else
17745  XF86BIGFONT=no
17746fi
17747
17748# Check whether --enable-dpms was given.
17749if test "${enable_dpms+set}" = set; then :
17750  enableval=$enable_dpms; DPMSExtension=$enableval
17751else
17752  DPMSExtension=yes
17753fi
17754
17755# Check whether --enable-config-udev was given.
17756if test "${enable_config_udev+set}" = set; then :
17757  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
17758else
17759  CONFIG_UDEV=auto
17760fi
17761
17762# Check whether --enable-config-dbus was given.
17763if test "${enable_config_dbus+set}" = set; then :
17764  enableval=$enable_config_dbus; CONFIG_DBUS_API=$enableval
17765else
17766  CONFIG_DBUS_API=no
17767fi
17768
17769# Check whether --enable-config-hal was given.
17770if test "${enable_config_hal+set}" = set; then :
17771  enableval=$enable_config_hal; CONFIG_HAL=$enableval
17772else
17773  CONFIG_HAL=auto
17774fi
17775
17776# Check whether --enable-xfree86-utils was given.
17777if test "${enable_xfree86_utils+set}" = set; then :
17778  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
17779else
17780  XF86UTILS=yes
17781fi
17782
17783# Check whether --enable-xaa was given.
17784if test "${enable_xaa+set}" = set; then :
17785  enableval=$enable_xaa; XAA=$enableval
17786else
17787  XAA=yes
17788fi
17789
17790# Check whether --enable-vgahw was given.
17791if test "${enable_vgahw+set}" = set; then :
17792  enableval=$enable_vgahw; VGAHW=$enableval
17793else
17794  VGAHW=yes
17795fi
17796
17797# Check whether --enable-vbe was given.
17798if test "${enable_vbe+set}" = set; then :
17799  enableval=$enable_vbe; VBE=$enableval
17800else
17801  VBE=yes
17802fi
17803
17804# Check whether --enable-int10-module was given.
17805if test "${enable_int10_module+set}" = set; then :
17806  enableval=$enable_int10_module; INT10MODULE=$enableval
17807else
17808  INT10MODULE=yes
17809fi
17810
17811# Check whether --enable-windowswm was given.
17812if test "${enable_windowswm+set}" = set; then :
17813  enableval=$enable_windowswm; WINDOWSWM=$enableval
17814else
17815  WINDOWSWM=no
17816fi
17817
17818# Check whether --enable-libdrm was given.
17819if test "${enable_libdrm+set}" = set; then :
17820  enableval=$enable_libdrm; DRM=$enableval
17821else
17822  DRM=yes
17823fi
17824
17825
17826# Check whether --enable-xorg was given.
17827if test "${enable_xorg+set}" = set; then :
17828  enableval=$enable_xorg; XORG=$enableval
17829else
17830  XORG=auto
17831fi
17832
17833# Check whether --enable-dmx was given.
17834if test "${enable_dmx+set}" = set; then :
17835  enableval=$enable_dmx; DMX=$enableval
17836else
17837  DMX=auto
17838fi
17839
17840# Check whether --enable-xvfb was given.
17841if test "${enable_xvfb+set}" = set; then :
17842  enableval=$enable_xvfb; XVFB=$enableval
17843else
17844  XVFB=yes
17845fi
17846
17847# Check whether --enable-xnest was given.
17848if test "${enable_xnest+set}" = set; then :
17849  enableval=$enable_xnest; XNEST=$enableval
17850else
17851  XNEST=auto
17852fi
17853
17854# Check whether --enable-xquartz was given.
17855if test "${enable_xquartz+set}" = set; then :
17856  enableval=$enable_xquartz; XQUARTZ=$enableval
17857else
17858  XQUARTZ=auto
17859fi
17860
17861# Check whether --enable-standalone-xpbproxy was given.
17862if test "${enable_standalone_xpbproxy+set}" = set; then :
17863  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
17864else
17865  STANDALONE_XPBPROXY=no
17866fi
17867
17868# Check whether --enable-xwin was given.
17869if test "${enable_xwin+set}" = set; then :
17870  enableval=$enable_xwin; XWIN=$enableval
17871else
17872  XWIN=auto
17873fi
17874
17875# Check whether --enable-kdrive was given.
17876if test "${enable_kdrive+set}" = set; then :
17877  enableval=$enable_kdrive; KDRIVE=$enableval
17878else
17879  KDRIVE=no
17880fi
17881
17882# Check whether --enable-xephyr was given.
17883if test "${enable_xephyr+set}" = set; then :
17884  enableval=$enable_xephyr; XEPHYR=$enableval
17885else
17886  XEPHYR=auto
17887fi
17888
17889# Check whether --enable-xfake was given.
17890if test "${enable_xfake+set}" = set; then :
17891  enableval=$enable_xfake; XFAKE=$enableval
17892else
17893  XFAKE=auto
17894fi
17895
17896# Check whether --enable-xfbdev was given.
17897if test "${enable_xfbdev+set}" = set; then :
17898  enableval=$enable_xfbdev; XFBDEV=$enableval
17899else
17900  XFBDEV=auto
17901fi
17902
17903# Check whether --enable-kdrive-kbd was given.
17904if test "${enable_kdrive_kbd+set}" = set; then :
17905  enableval=$enable_kdrive_kbd; KDRIVE_KBD=$enableval
17906else
17907  KDRIVE_KBD=auto
17908fi
17909
17910# Check whether --enable-kdrive-mouse was given.
17911if test "${enable_kdrive_mouse+set}" = set; then :
17912  enableval=$enable_kdrive_mouse; KDRIVE_MOUSE=$enableval
17913else
17914  KDRIVE_MOUSE=auto
17915fi
17916
17917# Check whether --enable-kdrive-evdev was given.
17918if test "${enable_kdrive_evdev+set}" = set; then :
17919  enableval=$enable_kdrive_evdev; KDRIVE_EVDEV=$enableval
17920else
17921  KDRIVE_EVDEV=auto
17922fi
17923
17924
17925
17926# Check whether --enable-install-setuid was given.
17927if test "${enable_install_setuid+set}" = set; then :
17928  enableval=$enable_install_setuid; SETUID=$enableval
17929else
17930  SETUID=auto
17931fi
17932
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
17934$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; }
17935if test "x$SETUID" = "xauto" ; then
17936	case $host_os in
17937	    cygwin*)		SETUID="no"  ;;
17938	    darwin*)		SETUID="no"  ;;
17939	    *)
17940	   	case $host_cpu in
17941		    sparc)	SETUID="no"  ;;
17942		    *)		SETUID="yes" ;;
17943		esac
17944	esac
17945	if test "x$SETUID" = xyes; then
17946		touch testfile
17947		chown root testfile > /dev/null 2>&1 || SETUID="no"
17948		rm -f testfile
17949	fi
17950fi
17951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
17952$as_echo "$SETUID" >&6; }
17953 if test "x$SETUID" = "xyes"; then
17954  INSTALL_SETUID_TRUE=
17955  INSTALL_SETUID_FALSE='#'
17956else
17957  INSTALL_SETUID_TRUE='#'
17958  INSTALL_SETUID_FALSE=
17959fi
17960
17961
17962
17963
17964# Transport selection macro from xtrans.m4
17965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17966$as_echo_n "checking return type of signal handlers... " >&6; }
17967if ${ac_cv_type_signal+:} false; then :
17968  $as_echo_n "(cached) " >&6
17969else
17970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971/* end confdefs.h.  */
17972#include <sys/types.h>
17973#include <signal.h>
17974
17975int
17976main ()
17977{
17978return *(signal (0, 0)) (0) == 1;
17979  ;
17980  return 0;
17981}
17982_ACEOF
17983if ac_fn_c_try_compile "$LINENO"; then :
17984  ac_cv_type_signal=int
17985else
17986  ac_cv_type_signal=void
17987fi
17988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989fi
17990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17991$as_echo "$ac_cv_type_signal" >&6; }
17992
17993cat >>confdefs.h <<_ACEOF
17994#define RETSIGTYPE $ac_cv_type_signal
17995_ACEOF
17996
17997
17998
17999
18000
18001 case $host_os in
18002	mingw*)	unixdef="no"   ;;
18003	*)	unixdef="yes"  ;;
18004 esac
18005 # Check whether --enable-unix-transport was given.
18006if test "${enable_unix_transport+set}" = set; then :
18007  enableval=$enable_unix_transport; UNIXCONN=$enableval
18008else
18009  UNIXCONN=$unixdef
18010fi
18011
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
18013$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
18014 if test "$UNIXCONN" = "yes"; then
18015
18016$as_echo "#define UNIXCONN 1" >>confdefs.h
18017
18018 fi
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
18020$as_echo "$UNIXCONN" >&6; }
18021 # Check whether --enable-tcp-transport was given.
18022if test "${enable_tcp_transport+set}" = set; then :
18023  enableval=$enable_tcp_transport; TCPCONN=$enableval
18024else
18025  TCPCONN=yes
18026fi
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
18029$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
18031$as_echo "$TCPCONN" >&6; }
18032 if test "$TCPCONN" = "yes"; then
18033
18034$as_echo "#define TCPCONN 1" >>confdefs.h
18035
18036
18037 # SVR4 hides these in libraries other than libc
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18039$as_echo_n "checking for library containing socket... " >&6; }
18040if ${ac_cv_search_socket+:} false; then :
18041  $as_echo_n "(cached) " >&6
18042else
18043  ac_func_search_save_LIBS=$LIBS
18044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045/* end confdefs.h.  */
18046
18047/* Override any GCC internal prototype to avoid an error.
18048   Use char because int might match the return type of a GCC
18049   builtin and then its argument prototype would still apply.  */
18050#ifdef __cplusplus
18051extern "C"
18052#endif
18053char socket ();
18054int
18055main ()
18056{
18057return socket ();
18058  ;
18059  return 0;
18060}
18061_ACEOF
18062for ac_lib in '' socket; do
18063  if test -z "$ac_lib"; then
18064    ac_res="none required"
18065  else
18066    ac_res=-l$ac_lib
18067    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18068  fi
18069  if ac_fn_c_try_link "$LINENO"; then :
18070  ac_cv_search_socket=$ac_res
18071fi
18072rm -f core conftest.err conftest.$ac_objext \
18073    conftest$ac_exeext
18074  if ${ac_cv_search_socket+:} false; then :
18075  break
18076fi
18077done
18078if ${ac_cv_search_socket+:} false; then :
18079
18080else
18081  ac_cv_search_socket=no
18082fi
18083rm conftest.$ac_ext
18084LIBS=$ac_func_search_save_LIBS
18085fi
18086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18087$as_echo "$ac_cv_search_socket" >&6; }
18088ac_res=$ac_cv_search_socket
18089if test "$ac_res" != no; then :
18090  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18091
18092fi
18093
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18095$as_echo_n "checking for library containing gethostbyname... " >&6; }
18096if ${ac_cv_search_gethostbyname+:} false; then :
18097  $as_echo_n "(cached) " >&6
18098else
18099  ac_func_search_save_LIBS=$LIBS
18100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101/* end confdefs.h.  */
18102
18103/* Override any GCC internal prototype to avoid an error.
18104   Use char because int might match the return type of a GCC
18105   builtin and then its argument prototype would still apply.  */
18106#ifdef __cplusplus
18107extern "C"
18108#endif
18109char gethostbyname ();
18110int
18111main ()
18112{
18113return gethostbyname ();
18114  ;
18115  return 0;
18116}
18117_ACEOF
18118for ac_lib in '' nsl; do
18119  if test -z "$ac_lib"; then
18120    ac_res="none required"
18121  else
18122    ac_res=-l$ac_lib
18123    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18124  fi
18125  if ac_fn_c_try_link "$LINENO"; then :
18126  ac_cv_search_gethostbyname=$ac_res
18127fi
18128rm -f core conftest.err conftest.$ac_objext \
18129    conftest$ac_exeext
18130  if ${ac_cv_search_gethostbyname+:} false; then :
18131  break
18132fi
18133done
18134if ${ac_cv_search_gethostbyname+:} false; then :
18135
18136else
18137  ac_cv_search_gethostbyname=no
18138fi
18139rm conftest.$ac_ext
18140LIBS=$ac_func_search_save_LIBS
18141fi
18142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18143$as_echo "$ac_cv_search_gethostbyname" >&6; }
18144ac_res=$ac_cv_search_gethostbyname
18145if test "$ac_res" != no; then :
18146  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18147
18148fi
18149
18150 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
18151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
18152$as_echo_n "checking for main in -lws2_32... " >&6; }
18153if ${ac_cv_lib_ws2_32_main+:} false; then :
18154  $as_echo_n "(cached) " >&6
18155else
18156  ac_check_lib_save_LIBS=$LIBS
18157LIBS="-lws2_32  $LIBS"
18158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159/* end confdefs.h.  */
18160
18161
18162int
18163main ()
18164{
18165return main ();
18166  ;
18167  return 0;
18168}
18169_ACEOF
18170if ac_fn_c_try_link "$LINENO"; then :
18171  ac_cv_lib_ws2_32_main=yes
18172else
18173  ac_cv_lib_ws2_32_main=no
18174fi
18175rm -f core conftest.err conftest.$ac_objext \
18176    conftest$ac_exeext conftest.$ac_ext
18177LIBS=$ac_check_lib_save_LIBS
18178fi
18179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
18180$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
18181if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
18182  cat >>confdefs.h <<_ACEOF
18183#define HAVE_LIBWS2_32 1
18184_ACEOF
18185
18186  LIBS="-lws2_32 $LIBS"
18187
18188fi
18189ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
18190
18191 fi
18192
18193 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
18194 # Check whether --enable-ipv6 was given.
18195if test "${enable_ipv6+set}" = set; then :
18196  enableval=$enable_ipv6; IPV6CONN=$enableval
18197else
18198  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18199if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18200  IPV6CONN=yes
18201else
18202  IPV6CONN=no
18203fi
18204
18205fi
18206
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
18208$as_echo_n "checking if IPv6 support should be built... " >&6; }
18209 if test "$IPV6CONN" = "yes"; then
18210
18211$as_echo "#define IPv6 1" >>confdefs.h
18212
18213 fi
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
18215$as_echo "$IPV6CONN" >&6; }
18216
18217 # 4.3BSD-Reno added a new member to struct sockaddr_in
18218 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
18219#include <sys/types.h>
18220#include <sys/socket.h>
18221#include <netinet/in.h>
18222
18223"
18224if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
18225
18226$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
18227
18228fi
18229
18230
18231 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
18232 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18233$ac_includes_default
18234#include <sys/socket.h>
18235"
18236if test "x$ac_cv_type_socklen_t" = xyes; then :
18237
18238cat >>confdefs.h <<_ACEOF
18239#define HAVE_SOCKLEN_T 1
18240_ACEOF
18241
18242
18243fi
18244
18245
18246
18247 fi
18248 case $host_os in
18249	solaris*|sco*|sysv4*)	localdef="yes" ;;
18250	*)			localdef="no"  ;;
18251 esac
18252 # Check whether --enable-local-transport was given.
18253if test "${enable_local_transport+set}" = set; then :
18254  enableval=$enable_local_transport; LOCALCONN=$enableval
18255else
18256  LOCALCONN=$localdef
18257fi
18258
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
18260$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
18262$as_echo "$LOCALCONN" >&6; }
18263 if test "$LOCALCONN" = "yes"; then
18264
18265$as_echo "#define LOCALCONN 1" >>confdefs.h
18266
18267 fi
18268
18269
18270
18271# Secure RPC detection macro from xtrans.m4
18272
18273 # Check whether --enable-secure-rpc was given.
18274if test "${enable_secure_rpc+set}" = set; then :
18275  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
18276else
18277  SECURE_RPC="try"
18278fi
18279
18280
18281 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
18282	FOUND_SECURE_RPC="no"
18283	for ac_func in authdes_seccreate authdes_create
18284do :
18285  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18286ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18287if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18288  cat >>confdefs.h <<_ACEOF
18289#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18290_ACEOF
18291 FOUND_SECURE_RPC="yes"
18292fi
18293done
18294
18295	if test "x$FOUND_SECURE_RPC" = "xno" ; then
18296		if test "x$SECURE_RPC" = "xyes" ; then
18297	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
18298		fi
18299		SECURE_RPC="no"
18300	else
18301				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
18302$as_echo_n "checking for library containing getsecretkey... " >&6; }
18303if ${ac_cv_search_getsecretkey+:} false; then :
18304  $as_echo_n "(cached) " >&6
18305else
18306  ac_func_search_save_LIBS=$LIBS
18307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308/* end confdefs.h.  */
18309
18310/* Override any GCC internal prototype to avoid an error.
18311   Use char because int might match the return type of a GCC
18312   builtin and then its argument prototype would still apply.  */
18313#ifdef __cplusplus
18314extern "C"
18315#endif
18316char getsecretkey ();
18317int
18318main ()
18319{
18320return getsecretkey ();
18321  ;
18322  return 0;
18323}
18324_ACEOF
18325for ac_lib in '' rpcsvc; do
18326  if test -z "$ac_lib"; then
18327    ac_res="none required"
18328  else
18329    ac_res=-l$ac_lib
18330    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18331  fi
18332  if ac_fn_c_try_link "$LINENO"; then :
18333  ac_cv_search_getsecretkey=$ac_res
18334fi
18335rm -f core conftest.err conftest.$ac_objext \
18336    conftest$ac_exeext
18337  if ${ac_cv_search_getsecretkey+:} false; then :
18338  break
18339fi
18340done
18341if ${ac_cv_search_getsecretkey+:} false; then :
18342
18343else
18344  ac_cv_search_getsecretkey=no
18345fi
18346rm conftest.$ac_ext
18347LIBS=$ac_func_search_save_LIBS
18348fi
18349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
18350$as_echo "$ac_cv_search_getsecretkey" >&6; }
18351ac_res=$ac_cv_search_getsecretkey
18352if test "$ac_res" != no; then :
18353  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18354
18355fi
18356
18357		SECURE_RPC="yes"
18358	fi
18359 fi
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
18361$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
18362 if test "x$SECURE_RPC" = "xyes" ; then
18363
18364$as_echo "#define SECURE_RPC 1" >>confdefs.h
18365
18366 fi
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
18368$as_echo "$SECURE_RPC" >&6; }
18369
18370 if test "x$SECURE_RPC" = xyes; then
18371  SECURE_RPC_TRUE=
18372  SECURE_RPC_FALSE='#'
18373else
18374  SECURE_RPC_TRUE='#'
18375  SECURE_RPC_FALSE=
18376fi
18377
18378
18379 if test "x$INT10" = xvm86; then
18380  INT10_VM86_TRUE=
18381  INT10_VM86_FALSE='#'
18382else
18383  INT10_VM86_TRUE='#'
18384  INT10_VM86_FALSE=
18385fi
18386
18387 if test "x$INT10" = xx86emu; then
18388  INT10_X86EMU_TRUE=
18389  INT10_X86EMU_FALSE='#'
18390else
18391  INT10_X86EMU_TRUE='#'
18392  INT10_X86EMU_FALSE=
18393fi
18394
18395 if test "x$INT10" = xstub; then
18396  INT10_STUB_TRUE=
18397  INT10_STUB_FALSE='#'
18398else
18399  INT10_STUB_TRUE='#'
18400  INT10_STUB_FALSE=
18401fi
18402
18403if test "x$INT10" = xyes; then
18404		for ac_header in sys/vm86.h sys/io.h
18405do :
18406  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18407ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18408if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18409  cat >>confdefs.h <<_ACEOF
18410#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18411_ACEOF
18412
18413fi
18414
18415done
18416
18417fi
18418
18419 if test "x$BUILDDOCS" = xyes; then
18420  BUILDDOCS_TRUE=
18421  BUILDDOCS_FALSE='#'
18422else
18423  BUILDDOCS_TRUE='#'
18424  BUILDDOCS_FALSE=
18425fi
18426
18427
18428
18429# Check whether --enable-devel-docs was given.
18430if test "${enable_devel_docs+set}" = set; then :
18431  enableval=$enable_devel_docs; build_devel_docs=$enableval
18432else
18433  build_devel_docs=yes
18434fi
18435
18436
18437 if test x$build_devel_docs = xyes; then
18438  ENABLE_DEVEL_DOCS_TRUE=
18439  ENABLE_DEVEL_DOCS_FALSE='#'
18440else
18441  ENABLE_DEVEL_DOCS_TRUE='#'
18442  ENABLE_DEVEL_DOCS_FALSE=
18443fi
18444
18445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18446$as_echo_n "checking whether to build developer documentation... " >&6; }
18447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18448$as_echo "$build_devel_docs" >&6; }
18449
18450
18451
18452
18453
18454# Check whether --with-xmlto was given.
18455if test "${with_xmlto+set}" = set; then :
18456  withval=$with_xmlto; use_xmlto=$withval
18457else
18458  use_xmlto=auto
18459fi
18460
18461
18462
18463if test "x$use_xmlto" = x"auto"; then
18464   # Extract the first word of "xmlto", so it can be a program name with args.
18465set dummy xmlto; ac_word=$2
18466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467$as_echo_n "checking for $ac_word... " >&6; }
18468if ${ac_cv_path_XMLTO+:} false; then :
18469  $as_echo_n "(cached) " >&6
18470else
18471  case $XMLTO in
18472  [\\/]* | ?:[\\/]*)
18473  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18474  ;;
18475  *)
18476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18477for as_dir in $PATH
18478do
18479  IFS=$as_save_IFS
18480  test -z "$as_dir" && as_dir=.
18481    for ac_exec_ext in '' $ac_executable_extensions; do
18482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18483    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18484    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18485    break 2
18486  fi
18487done
18488  done
18489IFS=$as_save_IFS
18490
18491  ;;
18492esac
18493fi
18494XMLTO=$ac_cv_path_XMLTO
18495if test -n "$XMLTO"; then
18496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18497$as_echo "$XMLTO" >&6; }
18498else
18499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500$as_echo "no" >&6; }
18501fi
18502
18503
18504   if test "x$XMLTO" = "x"; then
18505        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18506$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18507	have_xmlto=no
18508   else
18509        have_xmlto=yes
18510   fi
18511elif test "x$use_xmlto" = x"yes" ; then
18512   # Extract the first word of "xmlto", so it can be a program name with args.
18513set dummy xmlto; ac_word=$2
18514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18515$as_echo_n "checking for $ac_word... " >&6; }
18516if ${ac_cv_path_XMLTO+:} false; then :
18517  $as_echo_n "(cached) " >&6
18518else
18519  case $XMLTO in
18520  [\\/]* | ?:[\\/]*)
18521  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18522  ;;
18523  *)
18524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18525for as_dir in $PATH
18526do
18527  IFS=$as_save_IFS
18528  test -z "$as_dir" && as_dir=.
18529    for ac_exec_ext in '' $ac_executable_extensions; do
18530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18531    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18533    break 2
18534  fi
18535done
18536  done
18537IFS=$as_save_IFS
18538
18539  ;;
18540esac
18541fi
18542XMLTO=$ac_cv_path_XMLTO
18543if test -n "$XMLTO"; then
18544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18545$as_echo "$XMLTO" >&6; }
18546else
18547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18548$as_echo "no" >&6; }
18549fi
18550
18551
18552   if test "x$XMLTO" = "x"; then
18553        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18554   fi
18555   have_xmlto=yes
18556elif test "x$use_xmlto" = x"no" ; then
18557   if test "x$XMLTO" != "x"; then
18558      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18559$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18560   fi
18561   have_xmlto=no
18562else
18563   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18564fi
18565
18566# Test for a minimum version of xmlto, if provided.
18567if test "$have_xmlto" = yes; then
18568    # scrape the xmlto version
18569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18570$as_echo_n "checking the xmlto version... " >&6; }
18571    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18573$as_echo "$xmlto_version" >&6; }
18574    as_arg_v1=$xmlto_version
18575as_arg_v2=0.0.20
18576awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18577case $? in #(
18578  1) :
18579    if test "x$use_xmlto" = xauto; then
18580            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
18581$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
18582            have_xmlto=no
18583        else
18584            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
18585        fi ;; #(
18586  0) :
18587     ;; #(
18588  2) :
18589     ;; #(
18590  *) :
18591     ;;
18592esac
18593fi
18594
18595# Test for the ability of xmlto to generate a text target
18596have_xmlto_text=no
18597cat > conftest.xml << "EOF"
18598EOF
18599if test "$have_xmlto" = yes; then :
18600  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18601  have_xmlto_text=yes
18602else
18603  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18604$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18605fi
18606fi
18607rm -f conftest.xml
18608 if test $have_xmlto_text = yes; then
18609  HAVE_XMLTO_TEXT_TRUE=
18610  HAVE_XMLTO_TEXT_FALSE='#'
18611else
18612  HAVE_XMLTO_TEXT_TRUE='#'
18613  HAVE_XMLTO_TEXT_FALSE=
18614fi
18615
18616 if test "$have_xmlto" = yes; then
18617  HAVE_XMLTO_TRUE=
18618  HAVE_XMLTO_FALSE='#'
18619else
18620  HAVE_XMLTO_TRUE='#'
18621  HAVE_XMLTO_FALSE=
18622fi
18623
18624
18625
18626
18627
18628
18629# Check whether --with-fop was given.
18630if test "${with_fop+set}" = set; then :
18631  withval=$with_fop; use_fop=$withval
18632else
18633  use_fop=auto
18634fi
18635
18636
18637
18638if test "x$use_fop" = x"auto"; then
18639   # Extract the first word of "fop", so it can be a program name with args.
18640set dummy fop; ac_word=$2
18641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18642$as_echo_n "checking for $ac_word... " >&6; }
18643if ${ac_cv_path_FOP+:} false; then :
18644  $as_echo_n "(cached) " >&6
18645else
18646  case $FOP in
18647  [\\/]* | ?:[\\/]*)
18648  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18649  ;;
18650  *)
18651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18652for as_dir in $PATH
18653do
18654  IFS=$as_save_IFS
18655  test -z "$as_dir" && as_dir=.
18656    for ac_exec_ext in '' $ac_executable_extensions; do
18657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18658    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18660    break 2
18661  fi
18662done
18663  done
18664IFS=$as_save_IFS
18665
18666  ;;
18667esac
18668fi
18669FOP=$ac_cv_path_FOP
18670if test -n "$FOP"; then
18671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18672$as_echo "$FOP" >&6; }
18673else
18674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675$as_echo "no" >&6; }
18676fi
18677
18678
18679   if test "x$FOP" = "x"; then
18680        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18681$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18682	have_fop=no
18683   else
18684        have_fop=yes
18685   fi
18686elif test "x$use_fop" = x"yes" ; then
18687   # Extract the first word of "fop", so it can be a program name with args.
18688set dummy fop; ac_word=$2
18689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18690$as_echo_n "checking for $ac_word... " >&6; }
18691if ${ac_cv_path_FOP+:} false; then :
18692  $as_echo_n "(cached) " >&6
18693else
18694  case $FOP in
18695  [\\/]* | ?:[\\/]*)
18696  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18697  ;;
18698  *)
18699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700for as_dir in $PATH
18701do
18702  IFS=$as_save_IFS
18703  test -z "$as_dir" && as_dir=.
18704    for ac_exec_ext in '' $ac_executable_extensions; do
18705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18706    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18708    break 2
18709  fi
18710done
18711  done
18712IFS=$as_save_IFS
18713
18714  ;;
18715esac
18716fi
18717FOP=$ac_cv_path_FOP
18718if test -n "$FOP"; then
18719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18720$as_echo "$FOP" >&6; }
18721else
18722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723$as_echo "no" >&6; }
18724fi
18725
18726
18727   if test "x$FOP" = "x"; then
18728        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18729   fi
18730   have_fop=yes
18731elif test "x$use_fop" = x"no" ; then
18732   if test "x$FOP" != "x"; then
18733      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18734$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18735   fi
18736   have_fop=no
18737else
18738   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18739fi
18740 if test "$have_fop" = yes; then
18741  HAVE_FOP_TRUE=
18742  HAVE_FOP_FALSE='#'
18743else
18744  HAVE_FOP_TRUE='#'
18745  HAVE_FOP_FALSE=
18746fi
18747
18748
18749
18750 if test "x$INSTALL_LIBXF86CONFIG" = xyes; then
18751  INSTALL_LIBXF86CONFIG_TRUE=
18752  INSTALL_LIBXF86CONFIG_FALSE='#'
18753else
18754  INSTALL_LIBXF86CONFIG_TRUE='#'
18755  INSTALL_LIBXF86CONFIG_FALSE=
18756fi
18757
18758
18759case $host_os in
18760	cygwin*)
18761		DGA=no
18762		DRI2=no
18763		XF86VIDMODE=no
18764		XSELINUX=no
18765		XV=no
18766		;;
18767	darwin*)
18768		DRI2=no
18769
18770		if test x$XQUARTZ = xauto; then
18771			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
18772$as_echo_n "checking whether to build Xquartz... " >&6; }
18773if ${xorg_cv_Carbon_framework+:} false; then :
18774  $as_echo_n "(cached) " >&6
18775else
18776
18777		 		save_LDFLAGS=$LDFLAGS
18778				LDFLAGS="$LDFLAGS -framework Carbon"
18779				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780/* end confdefs.h.  */
18781char FSFindFolder(); int main() { FSFindFolder(); return 0;}
18782_ACEOF
18783if ac_fn_c_try_link "$LINENO"; then :
18784  xorg_cv_Carbon_framework=yes
18785else
18786  xorg_cv_Carbon_framework=no
18787fi
18788rm -f core conftest.err conftest.$ac_objext \
18789    conftest$ac_exeext conftest.$ac_ext
18790			LDFLAGS=$save_LDFLAGS
18791fi
18792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
18793$as_echo "$xorg_cv_Carbon_framework" >&6; }
18794
18795			if test "X$xorg_cv_Carbon_framework" = Xyes; then
18796				XQUARTZ=yes
18797			else
18798				XQUARTZ=no
18799			fi
18800		fi
18801
18802		if test "x$XQUARTZ" = xyes ; then
18803			XQUARTZ=yes
18804			XVFB=no
18805			XNEST=no
18806
18807			COMPOSITE=no
18808			DGA=no
18809			DPMSExtension=no
18810			XF86VIDMODE=no
18811		fi
18812		;;
18813	*) XQUARTZ=no ;;
18814esac
18815
18816XEXT_INC='-I$(top_srcdir)/Xext'
18817XEXT_LIB='$(top_builddir)/Xext/libXext.la'
18818XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
18819
18820VIDEOPROTO="videoproto"
18821COMPOSITEPROTO="compositeproto >= 0.4"
18822RECORDPROTO="recordproto >= 1.13.99.1"
18823SCRNSAVERPROTO="scrnsaverproto >= 1.1"
18824RESOURCEPROTO="resourceproto"
18825DRIPROTO="xf86driproto >= 2.1.0"
18826DRI2PROTO="dri2proto >= 2.3"
18827XINERAMAPROTO="xineramaproto"
18828BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
18829XCALIBRATEPROTO="xcalibrateproto"
18830DGAPROTO="xf86dgaproto >= 2.0.99.1"
18831GLPROTO="glproto >= 1.4.10"
18832DMXPROTO="dmxproto >= 2.2.99.1"
18833VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
18834WINDOWSWMPROTO="windowswmproto"
18835APPLEWMPROTO="applewmproto >= 1.4"
18836
18837SDK_REQUIRED_MODULES="xproto >= 7.0.17 randrproto >= 1.2.99.3 renderproto >= 0.11 xextproto >= 7.0.99.3 inputproto >= 1.9.99.902 kbproto >= 1.0.3 fontsproto"
18838# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
18839
18840
18841LIBAPPLEWM="applewm >= 1.4"
18842LIBDMX="dmx >= 1.0.99.1"
18843LIBDRI="dri >= 7.8.0"
18844LIBDRM="libdrm >= 2.3.0"
18845LIBGL="gl >= 7.1.0"
18846LIBXEXT="xext >= 1.0.99.4"
18847LIBXFONT="xfont >= 1.4.2"
18848LIBXI="xi >= 1.2.99.1"
18849LIBXTST="xtst >= 1.0.99.2"
18850LIBPCIACCESS="pciaccess >= 0.8.0"
18851LIBGLIB="glib-2.0 >= 2.16"
18852LIBUDEV="libudev >= 143"
18853LIBSELINUX="libselinux >= 2.0.86"
18854LIBDBUS="dbus-1 >= 1.0"
18855LIBPIXMAN="pixman-1 >= 0.15.20"
18856
18857
18858pkg_failed=no
18859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
18860$as_echo_n "checking for PIXMAN... " >&6; }
18861
18862if test -n "$PIXMAN_CFLAGS"; then
18863    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
18864 elif test -n "$PKG_CONFIG"; then
18865    if test -n "$PKG_CONFIG" && \
18866    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
18867  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
18868  ac_status=$?
18869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18870  test $ac_status = 0; }; then
18871  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
18872else
18873  pkg_failed=yes
18874fi
18875 else
18876    pkg_failed=untried
18877fi
18878if test -n "$PIXMAN_LIBS"; then
18879    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
18880 elif test -n "$PKG_CONFIG"; then
18881    if test -n "$PKG_CONFIG" && \
18882    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
18883  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
18884  ac_status=$?
18885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18886  test $ac_status = 0; }; then
18887  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
18888else
18889  pkg_failed=yes
18890fi
18891 else
18892    pkg_failed=untried
18893fi
18894
18895
18896
18897if test $pkg_failed = yes; then
18898   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18899$as_echo "no" >&6; }
18900
18901if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18902        _pkg_short_errors_supported=yes
18903else
18904        _pkg_short_errors_supported=no
18905fi
18906        if test $_pkg_short_errors_supported = yes; then
18907	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPIXMAN" 2>&1`
18908        else
18909	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPIXMAN" 2>&1`
18910        fi
18911	# Put the nasty error message in config.log where it belongs
18912	echo "$PIXMAN_PKG_ERRORS" >&5
18913
18914	as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
18915
18916$PIXMAN_PKG_ERRORS
18917
18918Consider adjusting the PKG_CONFIG_PATH environment variable if you
18919installed software in a non-standard prefix.
18920
18921Alternatively, you may set the environment variables PIXMAN_CFLAGS
18922and PIXMAN_LIBS to avoid the need to call pkg-config.
18923See the pkg-config man page for more details." "$LINENO" 5
18924elif test $pkg_failed = untried; then
18925     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18926$as_echo "no" >&6; }
18927	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18929as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18930is in your PATH or set the PKG_CONFIG environment variable to the full
18931path to pkg-config.
18932
18933Alternatively, you may set the environment variables PIXMAN_CFLAGS
18934and PIXMAN_LIBS to avoid the need to call pkg-config.
18935See the pkg-config man page for more details.
18936
18937To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18938See \`config.log' for more details" "$LINENO" 5; }
18939else
18940	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
18941	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
18942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18943$as_echo "yes" >&6; }
18944
18945fi
18946REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
18947
18948REQUIRED_MODULES="fixesproto >= 4.1 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.2.2 bigreqsproto >= 1.1.0 $SDK_REQUIRED_MODULES"
18949
18950if test "x$CONFIG_UDEV" = xyes &&
18951 { test "x$CONFIG_DBUS_API" = xyes || test "x$CONFIG_HAL" = xyes; }; then
18952	as_fn_error $? "Hotplugging through both libudev and dbus/hal not allowed" "$LINENO" 5
18953fi
18954
18955
18956pkg_failed=no
18957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
18958$as_echo_n "checking for UDEV... " >&6; }
18959
18960if test -n "$UDEV_CFLAGS"; then
18961    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
18962 elif test -n "$PKG_CONFIG"; then
18963    if test -n "$PKG_CONFIG" && \
18964    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
18965  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
18966  ac_status=$?
18967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18968  test $ac_status = 0; }; then
18969  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
18970else
18971  pkg_failed=yes
18972fi
18973 else
18974    pkg_failed=untried
18975fi
18976if test -n "$UDEV_LIBS"; then
18977    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
18978 elif test -n "$PKG_CONFIG"; then
18979    if test -n "$PKG_CONFIG" && \
18980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
18981  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
18982  ac_status=$?
18983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18984  test $ac_status = 0; }; then
18985  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
18986else
18987  pkg_failed=yes
18988fi
18989 else
18990    pkg_failed=untried
18991fi
18992
18993
18994
18995if test $pkg_failed = yes; then
18996   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997$as_echo "no" >&6; }
18998
18999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19000        _pkg_short_errors_supported=yes
19001else
19002        _pkg_short_errors_supported=no
19003fi
19004        if test $_pkg_short_errors_supported = yes; then
19005	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBUDEV" 2>&1`
19006        else
19007	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBUDEV" 2>&1`
19008        fi
19009	# Put the nasty error message in config.log where it belongs
19010	echo "$UDEV_PKG_ERRORS" >&5
19011
19012	HAVE_LIBUDEV=no
19013elif test $pkg_failed = untried; then
19014     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015$as_echo "no" >&6; }
19016	HAVE_LIBUDEV=no
19017else
19018	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
19019	UDEV_LIBS=$pkg_cv_UDEV_LIBS
19020        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19021$as_echo "yes" >&6; }
19022	HAVE_LIBUDEV=yes
19023fi
19024if test "x$CONFIG_UDEV" = xauto; then
19025	CONFIG_UDEV="$HAVE_LIBUDEV"
19026fi
19027 if test "x$CONFIG_UDEV" = xyes; then
19028  CONFIG_UDEV_TRUE=
19029  CONFIG_UDEV_FALSE='#'
19030else
19031  CONFIG_UDEV_TRUE='#'
19032  CONFIG_UDEV_FALSE=
19033fi
19034
19035if test "x$CONFIG_UDEV" = xyes; then
19036	CONFIG_DBUS_API=no
19037	CONFIG_HAL=no
19038	if ! test "x$HAVE_LIBUDEV" = xyes; then
19039		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
19040	fi
19041
19042$as_echo "#define CONFIG_UDEV 1" >>confdefs.h
19043
19044fi
19045
19046
19047pkg_failed=no
19048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
19049$as_echo_n "checking for DBUS... " >&6; }
19050
19051if test -n "$DBUS_CFLAGS"; then
19052    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
19053 elif test -n "$PKG_CONFIG"; then
19054    if test -n "$PKG_CONFIG" && \
19055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
19056  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
19057  ac_status=$?
19058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19059  test $ac_status = 0; }; then
19060  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
19061else
19062  pkg_failed=yes
19063fi
19064 else
19065    pkg_failed=untried
19066fi
19067if test -n "$DBUS_LIBS"; then
19068    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
19069 elif test -n "$PKG_CONFIG"; then
19070    if test -n "$PKG_CONFIG" && \
19071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
19072  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
19073  ac_status=$?
19074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19075  test $ac_status = 0; }; then
19076  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
19077else
19078  pkg_failed=yes
19079fi
19080 else
19081    pkg_failed=untried
19082fi
19083
19084
19085
19086if test $pkg_failed = yes; then
19087   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19088$as_echo "no" >&6; }
19089
19090if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19091        _pkg_short_errors_supported=yes
19092else
19093        _pkg_short_errors_supported=no
19094fi
19095        if test $_pkg_short_errors_supported = yes; then
19096	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDBUS" 2>&1`
19097        else
19098	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDBUS" 2>&1`
19099        fi
19100	# Put the nasty error message in config.log where it belongs
19101	echo "$DBUS_PKG_ERRORS" >&5
19102
19103	HAVE_DBUS=no
19104elif test $pkg_failed = untried; then
19105     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19106$as_echo "no" >&6; }
19107	HAVE_DBUS=no
19108else
19109	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
19110	DBUS_LIBS=$pkg_cv_DBUS_LIBS
19111        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19112$as_echo "yes" >&6; }
19113	HAVE_DBUS=yes
19114fi
19115if test "x$HAVE_DBUS" = xyes; then
19116
19117$as_echo "#define HAVE_DBUS 1" >>confdefs.h
19118
19119fi
19120 if test "x$HAVE_DBUS" = xyes; then
19121  HAVE_DBUS_TRUE=
19122  HAVE_DBUS_FALSE='#'
19123else
19124  HAVE_DBUS_TRUE='#'
19125  HAVE_DBUS_FALSE=
19126fi
19127
19128
19129if test "x$CONFIG_DBUS_API" = xauto; then
19130	CONFIG_DBUS_API="$HAVE_DBUS"
19131fi
19132if test "x$CONFIG_DBUS_API" = xyes; then
19133	if ! test "x$HAVE_DBUS" = xyes; then
19134		as_fn_error $? "D-Bus configuration API requested, but D-Bus is not installed." "$LINENO" 5
19135	fi
19136
19137
19138$as_echo "#define CONFIG_DBUS_API 1" >>confdefs.h
19139
19140	CONFIG_NEED_DBUS="yes"
19141fi
19142 if test "x$CONFIG_DBUS_API" = xyes; then
19143  CONFIG_DBUS_API_TRUE=
19144  CONFIG_DBUS_API_FALSE='#'
19145else
19146  CONFIG_DBUS_API_TRUE='#'
19147  CONFIG_DBUS_API_FALSE=
19148fi
19149
19150
19151
19152pkg_failed=no
19153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
19154$as_echo_n "checking for HAL... " >&6; }
19155
19156if test -n "$HAL_CFLAGS"; then
19157    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
19158 elif test -n "$PKG_CONFIG"; then
19159    if test -n "$PKG_CONFIG" && \
19160    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
19161  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
19162  ac_status=$?
19163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19164  test $ac_status = 0; }; then
19165  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
19166else
19167  pkg_failed=yes
19168fi
19169 else
19170    pkg_failed=untried
19171fi
19172if test -n "$HAL_LIBS"; then
19173    pkg_cv_HAL_LIBS="$HAL_LIBS"
19174 elif test -n "$PKG_CONFIG"; then
19175    if test -n "$PKG_CONFIG" && \
19176    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
19177  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
19178  ac_status=$?
19179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19180  test $ac_status = 0; }; then
19181  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
19182else
19183  pkg_failed=yes
19184fi
19185 else
19186    pkg_failed=untried
19187fi
19188
19189
19190
19191if test $pkg_failed = yes; then
19192   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193$as_echo "no" >&6; }
19194
19195if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19196        _pkg_short_errors_supported=yes
19197else
19198        _pkg_short_errors_supported=no
19199fi
19200        if test $_pkg_short_errors_supported = yes; then
19201	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hal" 2>&1`
19202        else
19203	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hal" 2>&1`
19204        fi
19205	# Put the nasty error message in config.log where it belongs
19206	echo "$HAL_PKG_ERRORS" >&5
19207
19208	HAVE_HAL=no
19209elif test $pkg_failed = untried; then
19210     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211$as_echo "no" >&6; }
19212	HAVE_HAL=no
19213else
19214	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
19215	HAL_LIBS=$pkg_cv_HAL_LIBS
19216        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19217$as_echo "yes" >&6; }
19218	HAVE_HAL=yes
19219fi
19220if test "x$CONFIG_HAL" = xauto; then
19221	CONFIG_HAL="$HAVE_HAL"
19222fi
19223if test "x$CONFIG_HAL" = xyes; then
19224	if ! test "x$HAVE_HAL" = xyes; then
19225		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
19226	fi
19227
19228
19229$as_echo "#define CONFIG_HAL 1" >>confdefs.h
19230
19231	CONFIG_NEED_DBUS="yes"
19232fi
19233 if test "x$CONFIG_HAL" = xyes; then
19234  CONFIG_HAL_TRUE=
19235  CONFIG_HAL_FALSE='#'
19236else
19237  CONFIG_HAL_TRUE='#'
19238  CONFIG_HAL_FALSE=
19239fi
19240
19241
19242if test "x$CONFIG_NEED_DBUS" = xyes; then
19243
19244$as_echo "#define CONFIG_NEED_DBUS 1" >>confdefs.h
19245
19246fi
19247 if test "x$CONFIG_NEED_DBUS" = xyes; then
19248  CONFIG_NEED_DBUS_TRUE=
19249  CONFIG_NEED_DBUS_FALSE='#'
19250else
19251  CONFIG_NEED_DBUS_TRUE='#'
19252  CONFIG_NEED_DBUS_FALSE=
19253fi
19254
19255
19256if test "x$USE_SIGIO_BY_DEFAULT" = xyes; then
19257	USE_SIGIO_BY_DEFAULT_VALUE=TRUE
19258else
19259	USE_SIGIO_BY_DEFAULT_VALUE=FALSE
19260fi
19261
19262cat >>confdefs.h <<_ACEOF
19263#define USE_SIGIO_BY_DEFAULT $USE_SIGIO_BY_DEFAULT_VALUE
19264_ACEOF
19265
19266
19267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
19268$as_echo_n "checking for glibc...... " >&6; }
19269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270/* end confdefs.h.  */
19271
19272#include <features.h>
19273#ifndef __GLIBC__
19274#error
19275#endif
19276
19277_ACEOF
19278if ac_fn_c_try_cpp "$LINENO"; then :
19279  glibc=yes
19280else
19281  glibc=no
19282fi
19283rm -f conftest.err conftest.i conftest.$ac_ext
19284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
19285$as_echo "$glibc" >&6; }
19286
19287for ac_func in clock_gettime
19288do :
19289  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
19290if test "x$ac_cv_func_clock_gettime" = xyes; then :
19291  cat >>confdefs.h <<_ACEOF
19292#define HAVE_CLOCK_GETTIME 1
19293_ACEOF
19294 have_clock_gettime=yes
19295else
19296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
19297$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
19298if ${ac_cv_lib_rt_clock_gettime+:} false; then :
19299  $as_echo_n "(cached) " >&6
19300else
19301  ac_check_lib_save_LIBS=$LIBS
19302LIBS="-lrt  $LIBS"
19303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304/* end confdefs.h.  */
19305
19306/* Override any GCC internal prototype to avoid an error.
19307   Use char because int might match the return type of a GCC
19308   builtin and then its argument prototype would still apply.  */
19309#ifdef __cplusplus
19310extern "C"
19311#endif
19312char clock_gettime ();
19313int
19314main ()
19315{
19316return clock_gettime ();
19317  ;
19318  return 0;
19319}
19320_ACEOF
19321if ac_fn_c_try_link "$LINENO"; then :
19322  ac_cv_lib_rt_clock_gettime=yes
19323else
19324  ac_cv_lib_rt_clock_gettime=no
19325fi
19326rm -f core conftest.err conftest.$ac_objext \
19327    conftest$ac_exeext conftest.$ac_ext
19328LIBS=$ac_check_lib_save_LIBS
19329fi
19330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
19331$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
19332if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
19333  have_clock_gettime=-lrt
19334else
19335  have_clock_gettime=no
19336fi
19337
19338fi
19339done
19340
19341
19342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
19343$as_echo_n "checking for a useful monotonic clock ...... " >&6; }
19344
19345if ! test "x$have_clock_gettime" = xno; then
19346    if ! test "x$have_clock_gettime" = xyes; then
19347        CLOCK_LIBS="$have_clock_gettime"
19348    else
19349        CLOCK_LIBS=""
19350    fi
19351
19352    LIBS_SAVE="$LIBS"
19353    LIBS="$CLOCK_LIBS"
19354    CPPFLAGS_SAVE="$CPPFLAGS"
19355
19356    if test x"$glibc" = xyes; then
19357        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
19358    fi
19359
19360    if test "$cross_compiling" = yes; then :
19361  MONOTONIC_CLOCK="cross compiling"
19362else
19363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364/* end confdefs.h.  */
19365
19366#include <time.h>
19367
19368int main(int argc, char *argv[]) {
19369    struct timespec tp;
19370
19371    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
19372        return 0;
19373    else
19374        return 1;
19375}
19376
19377_ACEOF
19378if ac_fn_c_try_run "$LINENO"; then :
19379  MONOTONIC_CLOCK=yes
19380else
19381  MONOTONIC_CLOCK=no
19382fi
19383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19384  conftest.$ac_objext conftest.beam conftest.$ac_ext
19385fi
19386
19387
19388    LIBS="$LIBS_SAVE"
19389    CPPFLAGS="$CPPFLAGS_SAVE"
19390else
19391    MONOTONIC_CLOCK=no
19392fi
19393
19394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
19395$as_echo "$MONOTONIC_CLOCK" >&6; }
19396
19397if test "x$MONOTONIC_CLOCK" = xyes; then
19398
19399$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h
19400
19401    LIBS="$LIBS $CLOCK_LIBS"
19402fi
19403
19404 if test "x$XV" = xyes; then
19405  XV_TRUE=
19406  XV_FALSE='#'
19407else
19408  XV_TRUE='#'
19409  XV_FALSE=
19410fi
19411
19412if test "x$XV" = xyes; then
19413
19414$as_echo "#define XV 1" >>confdefs.h
19415
19416
19417$as_echo "#define XvExtension 1" >>confdefs.h
19418
19419	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
19420	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
19421else
19422	XVMC=no
19423fi
19424
19425 if test "x$XVMC" = xyes; then
19426  XVMC_TRUE=
19427  XVMC_FALSE='#'
19428else
19429  XVMC_TRUE='#'
19430  XVMC_FALSE=
19431fi
19432
19433if test "x$XVMC" = xyes; then
19434
19435$as_echo "#define XvMCExtension 1" >>confdefs.h
19436
19437fi
19438
19439 if test "x$XREGISTRY" = xyes; then
19440  XREGISTRY_TRUE=
19441  XREGISTRY_FALSE='#'
19442else
19443  XREGISTRY_TRUE='#'
19444  XREGISTRY_FALSE=
19445fi
19446
19447if test "x$XREGISTRY" = xyes; then
19448
19449$as_echo "#define XREGISTRY 1" >>confdefs.h
19450
19451fi
19452
19453 if test "x$COMPOSITE" = xyes; then
19454  COMPOSITE_TRUE=
19455  COMPOSITE_FALSE='#'
19456else
19457  COMPOSITE_TRUE='#'
19458  COMPOSITE_FALSE=
19459fi
19460
19461if test "x$COMPOSITE" = xyes; then
19462
19463$as_echo "#define COMPOSITE 1" >>confdefs.h
19464
19465	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
19466	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
19467	COMPOSITE_INC='-I$(top_srcdir)/composite'
19468fi
19469
19470 if test "x$MITSHM" = xyes; then
19471  MITSHM_TRUE=
19472  MITSHM_FALSE='#'
19473else
19474  MITSHM_TRUE='#'
19475  MITSHM_FALSE=
19476fi
19477
19478if test "x$MITSHM" = xyes; then
19479
19480$as_echo "#define MITSHM 1" >>confdefs.h
19481
19482
19483$as_echo "#define HAS_SHM 1" >>confdefs.h
19484
19485fi
19486
19487 if test "x$RECORD" = xyes; then
19488  RECORD_TRUE=
19489  RECORD_FALSE='#'
19490else
19491  RECORD_TRUE='#'
19492  RECORD_FALSE=
19493fi
19494
19495if test "x$RECORD" = xyes; then
19496
19497$as_echo "#define XRECORD 1" >>confdefs.h
19498
19499	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
19500	RECORD_LIB='$(top_builddir)/record/librecord.la'
19501fi
19502
19503 if test "x$SCREENSAVER" = xyes; then
19504  SCREENSAVER_TRUE=
19505  SCREENSAVER_FALSE='#'
19506else
19507  SCREENSAVER_TRUE='#'
19508  SCREENSAVER_FALSE=
19509fi
19510
19511if test "x$SCREENSAVER" = xyes; then
19512
19513$as_echo "#define SCREENSAVER 1" >>confdefs.h
19514
19515	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
19516fi
19517
19518 if test "x$RES" = xyes; then
19519  RES_TRUE=
19520  RES_FALSE='#'
19521else
19522  RES_TRUE='#'
19523  RES_FALSE=
19524fi
19525
19526if test "x$RES" = xyes; then
19527
19528$as_echo "#define RES 1" >>confdefs.h
19529
19530	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
19531fi
19532
19533if test "x$GLX" = xyes; then
19534
19535pkg_failed=no
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
19537$as_echo_n "checking for XLIB... " >&6; }
19538
19539if test -n "$XLIB_CFLAGS"; then
19540    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
19541 elif test -n "$PKG_CONFIG"; then
19542    if test -n "$PKG_CONFIG" && \
19543    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
19544  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19545  ac_status=$?
19546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19547  test $ac_status = 0; }; then
19548  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
19549else
19550  pkg_failed=yes
19551fi
19552 else
19553    pkg_failed=untried
19554fi
19555if test -n "$XLIB_LIBS"; then
19556    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
19557 elif test -n "$PKG_CONFIG"; then
19558    if test -n "$PKG_CONFIG" && \
19559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
19560  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19561  ac_status=$?
19562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19563  test $ac_status = 0; }; then
19564  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
19565else
19566  pkg_failed=yes
19567fi
19568 else
19569    pkg_failed=untried
19570fi
19571
19572
19573
19574if test $pkg_failed = yes; then
19575   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19576$as_echo "no" >&6; }
19577
19578if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19579        _pkg_short_errors_supported=yes
19580else
19581        _pkg_short_errors_supported=no
19582fi
19583        if test $_pkg_short_errors_supported = yes; then
19584	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
19585        else
19586	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
19587        fi
19588	# Put the nasty error message in config.log where it belongs
19589	echo "$XLIB_PKG_ERRORS" >&5
19590
19591	as_fn_error $? "Package requirements (x11) were not met:
19592
19593$XLIB_PKG_ERRORS
19594
19595Consider adjusting the PKG_CONFIG_PATH environment variable if you
19596installed software in a non-standard prefix.
19597
19598Alternatively, you may set the environment variables XLIB_CFLAGS
19599and XLIB_LIBS to avoid the need to call pkg-config.
19600See the pkg-config man page for more details." "$LINENO" 5
19601elif test $pkg_failed = untried; then
19602     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19603$as_echo "no" >&6; }
19604	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19606as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19607is in your PATH or set the PKG_CONFIG environment variable to the full
19608path to pkg-config.
19609
19610Alternatively, you may set the environment variables XLIB_CFLAGS
19611and XLIB_LIBS to avoid the need to call pkg-config.
19612See the pkg-config man page for more details.
19613
19614To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19615See \`config.log' for more details" "$LINENO" 5; }
19616else
19617	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
19618	XLIB_LIBS=$pkg_cv_XLIB_LIBS
19619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19620$as_echo "yes" >&6; }
19621
19622fi
19623
19624pkg_failed=no
19625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
19626$as_echo_n "checking for GL... " >&6; }
19627
19628if test -n "$GL_CFLAGS"; then
19629    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
19630 elif test -n "$PKG_CONFIG"; then
19631    if test -n "$PKG_CONFIG" && \
19632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
19633  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
19634  ac_status=$?
19635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19636  test $ac_status = 0; }; then
19637  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
19638else
19639  pkg_failed=yes
19640fi
19641 else
19642    pkg_failed=untried
19643fi
19644if test -n "$GL_LIBS"; then
19645    pkg_cv_GL_LIBS="$GL_LIBS"
19646 elif test -n "$PKG_CONFIG"; then
19647    if test -n "$PKG_CONFIG" && \
19648    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
19649  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
19650  ac_status=$?
19651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19652  test $ac_status = 0; }; then
19653  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
19654else
19655  pkg_failed=yes
19656fi
19657 else
19658    pkg_failed=untried
19659fi
19660
19661
19662
19663if test $pkg_failed = yes; then
19664   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19665$as_echo "no" >&6; }
19666
19667if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19668        _pkg_short_errors_supported=yes
19669else
19670        _pkg_short_errors_supported=no
19671fi
19672        if test $_pkg_short_errors_supported = yes; then
19673	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBGL" 2>&1`
19674        else
19675	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBGL" 2>&1`
19676        fi
19677	# Put the nasty error message in config.log where it belongs
19678	echo "$GL_PKG_ERRORS" >&5
19679
19680	as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
19681
19682$GL_PKG_ERRORS
19683
19684Consider adjusting the PKG_CONFIG_PATH environment variable if you
19685installed software in a non-standard prefix.
19686
19687Alternatively, you may set the environment variables GL_CFLAGS
19688and GL_LIBS to avoid the need to call pkg-config.
19689See the pkg-config man page for more details." "$LINENO" 5
19690elif test $pkg_failed = untried; then
19691     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19692$as_echo "no" >&6; }
19693	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19695as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19696is in your PATH or set the PKG_CONFIG environment variable to the full
19697path to pkg-config.
19698
19699Alternatively, you may set the environment variables GL_CFLAGS
19700and GL_LIBS to avoid the need to call pkg-config.
19701See the pkg-config man page for more details.
19702
19703To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19704See \`config.log' for more details" "$LINENO" 5; }
19705else
19706	GL_CFLAGS=$pkg_cv_GL_CFLAGS
19707	GL_LIBS=$pkg_cv_GL_LIBS
19708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19709$as_echo "yes" >&6; }
19710
19711fi
19712
19713
19714$as_echo "#define GLXEXT 1" >>confdefs.h
19715
19716	GLX_LIBS='$(top_builddir)/glx/libglx.la'
19717	GLX_SYS_LIBS="$GLX_SYS_LIBS"
19718else
19719        GLX=no
19720fi
19721 if test "x$GLX" = xyes; then
19722  GLX_TRUE=
19723  GLX_FALSE='#'
19724else
19725  GLX_TRUE='#'
19726  GLX_FALSE=
19727fi
19728
19729
19730if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a "x$DRI" = xyes; then
19731
19732$as_echo "#define AIGLX 1" >>confdefs.h
19733
19734else
19735	AIGLX=no
19736fi
19737 if test "x$AIGLX" = xyes; then
19738  AIGLX_TRUE=
19739  AIGLX_FALSE='#'
19740else
19741  AIGLX_TRUE='#'
19742  AIGLX_FALSE=
19743fi
19744
19745
19746if test "x$GLX_USE_TLS" = xyes -a "x$AIGLX" = xyes; then
19747	GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS"
19748	GLX_SYS_LIBS="$GLX_SYS_LIBS -lpthread"
19749fi
19750
19751
19752 if test "x$DRI" = xyes; then
19753  DRI_TRUE=
19754  DRI_FALSE='#'
19755else
19756  DRI_TRUE='#'
19757  DRI_FALSE=
19758fi
19759
19760if test "x$DRI" = xyes; then
19761
19762$as_echo "#define XF86DRI 1" >>confdefs.h
19763
19764
19765pkg_failed=no
19766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRIPROTO" >&5
19767$as_echo_n "checking for DRIPROTO... " >&6; }
19768
19769if test -n "$DRIPROTO_CFLAGS"; then
19770    pkg_cv_DRIPROTO_CFLAGS="$DRIPROTO_CFLAGS"
19771 elif test -n "$PKG_CONFIG"; then
19772    if test -n "$PKG_CONFIG" && \
19773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\""; } >&5
19774  ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
19775  ac_status=$?
19776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19777  test $ac_status = 0; }; then
19778  pkg_cv_DRIPROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRIPROTO" 2>/dev/null`
19779else
19780  pkg_failed=yes
19781fi
19782 else
19783    pkg_failed=untried
19784fi
19785if test -n "$DRIPROTO_LIBS"; then
19786    pkg_cv_DRIPROTO_LIBS="$DRIPROTO_LIBS"
19787 elif test -n "$PKG_CONFIG"; then
19788    if test -n "$PKG_CONFIG" && \
19789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRIPROTO\""; } >&5
19790  ($PKG_CONFIG --exists --print-errors "$DRIPROTO") 2>&5
19791  ac_status=$?
19792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19793  test $ac_status = 0; }; then
19794  pkg_cv_DRIPROTO_LIBS=`$PKG_CONFIG --libs "$DRIPROTO" 2>/dev/null`
19795else
19796  pkg_failed=yes
19797fi
19798 else
19799    pkg_failed=untried
19800fi
19801
19802
19803
19804if test $pkg_failed = yes; then
19805   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19806$as_echo "no" >&6; }
19807
19808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19809        _pkg_short_errors_supported=yes
19810else
19811        _pkg_short_errors_supported=no
19812fi
19813        if test $_pkg_short_errors_supported = yes; then
19814	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRIPROTO" 2>&1`
19815        else
19816	        DRIPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRIPROTO" 2>&1`
19817        fi
19818	# Put the nasty error message in config.log where it belongs
19819	echo "$DRIPROTO_PKG_ERRORS" >&5
19820
19821	as_fn_error $? "Package requirements ($DRIPROTO) were not met:
19822
19823$DRIPROTO_PKG_ERRORS
19824
19825Consider adjusting the PKG_CONFIG_PATH environment variable if you
19826installed software in a non-standard prefix.
19827
19828Alternatively, you may set the environment variables DRIPROTO_CFLAGS
19829and DRIPROTO_LIBS to avoid the need to call pkg-config.
19830See the pkg-config man page for more details." "$LINENO" 5
19831elif test $pkg_failed = untried; then
19832     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19833$as_echo "no" >&6; }
19834	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19836as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19837is in your PATH or set the PKG_CONFIG environment variable to the full
19838path to pkg-config.
19839
19840Alternatively, you may set the environment variables DRIPROTO_CFLAGS
19841and DRIPROTO_LIBS to avoid the need to call pkg-config.
19842See the pkg-config man page for more details.
19843
19844To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19845See \`config.log' for more details" "$LINENO" 5; }
19846else
19847	DRIPROTO_CFLAGS=$pkg_cv_DRIPROTO_CFLAGS
19848	DRIPROTO_LIBS=$pkg_cv_DRIPROTO_LIBS
19849        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19850$as_echo "yes" >&6; }
19851
19852fi
19853
19854pkg_failed=no
19855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19856$as_echo_n "checking for DRI... " >&6; }
19857
19858if test -n "$DRI_CFLAGS"; then
19859    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19860 elif test -n "$PKG_CONFIG"; then
19861    if test -n "$PKG_CONFIG" && \
19862    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\""; } >&5
19863  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
19864  ac_status=$?
19865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19866  test $ac_status = 0; }; then
19867  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBDRI" 2>/dev/null`
19868else
19869  pkg_failed=yes
19870fi
19871 else
19872    pkg_failed=untried
19873fi
19874if test -n "$DRI_LIBS"; then
19875    pkg_cv_DRI_LIBS="$DRI_LIBS"
19876 elif test -n "$PKG_CONFIG"; then
19877    if test -n "$PKG_CONFIG" && \
19878    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBDRI\""; } >&5
19879  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBDRI") 2>&5
19880  ac_status=$?
19881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19882  test $ac_status = 0; }; then
19883  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBDRI" 2>/dev/null`
19884else
19885  pkg_failed=yes
19886fi
19887 else
19888    pkg_failed=untried
19889fi
19890
19891
19892
19893if test $pkg_failed = yes; then
19894   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19895$as_echo "no" >&6; }
19896
19897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19898        _pkg_short_errors_supported=yes
19899else
19900        _pkg_short_errors_supported=no
19901fi
19902        if test $_pkg_short_errors_supported = yes; then
19903	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GLPROTO $LIBDRI" 2>&1`
19904        else
19905	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GLPROTO $LIBDRI" 2>&1`
19906        fi
19907	# Put the nasty error message in config.log where it belongs
19908	echo "$DRI_PKG_ERRORS" >&5
19909
19910	as_fn_error $? "Package requirements ($GLPROTO $LIBDRI) were not met:
19911
19912$DRI_PKG_ERRORS
19913
19914Consider adjusting the PKG_CONFIG_PATH environment variable if you
19915installed software in a non-standard prefix.
19916
19917Alternatively, you may set the environment variables DRI_CFLAGS
19918and DRI_LIBS to avoid the need to call pkg-config.
19919See the pkg-config man page for more details." "$LINENO" 5
19920elif test $pkg_failed = untried; then
19921     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19922$as_echo "no" >&6; }
19923	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19925as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19926is in your PATH or set the PKG_CONFIG environment variable to the full
19927path to pkg-config.
19928
19929Alternatively, you may set the environment variables DRI_CFLAGS
19930and DRI_LIBS to avoid the need to call pkg-config.
19931See the pkg-config man page for more details.
19932
19933To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19934See \`config.log' for more details" "$LINENO" 5; }
19935else
19936	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19937	DRI_LIBS=$pkg_cv_DRI_LIBS
19938        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19939$as_echo "yes" >&6; }
19940
19941fi
19942
19943fi
19944
19945
19946pkg_failed=no
19947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
19948$as_echo_n "checking for DRI2PROTO... " >&6; }
19949
19950if test -n "$DRI2PROTO_CFLAGS"; then
19951    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
19952 elif test -n "$PKG_CONFIG"; then
19953    if test -n "$PKG_CONFIG" && \
19954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
19955  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
19956  ac_status=$?
19957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19958  test $ac_status = 0; }; then
19959  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
19960else
19961  pkg_failed=yes
19962fi
19963 else
19964    pkg_failed=untried
19965fi
19966if test -n "$DRI2PROTO_LIBS"; then
19967    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
19968 elif test -n "$PKG_CONFIG"; then
19969    if test -n "$PKG_CONFIG" && \
19970    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
19971  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
19972  ac_status=$?
19973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19974  test $ac_status = 0; }; then
19975  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
19976else
19977  pkg_failed=yes
19978fi
19979 else
19980    pkg_failed=untried
19981fi
19982
19983
19984
19985if test $pkg_failed = yes; then
19986   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19987$as_echo "no" >&6; }
19988
19989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19990        _pkg_short_errors_supported=yes
19991else
19992        _pkg_short_errors_supported=no
19993fi
19994        if test $_pkg_short_errors_supported = yes; then
19995	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DRI2PROTO" 2>&1`
19996        else
19997	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DRI2PROTO" 2>&1`
19998        fi
19999	# Put the nasty error message in config.log where it belongs
20000	echo "$DRI2PROTO_PKG_ERRORS" >&5
20001
20002	HAVE_DRI2PROTO=no
20003elif test $pkg_failed = untried; then
20004     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20005$as_echo "no" >&6; }
20006	HAVE_DRI2PROTO=no
20007else
20008	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
20009	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
20010        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20011$as_echo "yes" >&6; }
20012	HAVE_DRI2PROTO=yes
20013fi
20014case "$DRI2,$HAVE_DRI2PROTO" in
20015	yes,no)
20016		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
20017		;;
20018	yes,yes | auto,yes)
20019
20020$as_echo "#define DRI2 1" >>confdefs.h
20021
20022		DRI2=yes
20023		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
20024		;;
20025esac
20026 if test "x$DRI2" = xyes; then
20027  DRI2_TRUE=
20028  DRI2_FALSE='#'
20029else
20030  DRI2_TRUE='#'
20031  DRI2_FALSE=
20032fi
20033
20034
20035if test "x$DRI" = xyes || test "x$DRI2" = xyes; then
20036	if test "x$DRM" = xyes; then
20037
20038$as_echo "#define WITH_LIBDRM 1" >>confdefs.h
20039
20040
20041pkg_failed=no
20042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
20043$as_echo_n "checking for LIBDRM... " >&6; }
20044
20045if test -n "$LIBDRM_CFLAGS"; then
20046    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
20047 elif test -n "$PKG_CONFIG"; then
20048    if test -n "$PKG_CONFIG" && \
20049    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
20050  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
20051  ac_status=$?
20052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20053  test $ac_status = 0; }; then
20054  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
20055else
20056  pkg_failed=yes
20057fi
20058 else
20059    pkg_failed=untried
20060fi
20061if test -n "$LIBDRM_LIBS"; then
20062    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
20063 elif test -n "$PKG_CONFIG"; then
20064    if test -n "$PKG_CONFIG" && \
20065    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
20066  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
20067  ac_status=$?
20068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20069  test $ac_status = 0; }; then
20070  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
20071else
20072  pkg_failed=yes
20073fi
20074 else
20075    pkg_failed=untried
20076fi
20077
20078
20079
20080if test $pkg_failed = yes; then
20081   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082$as_echo "no" >&6; }
20083
20084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20085        _pkg_short_errors_supported=yes
20086else
20087        _pkg_short_errors_supported=no
20088fi
20089        if test $_pkg_short_errors_supported = yes; then
20090	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDRM" 2>&1`
20091        else
20092	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDRM" 2>&1`
20093        fi
20094	# Put the nasty error message in config.log where it belongs
20095	echo "$LIBDRM_PKG_ERRORS" >&5
20096
20097	as_fn_error $? "Package requirements ($LIBDRM) were not met:
20098
20099$LIBDRM_PKG_ERRORS
20100
20101Consider adjusting the PKG_CONFIG_PATH environment variable if you
20102installed software in a non-standard prefix.
20103
20104Alternatively, you may set the environment variables LIBDRM_CFLAGS
20105and LIBDRM_LIBS to avoid the need to call pkg-config.
20106See the pkg-config man page for more details." "$LINENO" 5
20107elif test $pkg_failed = untried; then
20108     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20109$as_echo "no" >&6; }
20110	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20112as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20113is in your PATH or set the PKG_CONFIG environment variable to the full
20114path to pkg-config.
20115
20116Alternatively, you may set the environment variables LIBDRM_CFLAGS
20117and LIBDRM_LIBS to avoid the need to call pkg-config.
20118See the pkg-config man page for more details.
20119
20120To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20121See \`config.log' for more details" "$LINENO" 5; }
20122else
20123	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
20124	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
20125        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20126$as_echo "yes" >&6; }
20127
20128fi
20129	fi
20130fi
20131
20132if test "x$DRI2" = xyes; then
20133	save_CFLAGS=$CFLAGS
20134	CFLAGS="$GL_CFLAGS $LIBDRM_CFLAGS"
20135	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136/* end confdefs.h.  */
20137#include <GL/gl.h>
20138#include <GL/internal/dri_interface.h>
20139#ifndef __DRI_DRI2
20140#error DRI2 extension not available.
20141#endif
20142_ACEOF
20143if ac_fn_c_try_compile "$LINENO"; then :
20144  HAVE_DRI2EXTENSION=yes
20145else
20146  HAVE_DRI2EXTENSION=no
20147fi
20148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20149	CFLAGS=$save_CFLAGS
20150	if test "x$HAVE_DRI2EXTENSION" = xyes; then
20151
20152$as_echo "#define DRI2_AIGLX 1" >>confdefs.h
20153
20154		DRI2_AIGLX=yes
20155	else
20156		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&5
20157$as_echo "$as_me: DRI2 AIGLX disabled, __DRI_DRI2 not defined in dri_interface.h." >&6;}
20158		DRI2_AIGLX=no
20159	fi
20160fi
20161 if test "x$DRI2_AIGLX" = xyes; then
20162  DRI2_AIGLX_TRUE=
20163  DRI2_AIGLX_FALSE='#'
20164else
20165  DRI2_AIGLX_TRUE='#'
20166  DRI2_AIGLX_FALSE=
20167fi
20168
20169
20170
20171 if test "x$XINERAMA" = xyes; then
20172  XINERAMA_TRUE=
20173  XINERAMA_FALSE='#'
20174else
20175  XINERAMA_TRUE='#'
20176  XINERAMA_FALSE=
20177fi
20178
20179if test "x$XINERAMA" = xyes; then
20180
20181$as_echo "#define XINERAMA 1" >>confdefs.h
20182
20183
20184$as_echo "#define PANORAMIX 1" >>confdefs.h
20185
20186	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
20187	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
20188fi
20189
20190 if test "x$XACE" = xyes; then
20191  XACE_TRUE=
20192  XACE_FALSE='#'
20193else
20194  XACE_TRUE='#'
20195  XACE_FALSE=
20196fi
20197
20198if test "x$XACE" = xyes; then
20199
20200$as_echo "#define XACE 1" >>confdefs.h
20201
20202fi
20203
20204 if test "x$XSELINUX" = xyes; then
20205  XSELINUX_TRUE=
20206  XSELINUX_FALSE='#'
20207else
20208  XSELINUX_TRUE='#'
20209  XSELINUX_FALSE=
20210fi
20211
20212if test "x$XSELINUX" = xyes; then
20213	if test "x$XACE" != xyes; then
20214		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
20215	fi
20216	for ac_header in libaudit.h
20217do :
20218  ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
20219if test "x$ac_cv_header_libaudit_h" = xyes; then :
20220  cat >>confdefs.h <<_ACEOF
20221#define HAVE_LIBAUDIT_H 1
20222_ACEOF
20223
20224else
20225  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
20226fi
20227
20228done
20229
20230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
20231$as_echo_n "checking for audit_open in -laudit... " >&6; }
20232if ${ac_cv_lib_audit_audit_open+:} false; then :
20233  $as_echo_n "(cached) " >&6
20234else
20235  ac_check_lib_save_LIBS=$LIBS
20236LIBS="-laudit  $LIBS"
20237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238/* end confdefs.h.  */
20239
20240/* Override any GCC internal prototype to avoid an error.
20241   Use char because int might match the return type of a GCC
20242   builtin and then its argument prototype would still apply.  */
20243#ifdef __cplusplus
20244extern "C"
20245#endif
20246char audit_open ();
20247int
20248main ()
20249{
20250return audit_open ();
20251  ;
20252  return 0;
20253}
20254_ACEOF
20255if ac_fn_c_try_link "$LINENO"; then :
20256  ac_cv_lib_audit_audit_open=yes
20257else
20258  ac_cv_lib_audit_audit_open=no
20259fi
20260rm -f core conftest.err conftest.$ac_objext \
20261    conftest$ac_exeext conftest.$ac_ext
20262LIBS=$ac_check_lib_save_LIBS
20263fi
20264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
20265$as_echo "$ac_cv_lib_audit_audit_open" >&6; }
20266if test "x$ac_cv_lib_audit_audit_open" = xyes; then :
20267  cat >>confdefs.h <<_ACEOF
20268#define HAVE_LIBAUDIT 1
20269_ACEOF
20270
20271  LIBS="-laudit $LIBS"
20272
20273else
20274  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
20275fi
20276
20277
20278pkg_failed=no
20279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
20280$as_echo_n "checking for SELINUX... " >&6; }
20281
20282if test -n "$SELINUX_CFLAGS"; then
20283    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
20284 elif test -n "$PKG_CONFIG"; then
20285    if test -n "$PKG_CONFIG" && \
20286    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
20287  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
20288  ac_status=$?
20289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20290  test $ac_status = 0; }; then
20291  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
20292else
20293  pkg_failed=yes
20294fi
20295 else
20296    pkg_failed=untried
20297fi
20298if test -n "$SELINUX_LIBS"; then
20299    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
20300 elif test -n "$PKG_CONFIG"; then
20301    if test -n "$PKG_CONFIG" && \
20302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
20303  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
20304  ac_status=$?
20305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20306  test $ac_status = 0; }; then
20307  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
20308else
20309  pkg_failed=yes
20310fi
20311 else
20312    pkg_failed=untried
20313fi
20314
20315
20316
20317if test $pkg_failed = yes; then
20318   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20319$as_echo "no" >&6; }
20320
20321if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20322        _pkg_short_errors_supported=yes
20323else
20324        _pkg_short_errors_supported=no
20325fi
20326        if test $_pkg_short_errors_supported = yes; then
20327	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBSELINUX" 2>&1`
20328        else
20329	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBSELINUX" 2>&1`
20330        fi
20331	# Put the nasty error message in config.log where it belongs
20332	echo "$SELINUX_PKG_ERRORS" >&5
20333
20334	as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
20335
20336$SELINUX_PKG_ERRORS
20337
20338Consider adjusting the PKG_CONFIG_PATH environment variable if you
20339installed software in a non-standard prefix.
20340
20341Alternatively, you may set the environment variables SELINUX_CFLAGS
20342and SELINUX_LIBS to avoid the need to call pkg-config.
20343See the pkg-config man page for more details." "$LINENO" 5
20344elif test $pkg_failed = untried; then
20345     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20346$as_echo "no" >&6; }
20347	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20349as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20350is in your PATH or set the PKG_CONFIG environment variable to the full
20351path to pkg-config.
20352
20353Alternatively, you may set the environment variables SELINUX_CFLAGS
20354and SELINUX_LIBS to avoid the need to call pkg-config.
20355See the pkg-config man page for more details.
20356
20357To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20358See \`config.log' for more details" "$LINENO" 5; }
20359else
20360	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
20361	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
20362        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20363$as_echo "yes" >&6; }
20364
20365fi
20366	SELINUX_LIBS="$SELINUX_LIBS -laudit"
20367
20368$as_echo "#define XSELINUX 1" >>confdefs.h
20369
20370fi
20371
20372 if test "x$XCSECURITY" = xyes; then
20373  XCSECURITY_TRUE=
20374  XCSECURITY_FALSE='#'
20375else
20376  XCSECURITY_TRUE='#'
20377  XCSECURITY_FALSE=
20378fi
20379
20380if test "x$XCSECURITY" = xyes; then
20381	if test "x$XACE" != xyes; then
20382		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
20383	fi
20384
20385$as_echo "#define XCSECURITY 1" >>confdefs.h
20386
20387fi
20388
20389 if test "x$DBE" = xyes; then
20390  DBE_TRUE=
20391  DBE_FALSE='#'
20392else
20393  DBE_TRUE='#'
20394  DBE_FALSE=
20395fi
20396
20397if test "x$DBE" = xyes; then
20398
20399$as_echo "#define DBE 1" >>confdefs.h
20400
20401	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
20402fi
20403
20404 if test "x$XF86BIGFONT" = xyes; then
20405  XF86BIGFONT_TRUE=
20406  XF86BIGFONT_FALSE='#'
20407else
20408  XF86BIGFONT_TRUE='#'
20409  XF86BIGFONT_FALSE=
20410fi
20411
20412if test "x$XF86BIGFONT" = xyes; then
20413
20414$as_echo "#define XF86BIGFONT 1" >>confdefs.h
20415
20416	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
20417fi
20418
20419 if test "x$DPMSExtension" = xyes; then
20420  DPMSExtension_TRUE=
20421  DPMSExtension_FALSE='#'
20422else
20423  DPMSExtension_TRUE='#'
20424  DPMSExtension_FALSE=
20425fi
20426
20427if test "x$DPMSExtension" = xyes; then
20428
20429$as_echo "#define DPMSExtension 1" >>confdefs.h
20430
20431fi
20432
20433if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
20434
20435$as_echo "#define XCALIBRATE 1" >>confdefs.h
20436
20437   REQUIRED_MODULES="$REQUIRED_MODULES $XCALIBRATEPROTO"
20438else
20439   XCALIBRATE=no
20440fi
20441 if test "x$XCALIBRATE" = xyes; then
20442  XCALIBRATE_TRUE=
20443  XCALIBRATE_FALSE='#'
20444else
20445  XCALIBRATE_TRUE='#'
20446  XCALIBRATE_FALSE=
20447fi
20448
20449
20450
20451$as_echo "#define RENDER 1" >>confdefs.h
20452
20453RENDER_LIB='$(top_builddir)/render/librender.la'
20454RENDER_INC='-I$(top_srcdir)/render'
20455
20456
20457$as_echo "#define RANDR 1" >>confdefs.h
20458
20459RANDR_LIB='$(top_builddir)/randr/librandr.la'
20460RANDR_INC='-I$(top_srcdir)/randr'
20461
20462
20463$as_echo "#define XFIXES 1" >>confdefs.h
20464
20465FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
20466FIXES_INC='-I$(top_srcdir)/xfixes'
20467
20468
20469$as_echo "#define DAMAGE 1" >>confdefs.h
20470
20471DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
20472DAMAGE_INC='-I$(top_srcdir)/damageext'
20473MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
20474MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
20475
20476# XINPUT extension is integral part of the server
20477
20478$as_echo "#define XINPUT 1" >>confdefs.h
20479
20480XI_LIB='$(top_builddir)/Xi/libXi.la'
20481XI_INC='-I$(top_srcdir)/Xi'
20482
20483 if test "x$XF86UTILS" = xyes; then
20484  XF86UTILS_TRUE=
20485  XF86UTILS_FALSE='#'
20486else
20487  XF86UTILS_TRUE='#'
20488  XF86UTILS_FALSE=
20489fi
20490
20491 if test "x$XAA" = xyes; then
20492  XAA_TRUE=
20493  XAA_FALSE='#'
20494else
20495  XAA_TRUE='#'
20496  XAA_FALSE=
20497fi
20498
20499 if test "x$VGAHW" = xyes; then
20500  VGAHW_TRUE=
20501  VGAHW_FALSE='#'
20502else
20503  VGAHW_TRUE='#'
20504  VGAHW_FALSE=
20505fi
20506
20507 if test "x$VBE" = xyes; then
20508  VBE_TRUE=
20509  VBE_FALSE='#'
20510else
20511  VBE_TRUE='#'
20512  VBE_FALSE=
20513fi
20514
20515 if test "x$INT10MODULE" = xyes; then
20516  INT10MODULE_TRUE=
20517  INT10MODULE_FALSE='#'
20518else
20519  INT10MODULE_TRUE='#'
20520  INT10MODULE_FALSE=
20521fi
20522
20523
20524
20525$as_echo "#define SHAPE 1" >>confdefs.h
20526
20527
20528
20529  prefix_NONE=
20530  exec_prefix_NONE=
20531  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20532  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20533  eval ac_define_dir="\"$XKBPATH\""
20534  eval ac_define_dir="\"$ac_define_dir\""
20535  XKB_BASE_DIRECTORY="$ac_define_dir"
20536
20537
20538cat >>confdefs.h <<_ACEOF
20539#define XKB_BASE_DIRECTORY "$ac_define_dir"
20540_ACEOF
20541
20542  test "$prefix_NONE" && prefix=NONE
20543  test "$exec_prefix_NONE" && exec_prefix=NONE
20544
20545
20546# Check whether --with-xkb-bin-directory was given.
20547if test "${with_xkb_bin_directory+set}" = set; then :
20548  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
20549else
20550  XKB_BIN_DIRECTORY="$bindir"
20551fi
20552
20553
20554
20555  prefix_NONE=
20556  exec_prefix_NONE=
20557  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20558  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20559  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
20560  eval ac_define_dir="\"$ac_define_dir\""
20561  XKB_BIN_DIRECTORY="$ac_define_dir"
20562
20563
20564cat >>confdefs.h <<_ACEOF
20565#define XKB_BIN_DIRECTORY "$ac_define_dir"
20566_ACEOF
20567
20568  test "$prefix_NONE" && prefix=NONE
20569  test "$exec_prefix_NONE" && exec_prefix=NONE
20570
20571
20572XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
20573if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
20574   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
20575fi
20576
20577
20578XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
20579XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
20580
20581  prefix_NONE=
20582  exec_prefix_NONE=
20583  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20584  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20585  eval ac_define_dir="\"$XKBOUTPUT\""
20586  eval ac_define_dir="\"$ac_define_dir\""
20587  XKM_OUTPUT_DIR="$ac_define_dir"
20588
20589
20590cat >>confdefs.h <<_ACEOF
20591#define XKM_OUTPUT_DIR "$ac_define_dir"
20592_ACEOF
20593
20594  test "$prefix_NONE" && prefix=NONE
20595  test "$exec_prefix_NONE" && exec_prefix=NONE
20596
20597
20598
20599if test "x$XKB_DFLT_RULES" = x; then
20600    case $host_os in
20601    linux*)
20602                if test "x$CONFIG_HAL" = xyes; then
20603            XKB_DFLT_RULES="evdev"
20604        else
20605            XKB_DFLT_RULES="base"
20606        fi
20607        ;;
20608    *)
20609        XKB_DFLT_RULES="base"
20610        ;;
20611    esac
20612fi
20613
20614cat >>confdefs.h <<_ACEOF
20615#define XKB_DFLT_RULES "$XKB_DFLT_RULES"
20616_ACEOF
20617
20618
20619cat >>confdefs.h <<_ACEOF
20620#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
20621_ACEOF
20622
20623
20624cat >>confdefs.h <<_ACEOF
20625#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
20626_ACEOF
20627
20628
20629cat >>confdefs.h <<_ACEOF
20630#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
20631_ACEOF
20632
20633
20634cat >>confdefs.h <<_ACEOF
20635#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
20636_ACEOF
20637
20638
20639XKB_LIB='$(top_builddir)/xkb/libxkb.la'
20640XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
20641REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
20642
20643ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20644if test "x$ac_cv_func_strcasecmp" = xyes; then :
20645
20646else
20647
20648$as_echo "#define NEED_STRCASECMP 1" >>confdefs.h
20649
20650fi
20651
20652ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
20653if test "x$ac_cv_func_strncasecmp" = xyes; then :
20654
20655else
20656
20657$as_echo "#define NEED_STRNCASECMP 1" >>confdefs.h
20658
20659fi
20660
20661ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
20662if test "x$ac_cv_func_strcasestr" = xyes; then :
20663
20664else
20665
20666$as_echo "#define NEED_STRCASESTR 1" >>confdefs.h
20667
20668fi
20669
20670
20671
20672pkg_failed=no
20673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
20674$as_echo_n "checking for XDMCP... " >&6; }
20675
20676if test -n "$XDMCP_CFLAGS"; then
20677    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
20678 elif test -n "$PKG_CONFIG"; then
20679    if test -n "$PKG_CONFIG" && \
20680    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
20681  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
20682  ac_status=$?
20683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20684  test $ac_status = 0; }; then
20685  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
20686else
20687  pkg_failed=yes
20688fi
20689 else
20690    pkg_failed=untried
20691fi
20692if test -n "$XDMCP_LIBS"; then
20693    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
20694 elif test -n "$PKG_CONFIG"; then
20695    if test -n "$PKG_CONFIG" && \
20696    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
20697  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
20698  ac_status=$?
20699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20700  test $ac_status = 0; }; then
20701  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
20702else
20703  pkg_failed=yes
20704fi
20705 else
20706    pkg_failed=untried
20707fi
20708
20709
20710
20711if test $pkg_failed = yes; then
20712   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20713$as_echo "no" >&6; }
20714
20715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20716        _pkg_short_errors_supported=yes
20717else
20718        _pkg_short_errors_supported=no
20719fi
20720        if test $_pkg_short_errors_supported = yes; then
20721	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1`
20722        else
20723	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1`
20724        fi
20725	# Put the nasty error message in config.log where it belongs
20726	echo "$XDMCP_PKG_ERRORS" >&5
20727
20728	have_libxdmcp="no"
20729elif test $pkg_failed = untried; then
20730     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20731$as_echo "no" >&6; }
20732	have_libxdmcp="no"
20733else
20734	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
20735	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
20736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20737$as_echo "yes" >&6; }
20738	have_libxdmcp="yes"
20739fi
20740if test "x$have_libxdmcp" = xyes; then
20741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
20742$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
20743if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
20744  $as_echo_n "(cached) " >&6
20745else
20746  ac_check_lib_save_LIBS=$LIBS
20747LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
20748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749/* end confdefs.h.  */
20750
20751/* Override any GCC internal prototype to avoid an error.
20752   Use char because int might match the return type of a GCC
20753   builtin and then its argument prototype would still apply.  */
20754#ifdef __cplusplus
20755extern "C"
20756#endif
20757char XdmcpWrap ();
20758int
20759main ()
20760{
20761return XdmcpWrap ();
20762  ;
20763  return 0;
20764}
20765_ACEOF
20766if ac_fn_c_try_link "$LINENO"; then :
20767  ac_cv_lib_Xdmcp_XdmcpWrap=yes
20768else
20769  ac_cv_lib_Xdmcp_XdmcpWrap=no
20770fi
20771rm -f core conftest.err conftest.$ac_objext \
20772    conftest$ac_exeext conftest.$ac_ext
20773LIBS=$ac_check_lib_save_LIBS
20774fi
20775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
20776$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
20777if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
20778  have_xdmcpwrap="yes"
20779else
20780  have_xdmcpwrap="no"
20781fi
20782
20783fi
20784if test "x$XDMCP" = xauto; then
20785	if test "x$have_libxdmcp" = xyes; then
20786		XDMCP=yes
20787	else
20788		XDMCP=no
20789	fi
20790fi
20791if test "x$XDMAUTH" = xauto; then
20792	if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
20793		XDMAUTH=yes
20794	else
20795		XDMAUTH=no
20796	fi
20797fi
20798
20799 if test "x$XDMCP" = xyes; then
20800  XDMCP_TRUE=
20801  XDMCP_FALSE='#'
20802else
20803  XDMCP_TRUE='#'
20804  XDMCP_FALSE=
20805fi
20806
20807if test "x$XDMCP" = xyes; then
20808
20809$as_echo "#define XDMCP 1" >>confdefs.h
20810
20811	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
20812	XDMCP_MODULES="xdmcp"
20813fi
20814
20815 if test "x$XDMAUTH" = xyes; then
20816  XDMAUTH_TRUE=
20817  XDMAUTH_FALSE='#'
20818else
20819  XDMAUTH_TRUE='#'
20820  XDMAUTH_FALSE=
20821fi
20822
20823if test "x$XDMAUTH" = xyes; then
20824
20825$as_echo "#define HASXDMAUTH 1" >>confdefs.h
20826
20827	if ! test "x$XDMCP" = xyes; then
20828		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
20829		XDMCP_MODULES="xdmcp"
20830	fi
20831fi
20832
20833
20834  prefix_NONE=
20835  exec_prefix_NONE=
20836  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20837  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20838  eval ac_define_dir="\"$FONTPATH\""
20839  eval ac_define_dir="\"$ac_define_dir\""
20840  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
20841
20842
20843cat >>confdefs.h <<_ACEOF
20844#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
20845_ACEOF
20846
20847  test "$prefix_NONE" && prefix=NONE
20848  test "$exec_prefix_NONE" && exec_prefix=NONE
20849
20850
20851  prefix_NONE=
20852  exec_prefix_NONE=
20853  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20854  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20855  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
20856  eval ac_define_dir="\"$ac_define_dir\""
20857  PCI_TXT_IDS_PATH="$ac_define_dir"
20858
20859
20860cat >>confdefs.h <<_ACEOF
20861#define PCI_TXT_IDS_PATH "$ac_define_dir"
20862_ACEOF
20863
20864  test "$prefix_NONE" && prefix=NONE
20865  test "$exec_prefix_NONE" && exec_prefix=NONE
20866
20867
20868  prefix_NONE=
20869  exec_prefix_NONE=
20870  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20871  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20872  eval ac_define_dir="\"$SERVERCONFIG\""
20873  eval ac_define_dir="\"$ac_define_dir\""
20874  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
20875
20876
20877cat >>confdefs.h <<_ACEOF
20878#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
20879_ACEOF
20880
20881  test "$prefix_NONE" && prefix=NONE
20882  test "$exec_prefix_NONE" && exec_prefix=NONE
20883
20884
20885  prefix_NONE=
20886  exec_prefix_NONE=
20887  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20888  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20889  eval ac_define_dir="\"$FONTROOTDIR\""
20890  eval ac_define_dir="\"$ac_define_dir\""
20891  BASE_FONT_PATH="$ac_define_dir"
20892
20893
20894cat >>confdefs.h <<_ACEOF
20895#define BASE_FONT_PATH "$ac_define_dir"
20896_ACEOF
20897
20898  test "$prefix_NONE" && prefix=NONE
20899  test "$exec_prefix_NONE" && exec_prefix=NONE
20900
20901
20902  prefix_NONE=
20903  exec_prefix_NONE=
20904  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20905  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20906  eval ac_define_dir="\"$DRI_DRIVER_PATH\""
20907  eval ac_define_dir="\"$ac_define_dir\""
20908  DRI_DRIVER_PATH="$ac_define_dir"
20909
20910
20911cat >>confdefs.h <<_ACEOF
20912#define DRI_DRIVER_PATH "$ac_define_dir"
20913_ACEOF
20914
20915  test "$prefix_NONE" && prefix=NONE
20916  test "$exec_prefix_NONE" && exec_prefix=NONE
20917
20918
20919cat >>confdefs.h <<_ACEOF
20920#define XVENDORNAME "$VENDOR_NAME"
20921_ACEOF
20922
20923
20924cat >>confdefs.h <<_ACEOF
20925#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
20926_ACEOF
20927
20928
20929cat >>confdefs.h <<_ACEOF
20930#define XORG_DATE "$RELEASE_DATE"
20931_ACEOF
20932
20933
20934cat >>confdefs.h <<_ACEOF
20935#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
20936_ACEOF
20937
20938
20939cat >>confdefs.h <<_ACEOF
20940#define BUILDERADDR "$BUILDERADDR"
20941_ACEOF
20942
20943
20944if test -z "$OSNAME"; then
20945    OSNAME="UNKNOWN"
20946fi
20947
20948
20949cat >>confdefs.h <<_ACEOF
20950#define OSNAME "$OSNAME"
20951_ACEOF
20952
20953
20954cat >>confdefs.h <<_ACEOF
20955#define OSVENDOR "$OSVENDOR"
20956_ACEOF
20957
20958
20959cat >>confdefs.h <<_ACEOF
20960#define BUILDERSTRING "$BUILDERSTRING"
20961_ACEOF
20962
20963
20964
20965
20966cat >>confdefs.h <<_ACEOF
20967#define VENDOR_NAME "$VENDOR_NAME"
20968_ACEOF
20969
20970
20971cat >>confdefs.h <<_ACEOF
20972#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
20973_ACEOF
20974
20975
20976cat >>confdefs.h <<_ACEOF
20977#define VENDOR_RELEASE $VENDOR_RELEASE
20978_ACEOF
20979
20980
20981cat >>confdefs.h <<_ACEOF
20982#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
20983_ACEOF
20984
20985
20986
20987$as_echo "#define NO_LIBCWRAPPER 1" >>confdefs.h
20988
20989
20990if test "x$DEBUGGING" = xyes; then
20991
20992$as_echo "#define DEBUG 1" >>confdefs.h
20993
20994fi
20995 if test "x$DEBUGGING" = xyes; then
20996  DEBUG_TRUE=
20997  DEBUG_FALSE='#'
20998else
20999  DEBUG_TRUE='#'
21000  DEBUG_FALSE=
21001fi
21002
21003
21004# If unittests aren't explicitly disabled, check for required support
21005if test "x$UNITTESTS" != xno ; then
21006
21007pkg_failed=no
21008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
21009$as_echo_n "checking for GLIB... " >&6; }
21010
21011if test -n "$GLIB_CFLAGS"; then
21012    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
21013 elif test -n "$PKG_CONFIG"; then
21014    if test -n "$PKG_CONFIG" && \
21015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\""; } >&5
21016  ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5
21017  ac_status=$?
21018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21019  test $ac_status = 0; }; then
21020  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$LIBGLIB" 2>/dev/null`
21021else
21022  pkg_failed=yes
21023fi
21024 else
21025    pkg_failed=untried
21026fi
21027if test -n "$GLIB_LIBS"; then
21028    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
21029 elif test -n "$PKG_CONFIG"; then
21030    if test -n "$PKG_CONFIG" && \
21031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBGLIB\""; } >&5
21032  ($PKG_CONFIG --exists --print-errors "$LIBGLIB") 2>&5
21033  ac_status=$?
21034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21035  test $ac_status = 0; }; then
21036  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$LIBGLIB" 2>/dev/null`
21037else
21038  pkg_failed=yes
21039fi
21040 else
21041    pkg_failed=untried
21042fi
21043
21044
21045
21046if test $pkg_failed = yes; then
21047   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21048$as_echo "no" >&6; }
21049
21050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21051        _pkg_short_errors_supported=yes
21052else
21053        _pkg_short_errors_supported=no
21054fi
21055        if test $_pkg_short_errors_supported = yes; then
21056	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBGLIB" 2>&1`
21057        else
21058	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBGLIB" 2>&1`
21059        fi
21060	# Put the nasty error message in config.log where it belongs
21061	echo "$GLIB_PKG_ERRORS" >&5
21062
21063	HAVE_GLIB=no
21064elif test $pkg_failed = untried; then
21065     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21066$as_echo "no" >&6; }
21067	HAVE_GLIB=no
21068else
21069	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
21070	GLIB_LIBS=$pkg_cv_GLIB_LIBS
21071        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21072$as_echo "yes" >&6; }
21073	HAVE_GLIB=yes
21074fi
21075
21076       # Check if linker supports -wrap, passed via compiler flags
21077       # When cross-compiling, reports no, since unit tests run from
21078       # "make check", so would be running on build machine,  not target
21079       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -wrap" >&5
21080$as_echo_n "checking whether the linker supports -wrap... " >&6; }
21081       save_LDFLAGS="$LDFLAGS"
21082       LDFLAGS="$LDFLAGS -Wl,-wrap,exit"
21083       if test "$cross_compiling" = yes; then :
21084  linker_can_wrap="no"
21085else
21086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087/* end confdefs.h.  */
21088
21089	void __wrap_exit (int s)
21090	{
21091	    __real_exit (0);
21092	}
21093int
21094main ()
21095{
21096exit (1);
21097  ;
21098  return 0;
21099}
21100_ACEOF
21101if ac_fn_c_try_run "$LINENO"; then :
21102  linker_can_wrap="yes"
21103else
21104  linker_can_wrap="no"
21105fi
21106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21107  conftest.$ac_objext conftest.beam conftest.$ac_ext
21108fi
21109
21110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $linker_can_wrap" >&5
21111$as_echo "$linker_can_wrap" >&6; }
21112       LDFLAGS="$save_LDFLAGS"
21113fi
21114
21115if test "x$UNITTESTS" = xauto; then
21116       if test "x$HAVE_GLIB" = xyes && test "x$linker_can_wrap" = xyes; then
21117           UNITTESTS=yes
21118       else
21119           UNITTESTS=no
21120       fi
21121fi
21122if test "x$UNITTESTS" = xyes; then
21123       if test "x$HAVE_GLIB" = xno; then
21124           as_fn_error $? "glib required to build unit tests" "$LINENO" 5
21125       fi
21126       if test "x$linker_can_wrap" = xno; then
21127           as_fn_error $? "ld -wrap support required to build unit tests" "$LINENO" 5
21128       fi
21129
21130$as_echo "#define UNITTESTS 1" >>confdefs.h
21131
21132
21133
21134fi
21135 if test "x$UNITTESTS" = xyes; then
21136  UNITTESTS_TRUE=
21137  UNITTESTS_FALSE='#'
21138else
21139  UNITTESTS_TRUE='#'
21140  UNITTESTS_FALSE=
21141fi
21142
21143
21144
21145$as_echo "#define XTEST 1" >>confdefs.h
21146
21147
21148$as_echo "#define XSYNC 1" >>confdefs.h
21149
21150
21151$as_echo "#define XCMISC 1" >>confdefs.h
21152
21153
21154$as_echo "#define BIGREQS 1" >>confdefs.h
21155
21156
21157if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
21158  DIX_LIB='$(top_builddir)/dix/dix.O'
21159  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS)'
21160else
21161  DIX_LIB='$(top_builddir)/dix/libdix.la'
21162  OS_LIB='$(top_builddir)/os/libos.la'
21163fi
21164
21165
21166
21167MAIN_LIB='$(top_builddir)/dix/libmain.la'
21168
21169
21170MI_LIB='$(top_builddir)/mi/libmi.la'
21171MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
21172MI_INC='-I$(top_srcdir)/mi'
21173FB_LIB='$(top_builddir)/fb/libfb.la'
21174FB_INC='-I$(top_srcdir)/fb'
21175MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
21176MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
21177CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
21178
21179# SHA1 hashing
21180
21181# Check whether --with-sha1 was given.
21182if test "${with_sha1+set}" = set; then :
21183  withval=$with_sha1;
21184fi
21185
21186ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
21187if test "x$ac_cv_func_SHA1Init" = xyes; then :
21188  HAVE_SHA1_IN_LIBC=yes
21189fi
21190
21191if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
21192	with_sha1=libc
21193fi
21194if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
21195	as_fn_error $? "libc requested but not found" "$LINENO" 5
21196fi
21197if test "x$with_sha1" = xlibc; then
21198
21199$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
21200
21201	SHA1_LIBS=""
21202fi
21203ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
21204if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then :
21205  HAVE_SHA1_IN_COMMONCRYPTO=yes
21206fi
21207
21208if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
21209	with_sha1=CommonCrypto
21210fi
21211if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
21212	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
21213fi
21214if test "x$with_sha1" = xCommonCrypto; then
21215
21216$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
21217
21218	SHA1_LIBS=""
21219fi
21220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
21221$as_echo_n "checking for SHA1Init in -lmd... " >&6; }
21222if ${ac_cv_lib_md_SHA1Init+:} false; then :
21223  $as_echo_n "(cached) " >&6
21224else
21225  ac_check_lib_save_LIBS=$LIBS
21226LIBS="-lmd  $LIBS"
21227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21228/* end confdefs.h.  */
21229
21230/* Override any GCC internal prototype to avoid an error.
21231   Use char because int might match the return type of a GCC
21232   builtin and then its argument prototype would still apply.  */
21233#ifdef __cplusplus
21234extern "C"
21235#endif
21236char SHA1Init ();
21237int
21238main ()
21239{
21240return SHA1Init ();
21241  ;
21242  return 0;
21243}
21244_ACEOF
21245if ac_fn_c_try_link "$LINENO"; then :
21246  ac_cv_lib_md_SHA1Init=yes
21247else
21248  ac_cv_lib_md_SHA1Init=no
21249fi
21250rm -f core conftest.err conftest.$ac_objext \
21251    conftest$ac_exeext conftest.$ac_ext
21252LIBS=$ac_check_lib_save_LIBS
21253fi
21254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
21255$as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
21256if test "x$ac_cv_lib_md_SHA1Init" = xyes; then :
21257  HAVE_LIBMD=yes
21258fi
21259
21260if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
21261	with_sha1=libmd
21262fi
21263if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
21264	as_fn_error $? "libmd requested but not found" "$LINENO" 5
21265fi
21266if test "x$with_sha1" = xlibmd; then
21267
21268$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
21269
21270	SHA1_LIBS=-lmd
21271fi
21272
21273pkg_failed=no
21274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
21275$as_echo_n "checking for LIBSHA1... " >&6; }
21276
21277if test -n "$LIBSHA1_CFLAGS"; then
21278    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
21279 elif test -n "$PKG_CONFIG"; then
21280    if test -n "$PKG_CONFIG" && \
21281    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
21282  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
21283  ac_status=$?
21284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21285  test $ac_status = 0; }; then
21286  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
21287else
21288  pkg_failed=yes
21289fi
21290 else
21291    pkg_failed=untried
21292fi
21293if test -n "$LIBSHA1_LIBS"; then
21294    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
21295 elif test -n "$PKG_CONFIG"; then
21296    if test -n "$PKG_CONFIG" && \
21297    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
21298  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
21299  ac_status=$?
21300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21301  test $ac_status = 0; }; then
21302  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
21303else
21304  pkg_failed=yes
21305fi
21306 else
21307    pkg_failed=untried
21308fi
21309
21310
21311
21312if test $pkg_failed = yes; then
21313   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21314$as_echo "no" >&6; }
21315
21316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21317        _pkg_short_errors_supported=yes
21318else
21319        _pkg_short_errors_supported=no
21320fi
21321        if test $_pkg_short_errors_supported = yes; then
21322	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libsha1" 2>&1`
21323        else
21324	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors "libsha1" 2>&1`
21325        fi
21326	# Put the nasty error message in config.log where it belongs
21327	echo "$LIBSHA1_PKG_ERRORS" >&5
21328
21329	HAVE_LIBSHA1=no
21330elif test $pkg_failed = untried; then
21331     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21332$as_echo "no" >&6; }
21333	HAVE_LIBSHA1=no
21334else
21335	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
21336	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
21337        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21338$as_echo "yes" >&6; }
21339	HAVE_LIBSHA1=yes
21340fi
21341if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
21342   with_sha1=libsha1
21343fi
21344if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
21345	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
21346fi
21347if test "x$with_sha1" = xlibsha1; then
21348
21349$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
21350
21351	SHA1_LIBS=-lsha1
21352fi
21353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
21354$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; }
21355if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then :
21356  $as_echo_n "(cached) " >&6
21357else
21358  ac_check_lib_save_LIBS=$LIBS
21359LIBS="-lgcrypt  $LIBS"
21360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21361/* end confdefs.h.  */
21362
21363/* Override any GCC internal prototype to avoid an error.
21364   Use char because int might match the return type of a GCC
21365   builtin and then its argument prototype would still apply.  */
21366#ifdef __cplusplus
21367extern "C"
21368#endif
21369char gcry_md_open ();
21370int
21371main ()
21372{
21373return gcry_md_open ();
21374  ;
21375  return 0;
21376}
21377_ACEOF
21378if ac_fn_c_try_link "$LINENO"; then :
21379  ac_cv_lib_gcrypt_gcry_md_open=yes
21380else
21381  ac_cv_lib_gcrypt_gcry_md_open=no
21382fi
21383rm -f core conftest.err conftest.$ac_objext \
21384    conftest$ac_exeext conftest.$ac_ext
21385LIBS=$ac_check_lib_save_LIBS
21386fi
21387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
21388$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
21389if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then :
21390  HAVE_LIBGCRYPT=yes
21391fi
21392
21393if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
21394	with_sha1=libgcrypt
21395fi
21396if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
21397	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
21398fi
21399if test "x$with_sha1" = xlibgcrypt; then
21400
21401$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
21402
21403	SHA1_LIBS=-lgcrypt
21404fi
21405# We don't need all of the OpenSSL libraries, just libcrypto
21406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
21407$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
21408if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
21409  $as_echo_n "(cached) " >&6
21410else
21411  ac_check_lib_save_LIBS=$LIBS
21412LIBS="-lcrypto  $LIBS"
21413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414/* end confdefs.h.  */
21415
21416/* Override any GCC internal prototype to avoid an error.
21417   Use char because int might match the return type of a GCC
21418   builtin and then its argument prototype would still apply.  */
21419#ifdef __cplusplus
21420extern "C"
21421#endif
21422char SHA1_Init ();
21423int
21424main ()
21425{
21426return SHA1_Init ();
21427  ;
21428  return 0;
21429}
21430_ACEOF
21431if ac_fn_c_try_link "$LINENO"; then :
21432  ac_cv_lib_crypto_SHA1_Init=yes
21433else
21434  ac_cv_lib_crypto_SHA1_Init=no
21435fi
21436rm -f core conftest.err conftest.$ac_objext \
21437    conftest$ac_exeext conftest.$ac_ext
21438LIBS=$ac_check_lib_save_LIBS
21439fi
21440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
21441$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
21442if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
21443  HAVE_LIBCRYPTO=yes
21444fi
21445
21446
21447pkg_failed=no
21448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
21449$as_echo_n "checking for OPENSSL... " >&6; }
21450
21451if test -n "$OPENSSL_CFLAGS"; then
21452    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
21453 elif test -n "$PKG_CONFIG"; then
21454    if test -n "$PKG_CONFIG" && \
21455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
21456  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
21457  ac_status=$?
21458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459  test $ac_status = 0; }; then
21460  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
21461else
21462  pkg_failed=yes
21463fi
21464 else
21465    pkg_failed=untried
21466fi
21467if test -n "$OPENSSL_LIBS"; then
21468    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
21469 elif test -n "$PKG_CONFIG"; then
21470    if test -n "$PKG_CONFIG" && \
21471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
21472  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
21473  ac_status=$?
21474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21475  test $ac_status = 0; }; then
21476  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
21477else
21478  pkg_failed=yes
21479fi
21480 else
21481    pkg_failed=untried
21482fi
21483
21484
21485
21486if test $pkg_failed = yes; then
21487   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21488$as_echo "no" >&6; }
21489
21490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21491        _pkg_short_errors_supported=yes
21492else
21493        _pkg_short_errors_supported=no
21494fi
21495        if test $_pkg_short_errors_supported = yes; then
21496	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
21497        else
21498	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
21499        fi
21500	# Put the nasty error message in config.log where it belongs
21501	echo "$OPENSSL_PKG_ERRORS" >&5
21502
21503	HAVE_OPENSSL_PKC=no
21504elif test $pkg_failed = untried; then
21505     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506$as_echo "no" >&6; }
21507	HAVE_OPENSSL_PKC=no
21508else
21509	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
21510	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
21511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21512$as_echo "yes" >&6; }
21513	HAVE_OPENSSL_PKC=yes
21514fi
21515if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
21516	if test "x$with_sha1" = x; then
21517		with_sha1=libcrypto
21518	fi
21519else
21520	if test "x$with_sha1" = xlibcrypto; then
21521		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
21522	fi
21523fi
21524if test "x$with_sha1" = xlibcrypto; then
21525	if test "x$HAVE_LIBCRYPTO" = xyes; then
21526		SHA1_LIBS=-lcrypto
21527	else
21528		SHA1_LIBS="$OPENSSL_LIBS"
21529		SHA1_CFLAGS="$OPENSSL_CFLAGS"
21530	fi
21531fi
21532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
21533$as_echo_n "checking for SHA1 implementation... " >&6; }
21534if test "x$with_sha1" = x; then
21535	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
21536fi
21537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
21538$as_echo "$with_sha1" >&6; }
21539
21540
21541
21542
21543pkg_failed=no
21544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
21545$as_echo_n "checking for XSERVERCFLAGS... " >&6; }
21546
21547if test -n "$XSERVERCFLAGS_CFLAGS"; then
21548    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
21549 elif test -n "$PKG_CONFIG"; then
21550    if test -n "$PKG_CONFIG" && \
21551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
21552  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
21553  ac_status=$?
21554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21555  test $ac_status = 0; }; then
21556  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
21557else
21558  pkg_failed=yes
21559fi
21560 else
21561    pkg_failed=untried
21562fi
21563if test -n "$XSERVERCFLAGS_LIBS"; then
21564    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
21565 elif test -n "$PKG_CONFIG"; then
21566    if test -n "$PKG_CONFIG" && \
21567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
21568  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
21569  ac_status=$?
21570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21571  test $ac_status = 0; }; then
21572  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
21573else
21574  pkg_failed=yes
21575fi
21576 else
21577    pkg_failed=untried
21578fi
21579
21580
21581
21582if test $pkg_failed = yes; then
21583   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21584$as_echo "no" >&6; }
21585
21586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21587        _pkg_short_errors_supported=yes
21588else
21589        _pkg_short_errors_supported=no
21590fi
21591        if test $_pkg_short_errors_supported = yes; then
21592	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
21593        else
21594	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
21595        fi
21596	# Put the nasty error message in config.log where it belongs
21597	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
21598
21599	as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
21600
21601$XSERVERCFLAGS_PKG_ERRORS
21602
21603Consider adjusting the PKG_CONFIG_PATH environment variable if you
21604installed software in a non-standard prefix.
21605
21606Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
21607and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
21608See the pkg-config man page for more details." "$LINENO" 5
21609elif test $pkg_failed = untried; then
21610     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21611$as_echo "no" >&6; }
21612	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21614as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21615is in your PATH or set the PKG_CONFIG environment variable to the full
21616path to pkg-config.
21617
21618Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
21619and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
21620See the pkg-config man page for more details.
21621
21622To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21623See \`config.log' for more details" "$LINENO" 5; }
21624else
21625	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
21626	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
21627        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21628$as_echo "yes" >&6; }
21629
21630fi
21631
21632pkg_failed=no
21633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
21634$as_echo_n "checking for XSERVERLIBS... " >&6; }
21635
21636if test -n "$XSERVERLIBS_CFLAGS"; then
21637    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
21638 elif test -n "$PKG_CONFIG"; then
21639    if test -n "$PKG_CONFIG" && \
21640    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
21641  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
21642  ac_status=$?
21643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21644  test $ac_status = 0; }; then
21645  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
21646else
21647  pkg_failed=yes
21648fi
21649 else
21650    pkg_failed=untried
21651fi
21652if test -n "$XSERVERLIBS_LIBS"; then
21653    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
21654 elif test -n "$PKG_CONFIG"; then
21655    if test -n "$PKG_CONFIG" && \
21656    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
21657  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
21658  ac_status=$?
21659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660  test $ac_status = 0; }; then
21661  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
21662else
21663  pkg_failed=yes
21664fi
21665 else
21666    pkg_failed=untried
21667fi
21668
21669
21670
21671if test $pkg_failed = yes; then
21672   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21673$as_echo "no" >&6; }
21674
21675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21676        _pkg_short_errors_supported=yes
21677else
21678        _pkg_short_errors_supported=no
21679fi
21680        if test $_pkg_short_errors_supported = yes; then
21681	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$REQUIRED_LIBS" 2>&1`
21682        else
21683	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$REQUIRED_LIBS" 2>&1`
21684        fi
21685	# Put the nasty error message in config.log where it belongs
21686	echo "$XSERVERLIBS_PKG_ERRORS" >&5
21687
21688	as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
21689
21690$XSERVERLIBS_PKG_ERRORS
21691
21692Consider adjusting the PKG_CONFIG_PATH environment variable if you
21693installed software in a non-standard prefix.
21694
21695Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
21696and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
21697See the pkg-config man page for more details." "$LINENO" 5
21698elif test $pkg_failed = untried; then
21699     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21700$as_echo "no" >&6; }
21701	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21703as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21704is in your PATH or set the PKG_CONFIG environment variable to the full
21705path to pkg-config.
21706
21707Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
21708and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
21709See the pkg-config man page for more details.
21710
21711To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21712See \`config.log' for more details" "$LINENO" 5; }
21713else
21714	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
21715	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
21716        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21717$as_echo "yes" >&6; }
21718
21719fi
21720
21721# Autotools has some unfortunate issues with library handling.  In order to
21722# get a server to rebuild when a dependency in the tree is changed, it must
21723# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
21724# listed there, or some versions of autotools will break (especially if a -L
21725# is required to find the library).  So, we keep two sets of libraries
21726# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
21727# will go into the _DEPENDENCIES and _LDADD of the server, and
21728# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
21729# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
21730# NAMESPACE_SYS_LIBS.
21731#
21732# XSERVER_LIBS is the set of in-tree libraries which all servers require.
21733# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
21734# require.
21735#
21736XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
21737XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
21738XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
21739
21740
21741
21742UTILS_SYS_LIBS="${SYS_LIBS}"
21743
21744
21745# The Xorg binary needs to export symbols so that they can be used from modules
21746# Some platforms require extra flags to do this.   libtool should set the
21747# necessary flags for each platform when -export-dynamic is passed to it.
21748LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
21749
21750
21751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
21752$as_echo_n "checking if SVR4 needs to be defined... " >&6; }
21753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754/* end confdefs.h.  */
21755
21756#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
21757 I_AM_SVR4
21758#endif
21759
21760_ACEOF
21761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21762  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then :
21763
21764
21765$as_echo "#define SVR4 1" >>confdefs.h
21766
21767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21768$as_echo "yes" >&6; }
21769else
21770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21771$as_echo "no" >&6; }
21772fi
21773rm -f conftest*
21774
21775
21776XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC"
21777
21778
21779
21780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
21781$as_echo_n "checking whether to build Xvfb DDX... " >&6; }
21782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
21783$as_echo "$XVFB" >&6; }
21784 if test "x$XVFB" = xyes; then
21785  XVFB_TRUE=
21786  XVFB_FALSE='#'
21787else
21788  XVFB_TRUE='#'
21789  XVFB_FALSE=
21790fi
21791
21792
21793if test "x$XVFB" = xyes; then
21794	XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB"
21795	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
21796
21797
21798fi
21799
21800
21801
21802
21803pkg_failed=no
21804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
21805$as_echo_n "checking for XNESTMODULES... " >&6; }
21806
21807if test -n "$XNESTMODULES_CFLAGS"; then
21808    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
21809 elif test -n "$PKG_CONFIG"; then
21810    if test -n "$PKG_CONFIG" && \
21811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
21812  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
21813  ac_status=$?
21814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21815  test $ac_status = 0; }; then
21816  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
21817else
21818  pkg_failed=yes
21819fi
21820 else
21821    pkg_failed=untried
21822fi
21823if test -n "$XNESTMODULES_LIBS"; then
21824    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
21825 elif test -n "$PKG_CONFIG"; then
21826    if test -n "$PKG_CONFIG" && \
21827    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
21828  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
21829  ac_status=$?
21830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21831  test $ac_status = 0; }; then
21832  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
21833else
21834  pkg_failed=yes
21835fi
21836 else
21837    pkg_failed=untried
21838fi
21839
21840
21841
21842if test $pkg_failed = yes; then
21843   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21844$as_echo "no" >&6; }
21845
21846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21847        _pkg_short_errors_supported=yes
21848else
21849        _pkg_short_errors_supported=no
21850fi
21851        if test $_pkg_short_errors_supported = yes; then
21852	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
21853        else
21854	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
21855        fi
21856	# Put the nasty error message in config.log where it belongs
21857	echo "$XNESTMODULES_PKG_ERRORS" >&5
21858
21859	have_xnest=no
21860elif test $pkg_failed = untried; then
21861     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21862$as_echo "no" >&6; }
21863	have_xnest=no
21864else
21865	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
21866	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
21867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21868$as_echo "yes" >&6; }
21869	have_xnest=yes
21870fi
21871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
21872$as_echo_n "checking whether to build Xnest DDX... " >&6; }
21873if test "x$XNEST" = xauto; then
21874	XNEST="$have_xnest"
21875fi
21876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
21877$as_echo "$XNEST" >&6; }
21878 if test "x$XNEST" = xyes; then
21879  XNEST_TRUE=
21880  XNEST_FALSE='#'
21881else
21882  XNEST_TRUE='#'
21883  XNEST_FALSE=
21884fi
21885
21886
21887if test "x$XNEST" = xyes; then
21888	if test "x$have_xnest" = xno; then
21889		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
21890	fi
21891	XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DIX_LIB $MAIN_LIB $OS_LIB"
21892	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
21893
21894
21895fi
21896
21897
21898
21899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
21900$as_echo_n "checking whether to build Xorg DDX... " >&6; }
21901if test "x$XORG" = xauto; then
21902	XORG="yes"
21903	case $host_os in
21904		cygwin*) XORG="no" ;;
21905		darwin*) XORG="no" ;;
21906	esac
21907fi
21908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
21909$as_echo "$XORG" >&6; }
21910
21911xorg_bus_linuxpci=no
21912xorg_bus_bsdpci=no
21913xorg_bus_sparc=no
21914
21915if test "x$XORG" = xyes; then
21916	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
21917	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
21918	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
21919	XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
21920	XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB"
21921
21922			symbol_visibility=
21923	have_visibility=disabled
21924	if test x$SYMBOL_VISIBILITY != xno; then
21925	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
21926$as_echo_n "checking for symbol visibility support... " >&6; }
21927	    if test x$GCC = xyes; then
21928		VISIBILITY_CFLAGS="-fvisibility=hidden"
21929	    else
21930		ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
21931if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
21932  SUNCC="yes"
21933else
21934  SUNCC="no"
21935fi
21936
21937		if test x$SUNCC = xyes; then
21938		    VISIBILITY_CFLAGS="-xldscope=hidden"
21939		else
21940		    have_visibility=no
21941		fi
21942	    fi
21943	    if test x$have_visibility != xno; then
21944		save_CFLAGS="$CFLAGS"
21945		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
21946		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947/* end confdefs.h.  */
21948#include <X11/Xfuncproto.h>
21949		     extern _X_HIDDEN int hidden_int;
21950		     extern _X_EXPORT int public_int;
21951		     extern _X_HIDDEN int hidden_int_func(void);
21952		     extern _X_EXPORT int public_int_func(void);
21953int
21954main ()
21955{
21956
21957  ;
21958  return 0;
21959}
21960_ACEOF
21961if ac_fn_c_try_compile "$LINENO"; then :
21962  have_visibility=yes
21963else
21964  have_visibility=no
21965fi
21966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967		CFLAGS=$save_CFLAGS
21968	    fi
21969	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
21970$as_echo "$have_visibility" >&6; }
21971	    if test x$have_visibility != xno; then
21972		symbol_visibility=$VISIBILITY_CFLAGS
21973		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
21974		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
21975	    fi
21976	fi
21977
21978
21979
21980pkg_failed=no
21981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
21982$as_echo_n "checking for PCIACCESS... " >&6; }
21983
21984if test -n "$PCIACCESS_CFLAGS"; then
21985    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21986 elif test -n "$PKG_CONFIG"; then
21987    if test -n "$PKG_CONFIG" && \
21988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
21989  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
21990  ac_status=$?
21991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21992  test $ac_status = 0; }; then
21993  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
21994else
21995  pkg_failed=yes
21996fi
21997 else
21998    pkg_failed=untried
21999fi
22000if test -n "$PCIACCESS_LIBS"; then
22001    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
22002 elif test -n "$PKG_CONFIG"; then
22003    if test -n "$PKG_CONFIG" && \
22004    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
22005  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
22006  ac_status=$?
22007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22008  test $ac_status = 0; }; then
22009  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
22010else
22011  pkg_failed=yes
22012fi
22013 else
22014    pkg_failed=untried
22015fi
22016
22017
22018
22019if test $pkg_failed = yes; then
22020   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22021$as_echo "no" >&6; }
22022
22023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22024        _pkg_short_errors_supported=yes
22025else
22026        _pkg_short_errors_supported=no
22027fi
22028        if test $_pkg_short_errors_supported = yes; then
22029	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBPCIACCESS" 2>&1`
22030        else
22031	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBPCIACCESS" 2>&1`
22032        fi
22033	# Put the nasty error message in config.log where it belongs
22034	echo "$PCIACCESS_PKG_ERRORS" >&5
22035
22036	as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
22037
22038$PCIACCESS_PKG_ERRORS
22039
22040Consider adjusting the PKG_CONFIG_PATH environment variable if you
22041installed software in a non-standard prefix.
22042
22043Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22044and PCIACCESS_LIBS to avoid the need to call pkg-config.
22045See the pkg-config man page for more details." "$LINENO" 5
22046elif test $pkg_failed = untried; then
22047     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22048$as_echo "no" >&6; }
22049	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22051as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22052is in your PATH or set the PKG_CONFIG environment variable to the full
22053path to pkg-config.
22054
22055Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22056and PCIACCESS_LIBS to avoid the need to call pkg-config.
22057See the pkg-config man page for more details.
22058
22059To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22060See \`config.log' for more details" "$LINENO" 5; }
22061else
22062	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22063	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22064        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22065$as_echo "yes" >&6; }
22066
22067fi
22068	SAVE_LIBS=$LIBS
22069	SAVE_CFLAGS=$CFLAGS
22070	CFLAGS=$PCIACCESS_CFLAGS
22071	LIBS=$PCIACCESS_LIBS
22072	for ac_func in pci_system_init_dev_mem
22073do :
22074  ac_fn_c_check_func "$LINENO" "pci_system_init_dev_mem" "ac_cv_func_pci_system_init_dev_mem"
22075if test "x$ac_cv_func_pci_system_init_dev_mem" = xyes; then :
22076  cat >>confdefs.h <<_ACEOF
22077#define HAVE_PCI_SYSTEM_INIT_DEV_MEM 1
22078_ACEOF
22079
22080fi
22081done
22082
22083	for ac_func in pci_device_enable
22084do :
22085  ac_fn_c_check_func "$LINENO" "pci_device_enable" "ac_cv_func_pci_device_enable"
22086if test "x$ac_cv_func_pci_device_enable" = xyes; then :
22087  cat >>confdefs.h <<_ACEOF
22088#define HAVE_PCI_DEVICE_ENABLE 1
22089_ACEOF
22090
22091fi
22092done
22093
22094	for ac_func in pci_device_is_boot_vga
22095do :
22096  ac_fn_c_check_func "$LINENO" "pci_device_is_boot_vga" "ac_cv_func_pci_device_is_boot_vga"
22097if test "x$ac_cv_func_pci_device_is_boot_vga" = xyes; then :
22098  cat >>confdefs.h <<_ACEOF
22099#define HAVE_PCI_DEVICE_IS_BOOT_VGA 1
22100_ACEOF
22101
22102fi
22103done
22104
22105	for ac_func in pci_device_vgaarb_init
22106do :
22107  ac_fn_c_check_func "$LINENO" "pci_device_vgaarb_init" "ac_cv_func_pci_device_vgaarb_init"
22108if test "x$ac_cv_func_pci_device_vgaarb_init" = xyes; then :
22109  cat >>confdefs.h <<_ACEOF
22110#define HAVE_PCI_DEVICE_VGAARB_INIT 1
22111_ACEOF
22112
22113fi
22114done
22115
22116	LIBS=$SAVE_LIBS
22117	CFLAGS=$SAVE_CFLAGS
22118	XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $GLX_SYS_LIBS"
22119	XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
22120
22121	case $host_os in
22122	  linux*)
22123		if test "x$LNXAPM" = xyes; then
22124			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
22125		fi
22126	  	XORG_OS="linux"
22127		XORG_OS_SUBDIR="linux"
22128		xorg_bus_linuxpci="yes"
22129		linux_acpi="no"
22130		case $host_cpu in
22131		  ia64*)
22132			linux_ia64=yes
22133			linux_acpi="yes"
22134			;;
22135		  alpha*)
22136		  	linux_alpha=yes
22137			;;
22138		  i*86|amd64*|x86_64*)
22139			linux_acpi="yes"
22140			;;
22141		  *)
22142			;;
22143		esac
22144		;;
22145	  freebsd* | kfreebsd*-gnu | dragonfly*)
22146	  	XORG_OS="freebsd"
22147		XORG_OS_SUBDIR="bsd"
22148		xorg_bus_bsdpci="yes"
22149		;;
22150	  netbsd*)
22151	  	XORG_OS="netbsd"
22152		XORG_OS_SUBDIR="bsd"
22153		xorg_bus_bsdpci="yes"
22154		;;
22155	  openbsd*)
22156		if test "x$ac_cv_BSD_APM" = xyes \
22157			-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
22158			XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
22159		fi
22160	  	XORG_OS="openbsd"
22161		XORG_OS_SUBDIR="bsd"
22162		xorg_bus_bsdpci="yes"
22163		;;
22164	  solaris*)
22165	  	XORG_OS="solaris"
22166		XORG_OS_SUBDIR="solaris"
22167		XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
22168		# Use the same stubs as BSD for old functions, since we now
22169		# use libpciaccess for PCI
22170		xorg_bus_bsdpci="yes"
22171		for ac_header in sys/kd.h
22172do :
22173  ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
22174if test "x$ac_cv_header_sys_kd_h" = xyes; then :
22175  cat >>confdefs.h <<_ACEOF
22176#define HAVE_SYS_KD_H 1
22177_ACEOF
22178
22179fi
22180
22181done
22182
22183		for ac_header in sys/vt.h
22184do :
22185  ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
22186if test "x$ac_cv_header_sys_vt_h" = xyes; then :
22187  cat >>confdefs.h <<_ACEOF
22188#define HAVE_SYS_VT_H 1
22189_ACEOF
22190 solaris_vt=yes
22191else
22192  solaris_vt=no
22193fi
22194
22195done
22196
22197		# Check for minimum supported release
22198		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
22199$as_echo_n "checking Solaris version... " >&6; }
22200	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
22201		if test "${OS_MINOR}" -ge 7 ; then
22202	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
22203$as_echo "Solaris ${OS_MINOR}" >&6; }
22204		else
22205			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
22206$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
22207		fi
22208		if test "${OS_MINOR}" -lt 8 ; then
22209			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
22210		fi
22211		ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
22212if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
22213  SUNCC="yes"
22214else
22215  SUNCC="no"
22216fi
22217
22218		if test "x$SUNCC" = "xyes"; then
22219			solaris_asm_inline="yes"
22220		fi
22221		ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
22222if test "x$ac_cv_have_decl__LP64" = xyes; then :
22223  SOLARIS_64="yes"
22224else
22225  SOLARIS_64="no"
22226fi
22227
22228
22229		case $host_cpu in
22230		  sparc*)
22231			SOLARIS_INOUT_ARCH="sparcv8plus"
22232			;;
22233		  i*86)
22234			if test x$SOLARIS_64 = xyes ; then
22235				SOLARIS_INOUT_ARCH="amd64"
22236			else
22237				SOLARIS_INOUT_ARCH="ia32"
22238			fi
22239			;;
22240		  *)
22241			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
22242			are supported on Solaris in this release.   If you are \
22243			interested in porting Xorg to your platform, please email \
22244			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
22245		esac
22246
22247		if test x$solaris_asm_inline = xyes ; then
22248			SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il'
22249			XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
22250		fi
22251
22252		if test "x$SUPPORT_PC98" = xauto; then
22253			SUPPORT_PC98="no"
22254		fi
22255		;;
22256	  gnu*)
22257	  	XORG_OS="gnu"
22258		XORG_OS_SUBDIR="hurd"
22259		# Use the same stubs as BSD for old functions, since we now
22260		# use libpciaccess for PCI
22261		xorg_bus_bsdpci="yes"
22262		;;
22263	  *)
22264	  	XORG_OS="unknown"
22265		XORG_OS_SUBDIR="unknown"
22266		as_fn_error $? "Your OS is unknown. Xorg currently only supports Linux,
22267Free/Open/Net/DragonFlyBSD, Solaris/OpenSolaris, & GNU Hurd. If you are
22268interested in porting Xorg to your platform, please email
22269xorg@lists.freedesktop.org." "$LINENO" 5
22270		;;
22271	esac
22272
22273	case $host_cpu in
22274	  sparc*)
22275		xorg_bus_sparc="yes"
22276		;;
22277	  i*86)
22278		if test "x$SUPPORT_PC98" = xauto; then
22279			SUPPORT_PC98="yes"
22280		fi
22281		;;
22282	esac
22283
22284	if test "x$SUPPORT_PC98" = xauto; then
22285		SUPPORT_PC98="no"
22286	fi
22287	if test "x$SUPPORT_PC98" = xyes; then
22288
22289$as_echo "#define SUPPORT_PC98 1" >>confdefs.h
22290
22291	fi
22292	if test "x$XORG_OS_PCI" = x ; then
22293		XORG_OS_PCI=$XORG_OS
22294	fi
22295	if test "x$DGA" = xauto; then
22296
22297pkg_failed=no
22298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
22299$as_echo_n "checking for DGA... " >&6; }
22300
22301if test -n "$DGA_CFLAGS"; then
22302    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
22303 elif test -n "$PKG_CONFIG"; then
22304    if test -n "$PKG_CONFIG" && \
22305    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22306  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22307  ac_status=$?
22308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309  test $ac_status = 0; }; then
22310  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
22311else
22312  pkg_failed=yes
22313fi
22314 else
22315    pkg_failed=untried
22316fi
22317if test -n "$DGA_LIBS"; then
22318    pkg_cv_DGA_LIBS="$DGA_LIBS"
22319 elif test -n "$PKG_CONFIG"; then
22320    if test -n "$PKG_CONFIG" && \
22321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22322  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22323  ac_status=$?
22324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22325  test $ac_status = 0; }; then
22326  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
22327else
22328  pkg_failed=yes
22329fi
22330 else
22331    pkg_failed=untried
22332fi
22333
22334
22335
22336if test $pkg_failed = yes; then
22337   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338$as_echo "no" >&6; }
22339
22340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22341        _pkg_short_errors_supported=yes
22342else
22343        _pkg_short_errors_supported=no
22344fi
22345        if test $_pkg_short_errors_supported = yes; then
22346	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
22347        else
22348	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
22349        fi
22350	# Put the nasty error message in config.log where it belongs
22351	echo "$DGA_PKG_ERRORS" >&5
22352
22353	DGA=no
22354elif test $pkg_failed = untried; then
22355     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22356$as_echo "no" >&6; }
22357	DGA=no
22358else
22359	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
22360	DGA_LIBS=$pkg_cv_DGA_LIBS
22361        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22362$as_echo "yes" >&6; }
22363	DGA=yes
22364fi
22365	fi
22366	if test "x$DGA" = xyes; then
22367		XORG_MODULES="$XORG_MODULES $DGAPROTO"
22368
22369pkg_failed=no
22370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
22371$as_echo_n "checking for DGA... " >&6; }
22372
22373if test -n "$DGA_CFLAGS"; then
22374    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
22375 elif test -n "$PKG_CONFIG"; then
22376    if test -n "$PKG_CONFIG" && \
22377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22378  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22379  ac_status=$?
22380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22381  test $ac_status = 0; }; then
22382  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
22383else
22384  pkg_failed=yes
22385fi
22386 else
22387    pkg_failed=untried
22388fi
22389if test -n "$DGA_LIBS"; then
22390    pkg_cv_DGA_LIBS="$DGA_LIBS"
22391 elif test -n "$PKG_CONFIG"; then
22392    if test -n "$PKG_CONFIG" && \
22393    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
22394  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
22395  ac_status=$?
22396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22397  test $ac_status = 0; }; then
22398  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
22399else
22400  pkg_failed=yes
22401fi
22402 else
22403    pkg_failed=untried
22404fi
22405
22406
22407
22408if test $pkg_failed = yes; then
22409   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22410$as_echo "no" >&6; }
22411
22412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22413        _pkg_short_errors_supported=yes
22414else
22415        _pkg_short_errors_supported=no
22416fi
22417        if test $_pkg_short_errors_supported = yes; then
22418	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$DGAPROTO" 2>&1`
22419        else
22420	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "$DGAPROTO" 2>&1`
22421        fi
22422	# Put the nasty error message in config.log where it belongs
22423	echo "$DGA_PKG_ERRORS" >&5
22424
22425	as_fn_error $? "Package requirements ($DGAPROTO) were not met:
22426
22427$DGA_PKG_ERRORS
22428
22429Consider adjusting the PKG_CONFIG_PATH environment variable if you
22430installed software in a non-standard prefix.
22431
22432Alternatively, you may set the environment variables DGA_CFLAGS
22433and DGA_LIBS to avoid the need to call pkg-config.
22434See the pkg-config man page for more details." "$LINENO" 5
22435elif test $pkg_failed = untried; then
22436     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22437$as_echo "no" >&6; }
22438	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22440as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22441is in your PATH or set the PKG_CONFIG environment variable to the full
22442path to pkg-config.
22443
22444Alternatively, you may set the environment variables DGA_CFLAGS
22445and DGA_LIBS to avoid the need to call pkg-config.
22446See the pkg-config man page for more details.
22447
22448To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22449See \`config.log' for more details" "$LINENO" 5; }
22450else
22451	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
22452	DGA_LIBS=$pkg_cv_DGA_LIBS
22453        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22454$as_echo "yes" >&6; }
22455
22456fi
22457
22458$as_echo "#define DGA 1" >>confdefs.h
22459
22460
22461$as_echo "#define XFreeXDGA 1" >>confdefs.h
22462
22463	fi
22464
22465	if test "x$XF86VIDMODE" = xauto; then
22466
22467pkg_failed=no
22468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
22469$as_echo_n "checking for XF86VIDMODE... " >&6; }
22470
22471if test -n "$XF86VIDMODE_CFLAGS"; then
22472    pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
22473 elif test -n "$PKG_CONFIG"; then
22474    if test -n "$PKG_CONFIG" && \
22475    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22476  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22477  ac_status=$?
22478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22479  test $ac_status = 0; }; then
22480  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
22481else
22482  pkg_failed=yes
22483fi
22484 else
22485    pkg_failed=untried
22486fi
22487if test -n "$XF86VIDMODE_LIBS"; then
22488    pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
22489 elif test -n "$PKG_CONFIG"; then
22490    if test -n "$PKG_CONFIG" && \
22491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22492  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22493  ac_status=$?
22494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22495  test $ac_status = 0; }; then
22496  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
22497else
22498  pkg_failed=yes
22499fi
22500 else
22501    pkg_failed=untried
22502fi
22503
22504
22505
22506if test $pkg_failed = yes; then
22507   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22508$as_echo "no" >&6; }
22509
22510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22511        _pkg_short_errors_supported=yes
22512else
22513        _pkg_short_errors_supported=no
22514fi
22515        if test $_pkg_short_errors_supported = yes; then
22516	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
22517        else
22518	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
22519        fi
22520	# Put the nasty error message in config.log where it belongs
22521	echo "$XF86VIDMODE_PKG_ERRORS" >&5
22522
22523	XF86VIDMODE=no
22524elif test $pkg_failed = untried; then
22525     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22526$as_echo "no" >&6; }
22527	XF86VIDMODE=no
22528else
22529	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
22530	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
22531        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22532$as_echo "yes" >&6; }
22533	XF86VIDMODE=yes
22534fi
22535	fi
22536	if test "x$XF86VIDMODE" = xyes; then
22537		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
22538
22539pkg_failed=no
22540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
22541$as_echo_n "checking for XF86VIDMODE... " >&6; }
22542
22543if test -n "$XF86VIDMODE_CFLAGS"; then
22544    pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
22545 elif test -n "$PKG_CONFIG"; then
22546    if test -n "$PKG_CONFIG" && \
22547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22548  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22549  ac_status=$?
22550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22551  test $ac_status = 0; }; then
22552  pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "$VIDMODEPROTO" 2>/dev/null`
22553else
22554  pkg_failed=yes
22555fi
22556 else
22557    pkg_failed=untried
22558fi
22559if test -n "$XF86VIDMODE_LIBS"; then
22560    pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
22561 elif test -n "$PKG_CONFIG"; then
22562    if test -n "$PKG_CONFIG" && \
22563    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
22564  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
22565  ac_status=$?
22566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22567  test $ac_status = 0; }; then
22568  pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "$VIDMODEPROTO" 2>/dev/null`
22569else
22570  pkg_failed=yes
22571fi
22572 else
22573    pkg_failed=untried
22574fi
22575
22576
22577
22578if test $pkg_failed = yes; then
22579   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22580$as_echo "no" >&6; }
22581
22582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22583        _pkg_short_errors_supported=yes
22584else
22585        _pkg_short_errors_supported=no
22586fi
22587        if test $_pkg_short_errors_supported = yes; then
22588	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VIDMODEPROTO" 2>&1`
22589        else
22590	        XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VIDMODEPROTO" 2>&1`
22591        fi
22592	# Put the nasty error message in config.log where it belongs
22593	echo "$XF86VIDMODE_PKG_ERRORS" >&5
22594
22595	as_fn_error $? "Package requirements ($VIDMODEPROTO) were not met:
22596
22597$XF86VIDMODE_PKG_ERRORS
22598
22599Consider adjusting the PKG_CONFIG_PATH environment variable if you
22600installed software in a non-standard prefix.
22601
22602Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
22603and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
22604See the pkg-config man page for more details." "$LINENO" 5
22605elif test $pkg_failed = untried; then
22606     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22607$as_echo "no" >&6; }
22608	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22610as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22611is in your PATH or set the PKG_CONFIG environment variable to the full
22612path to pkg-config.
22613
22614Alternatively, you may set the environment variables XF86VIDMODE_CFLAGS
22615and XF86VIDMODE_LIBS to avoid the need to call pkg-config.
22616See the pkg-config man page for more details.
22617
22618To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22619See \`config.log' for more details" "$LINENO" 5; }
22620else
22621	XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
22622	XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
22623        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22624$as_echo "yes" >&6; }
22625
22626fi
22627
22628$as_echo "#define XF86VIDMODE 1" >>confdefs.h
22629
22630	fi
22631
22632	if test -n "$XORG_MODULES"; then
22633
22634pkg_failed=no
22635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
22636$as_echo_n "checking for XORG_MODULES... " >&6; }
22637
22638if test -n "$XORG_MODULES_CFLAGS"; then
22639    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
22640 elif test -n "$PKG_CONFIG"; then
22641    if test -n "$PKG_CONFIG" && \
22642    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
22643  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
22644  ac_status=$?
22645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22646  test $ac_status = 0; }; then
22647  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
22648else
22649  pkg_failed=yes
22650fi
22651 else
22652    pkg_failed=untried
22653fi
22654if test -n "$XORG_MODULES_LIBS"; then
22655    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
22656 elif test -n "$PKG_CONFIG"; then
22657    if test -n "$PKG_CONFIG" && \
22658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
22659  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
22660  ac_status=$?
22661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22662  test $ac_status = 0; }; then
22663  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
22664else
22665  pkg_failed=yes
22666fi
22667 else
22668    pkg_failed=untried
22669fi
22670
22671
22672
22673if test $pkg_failed = yes; then
22674   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22675$as_echo "no" >&6; }
22676
22677if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22678        _pkg_short_errors_supported=yes
22679else
22680        _pkg_short_errors_supported=no
22681fi
22682        if test $_pkg_short_errors_supported = yes; then
22683	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XORG_MODULES" 2>&1`
22684        else
22685	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XORG_MODULES" 2>&1`
22686        fi
22687	# Put the nasty error message in config.log where it belongs
22688	echo "$XORG_MODULES_PKG_ERRORS" >&5
22689
22690	as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
22691
22692$XORG_MODULES_PKG_ERRORS
22693
22694Consider adjusting the PKG_CONFIG_PATH environment variable if you
22695installed software in a non-standard prefix.
22696
22697Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
22698and XORG_MODULES_LIBS to avoid the need to call pkg-config.
22699See the pkg-config man page for more details." "$LINENO" 5
22700elif test $pkg_failed = untried; then
22701     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22702$as_echo "no" >&6; }
22703	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22705as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22706is in your PATH or set the PKG_CONFIG environment variable to the full
22707path to pkg-config.
22708
22709Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
22710and XORG_MODULES_LIBS to avoid the need to call pkg-config.
22711See the pkg-config man page for more details.
22712
22713To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22714See \`config.log' for more details" "$LINENO" 5; }
22715else
22716	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
22717	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
22718        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22719$as_echo "yes" >&6; }
22720
22721fi
22722	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
22723	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
22724	fi
22725
22726
22727
22728
22729
22730
22731
22732	# Extract the first word of "perl", so it can be a program name with args.
22733set dummy perl; ac_word=$2
22734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22735$as_echo_n "checking for $ac_word... " >&6; }
22736if ${ac_cv_path_PERL+:} false; then :
22737  $as_echo_n "(cached) " >&6
22738else
22739  case $PERL in
22740  [\\/]* | ?:[\\/]*)
22741  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22742  ;;
22743  *)
22744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22745for as_dir in $PATH
22746do
22747  IFS=$as_save_IFS
22748  test -z "$as_dir" && as_dir=.
22749    for ac_exec_ext in '' $ac_executable_extensions; do
22750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22751    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22753    break 2
22754  fi
22755done
22756  done
22757IFS=$as_save_IFS
22758
22759  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
22760  ;;
22761esac
22762fi
22763PERL=$ac_cv_path_PERL
22764if test -n "$PERL"; then
22765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22766$as_echo "$PERL" >&6; }
22767else
22768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22769$as_echo "no" >&6; }
22770fi
22771
22772
22773		if test "x$PERL" = xno; then
22774		as_fn_error $? "Perl is required to build the XFree86/Xorg DDX." "$LINENO" 5
22775	fi
22776
22777
22778
22779
22780		XF86CONFIGFILE="xorg.conf"
22781	XF86CONFIGDIR="xorg.conf.d"
22782
22783	CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
22784	LOGPREFIX="$logdir/Xorg."
22785
22786$as_echo "#define XORG_SERVER 1" >>confdefs.h
22787
22788
22789$as_echo "#define XORGSERVER 1" >>confdefs.h
22790
22791
22792$as_echo "#define XFree86Server 1" >>confdefs.h
22793
22794
22795$as_echo "#define XFree86LOADER 1" >>confdefs.h
22796
22797
22798cat >>confdefs.h <<_ACEOF
22799#define XORG_VERSION_CURRENT $VENDOR_RELEASE
22800_ACEOF
22801
22802
22803$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h
22804
22805
22806$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
22807
22808
22809$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
22810
22811
22812  prefix_NONE=
22813  exec_prefix_NONE=
22814  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22815  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22816  eval ac_define_dir="\"$XF86CONFIGFILE\""
22817  eval ac_define_dir="\"$ac_define_dir\""
22818  __XCONFIGFILE__="$ac_define_dir"
22819
22820
22821cat >>confdefs.h <<_ACEOF
22822#define __XCONFIGFILE__ "$ac_define_dir"
22823_ACEOF
22824
22825  test "$prefix_NONE" && prefix=NONE
22826  test "$exec_prefix_NONE" && exec_prefix=NONE
22827
22828
22829  prefix_NONE=
22830  exec_prefix_NONE=
22831  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22832  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22833  eval ac_define_dir="\"$XF86CONFIGFILE\""
22834  eval ac_define_dir="\"$ac_define_dir\""
22835  XF86CONFIGFILE="$ac_define_dir"
22836
22837
22838cat >>confdefs.h <<_ACEOF
22839#define XF86CONFIGFILE "$ac_define_dir"
22840_ACEOF
22841
22842  test "$prefix_NONE" && prefix=NONE
22843  test "$exec_prefix_NONE" && exec_prefix=NONE
22844
22845
22846  prefix_NONE=
22847  exec_prefix_NONE=
22848  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22849  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22850  eval ac_define_dir="\"$XF86CONFIGDIR\""
22851  eval ac_define_dir="\"$ac_define_dir\""
22852  __XCONFIGDIR__="$ac_define_dir"
22853
22854
22855cat >>confdefs.h <<_ACEOF
22856#define __XCONFIGDIR__ "$ac_define_dir"
22857_ACEOF
22858
22859  test "$prefix_NONE" && prefix=NONE
22860  test "$exec_prefix_NONE" && exec_prefix=NONE
22861
22862
22863  prefix_NONE=
22864  exec_prefix_NONE=
22865  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22866  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22867  eval ac_define_dir="\"$moduledir\""
22868  eval ac_define_dir="\"$ac_define_dir\""
22869  DEFAULT_MODULE_PATH="$ac_define_dir"
22870
22871
22872cat >>confdefs.h <<_ACEOF
22873#define DEFAULT_MODULE_PATH "$ac_define_dir"
22874_ACEOF
22875
22876  test "$prefix_NONE" && prefix=NONE
22877  test "$exec_prefix_NONE" && exec_prefix=NONE
22878
22879
22880  prefix_NONE=
22881  exec_prefix_NONE=
22882  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22883  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22884  eval ac_define_dir="\"$libdir\""
22885  eval ac_define_dir="\"$ac_define_dir\""
22886  DEFAULT_LIBRARY_PATH="$ac_define_dir"
22887
22888
22889cat >>confdefs.h <<_ACEOF
22890#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
22891_ACEOF
22892
22893  test "$prefix_NONE" && prefix=NONE
22894  test "$exec_prefix_NONE" && exec_prefix=NONE
22895
22896
22897  prefix_NONE=
22898  exec_prefix_NONE=
22899  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22900  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22901  eval ac_define_dir="\"$LOGPREFIX\""
22902  eval ac_define_dir="\"$ac_define_dir\""
22903  DEFAULT_LOGPREFIX="$ac_define_dir"
22904
22905
22906cat >>confdefs.h <<_ACEOF
22907#define DEFAULT_LOGPREFIX "$ac_define_dir"
22908_ACEOF
22909
22910  test "$prefix_NONE" && prefix=NONE
22911  test "$exec_prefix_NONE" && exec_prefix=NONE
22912
22913
22914cat >>confdefs.h <<_ACEOF
22915#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
22916_ACEOF
22917
22918
22919$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
22920
22921	if test "x$VGAHW" = xyes; then
22922
22923$as_echo "#define WITH_VGAHW 1" >>confdefs.h
22924
22925	fi
22926
22927	driverdir="$moduledir/drivers"
22928
22929
22930	sdkdir="$includedir/xorg"
22931	extdir="$includedir/X11/extensions"
22932	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
22933
22934
22935
22936
22937
22938	# stuff the ABI versions into the pc file too
22939	extract_abi() {
22940	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
22941	}
22942	abi_ansic=`extract_abi ANSIC`
22943	abi_videodrv=`extract_abi VIDEODRV`
22944	abi_xinput=`extract_abi XINPUT`
22945	abi_extension=`extract_abi EXTENSION`
22946
22947
22948
22949
22950fi
22951 if test "x$XORG" = xyes; then
22952  XORG_TRUE=
22953  XORG_FALSE='#'
22954else
22955  XORG_TRUE='#'
22956  XORG_FALSE=
22957fi
22958
22959 if test "x$xorg_bus_linuxpci" = xyes; then
22960  XORG_BUS_LINUXPCI_TRUE=
22961  XORG_BUS_LINUXPCI_FALSE='#'
22962else
22963  XORG_BUS_LINUXPCI_TRUE='#'
22964  XORG_BUS_LINUXPCI_FALSE=
22965fi
22966
22967 if test "x$xorg_bus_bsdpci" = xyes; then
22968  XORG_BUS_BSDPCI_TRUE=
22969  XORG_BUS_BSDPCI_FALSE='#'
22970else
22971  XORG_BUS_BSDPCI_TRUE='#'
22972  XORG_BUS_BSDPCI_FALSE=
22973fi
22974
22975 if test "x$xorg_bus_sparc" = xyes; then
22976  XORG_BUS_SPARC_TRUE=
22977  XORG_BUS_SPARC_FALSE='#'
22978else
22979  XORG_BUS_SPARC_TRUE='#'
22980  XORG_BUS_SPARC_FALSE=
22981fi
22982
22983 if test "x$linux_ia64" = xyes; then
22984  LINUX_IA64_TRUE=
22985  LINUX_IA64_FALSE='#'
22986else
22987  LINUX_IA64_TRUE='#'
22988  LINUX_IA64_FALSE=
22989fi
22990
22991 if test "x$linux_alpha" = xyes; then
22992  LINUX_ALPHA_TRUE=
22993  LINUX_ALPHA_FALSE='#'
22994else
22995  LINUX_ALPHA_TRUE='#'
22996  LINUX_ALPHA_FALSE=
22997fi
22998
22999 if test "x$linux_acpi" = xyes; then
23000  LNXACPI_TRUE=
23001  LNXACPI_FALSE='#'
23002else
23003  LNXACPI_TRUE='#'
23004  LNXACPI_FALSE=
23005fi
23006
23007 if test "x$solaris_asm_inline" = xyes; then
23008  SOLARIS_ASM_INLINE_TRUE=
23009  SOLARIS_ASM_INLINE_FALSE='#'
23010else
23011  SOLARIS_ASM_INLINE_TRUE='#'
23012  SOLARIS_ASM_INLINE_FALSE=
23013fi
23014
23015 if test "x$solaris_vt" = xyes; then
23016  SOLARIS_VT_TRUE=
23017  SOLARIS_VT_FALSE='#'
23018else
23019  SOLARIS_VT_TRUE='#'
23020  SOLARIS_VT_FALSE=
23021fi
23022
23023 if test "x$DGA" = xyes; then
23024  DGA_TRUE=
23025  DGA_FALSE='#'
23026else
23027  DGA_TRUE='#'
23028  DGA_FALSE=
23029fi
23030
23031 if test "x$XF86VIDMODE" = xyes; then
23032  XF86VIDMODE_TRUE=
23033  XF86VIDMODE_FALSE='#'
23034else
23035  XF86VIDMODE_TRUE='#'
23036  XF86VIDMODE_FALSE=
23037fi
23038
23039
23040
23041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
23042$as_echo_n "checking whether to build XWin DDX... " >&6; }
23043if test "x$XWIN" = xauto; then
23044	case $host_os in
23045		cygwin*) XWIN="yes" ;;
23046		mingw*) XWIN="yes" ;;
23047		*) XWIN="no" ;;
23048	esac
23049fi
23050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
23051$as_echo "$XWIN" >&6; }
23052
23053if test "x$XWIN" = xyes; then
23054
23055  prefix_NONE=
23056  exec_prefix_NONE=
23057  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23058  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23059  eval ac_define_dir="\"$sysconfdir\""
23060  eval ac_define_dir="\"$ac_define_dir\""
23061  SYSCONFDIR="$ac_define_dir"
23062
23063
23064cat >>confdefs.h <<_ACEOF
23065#define SYSCONFDIR "$ac_define_dir"
23066_ACEOF
23067
23068  test "$prefix_NONE" && prefix=NONE
23069  test "$exec_prefix_NONE" && exec_prefix=NONE
23070
23071
23072  prefix_NONE=
23073  exec_prefix_NONE=
23074  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23075  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23076  eval ac_define_dir="\"$logdir\""
23077  eval ac_define_dir="\"$ac_define_dir\""
23078  DEFAULT_LOGDIR="$ac_define_dir"
23079
23080
23081cat >>confdefs.h <<_ACEOF
23082#define DEFAULT_LOGDIR "$ac_define_dir"
23083_ACEOF
23084
23085  test "$prefix_NONE" && prefix=NONE
23086  test "$exec_prefix_NONE" && exec_prefix=NONE
23087
23088
23089cat >>confdefs.h <<_ACEOF
23090#define XORG_VERSION_CURRENT $VENDOR_RELEASE
23091_ACEOF
23092
23093
23094cat >>confdefs.h <<_ACEOF
23095#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
23096_ACEOF
23097
23098	if test -n "$ac_tool_prefix"; then
23099  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
23100set dummy ${ac_tool_prefix}windres; ac_word=$2
23101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23102$as_echo_n "checking for $ac_word... " >&6; }
23103if ${ac_cv_prog_WINDRES+:} false; then :
23104  $as_echo_n "(cached) " >&6
23105else
23106  if test -n "$WINDRES"; then
23107  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
23108else
23109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23110for as_dir in $PATH
23111do
23112  IFS=$as_save_IFS
23113  test -z "$as_dir" && as_dir=.
23114    for ac_exec_ext in '' $ac_executable_extensions; do
23115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23116    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
23117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23118    break 2
23119  fi
23120done
23121  done
23122IFS=$as_save_IFS
23123
23124fi
23125fi
23126WINDRES=$ac_cv_prog_WINDRES
23127if test -n "$WINDRES"; then
23128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
23129$as_echo "$WINDRES" >&6; }
23130else
23131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23132$as_echo "no" >&6; }
23133fi
23134
23135
23136fi
23137if test -z "$ac_cv_prog_WINDRES"; then
23138  ac_ct_WINDRES=$WINDRES
23139  # Extract the first word of "windres", so it can be a program name with args.
23140set dummy windres; ac_word=$2
23141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23142$as_echo_n "checking for $ac_word... " >&6; }
23143if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
23144  $as_echo_n "(cached) " >&6
23145else
23146  if test -n "$ac_ct_WINDRES"; then
23147  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
23148else
23149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23150for as_dir in $PATH
23151do
23152  IFS=$as_save_IFS
23153  test -z "$as_dir" && as_dir=.
23154    for ac_exec_ext in '' $ac_executable_extensions; do
23155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23156    ac_cv_prog_ac_ct_WINDRES="windres"
23157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23158    break 2
23159  fi
23160done
23161  done
23162IFS=$as_save_IFS
23163
23164fi
23165fi
23166ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
23167if test -n "$ac_ct_WINDRES"; then
23168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
23169$as_echo "$ac_ct_WINDRES" >&6; }
23170else
23171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172$as_echo "no" >&6; }
23173fi
23174
23175  if test "x$ac_ct_WINDRES" = x; then
23176    WINDRES=""
23177  else
23178    case $cross_compiling:$ac_tool_warned in
23179yes:)
23180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23182ac_tool_warned=yes ;;
23183esac
23184    WINDRES=$ac_ct_WINDRES
23185  fi
23186else
23187  WINDRES="$ac_cv_prog_WINDRES"
23188fi
23189
23190
23191
23192pkg_failed=no
23193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
23194$as_echo_n "checking for XWINMODULES... " >&6; }
23195
23196if test -n "$XWINMODULES_CFLAGS"; then
23197    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
23198 elif test -n "$PKG_CONFIG"; then
23199    if test -n "$PKG_CONFIG" && \
23200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5
23201  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
23202  ac_status=$?
23203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204  test $ac_status = 0; }; then
23205  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau" 2>/dev/null`
23206else
23207  pkg_failed=yes
23208fi
23209 else
23210    pkg_failed=untried
23211fi
23212if test -n "$XWINMODULES_LIBS"; then
23213    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
23214 elif test -n "$PKG_CONFIG"; then
23215    if test -n "$PKG_CONFIG" && \
23216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau\""; } >&5
23217  ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau") 2>&5
23218  ac_status=$?
23219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23220  test $ac_status = 0; }; then
23221  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau" 2>/dev/null`
23222else
23223  pkg_failed=yes
23224fi
23225 else
23226    pkg_failed=untried
23227fi
23228
23229
23230
23231if test $pkg_failed = yes; then
23232   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23233$as_echo "no" >&6; }
23234
23235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23236        _pkg_short_errors_supported=yes
23237else
23238        _pkg_short_errors_supported=no
23239fi
23240        if test $_pkg_short_errors_supported = yes; then
23241	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xdmcp xau" 2>&1`
23242        else
23243	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xdmcp xau" 2>&1`
23244        fi
23245	# Put the nasty error message in config.log where it belongs
23246	echo "$XWINMODULES_PKG_ERRORS" >&5
23247
23248	as_fn_error $? "Package requirements (x11 xdmcp xau) were not met:
23249
23250$XWINMODULES_PKG_ERRORS
23251
23252Consider adjusting the PKG_CONFIG_PATH environment variable if you
23253installed software in a non-standard prefix.
23254
23255Alternatively, you may set the environment variables XWINMODULES_CFLAGS
23256and XWINMODULES_LIBS to avoid the need to call pkg-config.
23257See the pkg-config man page for more details." "$LINENO" 5
23258elif test $pkg_failed = untried; then
23259     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23260$as_echo "no" >&6; }
23261	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23263as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23264is in your PATH or set the PKG_CONFIG environment variable to the full
23265path to pkg-config.
23266
23267Alternatively, you may set the environment variables XWINMODULES_CFLAGS
23268and XWINMODULES_LIBS to avoid the need to call pkg-config.
23269See the pkg-config man page for more details.
23270
23271To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23272See \`config.log' for more details" "$LINENO" 5; }
23273else
23274	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
23275	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
23276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23277$as_echo "yes" >&6; }
23278
23279fi
23280
23281	if test "x$WINDOWSWM" = xauto; then
23282		if test -n "$PKG_CONFIG" && \
23283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
23284  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
23285  ac_status=$?
23286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23287  test $ac_status = 0; }; then
23288  WINDOWSWM=yes
23289else
23290  WINDOWSWM=no
23291fi
23292	fi
23293	if test "x$WINDOWSWM" = xyes ; then
23294
23295pkg_failed=no
23296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5
23297$as_echo_n "checking for WINDOWSWM... " >&6; }
23298
23299if test -n "$WINDOWSWM_CFLAGS"; then
23300    pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS"
23301 elif test -n "$PKG_CONFIG"; then
23302    if test -n "$PKG_CONFIG" && \
23303    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
23304  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
23305  ac_status=$?
23306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307  test $ac_status = 0; }; then
23308  pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null`
23309else
23310  pkg_failed=yes
23311fi
23312 else
23313    pkg_failed=untried
23314fi
23315if test -n "$WINDOWSWM_LIBS"; then
23316    pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS"
23317 elif test -n "$PKG_CONFIG"; then
23318    if test -n "$PKG_CONFIG" && \
23319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5
23320  ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5
23321  ac_status=$?
23322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23323  test $ac_status = 0; }; then
23324  pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null`
23325else
23326  pkg_failed=yes
23327fi
23328 else
23329    pkg_failed=untried
23330fi
23331
23332
23333
23334if test $pkg_failed = yes; then
23335   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23336$as_echo "no" >&6; }
23337
23338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23339        _pkg_short_errors_supported=yes
23340else
23341        _pkg_short_errors_supported=no
23342fi
23343        if test $_pkg_short_errors_supported = yes; then
23344	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$WINDOWSWMPROTO" 2>&1`
23345        else
23346	        WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$WINDOWSWMPROTO" 2>&1`
23347        fi
23348	# Put the nasty error message in config.log where it belongs
23349	echo "$WINDOWSWM_PKG_ERRORS" >&5
23350
23351	as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met:
23352
23353$WINDOWSWM_PKG_ERRORS
23354
23355Consider adjusting the PKG_CONFIG_PATH environment variable if you
23356installed software in a non-standard prefix.
23357
23358Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
23359and WINDOWSWM_LIBS to avoid the need to call pkg-config.
23360See the pkg-config man page for more details." "$LINENO" 5
23361elif test $pkg_failed = untried; then
23362     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23363$as_echo "no" >&6; }
23364	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23366as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23367is in your PATH or set the PKG_CONFIG environment variable to the full
23368path to pkg-config.
23369
23370Alternatively, you may set the environment variables WINDOWSWM_CFLAGS
23371and WINDOWSWM_LIBS to avoid the need to call pkg-config.
23372See the pkg-config man page for more details.
23373
23374To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23375See \`config.log' for more details" "$LINENO" 5; }
23376else
23377	WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS
23378	WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS
23379        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23380$as_echo "yes" >&6; }
23381
23382fi
23383		XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS"
23384
23385$as_echo "#define ROOTLESS 1" >>confdefs.h
23386
23387	fi
23388
23389	case $host_os in
23390		cygwin*)
23391			XWIN_SERVER_NAME=XWin
23392
23393$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h
23394
23395			;;
23396		mingw*)
23397			XWIN_SERVER_NAME=Xming
23398
23399$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
23400
23401
23402$as_echo "#define HAS_WINSOCK 1" >>confdefs.h
23403
23404			XWIN_SYS_LIBS=-lwinsock2
23405			;;
23406	esac
23407	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 $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB"
23408	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
23409
23410
23411
23412
23413	if test "x$DEBUGGING" = xyes; then
23414
23415$as_echo "#define CYGDEBUG 1" >>confdefs.h
23416
23417
23418$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
23419
23420
23421$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
23422
23423	fi
23424
23425
23426$as_echo "#define DDXOSVERRORF 1" >>confdefs.h
23427
23428
23429$as_echo "#define DDXBEFORERESET 1" >>confdefs.h
23430
23431fi
23432 if test "x$XWIN" = xyes; then
23433  XWIN_TRUE=
23434  XWIN_FALSE='#'
23435else
23436  XWIN_TRUE='#'
23437  XWIN_FALSE=
23438fi
23439
23440 if test "x$XWIN" = xyes; then
23441  XWIN_MULTIWINDOW_TRUE=
23442  XWIN_MULTIWINDOW_FALSE='#'
23443else
23444  XWIN_MULTIWINDOW_TRUE='#'
23445  XWIN_MULTIWINDOW_FALSE=
23446fi
23447
23448 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then
23449  XWIN_MULTIWINDOWEXTWM_TRUE=
23450  XWIN_MULTIWINDOWEXTWM_FALSE='#'
23451else
23452  XWIN_MULTIWINDOWEXTWM_TRUE='#'
23453  XWIN_MULTIWINDOWEXTWM_FALSE=
23454fi
23455
23456 if test "x$XWIN" = xyes; then
23457  XWIN_CLIPBOARD_TRUE=
23458  XWIN_CLIPBOARD_FALSE='#'
23459else
23460  XWIN_CLIPBOARD_TRUE='#'
23461  XWIN_CLIPBOARD_FALSE=
23462fi
23463
23464 if test "x$XWIN" = xyes && false; then
23465  XWIN_GLX_WINDOWS_TRUE=
23466  XWIN_GLX_WINDOWS_FALSE='#'
23467else
23468  XWIN_GLX_WINDOWS_TRUE='#'
23469  XWIN_GLX_WINDOWS_FALSE=
23470fi
23471
23472 if test "x$XWIN" = xyes && false; then
23473  XWIN_NATIVEGDI_TRUE=
23474  XWIN_NATIVEGDI_FALSE='#'
23475else
23476  XWIN_NATIVEGDI_TRUE='#'
23477  XWIN_NATIVEGDI_FALSE=
23478fi
23479
23480 if test "x$XWIN" = xyes && false; then
23481  XWIN_PRIMARYFB_TRUE=
23482  XWIN_PRIMARYFB_FALSE='#'
23483else
23484  XWIN_PRIMARYFB_TRUE='#'
23485  XWIN_PRIMARYFB_FALSE=
23486fi
23487
23488 if test "x$XWIN" = xyes; then
23489  XWIN_RANDR_TRUE=
23490  XWIN_RANDR_FALSE='#'
23491else
23492  XWIN_RANDR_TRUE='#'
23493  XWIN_RANDR_FALSE=
23494fi
23495
23496 if test "x$XWIN" = xyes && test "x$XV" = xyes; then
23497  XWIN_XV_TRUE=
23498  XWIN_XV_FALSE='#'
23499else
23500  XWIN_XV_TRUE='#'
23501  XWIN_XV_FALSE=
23502fi
23503
23504
23505if test "x$XQUARTZ" = xyes; then
23506
23507$as_echo "#define XQUARTZ 1" >>confdefs.h
23508
23509
23510$as_echo "#define ROOTLESS 1" >>confdefs.h
23511
23512
23513	DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $MAIN_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB"
23514
23515
23516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
23517$as_echo_n "checking for xp_init in -lXplugin... " >&6; }
23518if ${ac_cv_lib_Xplugin_xp_init+:} false; then :
23519  $as_echo_n "(cached) " >&6
23520else
23521  ac_check_lib_save_LIBS=$LIBS
23522LIBS="-lXplugin  $LIBS"
23523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23524/* end confdefs.h.  */
23525
23526/* Override any GCC internal prototype to avoid an error.
23527   Use char because int might match the return type of a GCC
23528   builtin and then its argument prototype would still apply.  */
23529#ifdef __cplusplus
23530extern "C"
23531#endif
23532char xp_init ();
23533int
23534main ()
23535{
23536return xp_init ();
23537  ;
23538  return 0;
23539}
23540_ACEOF
23541if ac_fn_c_try_link "$LINENO"; then :
23542  ac_cv_lib_Xplugin_xp_init=yes
23543else
23544  ac_cv_lib_Xplugin_xp_init=no
23545fi
23546rm -f core conftest.err conftest.$ac_objext \
23547    conftest$ac_exeext conftest.$ac_ext
23548LIBS=$ac_check_lib_save_LIBS
23549fi
23550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
23551$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; }
23552if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then :
23553  :
23554fi
23555
23556
23557	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
23558
23559
23560pkg_failed=no
23561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
23562$as_echo_n "checking for XPBPROXY... " >&6; }
23563
23564if test -n "$XPBPROXY_CFLAGS"; then
23565    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
23566 elif test -n "$PKG_CONFIG"; then
23567    if test -n "$PKG_CONFIG" && \
23568    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
23569  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
23570  ac_status=$?
23571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23572  test $ac_status = 0; }; then
23573  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
23574else
23575  pkg_failed=yes
23576fi
23577 else
23578    pkg_failed=untried
23579fi
23580if test -n "$XPBPROXY_LIBS"; then
23581    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
23582 elif test -n "$PKG_CONFIG"; then
23583    if test -n "$PKG_CONFIG" && \
23584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
23585  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
23586  ac_status=$?
23587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23588  test $ac_status = 0; }; then
23589  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
23590else
23591  pkg_failed=yes
23592fi
23593 else
23594    pkg_failed=untried
23595fi
23596
23597
23598
23599if test $pkg_failed = yes; then
23600   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601$as_echo "no" >&6; }
23602
23603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23604        _pkg_short_errors_supported=yes
23605else
23606        _pkg_short_errors_supported=no
23607fi
23608        if test $_pkg_short_errors_supported = yes; then
23609	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
23610        else
23611	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
23612        fi
23613	# Put the nasty error message in config.log where it belongs
23614	echo "$XPBPROXY_PKG_ERRORS" >&5
23615
23616	as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
23617
23618$XPBPROXY_PKG_ERRORS
23619
23620Consider adjusting the PKG_CONFIG_PATH environment variable if you
23621installed software in a non-standard prefix.
23622
23623Alternatively, you may set the environment variables XPBPROXY_CFLAGS
23624and XPBPROXY_LIBS to avoid the need to call pkg-config.
23625See the pkg-config man page for more details." "$LINENO" 5
23626elif test $pkg_failed = untried; then
23627     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23628$as_echo "no" >&6; }
23629	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23631as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23632is in your PATH or set the PKG_CONFIG environment variable to the full
23633path to pkg-config.
23634
23635Alternatively, you may set the environment variables XPBPROXY_CFLAGS
23636and XPBPROXY_LIBS to avoid the need to call pkg-config.
23637See the pkg-config man page for more details.
23638
23639To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23640See \`config.log' for more details" "$LINENO" 5; }
23641else
23642	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
23643	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
23644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23645$as_echo "yes" >&6; }
23646
23647fi
23648
23649        if test "x$XQUARTZ_SPARKLE" = xyes ; then
23650
23651$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h
23652
23653        fi
23654
23655	if test "x$STANDALONE_XPBPROXY" = xyes ; then
23656
23657$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h
23658
23659	fi
23660fi
23661
23662# Support for objc in autotools is minimal and not documented.
23663OBJC='$(CC)'
23664OBJCLD='$(CCLD)'
23665OBJCLINK='$(LINK)'
23666OBJCFLAGS='$(CFLAGS)'
23667
23668
23669
23670
23671# internal, undocumented automake func follows :(
23672
23673depcc="$OBJC" am_compiler_list='gcc3 gcc'
23674
23675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23676$as_echo_n "checking dependency style of $depcc... " >&6; }
23677if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
23678  $as_echo_n "(cached) " >&6
23679else
23680  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23681  # We make a subdir and do the tests there.  Otherwise we can end up
23682  # making bogus files that we don't know about and never remove.  For
23683  # instance it was reported that on HP-UX the gcc test will end up
23684  # making a dummy file named `D' -- because `-MD' means `put the output
23685  # in D'.
23686  mkdir conftest.dir
23687  # Copy depcomp to subdir because otherwise we won't find it if we're
23688  # using a relative directory.
23689  cp "$am_depcomp" conftest.dir
23690  cd conftest.dir
23691  # We will build objects and dependencies in a subdirectory because
23692  # it helps to detect inapplicable dependency modes.  For instance
23693  # both Tru64's cc and ICC support -MD to output dependencies as a
23694  # side effect of compilation, but ICC will put the dependencies in
23695  # the current directory while Tru64 will put them in the object
23696  # directory.
23697  mkdir sub
23698
23699  am_cv_OBJC_dependencies_compiler_type=none
23700  if test "$am_compiler_list" = ""; then
23701     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23702  fi
23703  am__universal=false
23704
23705
23706  for depmode in $am_compiler_list; do
23707    # Setup a source with many dependencies, because some compilers
23708    # like to wrap large dependency lists on column 80 (with \), and
23709    # we should not choose a depcomp mode which is confused by this.
23710    #
23711    # We need to recreate these files for each test, as the compiler may
23712    # overwrite some of them when testing with obscure command lines.
23713    # This happens at least with the AIX C compiler.
23714    : > sub/conftest.c
23715    for i in 1 2 3 4 5 6; do
23716      echo '#include "conftst'$i'.h"' >> sub/conftest.c
23717      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23718      # Solaris 8's {/usr,}/bin/sh.
23719      touch sub/conftst$i.h
23720    done
23721    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23722
23723    # We check with `-c' and `-o' for the sake of the "dashmstdout"
23724    # mode.  It turns out that the SunPro C++ compiler does not properly
23725    # handle `-M -o', and we need to detect this.  Also, some Intel
23726    # versions had trouble with output in subdirs
23727    am__obj=sub/conftest.${OBJEXT-o}
23728    am__minus_obj="-o $am__obj"
23729    case $depmode in
23730    gcc)
23731      # This depmode causes a compiler race in universal mode.
23732      test "$am__universal" = false || continue
23733      ;;
23734    nosideeffect)
23735      # after this tag, mechanisms are not by side-effect, so they'll
23736      # only be used when explicitly requested
23737      if test "x$enable_dependency_tracking" = xyes; then
23738	continue
23739      else
23740	break
23741      fi
23742      ;;
23743    msvisualcpp | msvcmsys)
23744      # This compiler won't grok `-c -o', but also, the minuso test has
23745      # not run yet.  These depmodes are late enough in the game, and
23746      # so weak that their functioning should not be impacted.
23747      am__obj=conftest.${OBJEXT-o}
23748      am__minus_obj=
23749      ;;
23750    none) break ;;
23751    esac
23752    if depmode=$depmode \
23753       source=sub/conftest.c object=$am__obj \
23754       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23755       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23756         >/dev/null 2>conftest.err &&
23757       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23758       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23759       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23760       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23761      # icc doesn't choke on unknown options, it will just issue warnings
23762      # or remarks (even with -Werror).  So we grep stderr for any message
23763      # that says an option was ignored or not supported.
23764      # When given -MP, icc 7.0 and 7.1 complain thusly:
23765      #   icc: Command line warning: ignoring option '-M'; no argument required
23766      # The diagnosis changed in icc 8.0:
23767      #   icc: Command line remark: option '-MP' not supported
23768      if (grep 'ignoring option' conftest.err ||
23769          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23770        am_cv_OBJC_dependencies_compiler_type=$depmode
23771        break
23772      fi
23773    fi
23774  done
23775
23776  cd ..
23777  rm -rf conftest.dir
23778else
23779  am_cv_OBJC_dependencies_compiler_type=none
23780fi
23781
23782fi
23783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
23784$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
23785OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
23786
23787 if
23788  test "x$enable_dependency_tracking" != xno \
23789  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
23790  am__fastdepOBJC_TRUE=
23791  am__fastdepOBJC_FALSE='#'
23792else
23793  am__fastdepOBJC_TRUE='#'
23794  am__fastdepOBJC_FALSE=
23795fi
23796
23797
23798 if test "x$XQUARTZ" = xyes; then
23799  XQUARTZ_TRUE=
23800  XQUARTZ_FALSE='#'
23801else
23802  XQUARTZ_TRUE='#'
23803  XQUARTZ_FALSE=
23804fi
23805
23806 if test "x$XQUARTZ_SPARKLE" != "xno"; then
23807  XQUARTZ_SPARKLE_TRUE=
23808  XQUARTZ_SPARKLE_FALSE='#'
23809else
23810  XQUARTZ_SPARKLE_TRUE='#'
23811  XQUARTZ_SPARKLE_FALSE=
23812fi
23813
23814 if test "x$STANDALONE_XPBPROXY" = xyes; then
23815  STANDALONE_XPBPROXY_TRUE=
23816  STANDALONE_XPBPROXY_FALSE='#'
23817else
23818  STANDALONE_XPBPROXY_TRUE='#'
23819  STANDALONE_XPBPROXY_FALSE=
23820fi
23821
23822
23823
23824pkg_failed=no
23825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5
23826$as_echo_n "checking for DMXMODULES... " >&6; }
23827
23828if test -n "$DMXMODULES_CFLAGS"; then
23829    pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS"
23830 elif test -n "$PKG_CONFIG"; then
23831    if test -n "$PKG_CONFIG" && \
23832    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
23833  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
23834  ac_status=$?
23835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23836  test $ac_status = 0; }; then
23837  pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
23838else
23839  pkg_failed=yes
23840fi
23841 else
23842    pkg_failed=untried
23843fi
23844if test -n "$DMXMODULES_LIBS"; then
23845    pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS"
23846 elif test -n "$PKG_CONFIG"; then
23847    if test -n "$PKG_CONFIG" && \
23848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5
23849  ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5
23850  ac_status=$?
23851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852  test $ac_status = 0; }; then
23853  pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null`
23854else
23855  pkg_failed=yes
23856fi
23857 else
23858    pkg_failed=untried
23859fi
23860
23861
23862
23863if test $pkg_failed = yes; then
23864   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23865$as_echo "no" >&6; }
23866
23867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23868        _pkg_short_errors_supported=yes
23869else
23870        _pkg_short_errors_supported=no
23871fi
23872        if test $_pkg_short_errors_supported = yes; then
23873	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
23874        else
23875	        DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu $LIBXEXT x11 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1`
23876        fi
23877	# Put the nasty error message in config.log where it belongs
23878	echo "$DMXMODULES_PKG_ERRORS" >&5
23879
23880	have_dmx=no
23881elif test $pkg_failed = untried; then
23882     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23883$as_echo "no" >&6; }
23884	have_dmx=no
23885else
23886	DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS
23887	DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS
23888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23889$as_echo "yes" >&6; }
23890
23891pkg_failed=no
23892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5
23893$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; }
23894
23895if test -n "$XDMXCONFIG_DEP_CFLAGS"; then
23896    pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS"
23897 elif test -n "$PKG_CONFIG"; then
23898    if test -n "$PKG_CONFIG" && \
23899    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
23900  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
23901  ac_status=$?
23902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903  test $ac_status = 0; }; then
23904  pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null`
23905else
23906  pkg_failed=yes
23907fi
23908 else
23909    pkg_failed=untried
23910fi
23911if test -n "$XDMXCONFIG_DEP_LIBS"; then
23912    pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS"
23913 elif test -n "$PKG_CONFIG"; then
23914    if test -n "$PKG_CONFIG" && \
23915    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5
23916  ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5
23917  ac_status=$?
23918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23919  test $ac_status = 0; }; then
23920  pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null`
23921else
23922  pkg_failed=yes
23923fi
23924 else
23925    pkg_failed=untried
23926fi
23927
23928
23929
23930if test $pkg_failed = yes; then
23931   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23932$as_echo "no" >&6; }
23933
23934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23935        _pkg_short_errors_supported=yes
23936else
23937        _pkg_short_errors_supported=no
23938fi
23939        if test $_pkg_short_errors_supported = yes; then
23940	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt xpm x11" 2>&1`
23941        else
23942	        XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt xpm x11" 2>&1`
23943        fi
23944	# Put the nasty error message in config.log where it belongs
23945	echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5
23946
23947	have_dmx=no
23948elif test $pkg_failed = untried; then
23949     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23950$as_echo "no" >&6; }
23951	have_dmx=no
23952else
23953	XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS
23954	XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS
23955        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23956$as_echo "yes" >&6; }
23957	have_dmx=yes
23958fi
23959fi
23960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5
23961$as_echo_n "checking whether to build Xdmx DDX... " >&6; }
23962if test "x$DMX" = xauto; then
23963	DMX="$have_dmx"
23964	case $host_os in
23965		cygwin*) DMX="no" ;;
23966		darwin*) DMX="no" ;;
23967	esac
23968fi
23969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5
23970$as_echo "$DMX" >&6; }
23971 if test "x$DMX" = xyes; then
23972  DMX_TRUE=
23973  DMX_FALSE='#'
23974else
23975  DMX_TRUE='#'
23976  DMX_FALSE=
23977fi
23978
23979
23980if test "x$DMX" = xyes; then
23981	if test "x$have_dmx" = xno; then
23982		as_fn_error $? "Xdmx build explicitly requested, but required
23983		              modules not found." "$LINENO" 5
23984	fi
23985	DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC"
23986	XDMX_CFLAGS="$DMXMODULES_CFLAGS"
23987	XDMX_LIBS="$FB_LIB $MI_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $XEXT_LIB $MAIN_LIB $DIX_LIB $OS_LIB $FIXES_LIB"
23988	XDMX_SYS_LIBS="$DMXMODULES_LIBS"
23989
23990
23991
23992
23993	ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
23994if test "x$ac_cv_header_linux_input_h" = xyes; then :
23995  DMX_BUILD_USB="yes"
23996else
23997  DMX_BUILD_USB="no"
23998fi
23999
24000
24001	ac_fn_c_check_header_mongrel "$LINENO" "linux/keyboard.h" "ac_cv_header_linux_keyboard_h" "$ac_includes_default"
24002if test "x$ac_cv_header_linux_keyboard_h" = xyes; then :
24003  DMX_BUILD_LNX="yes"
24004else
24005  DMX_BUILD_LNX="no"
24006fi
24007
24008
24009
24010
24011
24012pkg_failed=no
24013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5
24014$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; }
24015
24016if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then
24017    pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS"
24018 elif test -n "$PKG_CONFIG"; then
24019    if test -n "$PKG_CONFIG" && \
24020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
24021  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
24022  ac_status=$?
24023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24024  test $ac_status = 0; }; then
24025  pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null`
24026else
24027  pkg_failed=yes
24028fi
24029 else
24030    pkg_failed=untried
24031fi
24032if test -n "$DMXEXAMPLES_DEP_LIBS"; then
24033    pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS"
24034 elif test -n "$PKG_CONFIG"; then
24035    if test -n "$PKG_CONFIG" && \
24036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5
24037  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5
24038  ac_status=$?
24039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24040  test $ac_status = 0; }; then
24041  pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null`
24042else
24043  pkg_failed=yes
24044fi
24045 else
24046    pkg_failed=untried
24047fi
24048
24049
24050
24051if test $pkg_failed = yes; then
24052   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24053$as_echo "no" >&6; }
24054
24055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24056        _pkg_short_errors_supported=yes
24057else
24058        _pkg_short_errors_supported=no
24059fi
24060        if test $_pkg_short_errors_supported = yes; then
24061	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
24062        else
24063	        DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXEXT x11" 2>&1`
24064        fi
24065	# Put the nasty error message in config.log where it belongs
24066	echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5
24067
24068	as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met:
24069
24070$DMXEXAMPLES_DEP_PKG_ERRORS
24071
24072Consider adjusting the PKG_CONFIG_PATH environment variable if you
24073installed software in a non-standard prefix.
24074
24075Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
24076and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24077See the pkg-config man page for more details." "$LINENO" 5
24078elif test $pkg_failed = untried; then
24079     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24080$as_echo "no" >&6; }
24081	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24083as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24084is in your PATH or set the PKG_CONFIG environment variable to the full
24085path to pkg-config.
24086
24087Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS
24088and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24089See the pkg-config man page for more details.
24090
24091To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24092See \`config.log' for more details" "$LINENO" 5; }
24093else
24094	DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS
24095	DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS
24096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24097$as_echo "yes" >&6; }
24098
24099fi
24100
24101
24102pkg_failed=no
24103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5
24104$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; }
24105
24106if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then
24107    pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS"
24108 elif test -n "$PKG_CONFIG"; then
24109    if test -n "$PKG_CONFIG" && \
24110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
24111  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
24112  ac_status=$?
24113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24114  test $ac_status = 0; }; then
24115  pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
24116else
24117  pkg_failed=yes
24118fi
24119 else
24120    pkg_failed=untried
24121fi
24122if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then
24123    pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS"
24124 elif test -n "$PKG_CONFIG"; then
24125    if test -n "$PKG_CONFIG" && \
24126    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5
24127  ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5
24128  ac_status=$?
24129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130  test $ac_status = 0; }; then
24131  pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null`
24132else
24133  pkg_failed=yes
24134fi
24135 else
24136    pkg_failed=untried
24137fi
24138
24139
24140
24141if test $pkg_failed = yes; then
24142   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24143$as_echo "no" >&6; }
24144
24145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24146        _pkg_short_errors_supported=yes
24147else
24148        _pkg_short_errors_supported=no
24149fi
24150        if test $_pkg_short_errors_supported = yes; then
24151	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
24152        else
24153	        DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX xmu $LIBXEXT x11" 2>&1`
24154        fi
24155	# Put the nasty error message in config.log where it belongs
24156	echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5
24157
24158	as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met:
24159
24160$DMXXMUEXAMPLES_DEP_PKG_ERRORS
24161
24162Consider adjusting the PKG_CONFIG_PATH environment variable if you
24163installed software in a non-standard prefix.
24164
24165Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
24166and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24167See the pkg-config man page for more details." "$LINENO" 5
24168elif test $pkg_failed = untried; then
24169     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170$as_echo "no" >&6; }
24171	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24173as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24174is in your PATH or set the PKG_CONFIG environment variable to the full
24175path to pkg-config.
24176
24177Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS
24178and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24179See the pkg-config man page for more details.
24180
24181To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24182See \`config.log' for more details" "$LINENO" 5; }
24183else
24184	DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS
24185	DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS
24186        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24187$as_echo "yes" >&6; }
24188
24189fi
24190
24191
24192pkg_failed=no
24193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5
24194$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; }
24195
24196if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then
24197    pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS"
24198 elif test -n "$PKG_CONFIG"; then
24199    if test -n "$PKG_CONFIG" && \
24200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
24201  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
24202  ac_status=$?
24203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24204  test $ac_status = 0; }; then
24205  pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
24206else
24207  pkg_failed=yes
24208fi
24209 else
24210    pkg_failed=untried
24211fi
24212if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then
24213    pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS"
24214 elif test -n "$PKG_CONFIG"; then
24215    if test -n "$PKG_CONFIG" && \
24216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5
24217  ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5
24218  ac_status=$?
24219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24220  test $ac_status = 0; }; then
24221  pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null`
24222else
24223  pkg_failed=yes
24224fi
24225 else
24226    pkg_failed=untried
24227fi
24228
24229
24230
24231if test $pkg_failed = yes; then
24232   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24233$as_echo "no" >&6; }
24234
24235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24236        _pkg_short_errors_supported=yes
24237else
24238        _pkg_short_errors_supported=no
24239fi
24240        if test $_pkg_short_errors_supported = yes; then
24241	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
24242        else
24243	        DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1`
24244        fi
24245	# Put the nasty error message in config.log where it belongs
24246	echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5
24247
24248	as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met:
24249
24250$DMXXIEXAMPLES_DEP_PKG_ERRORS
24251
24252Consider adjusting the PKG_CONFIG_PATH environment variable if you
24253installed software in a non-standard prefix.
24254
24255Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
24256and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24257See the pkg-config man page for more details." "$LINENO" 5
24258elif test $pkg_failed = untried; then
24259     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24260$as_echo "no" >&6; }
24261	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24263as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24264is in your PATH or set the PKG_CONFIG environment variable to the full
24265path to pkg-config.
24266
24267Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS
24268and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24269See the pkg-config man page for more details.
24270
24271To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24272See \`config.log' for more details" "$LINENO" 5; }
24273else
24274	DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS
24275	DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS
24276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24277$as_echo "yes" >&6; }
24278
24279fi
24280
24281
24282pkg_failed=no
24283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5
24284$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; }
24285
24286if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then
24287    pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS"
24288 elif test -n "$PKG_CONFIG"; then
24289    if test -n "$PKG_CONFIG" && \
24290    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
24291  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
24292  ac_status=$?
24293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294  test $ac_status = 0; }; then
24295  pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null`
24296else
24297  pkg_failed=yes
24298fi
24299 else
24300    pkg_failed=untried
24301fi
24302if test -n "$XTSTEXAMPLES_DEP_LIBS"; then
24303    pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS"
24304 elif test -n "$PKG_CONFIG"; then
24305    if test -n "$PKG_CONFIG" && \
24306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5
24307  ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5
24308  ac_status=$?
24309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310  test $ac_status = 0; }; then
24311  pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null`
24312else
24313  pkg_failed=yes
24314fi
24315 else
24316    pkg_failed=untried
24317fi
24318
24319
24320
24321if test $pkg_failed = yes; then
24322   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323$as_echo "no" >&6; }
24324
24325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24326        _pkg_short_errors_supported=yes
24327else
24328        _pkg_short_errors_supported=no
24329fi
24330        if test $_pkg_short_errors_supported = yes; then
24331	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
24332        else
24333	        XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXTST $LIBXEXT x11" 2>&1`
24334        fi
24335	# Put the nasty error message in config.log where it belongs
24336	echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5
24337
24338	as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met:
24339
24340$XTSTEXAMPLES_DEP_PKG_ERRORS
24341
24342Consider adjusting the PKG_CONFIG_PATH environment variable if you
24343installed software in a non-standard prefix.
24344
24345Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
24346and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24347See the pkg-config man page for more details." "$LINENO" 5
24348elif test $pkg_failed = untried; then
24349     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24350$as_echo "no" >&6; }
24351	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24353as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24354is in your PATH or set the PKG_CONFIG environment variable to the full
24355path to pkg-config.
24356
24357Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS
24358and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24359See the pkg-config man page for more details.
24360
24361To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24362See \`config.log' for more details" "$LINENO" 5; }
24363else
24364	XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS
24365	XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS
24366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24367$as_echo "yes" >&6; }
24368
24369fi
24370
24371
24372pkg_failed=no
24373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5
24374$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; }
24375
24376if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then
24377    pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS"
24378 elif test -n "$PKG_CONFIG"; then
24379    if test -n "$PKG_CONFIG" && \
24380    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
24381  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
24382  ac_status=$?
24383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24384  test $ac_status = 0; }; then
24385  pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null`
24386else
24387  pkg_failed=yes
24388fi
24389 else
24390    pkg_failed=untried
24391fi
24392if test -n "$XRESEXAMPLES_DEP_LIBS"; then
24393    pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS"
24394 elif test -n "$PKG_CONFIG"; then
24395    if test -n "$PKG_CONFIG" && \
24396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5
24397  ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5
24398  ac_status=$?
24399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24400  test $ac_status = 0; }; then
24401  pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null`
24402else
24403  pkg_failed=yes
24404fi
24405 else
24406    pkg_failed=untried
24407fi
24408
24409
24410
24411if test $pkg_failed = yes; then
24412   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24413$as_echo "no" >&6; }
24414
24415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24416        _pkg_short_errors_supported=yes
24417else
24418        _pkg_short_errors_supported=no
24419fi
24420        if test $_pkg_short_errors_supported = yes; then
24421	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xres $LIBXEXT x11" 2>&1`
24422        else
24423	        XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xres $LIBXEXT x11" 2>&1`
24424        fi
24425	# Put the nasty error message in config.log where it belongs
24426	echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5
24427
24428	as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met:
24429
24430$XRESEXAMPLES_DEP_PKG_ERRORS
24431
24432Consider adjusting the PKG_CONFIG_PATH environment variable if you
24433installed software in a non-standard prefix.
24434
24435Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
24436and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24437See the pkg-config man page for more details." "$LINENO" 5
24438elif test $pkg_failed = untried; then
24439     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440$as_echo "no" >&6; }
24441	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24443as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24444is in your PATH or set the PKG_CONFIG environment variable to the full
24445path to pkg-config.
24446
24447Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS
24448and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24449See the pkg-config man page for more details.
24450
24451To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24452See \`config.log' for more details" "$LINENO" 5; }
24453else
24454	XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS
24455	XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS
24456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24457$as_echo "yes" >&6; }
24458
24459fi
24460
24461
24462pkg_failed=no
24463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5
24464$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; }
24465
24466if test -n "$X11EXAMPLES_DEP_CFLAGS"; then
24467    pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS"
24468 elif test -n "$PKG_CONFIG"; then
24469    if test -n "$PKG_CONFIG" && \
24470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
24471  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
24472  ac_status=$?
24473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474  test $ac_status = 0; }; then
24475  pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null`
24476else
24477  pkg_failed=yes
24478fi
24479 else
24480    pkg_failed=untried
24481fi
24482if test -n "$X11EXAMPLES_DEP_LIBS"; then
24483    pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS"
24484 elif test -n "$PKG_CONFIG"; then
24485    if test -n "$PKG_CONFIG" && \
24486    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5
24487  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5
24488  ac_status=$?
24489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24490  test $ac_status = 0; }; then
24491  pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null`
24492else
24493  pkg_failed=yes
24494fi
24495 else
24496    pkg_failed=untried
24497fi
24498
24499
24500
24501if test $pkg_failed = yes; then
24502   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24503$as_echo "no" >&6; }
24504
24505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24506        _pkg_short_errors_supported=yes
24507else
24508        _pkg_short_errors_supported=no
24509fi
24510        if test $_pkg_short_errors_supported = yes; then
24511	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$LIBXEXT x11" 2>&1`
24512        else
24513	        X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors "$LIBXEXT x11" 2>&1`
24514        fi
24515	# Put the nasty error message in config.log where it belongs
24516	echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5
24517
24518	as_fn_error $? "Package requirements ($LIBXEXT x11) were not met:
24519
24520$X11EXAMPLES_DEP_PKG_ERRORS
24521
24522Consider adjusting the PKG_CONFIG_PATH environment variable if you
24523installed software in a non-standard prefix.
24524
24525Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
24526and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24527See the pkg-config man page for more details." "$LINENO" 5
24528elif test $pkg_failed = untried; then
24529     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530$as_echo "no" >&6; }
24531	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24533as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24534is in your PATH or set the PKG_CONFIG environment variable to the full
24535path to pkg-config.
24536
24537Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS
24538and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config.
24539See the pkg-config man page for more details.
24540
24541To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24542See \`config.log' for more details" "$LINENO" 5; }
24543else
24544	X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS
24545	X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS
24546        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24547$as_echo "yes" >&6; }
24548
24549fi
24550
24551
24552fi
24553 if test "x$DMX_BUILD_LNX" = xyes; then
24554  DMX_BUILD_LNX_TRUE=
24555  DMX_BUILD_LNX_FALSE='#'
24556else
24557  DMX_BUILD_LNX_TRUE='#'
24558  DMX_BUILD_LNX_FALSE=
24559fi
24560
24561 if test "x$DMX_BUILD_USB" = xyes; then
24562  DMX_BUILD_USB_TRUE=
24563  DMX_BUILD_USB_FALSE='#'
24564else
24565  DMX_BUILD_USB_TRUE='#'
24566  DMX_BUILD_USB_FALSE=
24567fi
24568
24569
24570
24571XEPHYR_LIBS=
24572XEPHYR_INCS=
24573
24574 if test x$KDRIVE = xyes; then
24575  KDRIVE_TRUE=
24576  KDRIVE_FALSE='#'
24577else
24578  KDRIVE_TRUE='#'
24579  KDRIVE_FALSE=
24580fi
24581
24582
24583if test "$KDRIVE" = yes; then
24584
24585$as_echo "#define KDRIVESERVER 1" >>confdefs.h
24586
24587
24588$as_echo "#define KDRIVEDDXACTIONS /**/" >>confdefs.h
24589
24590
24591    for ac_header in linux/fb.h
24592do :
24593  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
24594if test "x$ac_cv_header_linux_fb_h" = xyes; then :
24595  cat >>confdefs.h <<_ACEOF
24596#define HAVE_LINUX_FB_H 1
24597_ACEOF
24598
24599fi
24600
24601done
24602
24603    if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
24604        XFBDEV=yes
24605    fi
24606
24607    if test "x$XFBDEV" = xyes; then
24608        KDRIVEFBDEVLIB=yes
24609
24610$as_echo "#define KDRIVEFBDEV 1" >>confdefs.h
24611
24612    fi
24613
24614
24615
24616pkg_failed=no
24617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSLIB" >&5
24618$as_echo_n "checking for TSLIB... " >&6; }
24619
24620if test -n "$TSLIB_CFLAGS"; then
24621    pkg_cv_TSLIB_CFLAGS="$TSLIB_CFLAGS"
24622 elif test -n "$PKG_CONFIG"; then
24623    if test -n "$PKG_CONFIG" && \
24624    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5
24625  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
24626  ac_status=$?
24627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24628  test $ac_status = 0; }; then
24629  pkg_cv_TSLIB_CFLAGS=`$PKG_CONFIG --cflags "tslib-0.0" 2>/dev/null`
24630else
24631  pkg_failed=yes
24632fi
24633 else
24634    pkg_failed=untried
24635fi
24636if test -n "$TSLIB_LIBS"; then
24637    pkg_cv_TSLIB_LIBS="$TSLIB_LIBS"
24638 elif test -n "$PKG_CONFIG"; then
24639    if test -n "$PKG_CONFIG" && \
24640    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tslib-0.0\""; } >&5
24641  ($PKG_CONFIG --exists --print-errors "tslib-0.0") 2>&5
24642  ac_status=$?
24643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24644  test $ac_status = 0; }; then
24645  pkg_cv_TSLIB_LIBS=`$PKG_CONFIG --libs "tslib-0.0" 2>/dev/null`
24646else
24647  pkg_failed=yes
24648fi
24649 else
24650    pkg_failed=untried
24651fi
24652
24653
24654
24655if test $pkg_failed = yes; then
24656   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24657$as_echo "no" >&6; }
24658
24659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24660        _pkg_short_errors_supported=yes
24661else
24662        _pkg_short_errors_supported=no
24663fi
24664        if test $_pkg_short_errors_supported = yes; then
24665	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "tslib-0.0" 2>&1`
24666        else
24667	        TSLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "tslib-0.0" 2>&1`
24668        fi
24669	# Put the nasty error message in config.log where it belongs
24670	echo "$TSLIB_PKG_ERRORS" >&5
24671
24672	HAVE_TSLIB="no"
24673elif test $pkg_failed = untried; then
24674     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24675$as_echo "no" >&6; }
24676	HAVE_TSLIB="no"
24677else
24678	TSLIB_CFLAGS=$pkg_cv_TSLIB_CFLAGS
24679	TSLIB_LIBS=$pkg_cv_TSLIB_LIBS
24680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24681$as_echo "yes" >&6; }
24682	HAVE_TSLIB="yes"
24683fi
24684    if test "x$HAVE_TSLIB" = xno; then
24685        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ts_open in -lts" >&5
24686$as_echo_n "checking for ts_open in -lts... " >&6; }
24687if ${ac_cv_lib_ts_ts_open+:} false; then :
24688  $as_echo_n "(cached) " >&6
24689else
24690  ac_check_lib_save_LIBS=$LIBS
24691LIBS="-lts  $LIBS"
24692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24693/* end confdefs.h.  */
24694
24695/* Override any GCC internal prototype to avoid an error.
24696   Use char because int might match the return type of a GCC
24697   builtin and then its argument prototype would still apply.  */
24698#ifdef __cplusplus
24699extern "C"
24700#endif
24701char ts_open ();
24702int
24703main ()
24704{
24705return ts_open ();
24706  ;
24707  return 0;
24708}
24709_ACEOF
24710if ac_fn_c_try_link "$LINENO"; then :
24711  ac_cv_lib_ts_ts_open=yes
24712else
24713  ac_cv_lib_ts_ts_open=no
24714fi
24715rm -f core conftest.err conftest.$ac_objext \
24716    conftest$ac_exeext conftest.$ac_ext
24717LIBS=$ac_check_lib_save_LIBS
24718fi
24719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ts_ts_open" >&5
24720$as_echo "$ac_cv_lib_ts_ts_open" >&6; }
24721if test "x$ac_cv_lib_ts_ts_open" = xyes; then :
24722  HAVE_TSLIB="yes"
24723fi
24724
24725    fi
24726
24727    if test "xTSLIB" = xauto; then
24728        TSLIB="$HAVE_TSLIB"
24729    fi
24730
24731    if test "x$TSLIB" = xyes; then
24732        if ! test "x$HAVE_TSLIB" = xyes; then
24733            as_fn_error $? "tslib must be installed to build the tslib driver. See http://tslib.berlios.de/" "$LINENO" 5
24734        else
24735
24736$as_echo "#define TSLIB 1" >>confdefs.h
24737
24738        fi
24739    fi
24740
24741    if test "x$KDRIVE_KBD" = xyes; then
24742
24743$as_echo "#define KDRIVE_KBD 1" >>confdefs.h
24744
24745    fi
24746    if test "x$KDRIVE_EVDEV" = xyes; then
24747
24748$as_echo "#define KDRIVE_EVDEV 1" >>confdefs.h
24749
24750    fi
24751    if test "x$KDRIVE_MOUSE" = xyes; then
24752
24753$as_echo "#define KDRIVE_MOUSE 1" >>confdefs.h
24754
24755    fi
24756
24757    XEPHYR_REQUIRED_LIBS="x11 $LIBXEXT xau xdmcp"
24758    if test "x$XV" = xyes; then
24759        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xv"
24760    fi
24761    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
24762        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm"
24763    fi
24764
24765
24766pkg_failed=no
24767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
24768$as_echo_n "checking for XEPHYR... " >&6; }
24769
24770if test -n "$XEPHYR_CFLAGS"; then
24771    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
24772 elif test -n "$PKG_CONFIG"; then
24773    if test -n "$PKG_CONFIG" && \
24774    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
24775  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
24776  ac_status=$?
24777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24778  test $ac_status = 0; }; then
24779  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
24780else
24781  pkg_failed=yes
24782fi
24783 else
24784    pkg_failed=untried
24785fi
24786if test -n "$XEPHYR_LIBS"; then
24787    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
24788 elif test -n "$PKG_CONFIG"; then
24789    if test -n "$PKG_CONFIG" && \
24790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
24791  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
24792  ac_status=$?
24793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24794  test $ac_status = 0; }; then
24795  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
24796else
24797  pkg_failed=yes
24798fi
24799 else
24800    pkg_failed=untried
24801fi
24802
24803
24804
24805if test $pkg_failed = yes; then
24806   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24807$as_echo "no" >&6; }
24808
24809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24810        _pkg_short_errors_supported=yes
24811else
24812        _pkg_short_errors_supported=no
24813fi
24814        if test $_pkg_short_errors_supported = yes; then
24815	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
24816        else
24817	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XEPHYR_REQUIRED_LIBS" 2>&1`
24818        fi
24819	# Put the nasty error message in config.log where it belongs
24820	echo "$XEPHYR_PKG_ERRORS" >&5
24821
24822	xephyr="no"
24823elif test $pkg_failed = untried; then
24824     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24825$as_echo "no" >&6; }
24826	xephyr="no"
24827else
24828	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
24829	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
24830        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24831$as_echo "yes" >&6; }
24832	xephyr="yes"
24833fi
24834    if test "x$XEPHYR" = xauto; then
24835        XEPHYR=$xephyr
24836    fi
24837    if test "x$XEPHYR" = xyes && test "x$xephyr" = xno; then
24838        as_fn_error $? "Xephyr dependencies missing" "$LINENO" 5
24839    fi
24840
24841    # Xephyr needs nanosleep() which is in librt on Solaris
24842    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
24843if test "x$ac_cv_func_nanosleep" = xyes; then :
24844
24845else
24846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
24847$as_echo_n "checking for nanosleep in -lrt... " >&6; }
24848if ${ac_cv_lib_rt_nanosleep+:} false; then :
24849  $as_echo_n "(cached) " >&6
24850else
24851  ac_check_lib_save_LIBS=$LIBS
24852LIBS="-lrt  $LIBS"
24853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854/* end confdefs.h.  */
24855
24856/* Override any GCC internal prototype to avoid an error.
24857   Use char because int might match the return type of a GCC
24858   builtin and then its argument prototype would still apply.  */
24859#ifdef __cplusplus
24860extern "C"
24861#endif
24862char nanosleep ();
24863int
24864main ()
24865{
24866return nanosleep ();
24867  ;
24868  return 0;
24869}
24870_ACEOF
24871if ac_fn_c_try_link "$LINENO"; then :
24872  ac_cv_lib_rt_nanosleep=yes
24873else
24874  ac_cv_lib_rt_nanosleep=no
24875fi
24876rm -f core conftest.err conftest.$ac_objext \
24877    conftest$ac_exeext conftest.$ac_ext
24878LIBS=$ac_check_lib_save_LIBS
24879fi
24880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
24881$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
24882if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
24883  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
24884fi
24885
24886fi
24887
24888
24889    # damage shadow extension glx (NOTYET) fb mi
24890    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
24891    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
24892    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
24893    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
24894
24895    KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS"
24896
24897    KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB"
24898    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
24899    case $host_os in
24900	*linux*)
24901	    KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.la'
24902            KDRIVELINUX=yes
24903	    if test "x$KDRIVE_EVDEV" = xauto; then
24904		KDRIVE_EVDEV=yes
24905	    fi
24906	    if test "x$KDRIVE_KBD" = xauto; then
24907		KDRIVE_KBD=yes
24908	    fi
24909	    if test "x$KDRIVE_MOUSE" = xauto; then
24910		KDRIVE_MOUSE=yes
24911	    fi
24912	    ;;
24913	*)
24914	    if test "x$KDRIVE_EVDEV" = xauto; then
24915		KDRIVE_EVDEV=no
24916	    fi
24917	    if test "x$KDRIVE_KBD" = xauto; then
24918		KDRIVE_KBD=no
24919	    fi
24920	    if test "x$KDRIVE_MOUSE" = xauto; then
24921		KDRIVE_MOUSE=no
24922	    fi
24923	    ;;
24924    esac
24925    KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.la'
24926    KDRIVE_LOCAL_LIBS="$MAIN_LIB $DIX_LIB $KDRIVE_LIB $KDRIVE_STUB_LIB"
24927    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
24928    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB $OS_LIB"
24929    KDRIVE_LIBS="$TSLIB_LIBS $KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS"
24930
24931
24932
24933fi
24934
24935
24936
24937
24938
24939
24940 if test "x$KDRIVELINUX" = xyes; then
24941  KDRIVELINUX_TRUE=
24942  KDRIVELINUX_FALSE='#'
24943else
24944  KDRIVELINUX_TRUE='#'
24945  KDRIVELINUX_FALSE=
24946fi
24947
24948 if test "x$KDRIVE_EVDEV" = xyes; then
24949  KDRIVE_EVDEV_TRUE=
24950  KDRIVE_EVDEV_FALSE='#'
24951else
24952  KDRIVE_EVDEV_TRUE='#'
24953  KDRIVE_EVDEV_FALSE=
24954fi
24955
24956 if test "x$KDRIVE_KBD" = xyes; then
24957  KDRIVE_KBD_TRUE=
24958  KDRIVE_KBD_FALSE='#'
24959else
24960  KDRIVE_KBD_TRUE='#'
24961  KDRIVE_KBD_FALSE=
24962fi
24963
24964 if test "x$KDRIVE_MOUSE" = xyes; then
24965  KDRIVE_MOUSE_TRUE=
24966  KDRIVE_MOUSE_FALSE='#'
24967else
24968  KDRIVE_MOUSE_TRUE='#'
24969  KDRIVE_MOUSE_FALSE=
24970fi
24971
24972 if test "x$HAVE_TSLIB" = xyes; then
24973  TSLIB_TRUE=
24974  TSLIB_FALSE='#'
24975else
24976  TSLIB_TRUE='#'
24977  TSLIB_FALSE=
24978fi
24979
24980 if test "x$XFBDEV" = xyes; then
24981  KDRIVEFBDEV_TRUE=
24982  KDRIVEFBDEV_FALSE='#'
24983else
24984  KDRIVEFBDEV_TRUE='#'
24985  KDRIVEFBDEV_FALSE=
24986fi
24987
24988 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
24989  XEPHYR_TRUE=
24990  XEPHYR_FALSE='#'
24991else
24992  XEPHYR_TRUE='#'
24993  XEPHYR_FALSE=
24994fi
24995
24996 if test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes; then
24997  BUILD_KDRIVEFBDEVLIB_TRUE=
24998  BUILD_KDRIVEFBDEVLIB_FALSE='#'
24999else
25000  BUILD_KDRIVEFBDEVLIB_TRUE='#'
25001  BUILD_KDRIVEFBDEVLIB_FALSE=
25002fi
25003
25004 if test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes; then
25005  XFAKESERVER_TRUE=
25006  XFAKESERVER_FALSE='#'
25007else
25008  XFAKESERVER_TRUE='#'
25009  XFAKESERVER_FALSE=
25010fi
25011
25012
25013
25014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25015/* end confdefs.h.  */
25016
25017#include <features.h>
25018#ifndef __GLIBC__
25019#error not glibc
25020#endif
25021
25022int
25023main ()
25024{
25025
25026  ;
25027  return 0;
25028}
25029_ACEOF
25030if ac_fn_c_try_compile "$LINENO"; then :
25031
25032$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
25033
25034fi
25035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25036
25037
25038  prefix_NONE=
25039  exec_prefix_NONE=
25040  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25041  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25042  eval ac_define_dir="\"$prefix\""
25043  eval ac_define_dir="\"$ac_define_dir\""
25044  PROJECTROOT="$ac_define_dir"
25045
25046
25047cat >>confdefs.h <<_ACEOF
25048#define PROJECTROOT "$ac_define_dir"
25049_ACEOF
25050
25051  test "$prefix_NONE" && prefix=NONE
25052  test "$exec_prefix_NONE" && exec_prefix=NONE
25053
25054
25055
25056BUILD_DATE="`date +'%Y%m%d'`"
25057
25058BUILD_TIME="`date +'1%H%M%S'`"
25059
25060
25061DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
25062
25063
25064
25065
25066
25067
25068
25069ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/xml/Makefile doc/xml/dtrace/Makefile doc/xml/xserver.ent fb/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/damage/Makefile miext/shadow/Makefile miext/cw/Makefile miext/rootless/Makefile os/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/common/Makefile hw/xfree86/common/xf86Build.h hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/dixmods/extmod/Makefile hw/xfree86/doc/Makefile hw/xfree86/doc/devel/Makefile hw/xfree86/doc/man/Makefile hw/xfree86/doc/sgml/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/exa/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/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/sco/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/os-support/sysv/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/xaa/Makefile hw/xfree86/xf8_16bpp/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/doc/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/vfb/Makefile hw/xnest/Makefile hw/xwin/Makefile hw/xwin/glx/Makefile hw/xquartz/Makefile hw/xquartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/doc/Makefile hw/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/fake/Makefile hw/kdrive/fbdev/Makefile hw/kdrive/linux/Makefile hw/kdrive/src/Makefile test/Makefile test/xi2/Makefile xorg-server.pc"
25070
25071cat >confcache <<\_ACEOF
25072# This file is a shell script that caches the results of configure
25073# tests run on this system so they can be shared between configure
25074# scripts and configure runs, see configure's option --config-cache.
25075# It is not useful on other systems.  If it contains results you don't
25076# want to keep, you may remove or edit it.
25077#
25078# config.status only pays attention to the cache file if you give it
25079# the --recheck option to rerun configure.
25080#
25081# `ac_cv_env_foo' variables (set or unset) will be overridden when
25082# loading this file, other *unset* `ac_cv_foo' will be assigned the
25083# following values.
25084
25085_ACEOF
25086
25087# The following way of writing the cache mishandles newlines in values,
25088# but we know of no workaround that is simple, portable, and efficient.
25089# So, we kill variables containing newlines.
25090# Ultrix sh set writes to stderr and can't be redirected directly,
25091# and sets the high bit in the cache file unless we assign to the vars.
25092(
25093  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25094    eval ac_val=\$$ac_var
25095    case $ac_val in #(
25096    *${as_nl}*)
25097      case $ac_var in #(
25098      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25099$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25100      esac
25101      case $ac_var in #(
25102      _ | IFS | as_nl) ;; #(
25103      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25104      *) { eval $ac_var=; unset $ac_var;} ;;
25105      esac ;;
25106    esac
25107  done
25108
25109  (set) 2>&1 |
25110    case $as_nl`(ac_space=' '; set) 2>&1` in #(
25111    *${as_nl}ac_space=\ *)
25112      # `set' does not quote correctly, so add quotes: double-quote
25113      # substitution turns \\\\ into \\, and sed turns \\ into \.
25114      sed -n \
25115	"s/'/'\\\\''/g;
25116	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25117      ;; #(
25118    *)
25119      # `set' quotes correctly as required by POSIX, so do not add quotes.
25120      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25121      ;;
25122    esac |
25123    sort
25124) |
25125  sed '
25126     /^ac_cv_env_/b end
25127     t clear
25128     :clear
25129     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25130     t end
25131     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25132     :end' >>confcache
25133if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25134  if test -w "$cache_file"; then
25135    if test "x$cache_file" != "x/dev/null"; then
25136      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25137$as_echo "$as_me: updating cache $cache_file" >&6;}
25138      if test ! -f "$cache_file" || test -h "$cache_file"; then
25139	cat confcache >"$cache_file"
25140      else
25141        case $cache_file in #(
25142        */* | ?:*)
25143	  mv -f confcache "$cache_file"$$ &&
25144	  mv -f "$cache_file"$$ "$cache_file" ;; #(
25145        *)
25146	  mv -f confcache "$cache_file" ;;
25147	esac
25148      fi
25149    fi
25150  else
25151    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25152$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25153  fi
25154fi
25155rm -f confcache
25156
25157test "x$prefix" = xNONE && prefix=$ac_default_prefix
25158# Let make expand exec_prefix.
25159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25160
25161DEFS=-DHAVE_CONFIG_H
25162
25163ac_libobjs=
25164ac_ltlibobjs=
25165U=
25166for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25167  # 1. Remove the extension, and $U if already installed.
25168  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25169  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25170  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25171  #    will be set to the directory where LIBOBJS objects are built.
25172  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25173  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25174done
25175LIBOBJS=$ac_libobjs
25176
25177LTLIBOBJS=$ac_ltlibobjs
25178
25179
25180 if test -n "$EXEEXT"; then
25181  am__EXEEXT_TRUE=
25182  am__EXEEXT_FALSE='#'
25183else
25184  am__EXEEXT_TRUE='#'
25185  am__EXEEXT_FALSE=
25186fi
25187
25188if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25189  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25190Usually this means the macro was only invoked conditionally." "$LINENO" 5
25191fi
25192if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25193  as_fn_error $? "conditional \"AMDEP\" was never defined.
25194Usually this means the macro was only invoked conditionally." "$LINENO" 5
25195fi
25196if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25197  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25198Usually this means the macro was only invoked conditionally." "$LINENO" 5
25199fi
25200if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
25201  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
25202Usually this means the macro was only invoked conditionally." "$LINENO" 5
25203fi
25204if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
25205  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
25206Usually this means the macro was only invoked conditionally." "$LINENO" 5
25207fi
25208if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25209  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25210Usually this means the macro was only invoked conditionally." "$LINENO" 5
25211fi
25212if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25213  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
25214Usually this means the macro was only invoked conditionally." "$LINENO" 5
25215fi
25216if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
25217  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
25218Usually this means the macro was only invoked conditionally." "$LINENO" 5
25219fi
25220if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
25221  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
25222Usually this means the macro was only invoked conditionally." "$LINENO" 5
25223fi
25224
25225if test -z "${NEED_STRLCAT_TRUE}" && test -z "${NEED_STRLCAT_FALSE}"; then
25226  as_fn_error $? "conditional \"NEED_STRLCAT\" was never defined.
25227Usually this means the macro was only invoked conditionally." "$LINENO" 5
25228fi
25229if test -z "${NEED_VSNPRINTF_TRUE}" && test -z "${NEED_VSNPRINTF_FALSE}"; then
25230  as_fn_error $? "conditional \"NEED_VSNPRINTF\" was never defined.
25231Usually this means the macro was only invoked conditionally." "$LINENO" 5
25232fi
25233if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
25234  as_fn_error $? "conditional \"AGP\" was never defined.
25235Usually this means the macro was only invoked conditionally." "$LINENO" 5
25236fi
25237if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
25238  as_fn_error $? "conditional \"LNXAPM\" was never defined.
25239Usually this means the macro was only invoked conditionally." "$LINENO" 5
25240fi
25241if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
25242  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
25243Usually this means the macro was only invoked conditionally." "$LINENO" 5
25244fi
25245if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
25246  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
25247Usually this means the macro was only invoked conditionally." "$LINENO" 5
25248fi
25249if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then
25250  as_fn_error $? "conditional \"BSD_APM\" was never defined.
25251Usually this means the macro was only invoked conditionally." "$LINENO" 5
25252fi
25253if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then
25254  as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined.
25255Usually this means the macro was only invoked conditionally." "$LINENO" 5
25256fi
25257if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
25258  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
25259Usually this means the macro was only invoked conditionally." "$LINENO" 5
25260fi
25261if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
25262  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
25263Usually this means the macro was only invoked conditionally." "$LINENO" 5
25264fi
25265if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
25266  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
25267Usually this means the macro was only invoked conditionally." "$LINENO" 5
25268fi
25269if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
25270  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
25271Usually this means the macro was only invoked conditionally." "$LINENO" 5
25272fi
25273if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
25274  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
25275Usually this means the macro was only invoked conditionally." "$LINENO" 5
25276fi
25277if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
25278  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
25279Usually this means the macro was only invoked conditionally." "$LINENO" 5
25280fi
25281if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
25282  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
25283Usually this means the macro was only invoked conditionally." "$LINENO" 5
25284fi
25285if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
25286  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
25287Usually this means the macro was only invoked conditionally." "$LINENO" 5
25288fi
25289if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
25290  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
25291Usually this means the macro was only invoked conditionally." "$LINENO" 5
25292fi
25293if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
25294  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
25295Usually this means the macro was only invoked conditionally." "$LINENO" 5
25296fi
25297if test -z "${BUILDDOCS_TRUE}" && test -z "${BUILDDOCS_FALSE}"; then
25298  as_fn_error $? "conditional \"BUILDDOCS\" was never defined.
25299Usually this means the macro was only invoked conditionally." "$LINENO" 5
25300fi
25301if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
25302  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
25303Usually this means the macro was only invoked conditionally." "$LINENO" 5
25304fi
25305if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
25306  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
25307Usually this means the macro was only invoked conditionally." "$LINENO" 5
25308fi
25309if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
25310  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
25311Usually this means the macro was only invoked conditionally." "$LINENO" 5
25312fi
25313if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
25314  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
25315Usually this means the macro was only invoked conditionally." "$LINENO" 5
25316fi
25317if test -z "${INSTALL_LIBXF86CONFIG_TRUE}" && test -z "${INSTALL_LIBXF86CONFIG_FALSE}"; then
25318  as_fn_error $? "conditional \"INSTALL_LIBXF86CONFIG\" was never defined.
25319Usually this means the macro was only invoked conditionally." "$LINENO" 5
25320fi
25321if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
25322  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
25323Usually this means the macro was only invoked conditionally." "$LINENO" 5
25324fi
25325if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
25326  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
25327Usually this means the macro was only invoked conditionally." "$LINENO" 5
25328fi
25329if test -z "${CONFIG_DBUS_API_TRUE}" && test -z "${CONFIG_DBUS_API_FALSE}"; then
25330  as_fn_error $? "conditional \"CONFIG_DBUS_API\" was never defined.
25331Usually this means the macro was only invoked conditionally." "$LINENO" 5
25332fi
25333if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
25334  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
25335Usually this means the macro was only invoked conditionally." "$LINENO" 5
25336fi
25337if test -z "${CONFIG_NEED_DBUS_TRUE}" && test -z "${CONFIG_NEED_DBUS_FALSE}"; then
25338  as_fn_error $? "conditional \"CONFIG_NEED_DBUS\" was never defined.
25339Usually this means the macro was only invoked conditionally." "$LINENO" 5
25340fi
25341if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
25342  as_fn_error $? "conditional \"XV\" was never defined.
25343Usually this means the macro was only invoked conditionally." "$LINENO" 5
25344fi
25345if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
25346  as_fn_error $? "conditional \"XVMC\" was never defined.
25347Usually this means the macro was only invoked conditionally." "$LINENO" 5
25348fi
25349if test -z "${XREGISTRY_TRUE}" && test -z "${XREGISTRY_FALSE}"; then
25350  as_fn_error $? "conditional \"XREGISTRY\" was never defined.
25351Usually this means the macro was only invoked conditionally." "$LINENO" 5
25352fi
25353if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
25354  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
25355Usually this means the macro was only invoked conditionally." "$LINENO" 5
25356fi
25357if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
25358  as_fn_error $? "conditional \"MITSHM\" was never defined.
25359Usually this means the macro was only invoked conditionally." "$LINENO" 5
25360fi
25361if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
25362  as_fn_error $? "conditional \"RECORD\" was never defined.
25363Usually this means the macro was only invoked conditionally." "$LINENO" 5
25364fi
25365if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
25366  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
25367Usually this means the macro was only invoked conditionally." "$LINENO" 5
25368fi
25369if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
25370  as_fn_error $? "conditional \"RES\" was never defined.
25371Usually this means the macro was only invoked conditionally." "$LINENO" 5
25372fi
25373if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
25374  as_fn_error $? "conditional \"GLX\" was never defined.
25375Usually this means the macro was only invoked conditionally." "$LINENO" 5
25376fi
25377if test -z "${AIGLX_TRUE}" && test -z "${AIGLX_FALSE}"; then
25378  as_fn_error $? "conditional \"AIGLX\" was never defined.
25379Usually this means the macro was only invoked conditionally." "$LINENO" 5
25380fi
25381if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
25382  as_fn_error $? "conditional \"DRI\" was never defined.
25383Usually this means the macro was only invoked conditionally." "$LINENO" 5
25384fi
25385if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
25386  as_fn_error $? "conditional \"DRI2\" was never defined.
25387Usually this means the macro was only invoked conditionally." "$LINENO" 5
25388fi
25389if test -z "${DRI2_AIGLX_TRUE}" && test -z "${DRI2_AIGLX_FALSE}"; then
25390  as_fn_error $? "conditional \"DRI2_AIGLX\" was never defined.
25391Usually this means the macro was only invoked conditionally." "$LINENO" 5
25392fi
25393if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
25394  as_fn_error $? "conditional \"XINERAMA\" was never defined.
25395Usually this means the macro was only invoked conditionally." "$LINENO" 5
25396fi
25397if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
25398  as_fn_error $? "conditional \"XACE\" was never defined.
25399Usually this means the macro was only invoked conditionally." "$LINENO" 5
25400fi
25401if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
25402  as_fn_error $? "conditional \"XSELINUX\" was never defined.
25403Usually this means the macro was only invoked conditionally." "$LINENO" 5
25404fi
25405if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
25406  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
25407Usually this means the macro was only invoked conditionally." "$LINENO" 5
25408fi
25409if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
25410  as_fn_error $? "conditional \"DBE\" was never defined.
25411Usually this means the macro was only invoked conditionally." "$LINENO" 5
25412fi
25413if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
25414  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
25415Usually this means the macro was only invoked conditionally." "$LINENO" 5
25416fi
25417if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
25418  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
25419Usually this means the macro was only invoked conditionally." "$LINENO" 5
25420fi
25421if test -z "${XCALIBRATE_TRUE}" && test -z "${XCALIBRATE_FALSE}"; then
25422  as_fn_error $? "conditional \"XCALIBRATE\" was never defined.
25423Usually this means the macro was only invoked conditionally." "$LINENO" 5
25424fi
25425if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
25426  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
25427Usually this means the macro was only invoked conditionally." "$LINENO" 5
25428fi
25429if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
25430  as_fn_error $? "conditional \"XAA\" was never defined.
25431Usually this means the macro was only invoked conditionally." "$LINENO" 5
25432fi
25433if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
25434  as_fn_error $? "conditional \"VGAHW\" was never defined.
25435Usually this means the macro was only invoked conditionally." "$LINENO" 5
25436fi
25437if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then
25438  as_fn_error $? "conditional \"VBE\" was never defined.
25439Usually this means the macro was only invoked conditionally." "$LINENO" 5
25440fi
25441if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
25442  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
25443Usually this means the macro was only invoked conditionally." "$LINENO" 5
25444fi
25445if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
25446  as_fn_error $? "conditional \"XDMCP\" was never defined.
25447Usually this means the macro was only invoked conditionally." "$LINENO" 5
25448fi
25449if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
25450  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
25451Usually this means the macro was only invoked conditionally." "$LINENO" 5
25452fi
25453if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
25454  as_fn_error $? "conditional \"DEBUG\" was never defined.
25455Usually this means the macro was only invoked conditionally." "$LINENO" 5
25456fi
25457if test -z "${UNITTESTS_TRUE}" && test -z "${UNITTESTS_FALSE}"; then
25458  as_fn_error $? "conditional \"UNITTESTS\" was never defined.
25459Usually this means the macro was only invoked conditionally." "$LINENO" 5
25460fi
25461if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
25462  as_fn_error $? "conditional \"XVFB\" was never defined.
25463Usually this means the macro was only invoked conditionally." "$LINENO" 5
25464fi
25465if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
25466  as_fn_error $? "conditional \"XNEST\" was never defined.
25467Usually this means the macro was only invoked conditionally." "$LINENO" 5
25468fi
25469if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
25470  as_fn_error $? "conditional \"XORG\" was never defined.
25471Usually this means the macro was only invoked conditionally." "$LINENO" 5
25472fi
25473if test -z "${XORG_BUS_LINUXPCI_TRUE}" && test -z "${XORG_BUS_LINUXPCI_FALSE}"; then
25474  as_fn_error $? "conditional \"XORG_BUS_LINUXPCI\" was never defined.
25475Usually this means the macro was only invoked conditionally." "$LINENO" 5
25476fi
25477if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
25478  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
25479Usually this means the macro was only invoked conditionally." "$LINENO" 5
25480fi
25481if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
25482  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
25483Usually this means the macro was only invoked conditionally." "$LINENO" 5
25484fi
25485if test -z "${LINUX_IA64_TRUE}" && test -z "${LINUX_IA64_FALSE}"; then
25486  as_fn_error $? "conditional \"LINUX_IA64\" was never defined.
25487Usually this means the macro was only invoked conditionally." "$LINENO" 5
25488fi
25489if test -z "${LINUX_ALPHA_TRUE}" && test -z "${LINUX_ALPHA_FALSE}"; then
25490  as_fn_error $? "conditional \"LINUX_ALPHA\" was never defined.
25491Usually this means the macro was only invoked conditionally." "$LINENO" 5
25492fi
25493if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
25494  as_fn_error $? "conditional \"LNXACPI\" was never defined.
25495Usually this means the macro was only invoked conditionally." "$LINENO" 5
25496fi
25497if test -z "${SOLARIS_ASM_INLINE_TRUE}" && test -z "${SOLARIS_ASM_INLINE_FALSE}"; then
25498  as_fn_error $? "conditional \"SOLARIS_ASM_INLINE\" was never defined.
25499Usually this means the macro was only invoked conditionally." "$LINENO" 5
25500fi
25501if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
25502  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
25503Usually this means the macro was only invoked conditionally." "$LINENO" 5
25504fi
25505if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
25506  as_fn_error $? "conditional \"DGA\" was never defined.
25507Usually this means the macro was only invoked conditionally." "$LINENO" 5
25508fi
25509if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
25510  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
25511Usually this means the macro was only invoked conditionally." "$LINENO" 5
25512fi
25513if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
25514  as_fn_error $? "conditional \"XWIN\" was never defined.
25515Usually this means the macro was only invoked conditionally." "$LINENO" 5
25516fi
25517if test -z "${XWIN_MULTIWINDOW_TRUE}" && test -z "${XWIN_MULTIWINDOW_FALSE}"; then
25518  as_fn_error $? "conditional \"XWIN_MULTIWINDOW\" was never defined.
25519Usually this means the macro was only invoked conditionally." "$LINENO" 5
25520fi
25521if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then
25522  as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined.
25523Usually this means the macro was only invoked conditionally." "$LINENO" 5
25524fi
25525if test -z "${XWIN_CLIPBOARD_TRUE}" && test -z "${XWIN_CLIPBOARD_FALSE}"; then
25526  as_fn_error $? "conditional \"XWIN_CLIPBOARD\" was never defined.
25527Usually this means the macro was only invoked conditionally." "$LINENO" 5
25528fi
25529if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
25530  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
25531Usually this means the macro was only invoked conditionally." "$LINENO" 5
25532fi
25533if test -z "${XWIN_NATIVEGDI_TRUE}" && test -z "${XWIN_NATIVEGDI_FALSE}"; then
25534  as_fn_error $? "conditional \"XWIN_NATIVEGDI\" was never defined.
25535Usually this means the macro was only invoked conditionally." "$LINENO" 5
25536fi
25537if test -z "${XWIN_PRIMARYFB_TRUE}" && test -z "${XWIN_PRIMARYFB_FALSE}"; then
25538  as_fn_error $? "conditional \"XWIN_PRIMARYFB\" was never defined.
25539Usually this means the macro was only invoked conditionally." "$LINENO" 5
25540fi
25541if test -z "${XWIN_RANDR_TRUE}" && test -z "${XWIN_RANDR_FALSE}"; then
25542  as_fn_error $? "conditional \"XWIN_RANDR\" was never defined.
25543Usually this means the macro was only invoked conditionally." "$LINENO" 5
25544fi
25545if test -z "${XWIN_XV_TRUE}" && test -z "${XWIN_XV_FALSE}"; then
25546  as_fn_error $? "conditional \"XWIN_XV\" was never defined.
25547Usually this means the macro was only invoked conditionally." "$LINENO" 5
25548fi
25549if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
25550  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
25551Usually this means the macro was only invoked conditionally." "$LINENO" 5
25552fi
25553if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
25554  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
25555Usually this means the macro was only invoked conditionally." "$LINENO" 5
25556fi
25557if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
25558  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
25559Usually this means the macro was only invoked conditionally." "$LINENO" 5
25560fi
25561if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
25562  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
25563Usually this means the macro was only invoked conditionally." "$LINENO" 5
25564fi
25565if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then
25566  as_fn_error $? "conditional \"DMX\" was never defined.
25567Usually this means the macro was only invoked conditionally." "$LINENO" 5
25568fi
25569if test -z "${DMX_BUILD_LNX_TRUE}" && test -z "${DMX_BUILD_LNX_FALSE}"; then
25570  as_fn_error $? "conditional \"DMX_BUILD_LNX\" was never defined.
25571Usually this means the macro was only invoked conditionally." "$LINENO" 5
25572fi
25573if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then
25574  as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined.
25575Usually this means the macro was only invoked conditionally." "$LINENO" 5
25576fi
25577if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
25578  as_fn_error $? "conditional \"KDRIVE\" was never defined.
25579Usually this means the macro was only invoked conditionally." "$LINENO" 5
25580fi
25581if test -z "${KDRIVELINUX_TRUE}" && test -z "${KDRIVELINUX_FALSE}"; then
25582  as_fn_error $? "conditional \"KDRIVELINUX\" was never defined.
25583Usually this means the macro was only invoked conditionally." "$LINENO" 5
25584fi
25585if test -z "${KDRIVE_EVDEV_TRUE}" && test -z "${KDRIVE_EVDEV_FALSE}"; then
25586  as_fn_error $? "conditional \"KDRIVE_EVDEV\" was never defined.
25587Usually this means the macro was only invoked conditionally." "$LINENO" 5
25588fi
25589if test -z "${KDRIVE_KBD_TRUE}" && test -z "${KDRIVE_KBD_FALSE}"; then
25590  as_fn_error $? "conditional \"KDRIVE_KBD\" was never defined.
25591Usually this means the macro was only invoked conditionally." "$LINENO" 5
25592fi
25593if test -z "${KDRIVE_MOUSE_TRUE}" && test -z "${KDRIVE_MOUSE_FALSE}"; then
25594  as_fn_error $? "conditional \"KDRIVE_MOUSE\" was never defined.
25595Usually this means the macro was only invoked conditionally." "$LINENO" 5
25596fi
25597if test -z "${TSLIB_TRUE}" && test -z "${TSLIB_FALSE}"; then
25598  as_fn_error $? "conditional \"TSLIB\" was never defined.
25599Usually this means the macro was only invoked conditionally." "$LINENO" 5
25600fi
25601if test -z "${KDRIVEFBDEV_TRUE}" && test -z "${KDRIVEFBDEV_FALSE}"; then
25602  as_fn_error $? "conditional \"KDRIVEFBDEV\" was never defined.
25603Usually this means the macro was only invoked conditionally." "$LINENO" 5
25604fi
25605if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
25606  as_fn_error $? "conditional \"XEPHYR\" was never defined.
25607Usually this means the macro was only invoked conditionally." "$LINENO" 5
25608fi
25609if test -z "${BUILD_KDRIVEFBDEVLIB_TRUE}" && test -z "${BUILD_KDRIVEFBDEVLIB_FALSE}"; then
25610  as_fn_error $? "conditional \"BUILD_KDRIVEFBDEVLIB\" was never defined.
25611Usually this means the macro was only invoked conditionally." "$LINENO" 5
25612fi
25613if test -z "${XFAKESERVER_TRUE}" && test -z "${XFAKESERVER_FALSE}"; then
25614  as_fn_error $? "conditional \"XFAKESERVER\" was never defined.
25615Usually this means the macro was only invoked conditionally." "$LINENO" 5
25616fi
25617
25618: "${CONFIG_STATUS=./config.status}"
25619ac_write_fail=0
25620ac_clean_files_save=$ac_clean_files
25621ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25622{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25623$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25624as_write_fail=0
25625cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25626#! $SHELL
25627# Generated by $as_me.
25628# Run this file to recreate the current configuration.
25629# Compiler output produced by configure, useful for debugging
25630# configure, is in config.log if it exists.
25631
25632debug=false
25633ac_cs_recheck=false
25634ac_cs_silent=false
25635
25636SHELL=\${CONFIG_SHELL-$SHELL}
25637export SHELL
25638_ASEOF
25639cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25640## -------------------- ##
25641## M4sh Initialization. ##
25642## -------------------- ##
25643
25644# Be more Bourne compatible
25645DUALCASE=1; export DUALCASE # for MKS sh
25646if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25647  emulate sh
25648  NULLCMD=:
25649  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25650  # is contrary to our usage.  Disable this feature.
25651  alias -g '${1+"$@"}'='"$@"'
25652  setopt NO_GLOB_SUBST
25653else
25654  case `(set -o) 2>/dev/null` in #(
25655  *posix*) :
25656    set -o posix ;; #(
25657  *) :
25658     ;;
25659esac
25660fi
25661
25662
25663as_nl='
25664'
25665export as_nl
25666# Printing a long string crashes Solaris 7 /usr/bin/printf.
25667as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25670# Prefer a ksh shell builtin over an external printf program on Solaris,
25671# but without wasting forks for bash or zsh.
25672if test -z "$BASH_VERSION$ZSH_VERSION" \
25673    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25674  as_echo='print -r --'
25675  as_echo_n='print -rn --'
25676elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25677  as_echo='printf %s\n'
25678  as_echo_n='printf %s'
25679else
25680  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25681    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25682    as_echo_n='/usr/ucb/echo -n'
25683  else
25684    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25685    as_echo_n_body='eval
25686      arg=$1;
25687      case $arg in #(
25688      *"$as_nl"*)
25689	expr "X$arg" : "X\\(.*\\)$as_nl";
25690	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25691      esac;
25692      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25693    '
25694    export as_echo_n_body
25695    as_echo_n='sh -c $as_echo_n_body as_echo'
25696  fi
25697  export as_echo_body
25698  as_echo='sh -c $as_echo_body as_echo'
25699fi
25700
25701# The user is always right.
25702if test "${PATH_SEPARATOR+set}" != set; then
25703  PATH_SEPARATOR=:
25704  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25705    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25706      PATH_SEPARATOR=';'
25707  }
25708fi
25709
25710
25711# IFS
25712# We need space, tab and new line, in precisely that order.  Quoting is
25713# there to prevent editors from complaining about space-tab.
25714# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25715# splitting by setting IFS to empty value.)
25716IFS=" ""	$as_nl"
25717
25718# Find who we are.  Look in the path if we contain no directory separator.
25719as_myself=
25720case $0 in #((
25721  *[\\/]* ) as_myself=$0 ;;
25722  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25723for as_dir in $PATH
25724do
25725  IFS=$as_save_IFS
25726  test -z "$as_dir" && as_dir=.
25727    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25728  done
25729IFS=$as_save_IFS
25730
25731     ;;
25732esac
25733# We did not find ourselves, most probably we were run as `sh COMMAND'
25734# in which case we are not to be found in the path.
25735if test "x$as_myself" = x; then
25736  as_myself=$0
25737fi
25738if test ! -f "$as_myself"; then
25739  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25740  exit 1
25741fi
25742
25743# Unset variables that we do not need and which cause bugs (e.g. in
25744# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25745# suppresses any "Segmentation fault" message there.  '((' could
25746# trigger a bug in pdksh 5.2.14.
25747for as_var in BASH_ENV ENV MAIL MAILPATH
25748do eval test x\${$as_var+set} = xset \
25749  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25750done
25751PS1='$ '
25752PS2='> '
25753PS4='+ '
25754
25755# NLS nuisances.
25756LC_ALL=C
25757export LC_ALL
25758LANGUAGE=C
25759export LANGUAGE
25760
25761# CDPATH.
25762(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25763
25764
25765# as_fn_error STATUS ERROR [LINENO LOG_FD]
25766# ----------------------------------------
25767# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25768# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25769# script with STATUS, using 1 if that was 0.
25770as_fn_error ()
25771{
25772  as_status=$1; test $as_status -eq 0 && as_status=1
25773  if test "$4"; then
25774    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25775    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25776  fi
25777  $as_echo "$as_me: error: $2" >&2
25778  as_fn_exit $as_status
25779} # as_fn_error
25780
25781
25782# as_fn_set_status STATUS
25783# -----------------------
25784# Set $? to STATUS, without forking.
25785as_fn_set_status ()
25786{
25787  return $1
25788} # as_fn_set_status
25789
25790# as_fn_exit STATUS
25791# -----------------
25792# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25793as_fn_exit ()
25794{
25795  set +e
25796  as_fn_set_status $1
25797  exit $1
25798} # as_fn_exit
25799
25800# as_fn_unset VAR
25801# ---------------
25802# Portably unset VAR.
25803as_fn_unset ()
25804{
25805  { eval $1=; unset $1;}
25806}
25807as_unset=as_fn_unset
25808# as_fn_append VAR VALUE
25809# ----------------------
25810# Append the text in VALUE to the end of the definition contained in VAR. Take
25811# advantage of any shell optimizations that allow amortized linear growth over
25812# repeated appends, instead of the typical quadratic growth present in naive
25813# implementations.
25814if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25815  eval 'as_fn_append ()
25816  {
25817    eval $1+=\$2
25818  }'
25819else
25820  as_fn_append ()
25821  {
25822    eval $1=\$$1\$2
25823  }
25824fi # as_fn_append
25825
25826# as_fn_arith ARG...
25827# ------------------
25828# Perform arithmetic evaluation on the ARGs, and store the result in the
25829# global $as_val. Take advantage of shells that can avoid forks. The arguments
25830# must be portable across $(()) and expr.
25831if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25832  eval 'as_fn_arith ()
25833  {
25834    as_val=$(( $* ))
25835  }'
25836else
25837  as_fn_arith ()
25838  {
25839    as_val=`expr "$@" || test $? -eq 1`
25840  }
25841fi # as_fn_arith
25842
25843
25844if expr a : '\(a\)' >/dev/null 2>&1 &&
25845   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25846  as_expr=expr
25847else
25848  as_expr=false
25849fi
25850
25851if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25852  as_basename=basename
25853else
25854  as_basename=false
25855fi
25856
25857if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25858  as_dirname=dirname
25859else
25860  as_dirname=false
25861fi
25862
25863as_me=`$as_basename -- "$0" ||
25864$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25865	 X"$0" : 'X\(//\)$' \| \
25866	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25867$as_echo X/"$0" |
25868    sed '/^.*\/\([^/][^/]*\)\/*$/{
25869	    s//\1/
25870	    q
25871	  }
25872	  /^X\/\(\/\/\)$/{
25873	    s//\1/
25874	    q
25875	  }
25876	  /^X\/\(\/\).*/{
25877	    s//\1/
25878	    q
25879	  }
25880	  s/.*/./; q'`
25881
25882# Avoid depending upon Character Ranges.
25883as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25884as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25885as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25886as_cr_digits='0123456789'
25887as_cr_alnum=$as_cr_Letters$as_cr_digits
25888
25889ECHO_C= ECHO_N= ECHO_T=
25890case `echo -n x` in #(((((
25891-n*)
25892  case `echo 'xy\c'` in
25893  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25894  xy)  ECHO_C='\c';;
25895  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25896       ECHO_T='	';;
25897  esac;;
25898*)
25899  ECHO_N='-n';;
25900esac
25901
25902rm -f conf$$ conf$$.exe conf$$.file
25903if test -d conf$$.dir; then
25904  rm -f conf$$.dir/conf$$.file
25905else
25906  rm -f conf$$.dir
25907  mkdir conf$$.dir 2>/dev/null
25908fi
25909if (echo >conf$$.file) 2>/dev/null; then
25910  if ln -s conf$$.file conf$$ 2>/dev/null; then
25911    as_ln_s='ln -s'
25912    # ... but there are two gotchas:
25913    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25914    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25915    # In both cases, we have to default to `cp -p'.
25916    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25917      as_ln_s='cp -p'
25918  elif ln conf$$.file conf$$ 2>/dev/null; then
25919    as_ln_s=ln
25920  else
25921    as_ln_s='cp -p'
25922  fi
25923else
25924  as_ln_s='cp -p'
25925fi
25926rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25927rmdir conf$$.dir 2>/dev/null
25928
25929
25930# as_fn_mkdir_p
25931# -------------
25932# Create "$as_dir" as a directory, including parents if necessary.
25933as_fn_mkdir_p ()
25934{
25935
25936  case $as_dir in #(
25937  -*) as_dir=./$as_dir;;
25938  esac
25939  test -d "$as_dir" || eval $as_mkdir_p || {
25940    as_dirs=
25941    while :; do
25942      case $as_dir in #(
25943      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25944      *) as_qdir=$as_dir;;
25945      esac
25946      as_dirs="'$as_qdir' $as_dirs"
25947      as_dir=`$as_dirname -- "$as_dir" ||
25948$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25949	 X"$as_dir" : 'X\(//\)[^/]' \| \
25950	 X"$as_dir" : 'X\(//\)$' \| \
25951	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25952$as_echo X"$as_dir" |
25953    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25954	    s//\1/
25955	    q
25956	  }
25957	  /^X\(\/\/\)[^/].*/{
25958	    s//\1/
25959	    q
25960	  }
25961	  /^X\(\/\/\)$/{
25962	    s//\1/
25963	    q
25964	  }
25965	  /^X\(\/\).*/{
25966	    s//\1/
25967	    q
25968	  }
25969	  s/.*/./; q'`
25970      test -d "$as_dir" && break
25971    done
25972    test -z "$as_dirs" || eval "mkdir $as_dirs"
25973  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25974
25975
25976} # as_fn_mkdir_p
25977if mkdir -p . 2>/dev/null; then
25978  as_mkdir_p='mkdir -p "$as_dir"'
25979else
25980  test -d ./-p && rmdir ./-p
25981  as_mkdir_p=false
25982fi
25983
25984if test -x / >/dev/null 2>&1; then
25985  as_test_x='test -x'
25986else
25987  if ls -dL / >/dev/null 2>&1; then
25988    as_ls_L_option=L
25989  else
25990    as_ls_L_option=
25991  fi
25992  as_test_x='
25993    eval sh -c '\''
25994      if test -d "$1"; then
25995	test -d "$1/.";
25996      else
25997	case $1 in #(
25998	-*)set "./$1";;
25999	esac;
26000	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26001	???[sx]*):;;*)false;;esac;fi
26002    '\'' sh
26003  '
26004fi
26005as_executable_p=$as_test_x
26006
26007# Sed expression to map a string onto a valid CPP name.
26008as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26009
26010# Sed expression to map a string onto a valid variable name.
26011as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26012
26013
26014exec 6>&1
26015## ----------------------------------- ##
26016## Main body of $CONFIG_STATUS script. ##
26017## ----------------------------------- ##
26018_ASEOF
26019test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26020
26021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26022# Save the log message, to keep $0 and so on meaningful, and to
26023# report actual input values of CONFIG_FILES etc. instead of their
26024# values after options handling.
26025ac_log="
26026This file was extended by xorg-server $as_me 1.9.2, which was
26027generated by GNU Autoconf 2.68.  Invocation command line was
26028
26029  CONFIG_FILES    = $CONFIG_FILES
26030  CONFIG_HEADERS  = $CONFIG_HEADERS
26031  CONFIG_LINKS    = $CONFIG_LINKS
26032  CONFIG_COMMANDS = $CONFIG_COMMANDS
26033  $ $0 $@
26034
26035on `(hostname || uname -n) 2>/dev/null | sed 1q`
26036"
26037
26038_ACEOF
26039
26040case $ac_config_files in *"
26041"*) set x $ac_config_files; shift; ac_config_files=$*;;
26042esac
26043
26044case $ac_config_headers in *"
26045"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26046esac
26047
26048
26049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26050# Files that config.status was made for.
26051config_files="$ac_config_files"
26052config_headers="$ac_config_headers"
26053config_commands="$ac_config_commands"
26054
26055_ACEOF
26056
26057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26058ac_cs_usage="\
26059\`$as_me' instantiates files and other configuration actions
26060from templates according to the current configuration.  Unless the files
26061and actions are specified as TAGs, all are instantiated by default.
26062
26063Usage: $0 [OPTION]... [TAG]...
26064
26065  -h, --help       print this help, then exit
26066  -V, --version    print version number and configuration settings, then exit
26067      --config     print configuration, then exit
26068  -q, --quiet, --silent
26069                   do not print progress messages
26070  -d, --debug      don't remove temporary files
26071      --recheck    update $as_me by reconfiguring in the same conditions
26072      --file=FILE[:TEMPLATE]
26073                   instantiate the configuration file FILE
26074      --header=FILE[:TEMPLATE]
26075                   instantiate the configuration header FILE
26076
26077Configuration files:
26078$config_files
26079
26080Configuration headers:
26081$config_headers
26082
26083Configuration commands:
26084$config_commands
26085
26086Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
26087
26088_ACEOF
26089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26090ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26091ac_cs_version="\\
26092xorg-server config.status 1.9.2
26093configured by $0, generated by GNU Autoconf 2.68,
26094  with options \\"\$ac_cs_config\\"
26095
26096Copyright (C) 2010 Free Software Foundation, Inc.
26097This config.status script is free software; the Free Software Foundation
26098gives unlimited permission to copy, distribute and modify it."
26099
26100ac_pwd='$ac_pwd'
26101srcdir='$srcdir'
26102INSTALL='$INSTALL'
26103MKDIR_P='$MKDIR_P'
26104AWK='$AWK'
26105test -n "\$AWK" || AWK=awk
26106_ACEOF
26107
26108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26109# The default lists apply if the user does not specify any file.
26110ac_need_defaults=:
26111while test $# != 0
26112do
26113  case $1 in
26114  --*=?*)
26115    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26116    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26117    ac_shift=:
26118    ;;
26119  --*=)
26120    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26121    ac_optarg=
26122    ac_shift=:
26123    ;;
26124  *)
26125    ac_option=$1
26126    ac_optarg=$2
26127    ac_shift=shift
26128    ;;
26129  esac
26130
26131  case $ac_option in
26132  # Handling of the options.
26133  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26134    ac_cs_recheck=: ;;
26135  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26136    $as_echo "$ac_cs_version"; exit ;;
26137  --config | --confi | --conf | --con | --co | --c )
26138    $as_echo "$ac_cs_config"; exit ;;
26139  --debug | --debu | --deb | --de | --d | -d )
26140    debug=: ;;
26141  --file | --fil | --fi | --f )
26142    $ac_shift
26143    case $ac_optarg in
26144    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26145    '') as_fn_error $? "missing file argument" ;;
26146    esac
26147    as_fn_append CONFIG_FILES " '$ac_optarg'"
26148    ac_need_defaults=false;;
26149  --header | --heade | --head | --hea )
26150    $ac_shift
26151    case $ac_optarg in
26152    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26153    esac
26154    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26155    ac_need_defaults=false;;
26156  --he | --h)
26157    # Conflict between --help and --header
26158    as_fn_error $? "ambiguous option: \`$1'
26159Try \`$0 --help' for more information.";;
26160  --help | --hel | -h )
26161    $as_echo "$ac_cs_usage"; exit ;;
26162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26163  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26164    ac_cs_silent=: ;;
26165
26166  # This is an error.
26167  -*) as_fn_error $? "unrecognized option: \`$1'
26168Try \`$0 --help' for more information." ;;
26169
26170  *) as_fn_append ac_config_targets " $1"
26171     ac_need_defaults=false ;;
26172
26173  esac
26174  shift
26175done
26176
26177ac_configure_extra_args=
26178
26179if $ac_cs_silent; then
26180  exec 6>/dev/null
26181  ac_configure_extra_args="$ac_configure_extra_args --silent"
26182fi
26183
26184_ACEOF
26185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26186if \$ac_cs_recheck; then
26187  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26188  shift
26189  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26190  CONFIG_SHELL='$SHELL'
26191  export CONFIG_SHELL
26192  exec "\$@"
26193fi
26194
26195_ACEOF
26196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26197exec 5>>config.log
26198{
26199  echo
26200  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26201## Running $as_me. ##
26202_ASBOX
26203  $as_echo "$ac_log"
26204} >&5
26205
26206_ACEOF
26207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26208#
26209# INIT-COMMANDS
26210#
26211AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26212
26213
26214# The HP-UX ksh and POSIX shell print the target directory to stdout
26215# if CDPATH is set.
26216(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26217
26218sed_quote_subst='$sed_quote_subst'
26219double_quote_subst='$double_quote_subst'
26220delay_variable_subst='$delay_variable_subst'
26221AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26222DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26223OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26224enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26225macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26226macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26227enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26228pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26229enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26230SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26231ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26232host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26233host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26234host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26235build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26236build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26237build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26238SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26239Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26240GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26241EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26242FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26243LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26244NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26245LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26246max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26247ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26248exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26249lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26250lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26251lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26252lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26253lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26254reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26255reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26256deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26257file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26258file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26259want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26260sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26261AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26262AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26263archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26264STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26265RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26266old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26267old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26268old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26269lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26270CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26271CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26272compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26273GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26274lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26275lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26276lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26277lt_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"`'
26278nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26279lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26280objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26281MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26282lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26283lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26284lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26285lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26286lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26287need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26288MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26289DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26290NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26291LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26292OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26293OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26294libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26295shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26296extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26297archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26298enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26299export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26300whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26301compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26302old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26303old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26304archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26305archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26306module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26307module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26308with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26309allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26310no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26311hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26312hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26313hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26314hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26315hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26316hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26317hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26318hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26319inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26320link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26321always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26322export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26323exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26324include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26325prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26326postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26327file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26328variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26329need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26330need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26331version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26332runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26333shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26334shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26335libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26336library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26337soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26338install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26339postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26340postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26341finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26342finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26343hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26344sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26345sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26346hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26347enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26348enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26349enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26350old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26351striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26352
26353LTCC='$LTCC'
26354LTCFLAGS='$LTCFLAGS'
26355compiler='$compiler_DEFAULT'
26356
26357# A function that is used when there is no print builtin or printf.
26358func_fallback_echo ()
26359{
26360  eval 'cat <<_LTECHO_EOF
26361\$1
26362_LTECHO_EOF'
26363}
26364
26365# Quote evaled strings.
26366for var in AS \
26367DLLTOOL \
26368OBJDUMP \
26369SHELL \
26370ECHO \
26371SED \
26372GREP \
26373EGREP \
26374FGREP \
26375LD \
26376NM \
26377LN_S \
26378lt_SP2NL \
26379lt_NL2SP \
26380reload_flag \
26381deplibs_check_method \
26382file_magic_cmd \
26383file_magic_glob \
26384want_nocaseglob \
26385sharedlib_from_linklib_cmd \
26386AR \
26387AR_FLAGS \
26388archiver_list_spec \
26389STRIP \
26390RANLIB \
26391CC \
26392CFLAGS \
26393compiler \
26394lt_cv_sys_global_symbol_pipe \
26395lt_cv_sys_global_symbol_to_cdecl \
26396lt_cv_sys_global_symbol_to_c_name_address \
26397lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26398nm_file_list_spec \
26399lt_prog_compiler_no_builtin_flag \
26400lt_prog_compiler_pic \
26401lt_prog_compiler_wl \
26402lt_prog_compiler_static \
26403lt_cv_prog_compiler_c_o \
26404need_locks \
26405MANIFEST_TOOL \
26406DSYMUTIL \
26407NMEDIT \
26408LIPO \
26409OTOOL \
26410OTOOL64 \
26411shrext_cmds \
26412export_dynamic_flag_spec \
26413whole_archive_flag_spec \
26414compiler_needs_object \
26415with_gnu_ld \
26416allow_undefined_flag \
26417no_undefined_flag \
26418hardcode_libdir_flag_spec \
26419hardcode_libdir_flag_spec_ld \
26420hardcode_libdir_separator \
26421exclude_expsyms \
26422include_expsyms \
26423file_list_spec \
26424variables_saved_for_relink \
26425libname_spec \
26426library_names_spec \
26427soname_spec \
26428install_override_mode \
26429finish_eval \
26430old_striplib \
26431striplib; do
26432    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26433    *[\\\\\\\`\\"\\\$]*)
26434      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26435      ;;
26436    *)
26437      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26438      ;;
26439    esac
26440done
26441
26442# Double-quote double-evaled strings.
26443for var in reload_cmds \
26444old_postinstall_cmds \
26445old_postuninstall_cmds \
26446old_archive_cmds \
26447extract_expsyms_cmds \
26448old_archive_from_new_cmds \
26449old_archive_from_expsyms_cmds \
26450archive_cmds \
26451archive_expsym_cmds \
26452module_cmds \
26453module_expsym_cmds \
26454export_symbols_cmds \
26455prelink_cmds \
26456postlink_cmds \
26457postinstall_cmds \
26458postuninstall_cmds \
26459finish_cmds \
26460sys_lib_search_path_spec \
26461sys_lib_dlsearch_path_spec; do
26462    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26463    *[\\\\\\\`\\"\\\$]*)
26464      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26465      ;;
26466    *)
26467      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26468      ;;
26469    esac
26470done
26471
26472ac_aux_dir='$ac_aux_dir'
26473xsi_shell='$xsi_shell'
26474lt_shell_append='$lt_shell_append'
26475
26476# See if we are running on zsh, and set the options which allow our
26477# commands through without removal of \ escapes INIT.
26478if test -n "\${ZSH_VERSION+set}" ; then
26479   setopt NO_GLOB_SUBST
26480fi
26481
26482
26483    PACKAGE='$PACKAGE'
26484    VERSION='$VERSION'
26485    TIMESTAMP='$TIMESTAMP'
26486    RM='$RM'
26487    ofile='$ofile'
26488
26489
26490
26491
26492_ACEOF
26493
26494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26495
26496# Handling of arguments.
26497for ac_config_target in $ac_config_targets
26498do
26499  case $ac_config_target in
26500    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26501    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
26502    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
26503    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
26504    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
26505    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
26506    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
26507    "include/kdrive-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kdrive-config.h" ;;
26508    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
26509    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26510    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26511    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
26512    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26513    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
26514    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
26515    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
26516    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
26517    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26518    "doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/Makefile" ;;
26519    "doc/xml/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xml/dtrace/Makefile" ;;
26520    "doc/xml/xserver.ent") CONFIG_FILES="$CONFIG_FILES doc/xml/xserver.ent" ;;
26521    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
26522    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
26523    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
26524    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
26525    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
26526    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
26527    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
26528    "miext/cw/Makefile") CONFIG_FILES="$CONFIG_FILES miext/cw/Makefile" ;;
26529    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
26530    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
26531    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
26532    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
26533    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
26534    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
26535    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
26536    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
26537    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
26538    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
26539    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
26540    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
26541    "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;;
26542    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
26543    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
26544    "hw/xfree86/dixmods/extmod/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/extmod/Makefile" ;;
26545    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
26546    "hw/xfree86/doc/devel/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/devel/Makefile" ;;
26547    "hw/xfree86/doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/man/Makefile" ;;
26548    "hw/xfree86/doc/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/sgml/Makefile" ;;
26549    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
26550    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
26551    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
26552    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
26553    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
26554    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
26555    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
26556    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
26557    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
26558    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
26559    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
26560    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
26561    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
26562    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
26563    "hw/xfree86/os-support/sco/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sco/Makefile" ;;
26564    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
26565    "hw/xfree86/os-support/sysv/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/sysv/Makefile" ;;
26566    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
26567    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
26568    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
26569    "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;;
26570    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
26571    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
26572    "hw/xfree86/xaa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xaa/Makefile" ;;
26573    "hw/xfree86/xf8_16bpp/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xf8_16bpp/Makefile" ;;
26574    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
26575    "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;;
26576    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
26577    "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;;
26578    "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;;
26579    "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;;
26580    "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;;
26581    "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;;
26582    "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;;
26583    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
26584    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
26585    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
26586    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
26587    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
26588    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
26589    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
26590    "hw/xquartz/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/doc/Makefile" ;;
26591    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
26592    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
26593    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
26594    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
26595    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
26596    "hw/kdrive/fake/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fake/Makefile" ;;
26597    "hw/kdrive/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/fbdev/Makefile" ;;
26598    "hw/kdrive/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/linux/Makefile" ;;
26599    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
26600    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
26601    "test/xi2/Makefile") CONFIG_FILES="$CONFIG_FILES test/xi2/Makefile" ;;
26602    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
26603
26604  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26605  esac
26606done
26607
26608
26609# If the user did not use the arguments to specify the items to instantiate,
26610# then the envvar interface is used.  Set only those that are not.
26611# We use the long form for the default assignment because of an extremely
26612# bizarre bug on SunOS 4.1.3.
26613if $ac_need_defaults; then
26614  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26615  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26616  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26617fi
26618
26619# Have a temporary directory for convenience.  Make it in the build tree
26620# simply because there is no reason against having it here, and in addition,
26621# creating and moving files from /tmp can sometimes cause problems.
26622# Hook for its removal unless debugging.
26623# Note that there is a small window in which the directory will not be cleaned:
26624# after its creation but before its name has been assigned to `$tmp'.
26625$debug ||
26626{
26627  tmp= ac_tmp=
26628  trap 'exit_status=$?
26629  : "${ac_tmp:=$tmp}"
26630  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26631' 0
26632  trap 'as_fn_exit 1' 1 2 13 15
26633}
26634# Create a (secure) tmp directory for tmp files.
26635
26636{
26637  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26638  test -d "$tmp"
26639}  ||
26640{
26641  tmp=./conf$$-$RANDOM
26642  (umask 077 && mkdir "$tmp")
26643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26644ac_tmp=$tmp
26645
26646# Set up the scripts for CONFIG_FILES section.
26647# No need to generate them if there are no CONFIG_FILES.
26648# This happens for instance with `./config.status config.h'.
26649if test -n "$CONFIG_FILES"; then
26650
26651
26652ac_cr=`echo X | tr X '\015'`
26653# On cygwin, bash can eat \r inside `` if the user requested igncr.
26654# But we know of no other shell where ac_cr would be empty at this
26655# point, so we can use a bashism as a fallback.
26656if test "x$ac_cr" = x; then
26657  eval ac_cr=\$\'\\r\'
26658fi
26659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26661  ac_cs_awk_cr='\\r'
26662else
26663  ac_cs_awk_cr=$ac_cr
26664fi
26665
26666echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26667_ACEOF
26668
26669
26670{
26671  echo "cat >conf$$subs.awk <<_ACEOF" &&
26672  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26673  echo "_ACEOF"
26674} >conf$$subs.sh ||
26675  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26677ac_delim='%!_!# '
26678for ac_last_try in false false false false false :; do
26679  . ./conf$$subs.sh ||
26680    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26681
26682  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26683  if test $ac_delim_n = $ac_delim_num; then
26684    break
26685  elif $ac_last_try; then
26686    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26687  else
26688    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26689  fi
26690done
26691rm -f conf$$subs.sh
26692
26693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26695_ACEOF
26696sed -n '
26697h
26698s/^/S["/; s/!.*/"]=/
26699p
26700g
26701s/^[^!]*!//
26702:repl
26703t repl
26704s/'"$ac_delim"'$//
26705t delim
26706:nl
26707h
26708s/\(.\{148\}\)..*/\1/
26709t more1
26710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26711p
26712n
26713b repl
26714:more1
26715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26716p
26717g
26718s/.\{148\}//
26719t nl
26720:delim
26721h
26722s/\(.\{148\}\)..*/\1/
26723t more2
26724s/["\\]/\\&/g; s/^/"/; s/$/"/
26725p
26726b
26727:more2
26728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26729p
26730g
26731s/.\{148\}//
26732t delim
26733' <conf$$subs.awk | sed '
26734/^[^""]/{
26735  N
26736  s/\n//
26737}
26738' >>$CONFIG_STATUS || ac_write_fail=1
26739rm -f conf$$subs.awk
26740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26741_ACAWK
26742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26743  for (key in S) S_is_set[key] = 1
26744  FS = ""
26745
26746}
26747{
26748  line = $ 0
26749  nfields = split(line, field, "@")
26750  substed = 0
26751  len = length(field[1])
26752  for (i = 2; i < nfields; i++) {
26753    key = field[i]
26754    keylen = length(key)
26755    if (S_is_set[key]) {
26756      value = S[key]
26757      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26758      len += length(value) + length(field[++i])
26759      substed = 1
26760    } else
26761      len += 1 + keylen
26762  }
26763
26764  print line
26765}
26766
26767_ACAWK
26768_ACEOF
26769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26771  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26772else
26773  cat
26774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26775  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26776_ACEOF
26777
26778# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26780# trailing colons and then remove the whole line if VPATH becomes empty
26781# (actually we leave an empty line to preserve line numbers).
26782if test "x$srcdir" = x.; then
26783  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26784h
26785s///
26786s/^/:/
26787s/[	 ]*$/:/
26788s/:\$(srcdir):/:/g
26789s/:\${srcdir}:/:/g
26790s/:@srcdir@:/:/g
26791s/^:*//
26792s/:*$//
26793x
26794s/\(=[	 ]*\).*/\1/
26795G
26796s/\n//
26797s/^[^=]*=[	 ]*$//
26798}'
26799fi
26800
26801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26802fi # test -n "$CONFIG_FILES"
26803
26804# Set up the scripts for CONFIG_HEADERS section.
26805# No need to generate them if there are no CONFIG_HEADERS.
26806# This happens for instance with `./config.status Makefile'.
26807if test -n "$CONFIG_HEADERS"; then
26808cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26809BEGIN {
26810_ACEOF
26811
26812# Transform confdefs.h into an awk script `defines.awk', embedded as
26813# here-document in config.status, that substitutes the proper values into
26814# config.h.in to produce config.h.
26815
26816# Create a delimiter string that does not exist in confdefs.h, to ease
26817# handling of long lines.
26818ac_delim='%!_!# '
26819for ac_last_try in false false :; do
26820  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26821  if test -z "$ac_tt"; then
26822    break
26823  elif $ac_last_try; then
26824    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26825  else
26826    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26827  fi
26828done
26829
26830# For the awk script, D is an array of macro values keyed by name,
26831# likewise P contains macro parameters if any.  Preserve backslash
26832# newline sequences.
26833
26834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26835sed -n '
26836s/.\{148\}/&'"$ac_delim"'/g
26837t rset
26838:rset
26839s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26840t def
26841d
26842:def
26843s/\\$//
26844t bsnl
26845s/["\\]/\\&/g
26846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26847D["\1"]=" \3"/p
26848s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26849d
26850:bsnl
26851s/["\\]/\\&/g
26852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26853D["\1"]=" \3\\\\\\n"\\/p
26854t cont
26855s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26856t cont
26857d
26858:cont
26859n
26860s/.\{148\}/&'"$ac_delim"'/g
26861t clear
26862:clear
26863s/\\$//
26864t bsnlc
26865s/["\\]/\\&/g; s/^/"/; s/$/"/p
26866d
26867:bsnlc
26868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26869b cont
26870' <confdefs.h | sed '
26871s/'"$ac_delim"'/"\\\
26872"/g' >>$CONFIG_STATUS || ac_write_fail=1
26873
26874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26875  for (key in D) D_is_set[key] = 1
26876  FS = ""
26877}
26878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26879  line = \$ 0
26880  split(line, arg, " ")
26881  if (arg[1] == "#") {
26882    defundef = arg[2]
26883    mac1 = arg[3]
26884  } else {
26885    defundef = substr(arg[1], 2)
26886    mac1 = arg[2]
26887  }
26888  split(mac1, mac2, "(") #)
26889  macro = mac2[1]
26890  prefix = substr(line, 1, index(line, defundef) - 1)
26891  if (D_is_set[macro]) {
26892    # Preserve the white space surrounding the "#".
26893    print prefix "define", macro P[macro] D[macro]
26894    next
26895  } else {
26896    # Replace #undef with comments.  This is necessary, for example,
26897    # in the case of _POSIX_SOURCE, which is predefined and required
26898    # on some systems where configure will not decide to define it.
26899    if (defundef == "undef") {
26900      print "/*", prefix defundef, macro, "*/"
26901      next
26902    }
26903  }
26904}
26905{ print }
26906_ACAWK
26907_ACEOF
26908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26909  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26910fi # test -n "$CONFIG_HEADERS"
26911
26912
26913eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26914shift
26915for ac_tag
26916do
26917  case $ac_tag in
26918  :[FHLC]) ac_mode=$ac_tag; continue;;
26919  esac
26920  case $ac_mode$ac_tag in
26921  :[FHL]*:*);;
26922  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26923  :[FH]-) ac_tag=-:-;;
26924  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26925  esac
26926  ac_save_IFS=$IFS
26927  IFS=:
26928  set x $ac_tag
26929  IFS=$ac_save_IFS
26930  shift
26931  ac_file=$1
26932  shift
26933
26934  case $ac_mode in
26935  :L) ac_source=$1;;
26936  :[FH])
26937    ac_file_inputs=
26938    for ac_f
26939    do
26940      case $ac_f in
26941      -) ac_f="$ac_tmp/stdin";;
26942      *) # Look for the file first in the build tree, then in the source tree
26943	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26944	 # because $ac_f cannot contain `:'.
26945	 test -f "$ac_f" ||
26946	   case $ac_f in
26947	   [\\/$]*) false;;
26948	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26949	   esac ||
26950	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26951      esac
26952      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26953      as_fn_append ac_file_inputs " '$ac_f'"
26954    done
26955
26956    # Let's still pretend it is `configure' which instantiates (i.e., don't
26957    # use $as_me), people would be surprised to read:
26958    #    /* config.h.  Generated by config.status.  */
26959    configure_input='Generated from '`
26960	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26961	`' by configure.'
26962    if test x"$ac_file" != x-; then
26963      configure_input="$ac_file.  $configure_input"
26964      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26965$as_echo "$as_me: creating $ac_file" >&6;}
26966    fi
26967    # Neutralize special characters interpreted by sed in replacement strings.
26968    case $configure_input in #(
26969    *\&* | *\|* | *\\* )
26970       ac_sed_conf_input=`$as_echo "$configure_input" |
26971       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26972    *) ac_sed_conf_input=$configure_input;;
26973    esac
26974
26975    case $ac_tag in
26976    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26977      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26978    esac
26979    ;;
26980  esac
26981
26982  ac_dir=`$as_dirname -- "$ac_file" ||
26983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26984	 X"$ac_file" : 'X\(//\)[^/]' \| \
26985	 X"$ac_file" : 'X\(//\)$' \| \
26986	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26987$as_echo X"$ac_file" |
26988    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26989	    s//\1/
26990	    q
26991	  }
26992	  /^X\(\/\/\)[^/].*/{
26993	    s//\1/
26994	    q
26995	  }
26996	  /^X\(\/\/\)$/{
26997	    s//\1/
26998	    q
26999	  }
27000	  /^X\(\/\).*/{
27001	    s//\1/
27002	    q
27003	  }
27004	  s/.*/./; q'`
27005  as_dir="$ac_dir"; as_fn_mkdir_p
27006  ac_builddir=.
27007
27008case "$ac_dir" in
27009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27010*)
27011  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27012  # A ".." for each directory in $ac_dir_suffix.
27013  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27014  case $ac_top_builddir_sub in
27015  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27016  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27017  esac ;;
27018esac
27019ac_abs_top_builddir=$ac_pwd
27020ac_abs_builddir=$ac_pwd$ac_dir_suffix
27021# for backward compatibility:
27022ac_top_builddir=$ac_top_build_prefix
27023
27024case $srcdir in
27025  .)  # We are building in place.
27026    ac_srcdir=.
27027    ac_top_srcdir=$ac_top_builddir_sub
27028    ac_abs_top_srcdir=$ac_pwd ;;
27029  [\\/]* | ?:[\\/]* )  # Absolute name.
27030    ac_srcdir=$srcdir$ac_dir_suffix;
27031    ac_top_srcdir=$srcdir
27032    ac_abs_top_srcdir=$srcdir ;;
27033  *) # Relative name.
27034    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27035    ac_top_srcdir=$ac_top_build_prefix$srcdir
27036    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27037esac
27038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27039
27040
27041  case $ac_mode in
27042  :F)
27043  #
27044  # CONFIG_FILE
27045  #
27046
27047  case $INSTALL in
27048  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27049  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27050  esac
27051  ac_MKDIR_P=$MKDIR_P
27052  case $MKDIR_P in
27053  [\\/$]* | ?:[\\/]* ) ;;
27054  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27055  esac
27056_ACEOF
27057
27058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27059# If the template does not know about datarootdir, expand it.
27060# FIXME: This hack should be removed a few years after 2.60.
27061ac_datarootdir_hack=; ac_datarootdir_seen=
27062ac_sed_dataroot='
27063/datarootdir/ {
27064  p
27065  q
27066}
27067/@datadir@/p
27068/@docdir@/p
27069/@infodir@/p
27070/@localedir@/p
27071/@mandir@/p'
27072case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27073*datarootdir*) ac_datarootdir_seen=yes;;
27074*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27075  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27076$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27077_ACEOF
27078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27079  ac_datarootdir_hack='
27080  s&@datadir@&$datadir&g
27081  s&@docdir@&$docdir&g
27082  s&@infodir@&$infodir&g
27083  s&@localedir@&$localedir&g
27084  s&@mandir@&$mandir&g
27085  s&\\\${datarootdir}&$datarootdir&g' ;;
27086esac
27087_ACEOF
27088
27089# Neutralize VPATH when `$srcdir' = `.'.
27090# Shell code in configure.ac might set extrasub.
27091# FIXME: do we really want to maintain this feature?
27092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27093ac_sed_extra="$ac_vpsub
27094$extrasub
27095_ACEOF
27096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27097:t
27098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27099s|@configure_input@|$ac_sed_conf_input|;t t
27100s&@top_builddir@&$ac_top_builddir_sub&;t t
27101s&@top_build_prefix@&$ac_top_build_prefix&;t t
27102s&@srcdir@&$ac_srcdir&;t t
27103s&@abs_srcdir@&$ac_abs_srcdir&;t t
27104s&@top_srcdir@&$ac_top_srcdir&;t t
27105s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27106s&@builddir@&$ac_builddir&;t t
27107s&@abs_builddir@&$ac_abs_builddir&;t t
27108s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27109s&@INSTALL@&$ac_INSTALL&;t t
27110s&@MKDIR_P@&$ac_MKDIR_P&;t t
27111$ac_datarootdir_hack
27112"
27113eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27114  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27115
27116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27117  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27118  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27119      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27120  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27121which seems to be undefined.  Please make sure it is defined" >&5
27122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27123which seems to be undefined.  Please make sure it is defined" >&2;}
27124
27125  rm -f "$ac_tmp/stdin"
27126  case $ac_file in
27127  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27128  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27129  esac \
27130  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27131 ;;
27132  :H)
27133  #
27134  # CONFIG_HEADER
27135  #
27136  if test x"$ac_file" != x-; then
27137    {
27138      $as_echo "/* $configure_input  */" \
27139      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27140    } >"$ac_tmp/config.h" \
27141      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27142    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27143      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27144$as_echo "$as_me: $ac_file is unchanged" >&6;}
27145    else
27146      rm -f "$ac_file"
27147      mv "$ac_tmp/config.h" "$ac_file" \
27148	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27149    fi
27150  else
27151    $as_echo "/* $configure_input  */" \
27152      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27153      || as_fn_error $? "could not create -" "$LINENO" 5
27154  fi
27155# Compute "$ac_file"'s index in $config_headers.
27156_am_arg="$ac_file"
27157_am_stamp_count=1
27158for _am_header in $config_headers :; do
27159  case $_am_header in
27160    $_am_arg | $_am_arg:* )
27161      break ;;
27162    * )
27163      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27164  esac
27165done
27166echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27167$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27168	 X"$_am_arg" : 'X\(//\)[^/]' \| \
27169	 X"$_am_arg" : 'X\(//\)$' \| \
27170	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27171$as_echo X"$_am_arg" |
27172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27173	    s//\1/
27174	    q
27175	  }
27176	  /^X\(\/\/\)[^/].*/{
27177	    s//\1/
27178	    q
27179	  }
27180	  /^X\(\/\/\)$/{
27181	    s//\1/
27182	    q
27183	  }
27184	  /^X\(\/\).*/{
27185	    s//\1/
27186	    q
27187	  }
27188	  s/.*/./; q'`/stamp-h$_am_stamp_count
27189 ;;
27190
27191  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27192$as_echo "$as_me: executing $ac_file commands" >&6;}
27193 ;;
27194  esac
27195
27196
27197  case $ac_file$ac_mode in
27198    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27199  # Autoconf 2.62 quotes --file arguments for eval, but not when files
27200  # are listed without --file.  Let's play safe and only enable the eval
27201  # if we detect the quoting.
27202  case $CONFIG_FILES in
27203  *\'*) eval set x "$CONFIG_FILES" ;;
27204  *)   set x $CONFIG_FILES ;;
27205  esac
27206  shift
27207  for mf
27208  do
27209    # Strip MF so we end up with the name of the file.
27210    mf=`echo "$mf" | sed -e 's/:.*$//'`
27211    # Check whether this is an Automake generated Makefile or not.
27212    # We used to match only the files named `Makefile.in', but
27213    # some people rename them; so instead we look at the file content.
27214    # Grep'ing the first line is not enough: some people post-process
27215    # each Makefile.in and add a new line on top of each file to say so.
27216    # Grep'ing the whole file is not good either: AIX grep has a line
27217    # limit of 2048, but all sed's we know have understand at least 4000.
27218    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27219      dirpart=`$as_dirname -- "$mf" ||
27220$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27221	 X"$mf" : 'X\(//\)[^/]' \| \
27222	 X"$mf" : 'X\(//\)$' \| \
27223	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27224$as_echo X"$mf" |
27225    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27226	    s//\1/
27227	    q
27228	  }
27229	  /^X\(\/\/\)[^/].*/{
27230	    s//\1/
27231	    q
27232	  }
27233	  /^X\(\/\/\)$/{
27234	    s//\1/
27235	    q
27236	  }
27237	  /^X\(\/\).*/{
27238	    s//\1/
27239	    q
27240	  }
27241	  s/.*/./; q'`
27242    else
27243      continue
27244    fi
27245    # Extract the definition of DEPDIR, am__include, and am__quote
27246    # from the Makefile without running `make'.
27247    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27248    test -z "$DEPDIR" && continue
27249    am__include=`sed -n 's/^am__include = //p' < "$mf"`
27250    test -z "am__include" && continue
27251    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27252    # When using ansi2knr, U may be empty or an underscore; expand it
27253    U=`sed -n 's/^U = //p' < "$mf"`
27254    # Find all dependency output files, they are included files with
27255    # $(DEPDIR) in their names.  We invoke sed twice because it is the
27256    # simplest approach to changing $(DEPDIR) to its actual value in the
27257    # expansion.
27258    for file in `sed -n "
27259      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27260	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27261      # Make sure the directory exists.
27262      test -f "$dirpart/$file" && continue
27263      fdir=`$as_dirname -- "$file" ||
27264$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27265	 X"$file" : 'X\(//\)[^/]' \| \
27266	 X"$file" : 'X\(//\)$' \| \
27267	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27268$as_echo X"$file" |
27269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27270	    s//\1/
27271	    q
27272	  }
27273	  /^X\(\/\/\)[^/].*/{
27274	    s//\1/
27275	    q
27276	  }
27277	  /^X\(\/\/\)$/{
27278	    s//\1/
27279	    q
27280	  }
27281	  /^X\(\/\).*/{
27282	    s//\1/
27283	    q
27284	  }
27285	  s/.*/./; q'`
27286      as_dir=$dirpart/$fdir; as_fn_mkdir_p
27287      # echo "creating $dirpart/$file"
27288      echo '# dummy' > "$dirpart/$file"
27289    done
27290  done
27291}
27292 ;;
27293    "libtool":C)
27294
27295    # See if we are running on zsh, and set the options which allow our
27296    # commands through without removal of \ escapes.
27297    if test -n "${ZSH_VERSION+set}" ; then
27298      setopt NO_GLOB_SUBST
27299    fi
27300
27301    cfgfile="${ofile}T"
27302    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27303    $RM "$cfgfile"
27304
27305    cat <<_LT_EOF >> "$cfgfile"
27306#! $SHELL
27307
27308# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27309# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27310# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27311# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27312#
27313#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27314#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
27315#                 Inc.
27316#   Written by Gordon Matzigkeit, 1996
27317#
27318#   This file is part of GNU Libtool.
27319#
27320# GNU Libtool is free software; you can redistribute it and/or
27321# modify it under the terms of the GNU General Public License as
27322# published by the Free Software Foundation; either version 2 of
27323# the License, or (at your option) any later version.
27324#
27325# As a special exception to the GNU General Public License,
27326# if you distribute this file as part of a program or library that
27327# is built using GNU Libtool, you may include this file under the
27328# same distribution terms that you use for the rest of that program.
27329#
27330# GNU Libtool is distributed in the hope that it will be useful,
27331# but WITHOUT ANY WARRANTY; without even the implied warranty of
27332# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27333# GNU General Public License for more details.
27334#
27335# You should have received a copy of the GNU General Public License
27336# along with GNU Libtool; see the file COPYING.  If not, a copy
27337# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27338# obtained by writing to the Free Software Foundation, Inc.,
27339# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27340
27341
27342# The names of the tagged configurations supported by this script.
27343available_tags=""
27344
27345# ### BEGIN LIBTOOL CONFIG
27346
27347# Assembler program.
27348AS=$lt_AS
27349
27350# DLL creation program.
27351DLLTOOL=$lt_DLLTOOL
27352
27353# Object dumper program.
27354OBJDUMP=$lt_OBJDUMP
27355
27356# Whether or not to build static libraries.
27357build_old_libs=$enable_static
27358
27359# Which release of libtool.m4 was used?
27360macro_version=$macro_version
27361macro_revision=$macro_revision
27362
27363# Whether or not to build shared libraries.
27364build_libtool_libs=$enable_shared
27365
27366# What type of objects to build.
27367pic_mode=$pic_mode
27368
27369# Whether or not to optimize for fast installation.
27370fast_install=$enable_fast_install
27371
27372# Shell to use when invoking shell scripts.
27373SHELL=$lt_SHELL
27374
27375# An echo program that protects backslashes.
27376ECHO=$lt_ECHO
27377
27378# The host system.
27379host_alias=$host_alias
27380host=$host
27381host_os=$host_os
27382
27383# The build system.
27384build_alias=$build_alias
27385build=$build
27386build_os=$build_os
27387
27388# A sed program that does not truncate output.
27389SED=$lt_SED
27390
27391# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27392Xsed="\$SED -e 1s/^X//"
27393
27394# A grep program that handles long lines.
27395GREP=$lt_GREP
27396
27397# An ERE matcher.
27398EGREP=$lt_EGREP
27399
27400# A literal string matcher.
27401FGREP=$lt_FGREP
27402
27403# A BSD- or MS-compatible name lister.
27404NM=$lt_NM
27405
27406# Whether we need soft or hard links.
27407LN_S=$lt_LN_S
27408
27409# What is the maximum length of a command?
27410max_cmd_len=$max_cmd_len
27411
27412# Object file suffix (normally "o").
27413objext=$ac_objext
27414
27415# Executable file suffix (normally "").
27416exeext=$exeext
27417
27418# whether the shell understands "unset".
27419lt_unset=$lt_unset
27420
27421# turn spaces into newlines.
27422SP2NL=$lt_lt_SP2NL
27423
27424# turn newlines into spaces.
27425NL2SP=$lt_lt_NL2SP
27426
27427# convert \$build file names to \$host format.
27428to_host_file_cmd=$lt_cv_to_host_file_cmd
27429
27430# convert \$build files to toolchain format.
27431to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27432
27433# Method to check whether dependent libraries are shared objects.
27434deplibs_check_method=$lt_deplibs_check_method
27435
27436# Command to use when deplibs_check_method = "file_magic".
27437file_magic_cmd=$lt_file_magic_cmd
27438
27439# How to find potential files when deplibs_check_method = "file_magic".
27440file_magic_glob=$lt_file_magic_glob
27441
27442# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27443want_nocaseglob=$lt_want_nocaseglob
27444
27445# Command to associate shared and link libraries.
27446sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27447
27448# The archiver.
27449AR=$lt_AR
27450
27451# Flags to create an archive.
27452AR_FLAGS=$lt_AR_FLAGS
27453
27454# How to feed a file listing to the archiver.
27455archiver_list_spec=$lt_archiver_list_spec
27456
27457# A symbol stripping program.
27458STRIP=$lt_STRIP
27459
27460# Commands used to install an old-style archive.
27461RANLIB=$lt_RANLIB
27462old_postinstall_cmds=$lt_old_postinstall_cmds
27463old_postuninstall_cmds=$lt_old_postuninstall_cmds
27464
27465# Whether to use a lock for old archive extraction.
27466lock_old_archive_extraction=$lock_old_archive_extraction
27467
27468# A C compiler.
27469LTCC=$lt_CC
27470
27471# LTCC compiler flags.
27472LTCFLAGS=$lt_CFLAGS
27473
27474# Take the output of nm and produce a listing of raw symbols and C names.
27475global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27476
27477# Transform the output of nm in a proper C declaration.
27478global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27479
27480# Transform the output of nm in a C name address pair.
27481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27482
27483# Transform the output of nm in a C name address pair when lib prefix is needed.
27484global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27485
27486# Specify filename containing input files for \$NM.
27487nm_file_list_spec=$lt_nm_file_list_spec
27488
27489# The root where to search for dependent libraries,and in which our libraries should be installed.
27490lt_sysroot=$lt_sysroot
27491
27492# The name of the directory that contains temporary libtool files.
27493objdir=$objdir
27494
27495# Used to examine libraries when file_magic_cmd begins with "file".
27496MAGIC_CMD=$MAGIC_CMD
27497
27498# Must we lock files when doing compilation?
27499need_locks=$lt_need_locks
27500
27501# Manifest tool.
27502MANIFEST_TOOL=$lt_MANIFEST_TOOL
27503
27504# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27505DSYMUTIL=$lt_DSYMUTIL
27506
27507# Tool to change global to local symbols on Mac OS X.
27508NMEDIT=$lt_NMEDIT
27509
27510# Tool to manipulate fat objects and archives on Mac OS X.
27511LIPO=$lt_LIPO
27512
27513# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27514OTOOL=$lt_OTOOL
27515
27516# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27517OTOOL64=$lt_OTOOL64
27518
27519# Old archive suffix (normally "a").
27520libext=$libext
27521
27522# Shared library suffix (normally ".so").
27523shrext_cmds=$lt_shrext_cmds
27524
27525# The commands to extract the exported symbol list from a shared archive.
27526extract_expsyms_cmds=$lt_extract_expsyms_cmds
27527
27528# Variables whose values should be saved in libtool wrapper scripts and
27529# restored at link time.
27530variables_saved_for_relink=$lt_variables_saved_for_relink
27531
27532# Do we need the "lib" prefix for modules?
27533need_lib_prefix=$need_lib_prefix
27534
27535# Do we need a version for libraries?
27536need_version=$need_version
27537
27538# Library versioning type.
27539version_type=$version_type
27540
27541# Shared library runtime path variable.
27542runpath_var=$runpath_var
27543
27544# Shared library path variable.
27545shlibpath_var=$shlibpath_var
27546
27547# Is shlibpath searched before the hard-coded library search path?
27548shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27549
27550# Format of library name prefix.
27551libname_spec=$lt_libname_spec
27552
27553# List of archive names.  First name is the real one, the rest are links.
27554# The last name is the one that the linker finds with -lNAME
27555library_names_spec=$lt_library_names_spec
27556
27557# The coded name of the library, if different from the real name.
27558soname_spec=$lt_soname_spec
27559
27560# Permission mode override for installation of shared libraries.
27561install_override_mode=$lt_install_override_mode
27562
27563# Command to use after installation of a shared archive.
27564postinstall_cmds=$lt_postinstall_cmds
27565
27566# Command to use after uninstallation of a shared archive.
27567postuninstall_cmds=$lt_postuninstall_cmds
27568
27569# Commands used to finish a libtool library installation in a directory.
27570finish_cmds=$lt_finish_cmds
27571
27572# As "finish_cmds", except a single script fragment to be evaled but
27573# not shown.
27574finish_eval=$lt_finish_eval
27575
27576# Whether we should hardcode library paths into libraries.
27577hardcode_into_libs=$hardcode_into_libs
27578
27579# Compile-time system search path for libraries.
27580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27581
27582# Run-time system search path for libraries.
27583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27584
27585# Whether dlopen is supported.
27586dlopen_support=$enable_dlopen
27587
27588# Whether dlopen of programs is supported.
27589dlopen_self=$enable_dlopen_self
27590
27591# Whether dlopen of statically linked programs is supported.
27592dlopen_self_static=$enable_dlopen_self_static
27593
27594# Commands to strip libraries.
27595old_striplib=$lt_old_striplib
27596striplib=$lt_striplib
27597
27598
27599# The linker used to build libraries.
27600LD=$lt_LD
27601
27602# How to create reloadable object files.
27603reload_flag=$lt_reload_flag
27604reload_cmds=$lt_reload_cmds
27605
27606# Commands used to build an old-style archive.
27607old_archive_cmds=$lt_old_archive_cmds
27608
27609# A language specific compiler.
27610CC=$lt_compiler
27611
27612# Is the compiler the GNU compiler?
27613with_gcc=$GCC
27614
27615# Compiler flag to turn off builtin functions.
27616no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27617
27618# Additional compiler flags for building library objects.
27619pic_flag=$lt_lt_prog_compiler_pic
27620
27621# How to pass a linker flag through the compiler.
27622wl=$lt_lt_prog_compiler_wl
27623
27624# Compiler flag to prevent dynamic linking.
27625link_static_flag=$lt_lt_prog_compiler_static
27626
27627# Does compiler simultaneously support -c and -o options?
27628compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27629
27630# Whether or not to add -lc for building shared libraries.
27631build_libtool_need_lc=$archive_cmds_need_lc
27632
27633# Whether or not to disallow shared libs when runtime libs are static.
27634allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27635
27636# Compiler flag to allow reflexive dlopens.
27637export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27638
27639# Compiler flag to generate shared objects directly from archives.
27640whole_archive_flag_spec=$lt_whole_archive_flag_spec
27641
27642# Whether the compiler copes with passing no objects directly.
27643compiler_needs_object=$lt_compiler_needs_object
27644
27645# Create an old-style archive from a shared archive.
27646old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27647
27648# Create a temporary old-style archive to link instead of a shared archive.
27649old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27650
27651# Commands used to build a shared archive.
27652archive_cmds=$lt_archive_cmds
27653archive_expsym_cmds=$lt_archive_expsym_cmds
27654
27655# Commands used to build a loadable module if different from building
27656# a shared archive.
27657module_cmds=$lt_module_cmds
27658module_expsym_cmds=$lt_module_expsym_cmds
27659
27660# Whether we are building with GNU ld or not.
27661with_gnu_ld=$lt_with_gnu_ld
27662
27663# Flag that allows shared libraries with undefined symbols to be built.
27664allow_undefined_flag=$lt_allow_undefined_flag
27665
27666# Flag that enforces no undefined symbols.
27667no_undefined_flag=$lt_no_undefined_flag
27668
27669# Flag to hardcode \$libdir into a binary during linking.
27670# This must work even if \$libdir does not exist
27671hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27672
27673# If ld is used when linking, flag to hardcode \$libdir into a binary
27674# during linking.  This must work even if \$libdir does not exist.
27675hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27676
27677# Whether we need a single "-rpath" flag with a separated argument.
27678hardcode_libdir_separator=$lt_hardcode_libdir_separator
27679
27680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27681# DIR into the resulting binary.
27682hardcode_direct=$hardcode_direct
27683
27684# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27685# DIR into the resulting binary and the resulting library dependency is
27686# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27687# library is relocated.
27688hardcode_direct_absolute=$hardcode_direct_absolute
27689
27690# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27691# into the resulting binary.
27692hardcode_minus_L=$hardcode_minus_L
27693
27694# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27695# into the resulting binary.
27696hardcode_shlibpath_var=$hardcode_shlibpath_var
27697
27698# Set to "yes" if building a shared library automatically hardcodes DIR
27699# into the library and all subsequent libraries and executables linked
27700# against it.
27701hardcode_automatic=$hardcode_automatic
27702
27703# Set to yes if linker adds runtime paths of dependent libraries
27704# to runtime path list.
27705inherit_rpath=$inherit_rpath
27706
27707# Whether libtool must link a program against all its dependency libraries.
27708link_all_deplibs=$link_all_deplibs
27709
27710# Set to "yes" if exported symbols are required.
27711always_export_symbols=$always_export_symbols
27712
27713# The commands to list exported symbols.
27714export_symbols_cmds=$lt_export_symbols_cmds
27715
27716# Symbols that should not be listed in the preloaded symbols.
27717exclude_expsyms=$lt_exclude_expsyms
27718
27719# Symbols that must always be exported.
27720include_expsyms=$lt_include_expsyms
27721
27722# Commands necessary for linking programs (against libraries) with templates.
27723prelink_cmds=$lt_prelink_cmds
27724
27725# Commands necessary for finishing linking programs.
27726postlink_cmds=$lt_postlink_cmds
27727
27728# Specify filename containing input files.
27729file_list_spec=$lt_file_list_spec
27730
27731# How to hardcode a shared library path into an executable.
27732hardcode_action=$hardcode_action
27733
27734# ### END LIBTOOL CONFIG
27735
27736_LT_EOF
27737
27738  case $host_os in
27739  aix3*)
27740    cat <<\_LT_EOF >> "$cfgfile"
27741# AIX sometimes has problems with the GCC collect2 program.  For some
27742# reason, if we set the COLLECT_NAMES environment variable, the problems
27743# vanish in a puff of smoke.
27744if test "X${COLLECT_NAMES+set}" != Xset; then
27745  COLLECT_NAMES=
27746  export COLLECT_NAMES
27747fi
27748_LT_EOF
27749    ;;
27750  esac
27751
27752
27753ltmain="$ac_aux_dir/ltmain.sh"
27754
27755
27756  # We use sed instead of cat because bash on DJGPP gets confused if
27757  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27758  # text mode, it properly converts lines to CR/LF.  This bash problem
27759  # is reportedly fixed, but why not run on old versions too?
27760  sed '$q' "$ltmain" >> "$cfgfile" \
27761     || (rm -f "$cfgfile"; exit 1)
27762
27763  if test x"$xsi_shell" = xyes; then
27764  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27765func_dirname ()\
27766{\
27767\    case ${1} in\
27768\      */*) func_dirname_result="${1%/*}${2}" ;;\
27769\      *  ) func_dirname_result="${3}" ;;\
27770\    esac\
27771} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27772  && mv -f "$cfgfile.tmp" "$cfgfile" \
27773    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27774test 0 -eq $? || _lt_function_replace_fail=:
27775
27776
27777  sed -e '/^func_basename ()$/,/^} # func_basename /c\
27778func_basename ()\
27779{\
27780\    func_basename_result="${1##*/}"\
27781} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27782  && mv -f "$cfgfile.tmp" "$cfgfile" \
27783    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27784test 0 -eq $? || _lt_function_replace_fail=:
27785
27786
27787  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27788func_dirname_and_basename ()\
27789{\
27790\    case ${1} in\
27791\      */*) func_dirname_result="${1%/*}${2}" ;;\
27792\      *  ) func_dirname_result="${3}" ;;\
27793\    esac\
27794\    func_basename_result="${1##*/}"\
27795} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27796  && mv -f "$cfgfile.tmp" "$cfgfile" \
27797    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27798test 0 -eq $? || _lt_function_replace_fail=:
27799
27800
27801  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27802func_stripname ()\
27803{\
27804\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27805\    # positional parameters, so assign one to ordinary parameter first.\
27806\    func_stripname_result=${3}\
27807\    func_stripname_result=${func_stripname_result#"${1}"}\
27808\    func_stripname_result=${func_stripname_result%"${2}"}\
27809} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27810  && mv -f "$cfgfile.tmp" "$cfgfile" \
27811    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27812test 0 -eq $? || _lt_function_replace_fail=:
27813
27814
27815  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27816func_split_long_opt ()\
27817{\
27818\    func_split_long_opt_name=${1%%=*}\
27819\    func_split_long_opt_arg=${1#*=}\
27820} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27821  && mv -f "$cfgfile.tmp" "$cfgfile" \
27822    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27823test 0 -eq $? || _lt_function_replace_fail=:
27824
27825
27826  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27827func_split_short_opt ()\
27828{\
27829\    func_split_short_opt_arg=${1#??}\
27830\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27831} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27832  && mv -f "$cfgfile.tmp" "$cfgfile" \
27833    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27834test 0 -eq $? || _lt_function_replace_fail=:
27835
27836
27837  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27838func_lo2o ()\
27839{\
27840\    case ${1} in\
27841\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27842\      *)    func_lo2o_result=${1} ;;\
27843\    esac\
27844} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27845  && mv -f "$cfgfile.tmp" "$cfgfile" \
27846    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27847test 0 -eq $? || _lt_function_replace_fail=:
27848
27849
27850  sed -e '/^func_xform ()$/,/^} # func_xform /c\
27851func_xform ()\
27852{\
27853    func_xform_result=${1%.*}.lo\
27854} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27855  && mv -f "$cfgfile.tmp" "$cfgfile" \
27856    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27857test 0 -eq $? || _lt_function_replace_fail=:
27858
27859
27860  sed -e '/^func_arith ()$/,/^} # func_arith /c\
27861func_arith ()\
27862{\
27863    func_arith_result=$(( $* ))\
27864} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27865  && mv -f "$cfgfile.tmp" "$cfgfile" \
27866    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27867test 0 -eq $? || _lt_function_replace_fail=:
27868
27869
27870  sed -e '/^func_len ()$/,/^} # func_len /c\
27871func_len ()\
27872{\
27873    func_len_result=${#1}\
27874} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27875  && mv -f "$cfgfile.tmp" "$cfgfile" \
27876    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27877test 0 -eq $? || _lt_function_replace_fail=:
27878
27879fi
27880
27881if test x"$lt_shell_append" = xyes; then
27882  sed -e '/^func_append ()$/,/^} # func_append /c\
27883func_append ()\
27884{\
27885    eval "${1}+=\\${2}"\
27886} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27887  && mv -f "$cfgfile.tmp" "$cfgfile" \
27888    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27889test 0 -eq $? || _lt_function_replace_fail=:
27890
27891
27892  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27893func_append_quoted ()\
27894{\
27895\    func_quote_for_eval "${2}"\
27896\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27897} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27898  && mv -f "$cfgfile.tmp" "$cfgfile" \
27899    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27900test 0 -eq $? || _lt_function_replace_fail=:
27901
27902
27903  # Save a `func_append' function call where possible by direct use of '+='
27904  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27905    && mv -f "$cfgfile.tmp" "$cfgfile" \
27906      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27907  test 0 -eq $? || _lt_function_replace_fail=:
27908else
27909  # Save a `func_append' function call even when '+=' is not available
27910  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27911    && mv -f "$cfgfile.tmp" "$cfgfile" \
27912      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27913  test 0 -eq $? || _lt_function_replace_fail=:
27914fi
27915
27916if test x"$_lt_function_replace_fail" = x":"; then
27917  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27918$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27919fi
27920
27921
27922   mv -f "$cfgfile" "$ofile" ||
27923    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27924  chmod +x "$ofile"
27925
27926 ;;
27927
27928  esac
27929done # for ac_tag
27930
27931
27932as_fn_exit 0
27933_ACEOF
27934ac_clean_files=$ac_clean_files_save
27935
27936test $ac_write_fail = 0 ||
27937  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27938
27939
27940# configure is writing to config.log, and then calls config.status.
27941# config.status does its own redirection, appending to config.log.
27942# Unfortunately, on DOS this fails, as config.log is still kept open
27943# by configure, so config.status won't be able to write to it; its
27944# output is simply discarded.  So we exec the FD to /dev/null,
27945# effectively closing config.log, so it can be properly (re)opened and
27946# appended to by config.status.  When coming back to configure, we
27947# need to make the FD available again.
27948if test "$no_create" != yes; then
27949  ac_cs_success=:
27950  ac_config_status_args=
27951  test "$silent" = yes &&
27952    ac_config_status_args="$ac_config_status_args --quiet"
27953  exec 5>/dev/null
27954  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27955  exec 5>>config.log
27956  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27957  # would make configure fail if this is the last instruction.
27958  $ac_cs_success || as_fn_exit 1
27959fi
27960if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27961  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27962$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27963fi
27964
27965