configure revision 736a7e2c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for x11perf 1.5.3.
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  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='x11perf'
563PACKAGE_TARNAME='x11perf'
564PACKAGE_VERSION='1.5.3'
565PACKAGE_STRING='x11perf 1.5.3'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610XEXT_LIBS
611XEXT_CFLAGS
612XFT_LIBS
613XFT_CFLAGS
614XRENDER_LIBS
615XRENDER_CFLAGS
616X11PERF_LIBS
617X11PERF_CFLAGS
618AM_BACKSLASH
619AM_DEFAULT_VERBOSITY
620MAN_SUBSTS
621XORG_MAN_PAGE
622ADMIN_MAN_DIR
623DRIVER_MAN_DIR
624MISC_MAN_DIR
625FILE_MAN_DIR
626LIB_MAN_DIR
627APP_MAN_DIR
628ADMIN_MAN_SUFFIX
629DRIVER_MAN_SUFFIX
630MISC_MAN_SUFFIX
631FILE_MAN_SUFFIX
632LIB_MAN_SUFFIX
633APP_MAN_SUFFIX
634SED
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643INSTALL_CMD
644PKG_CONFIG
645CHANGELOG_CMD
646CWARNFLAGS
647EGREP
648GREP
649CPP
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653AMDEPBACKSLASH
654AMDEP_FALSE
655AMDEP_TRUE
656am__quote
657am__include
658DEPDIR
659OBJEXT
660EXEEXT
661ac_ct_CC
662CPPFLAGS
663LDFLAGS
664CFLAGS
665CC
666MAINT
667MAINTAINER_MODE_FALSE
668MAINTAINER_MODE_TRUE
669am__untar
670am__tar
671AMTAR
672am__leading_dot
673SET_MAKE
674AWK
675mkdir_p
676MKDIR_P
677INSTALL_STRIP_PROGRAM
678STRIP
679install_sh
680MAKEINFO
681AUTOHEADER
682AUTOMAKE
683AUTOCONF
684ACLOCAL
685VERSION
686PACKAGE
687CYGPATH_W
688am__isrc
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711localstatedir
712sharedstatedir
713sysconfdir
714datadir
715datarootdir
716libexecdir
717sbindir
718bindir
719program_transform_name
720prefix
721exec_prefix
722PACKAGE_URL
723PACKAGE_BUGREPORT
724PACKAGE_STRING
725PACKAGE_VERSION
726PACKAGE_TARNAME
727PACKAGE_NAME
728PATH_SEPARATOR
729SHELL'
730ac_subst_files=''
731ac_user_opts='
732enable_option_checking
733enable_maintainer_mode
734enable_dependency_tracking
735enable_strict_compilation
736enable_silent_rules
737'
738      ac_precious_vars='build_alias
739host_alias
740target_alias
741CC
742CFLAGS
743LDFLAGS
744LIBS
745CPPFLAGS
746CPP
747PKG_CONFIG
748X11PERF_CFLAGS
749X11PERF_LIBS
750XRENDER_CFLAGS
751XRENDER_LIBS
752XFT_CFLAGS
753XFT_LIBS
754XEXT_CFLAGS
755XEXT_LIBS'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761ac_unrecognized_opts=
762ac_unrecognized_sep=
763# The variables have the same names as the options, with
764# dashes changed to underlines.
765cache_file=/dev/null
766exec_prefix=NONE
767no_create=
768no_recursion=
769prefix=NONE
770program_prefix=NONE
771program_suffix=NONE
772program_transform_name=s,x,x,
773silent=
774site=
775srcdir=
776verbose=
777x_includes=NONE
778x_libraries=NONE
779
780# Installation directory options.
781# These are left unexpanded so users can "make install exec_prefix=/foo"
782# and all the variables that are supposed to be based on exec_prefix
783# by default will actually change.
784# Use braces instead of parens because sh, perl, etc. also accept them.
785# (The list follows the same order as the GNU Coding Standards.)
786bindir='${exec_prefix}/bin'
787sbindir='${exec_prefix}/sbin'
788libexecdir='${exec_prefix}/libexec'
789datarootdir='${prefix}/share'
790datadir='${datarootdir}'
791sysconfdir='${prefix}/etc'
792sharedstatedir='${prefix}/com'
793localstatedir='${prefix}/var'
794includedir='${prefix}/include'
795oldincludedir='/usr/include'
796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797infodir='${datarootdir}/info'
798htmldir='${docdir}'
799dvidir='${docdir}'
800pdfdir='${docdir}'
801psdir='${docdir}'
802libdir='${exec_prefix}/lib'
803localedir='${datarootdir}/locale'
804mandir='${datarootdir}/man'
805
806ac_prev=
807ac_dashdash=
808for ac_option
809do
810  # If the previous option needs an argument, assign it.
811  if test -n "$ac_prev"; then
812    eval $ac_prev=\$ac_option
813    ac_prev=
814    continue
815  fi
816
817  case $ac_option in
818  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819  *=)   ac_optarg= ;;
820  *)    ac_optarg=yes ;;
821  esac
822
823  # Accept the important Cygnus configure options, so we can diagnose typos.
824
825  case $ac_dashdash$ac_option in
826  --)
827    ac_dashdash=yes ;;
828
829  -bindir | --bindir | --bindi | --bind | --bin | --bi)
830    ac_prev=bindir ;;
831  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832    bindir=$ac_optarg ;;
833
834  -build | --build | --buil | --bui | --bu)
835    ac_prev=build_alias ;;
836  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837    build_alias=$ac_optarg ;;
838
839  -cache-file | --cache-file | --cache-fil | --cache-fi \
840  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841    ac_prev=cache_file ;;
842  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844    cache_file=$ac_optarg ;;
845
846  --config-cache | -C)
847    cache_file=config.cache ;;
848
849  -datadir | --datadir | --datadi | --datad)
850    ac_prev=datadir ;;
851  -datadir=* | --datadir=* | --datadi=* | --datad=*)
852    datadir=$ac_optarg ;;
853
854  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855  | --dataroo | --dataro | --datar)
856    ac_prev=datarootdir ;;
857  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859    datarootdir=$ac_optarg ;;
860
861  -disable-* | --disable-*)
862    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863    # Reject names that are not valid shell variable names.
864    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865      as_fn_error $? "invalid feature name: $ac_useropt"
866    ac_useropt_orig=$ac_useropt
867    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868    case $ac_user_opts in
869      *"
870"enable_$ac_useropt"
871"*) ;;
872      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873	 ac_unrecognized_sep=', ';;
874    esac
875    eval enable_$ac_useropt=no ;;
876
877  -docdir | --docdir | --docdi | --doc | --do)
878    ac_prev=docdir ;;
879  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880    docdir=$ac_optarg ;;
881
882  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883    ac_prev=dvidir ;;
884  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885    dvidir=$ac_optarg ;;
886
887  -enable-* | --enable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=\$ac_optarg ;;
902
903  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905  | --exec | --exe | --ex)
906    ac_prev=exec_prefix ;;
907  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909  | --exec=* | --exe=* | --ex=*)
910    exec_prefix=$ac_optarg ;;
911
912  -gas | --gas | --ga | --g)
913    # Obsolete; use --with-gas.
914    with_gas=yes ;;
915
916  -help | --help | --hel | --he | -h)
917    ac_init_help=long ;;
918  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919    ac_init_help=recursive ;;
920  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921    ac_init_help=short ;;
922
923  -host | --host | --hos | --ho)
924    ac_prev=host_alias ;;
925  -host=* | --host=* | --hos=* | --ho=*)
926    host_alias=$ac_optarg ;;
927
928  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929    ac_prev=htmldir ;;
930  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931  | --ht=*)
932    htmldir=$ac_optarg ;;
933
934  -includedir | --includedir | --includedi | --included | --include \
935  | --includ | --inclu | --incl | --inc)
936    ac_prev=includedir ;;
937  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938  | --includ=* | --inclu=* | --incl=* | --inc=*)
939    includedir=$ac_optarg ;;
940
941  -infodir | --infodir | --infodi | --infod | --info | --inf)
942    ac_prev=infodir ;;
943  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944    infodir=$ac_optarg ;;
945
946  -libdir | --libdir | --libdi | --libd)
947    ac_prev=libdir ;;
948  -libdir=* | --libdir=* | --libdi=* | --libd=*)
949    libdir=$ac_optarg ;;
950
951  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952  | --libexe | --libex | --libe)
953    ac_prev=libexecdir ;;
954  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955  | --libexe=* | --libex=* | --libe=*)
956    libexecdir=$ac_optarg ;;
957
958  -localedir | --localedir | --localedi | --localed | --locale)
959    ac_prev=localedir ;;
960  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961    localedir=$ac_optarg ;;
962
963  -localstatedir | --localstatedir | --localstatedi | --localstated \
964  | --localstate | --localstat | --localsta | --localst | --locals)
965    ac_prev=localstatedir ;;
966  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968    localstatedir=$ac_optarg ;;
969
970  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971    ac_prev=mandir ;;
972  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973    mandir=$ac_optarg ;;
974
975  -nfp | --nfp | --nf)
976    # Obsolete; use --without-fp.
977    with_fp=no ;;
978
979  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980  | --no-cr | --no-c | -n)
981    no_create=yes ;;
982
983  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985    no_recursion=yes ;;
986
987  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989  | --oldin | --oldi | --old | --ol | --o)
990    ac_prev=oldincludedir ;;
991  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994    oldincludedir=$ac_optarg ;;
995
996  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997    ac_prev=prefix ;;
998  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999    prefix=$ac_optarg ;;
1000
1001  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002  | --program-pre | --program-pr | --program-p)
1003    ac_prev=program_prefix ;;
1004  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006    program_prefix=$ac_optarg ;;
1007
1008  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009  | --program-suf | --program-su | --program-s)
1010    ac_prev=program_suffix ;;
1011  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013    program_suffix=$ac_optarg ;;
1014
1015  -program-transform-name | --program-transform-name \
1016  | --program-transform-nam | --program-transform-na \
1017  | --program-transform-n | --program-transform- \
1018  | --program-transform | --program-transfor \
1019  | --program-transfo | --program-transf \
1020  | --program-trans | --program-tran \
1021  | --progr-tra | --program-tr | --program-t)
1022    ac_prev=program_transform_name ;;
1023  -program-transform-name=* | --program-transform-name=* \
1024  | --program-transform-nam=* | --program-transform-na=* \
1025  | --program-transform-n=* | --program-transform-=* \
1026  | --program-transform=* | --program-transfor=* \
1027  | --program-transfo=* | --program-transf=* \
1028  | --program-trans=* | --program-tran=* \
1029  | --progr-tra=* | --program-tr=* | --program-t=*)
1030    program_transform_name=$ac_optarg ;;
1031
1032  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033    ac_prev=pdfdir ;;
1034  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035    pdfdir=$ac_optarg ;;
1036
1037  -psdir | --psdir | --psdi | --psd | --ps)
1038    ac_prev=psdir ;;
1039  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040    psdir=$ac_optarg ;;
1041
1042  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043  | -silent | --silent | --silen | --sile | --sil)
1044    silent=yes ;;
1045
1046  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047    ac_prev=sbindir ;;
1048  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049  | --sbi=* | --sb=*)
1050    sbindir=$ac_optarg ;;
1051
1052  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054  | --sharedst | --shareds | --shared | --share | --shar \
1055  | --sha | --sh)
1056    ac_prev=sharedstatedir ;;
1057  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060  | --sha=* | --sh=*)
1061    sharedstatedir=$ac_optarg ;;
1062
1063  -site | --site | --sit)
1064    ac_prev=site ;;
1065  -site=* | --site=* | --sit=*)
1066    site=$ac_optarg ;;
1067
1068  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069    ac_prev=srcdir ;;
1070  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071    srcdir=$ac_optarg ;;
1072
1073  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074  | --syscon | --sysco | --sysc | --sys | --sy)
1075    ac_prev=sysconfdir ;;
1076  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078    sysconfdir=$ac_optarg ;;
1079
1080  -target | --target | --targe | --targ | --tar | --ta | --t)
1081    ac_prev=target_alias ;;
1082  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083    target_alias=$ac_optarg ;;
1084
1085  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086    verbose=yes ;;
1087
1088  -version | --version | --versio | --versi | --vers | -V)
1089    ac_init_version=: ;;
1090
1091  -with-* | --with-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error $? "invalid package name: $ac_useropt"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"with_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval with_$ac_useropt=\$ac_optarg ;;
1106
1107  -without-* | --without-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      as_fn_error $? "invalid package name: $ac_useropt"
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"with_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval with_$ac_useropt=no ;;
1122
1123  --x)
1124    # Obsolete; use --with-x.
1125    with_x=yes ;;
1126
1127  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128  | --x-incl | --x-inc | --x-in | --x-i)
1129    ac_prev=x_includes ;;
1130  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132    x_includes=$ac_optarg ;;
1133
1134  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136    ac_prev=x_libraries ;;
1137  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139    x_libraries=$ac_optarg ;;
1140
1141  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142Try \`$0 --help' for more information"
1143    ;;
1144
1145  *=*)
1146    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147    # Reject names that are not valid shell variable names.
1148    case $ac_envvar in #(
1149      '' | [0-9]* | *[!_$as_cr_alnum]* )
1150      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151    esac
1152    eval $ac_envvar=\$ac_optarg
1153    export $ac_envvar ;;
1154
1155  *)
1156    # FIXME: should be removed in autoconf 3.0.
1157    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161    ;;
1162
1163  esac
1164done
1165
1166if test -n "$ac_prev"; then
1167  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168  as_fn_error $? "missing argument to $ac_option"
1169fi
1170
1171if test -n "$ac_unrecognized_opts"; then
1172  case $enable_option_checking in
1173    no) ;;
1174    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176  esac
1177fi
1178
1179# Check all directory arguments for consistency.
1180for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181		datadir sysconfdir sharedstatedir localstatedir includedir \
1182		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183		libdir localedir mandir
1184do
1185  eval ac_val=\$$ac_var
1186  # Remove trailing slashes.
1187  case $ac_val in
1188    */ )
1189      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190      eval $ac_var=\$ac_val;;
1191  esac
1192  # Be sure to have absolute directory names.
1193  case $ac_val in
1194    [\\/$]* | ?:[\\/]* )  continue;;
1195    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196  esac
1197  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198done
1199
1200# There might be people who depend on the old broken behavior: `$host'
1201# used to hold the argument of --host etc.
1202# FIXME: To remove some day.
1203build=$build_alias
1204host=$host_alias
1205target=$target_alias
1206
1207# FIXME: To remove some day.
1208if test "x$host_alias" != x; then
1209  if test "x$build_alias" = x; then
1210    cross_compiling=maybe
1211    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212    If a cross compiler is detected then cross compile mode will be used" >&2
1213  elif test "x$build_alias" != "x$host_alias"; then
1214    cross_compiling=yes
1215  fi
1216fi
1217
1218ac_tool_prefix=
1219test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221test "$silent" = yes && exec 6>/dev/null
1222
1223
1224ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225ac_ls_di=`ls -di .` &&
1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227  as_fn_error $? "working directory cannot be determined"
1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229  as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232# Find the source files, if location was not specified.
1233if test -z "$srcdir"; then
1234  ac_srcdir_defaulted=yes
1235  # Try the directory containing this script, then the parent directory.
1236  ac_confdir=`$as_dirname -- "$as_myself" ||
1237$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238	 X"$as_myself" : 'X\(//\)[^/]' \| \
1239	 X"$as_myself" : 'X\(//\)$' \| \
1240	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241$as_echo X"$as_myself" |
1242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243	    s//\1/
1244	    q
1245	  }
1246	  /^X\(\/\/\)[^/].*/{
1247	    s//\1/
1248	    q
1249	  }
1250	  /^X\(\/\/\)$/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\).*/{
1255	    s//\1/
1256	    q
1257	  }
1258	  s/.*/./; q'`
1259  srcdir=$ac_confdir
1260  if test ! -r "$srcdir/$ac_unique_file"; then
1261    srcdir=..
1262  fi
1263else
1264  ac_srcdir_defaulted=no
1265fi
1266if test ! -r "$srcdir/$ac_unique_file"; then
1267  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269fi
1270ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271ac_abs_confdir=`(
1272	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273	pwd)`
1274# When building in place, set srcdir=.
1275if test "$ac_abs_confdir" = "$ac_pwd"; then
1276  srcdir=.
1277fi
1278# Remove unnecessary trailing slashes from srcdir.
1279# Double slashes in file names in object file debugging info
1280# mess up M-x gdb in Emacs.
1281case $srcdir in
1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283esac
1284for ac_var in $ac_precious_vars; do
1285  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_env_${ac_var}_value=\$${ac_var}
1287  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289done
1290
1291#
1292# Report the --help message.
1293#
1294if test "$ac_init_help" = "long"; then
1295  # Omit some internal or obsolete options to make the list less imposing.
1296  # This message is too long to be a string in the A/UX 3.1 sh.
1297  cat <<_ACEOF
1298\`configure' configures x11perf 1.5.3 to adapt to many kinds of systems.
1299
1300Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305Defaults for the options are specified in brackets.
1306
1307Configuration:
1308  -h, --help              display this help and exit
1309      --help=short        display options specific to this package
1310      --help=recursive    display the short help of all the included packages
1311  -V, --version           display version information and exit
1312  -q, --quiet, --silent   do not print \`checking ...' messages
1313      --cache-file=FILE   cache test results in FILE [disabled]
1314  -C, --config-cache      alias for \`--cache-file=config.cache'
1315  -n, --no-create         do not create output files
1316      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318Installation directories:
1319  --prefix=PREFIX         install architecture-independent files in PREFIX
1320                          [$ac_default_prefix]
1321  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                          [PREFIX]
1323
1324By default, \`make install' will install all the files in
1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327for instance \`--prefix=\$HOME'.
1328
1329For better control, use the options below.
1330
1331Fine tuning of the installation directories:
1332  --bindir=DIR            user executables [EPREFIX/bin]
1333  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334  --libexecdir=DIR        program executables [EPREFIX/libexec]
1335  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338  --libdir=DIR            object code libraries [EPREFIX/lib]
1339  --includedir=DIR        C header files [PREFIX/include]
1340  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343  --infodir=DIR           info documentation [DATAROOTDIR/info]
1344  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345  --mandir=DIR            man documentation [DATAROOTDIR/man]
1346  --docdir=DIR            documentation root [DATAROOTDIR/doc/x11perf]
1347  --htmldir=DIR           html documentation [DOCDIR]
1348  --dvidir=DIR            dvi documentation [DOCDIR]
1349  --pdfdir=DIR            pdf documentation [DOCDIR]
1350  --psdir=DIR             ps documentation [DOCDIR]
1351_ACEOF
1352
1353  cat <<\_ACEOF
1354
1355Program names:
1356  --program-prefix=PREFIX            prepend PREFIX to installed program names
1357  --program-suffix=SUFFIX            append SUFFIX to installed program names
1358  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360System types:
1361  --build=BUILD     configure for building on BUILD [guessed]
1362  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367  case $ac_init_help in
1368     short | recursive ) echo "Configuration of x11perf 1.5.3:";;
1369   esac
1370  cat <<\_ACEOF
1371
1372Optional Features:
1373  --disable-option-checking  ignore unrecognized --enable/--with options
1374  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376  --enable-maintainer-mode  enable make rules and dependencies not useful
1377			  (and sometimes confusing) to the casual installer
1378  --disable-dependency-tracking  speeds up one-time build
1379  --enable-dependency-tracking   do not reject slow dependency extractors
1380  --enable-strict-compilation
1381                          Enable all warnings from compiler and make them
1382                          errors (default: disabled)
1383  --enable-silent-rules          less verbose build output (undo: `make V=1')
1384  --disable-silent-rules         verbose build output (undo: `make V=0')
1385
1386Some influential environment variables:
1387  CC          C compiler command
1388  CFLAGS      C compiler flags
1389  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1390              nonstandard directory <lib dir>
1391  LIBS        libraries to pass to the linker, e.g. -l<library>
1392  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1393              you have headers in a nonstandard directory <include dir>
1394  CPP         C preprocessor
1395  PKG_CONFIG  path to pkg-config utility
1396  X11PERF_CFLAGS
1397              C compiler flags for X11PERF, overriding pkg-config
1398  X11PERF_LIBS
1399              linker flags for X11PERF, overriding pkg-config
1400  XRENDER_CFLAGS
1401              C compiler flags for XRENDER, overriding pkg-config
1402  XRENDER_LIBS
1403              linker flags for XRENDER, overriding pkg-config
1404  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1405  XFT_LIBS    linker flags for XFT, overriding pkg-config
1406  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1407  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1408
1409Use these variables to override the choices made by `configure' or to help
1410it to find libraries and programs with nonstandard names/locations.
1411
1412Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1413_ACEOF
1414ac_status=$?
1415fi
1416
1417if test "$ac_init_help" = "recursive"; then
1418  # If there are subdirs, report their specific --help.
1419  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420    test -d "$ac_dir" ||
1421      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422      continue
1423    ac_builddir=.
1424
1425case "$ac_dir" in
1426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427*)
1428  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429  # A ".." for each directory in $ac_dir_suffix.
1430  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431  case $ac_top_builddir_sub in
1432  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434  esac ;;
1435esac
1436ac_abs_top_builddir=$ac_pwd
1437ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438# for backward compatibility:
1439ac_top_builddir=$ac_top_build_prefix
1440
1441case $srcdir in
1442  .)  # We are building in place.
1443    ac_srcdir=.
1444    ac_top_srcdir=$ac_top_builddir_sub
1445    ac_abs_top_srcdir=$ac_pwd ;;
1446  [\\/]* | ?:[\\/]* )  # Absolute name.
1447    ac_srcdir=$srcdir$ac_dir_suffix;
1448    ac_top_srcdir=$srcdir
1449    ac_abs_top_srcdir=$srcdir ;;
1450  *) # Relative name.
1451    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452    ac_top_srcdir=$ac_top_build_prefix$srcdir
1453    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454esac
1455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457    cd "$ac_dir" || { ac_status=$?; continue; }
1458    # Check for guested configure.
1459    if test -f "$ac_srcdir/configure.gnu"; then
1460      echo &&
1461      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462    elif test -f "$ac_srcdir/configure"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure" --help=recursive
1465    else
1466      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467    fi || ac_status=$?
1468    cd "$ac_pwd" || { ac_status=$?; break; }
1469  done
1470fi
1471
1472test -n "$ac_init_help" && exit $ac_status
1473if $ac_init_version; then
1474  cat <<\_ACEOF
1475x11perf configure 1.5.3
1476generated by GNU Autoconf 2.68
1477
1478Copyright (C) 2010 Free Software Foundation, Inc.
1479This configure script is free software; the Free Software Foundation
1480gives unlimited permission to copy, distribute and modify it.
1481_ACEOF
1482  exit
1483fi
1484
1485## ------------------------ ##
1486## Autoconf initialization. ##
1487## ------------------------ ##
1488
1489# ac_fn_c_try_compile LINENO
1490# --------------------------
1491# Try to compile conftest.$ac_ext, and return whether this succeeded.
1492ac_fn_c_try_compile ()
1493{
1494  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495  rm -f conftest.$ac_objext
1496  if { { ac_try="$ac_compile"
1497case "(($ac_try" in
1498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499  *) ac_try_echo=$ac_try;;
1500esac
1501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502$as_echo "$ac_try_echo"; } >&5
1503  (eval "$ac_compile") 2>conftest.err
1504  ac_status=$?
1505  if test -s conftest.err; then
1506    grep -v '^ *+' conftest.err >conftest.er1
1507    cat conftest.er1 >&5
1508    mv -f conftest.er1 conftest.err
1509  fi
1510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511  test $ac_status = 0; } && {
1512	 test -z "$ac_c_werror_flag" ||
1513	 test ! -s conftest.err
1514       } && test -s conftest.$ac_objext; then :
1515  ac_retval=0
1516else
1517  $as_echo "$as_me: failed program was:" >&5
1518sed 's/^/| /' conftest.$ac_ext >&5
1519
1520	ac_retval=1
1521fi
1522  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523  as_fn_set_status $ac_retval
1524
1525} # ac_fn_c_try_compile
1526
1527# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1528# ---------------------------------------------
1529# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1530# accordingly.
1531ac_fn_c_check_decl ()
1532{
1533  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534  as_decl_name=`echo $2|sed 's/ *(.*//'`
1535  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1537$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1538if eval \${$3+:} false; then :
1539  $as_echo_n "(cached) " >&6
1540else
1541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1542/* end confdefs.h.  */
1543$4
1544int
1545main ()
1546{
1547#ifndef $as_decl_name
1548#ifdef __cplusplus
1549  (void) $as_decl_use;
1550#else
1551  (void) $as_decl_name;
1552#endif
1553#endif
1554
1555  ;
1556  return 0;
1557}
1558_ACEOF
1559if ac_fn_c_try_compile "$LINENO"; then :
1560  eval "$3=yes"
1561else
1562  eval "$3=no"
1563fi
1564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1565fi
1566eval ac_res=\$$3
1567	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568$as_echo "$ac_res" >&6; }
1569  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570
1571} # ac_fn_c_check_decl
1572
1573# ac_fn_c_try_cpp LINENO
1574# ----------------------
1575# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_cpp ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  if { { ac_try="$ac_cpp conftest.$ac_ext"
1580case "(($ac_try" in
1581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582  *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587  ac_status=$?
1588  if test -s conftest.err; then
1589    grep -v '^ *+' conftest.err >conftest.er1
1590    cat conftest.er1 >&5
1591    mv -f conftest.er1 conftest.err
1592  fi
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } > conftest.i && {
1595	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596	 test ! -s conftest.err
1597       }; then :
1598  ac_retval=0
1599else
1600  $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603    ac_retval=1
1604fi
1605  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606  as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_cpp
1609
1610# ac_fn_c_try_run LINENO
1611# ----------------------
1612# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613# that executables *can* be run.
1614ac_fn_c_try_run ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  if { { ac_try="$ac_link"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_link") 2>&5
1625  ac_status=$?
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628  { { case "(($ac_try" in
1629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630  *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634  (eval "$ac_try") 2>&5
1635  ac_status=$?
1636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; }; }; then :
1638  ac_retval=0
1639else
1640  $as_echo "$as_me: program exited with status $ac_status" >&5
1641       $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644       ac_retval=$ac_status
1645fi
1646  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_run
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if eval \${$3+:} false; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h.  */
1666$4
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"; then :
1670  eval "$3=yes"
1671else
1672  eval "$3=no"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675fi
1676eval ac_res=\$$3
1677	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_try_link LINENO
1684# -----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_link ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  rm -f conftest.$ac_objext conftest$ac_exeext
1690  if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_link") 2>conftest.err
1698  ac_status=$?
1699  if test -s conftest.err; then
1700    grep -v '^ *+' conftest.err >conftest.er1
1701    cat conftest.er1 >&5
1702    mv -f conftest.er1 conftest.err
1703  fi
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } && {
1706	 test -z "$ac_c_werror_flag" ||
1707	 test ! -s conftest.err
1708       } && test -s conftest$ac_exeext && {
1709	 test "$cross_compiling" = yes ||
1710	 $as_test_x conftest$ac_exeext
1711       }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717	ac_retval=1
1718fi
1719  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721  # interfere with the next link command; also delete a directory that is
1722  # left behind by Apple's compiler.  We do this before executing the actions.
1723  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_link
1728
1729# ac_fn_c_check_func LINENO FUNC VAR
1730# ----------------------------------
1731# Tests whether FUNC exists, setting the cache variable VAR accordingly
1732ac_fn_c_check_func ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1744#define $2 innocuous_$2
1745
1746/* System header to define __stub macros and hopefully few prototypes,
1747    which can conflict with char $2 (); below.
1748    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1749    <limits.h> exists even on freestanding compilers.  */
1750
1751#ifdef __STDC__
1752# include <limits.h>
1753#else
1754# include <assert.h>
1755#endif
1756
1757#undef $2
1758
1759/* Override any GCC internal prototype to avoid an error.
1760   Use char because int might match the return type of a GCC
1761   builtin and then its argument prototype would still apply.  */
1762#ifdef __cplusplus
1763extern "C"
1764#endif
1765char $2 ();
1766/* The GNU C library defines this for functions which it implements
1767    to always fail with ENOSYS.  Some functions are actually named
1768    something starting with __ and the normal name is an alias.  */
1769#if defined __stub_$2 || defined __stub___$2
1770choke me
1771#endif
1772
1773int
1774main ()
1775{
1776return $2 ();
1777  ;
1778  return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_link "$LINENO"; then :
1782  eval "$3=yes"
1783else
1784  eval "$3=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext \
1787    conftest$ac_exeext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794} # ac_fn_c_check_func
1795cat >config.log <<_ACEOF
1796This file contains any messages produced by compilers while
1797running configure, to aid debugging if configure makes a mistake.
1798
1799It was created by x11perf $as_me 1.5.3, which was
1800generated by GNU Autoconf 2.68.  Invocation command line was
1801
1802  $ $0 $@
1803
1804_ACEOF
1805exec 5>>config.log
1806{
1807cat <<_ASUNAME
1808## --------- ##
1809## Platform. ##
1810## --------- ##
1811
1812hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1813uname -m = `(uname -m) 2>/dev/null || echo unknown`
1814uname -r = `(uname -r) 2>/dev/null || echo unknown`
1815uname -s = `(uname -s) 2>/dev/null || echo unknown`
1816uname -v = `(uname -v) 2>/dev/null || echo unknown`
1817
1818/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1819/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1820
1821/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1822/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1823/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1824/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1825/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1826/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1827/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1828
1829_ASUNAME
1830
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834  IFS=$as_save_IFS
1835  test -z "$as_dir" && as_dir=.
1836    $as_echo "PATH: $as_dir"
1837  done
1838IFS=$as_save_IFS
1839
1840} >&5
1841
1842cat >&5 <<_ACEOF
1843
1844
1845## ----------- ##
1846## Core tests. ##
1847## ----------- ##
1848
1849_ACEOF
1850
1851
1852# Keep a trace of the command line.
1853# Strip out --no-create and --no-recursion so they do not pile up.
1854# Strip out --silent because we don't want to record it for future runs.
1855# Also quote any args containing shell meta-characters.
1856# Make two passes to allow for proper duplicate-argument suppression.
1857ac_configure_args=
1858ac_configure_args0=
1859ac_configure_args1=
1860ac_must_keep_next=false
1861for ac_pass in 1 2
1862do
1863  for ac_arg
1864  do
1865    case $ac_arg in
1866    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1867    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1868    | -silent | --silent | --silen | --sile | --sil)
1869      continue ;;
1870    *\'*)
1871      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872    esac
1873    case $ac_pass in
1874    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1875    2)
1876      as_fn_append ac_configure_args1 " '$ac_arg'"
1877      if test $ac_must_keep_next = true; then
1878	ac_must_keep_next=false # Got value, back to normal.
1879      else
1880	case $ac_arg in
1881	  *=* | --config-cache | -C | -disable-* | --disable-* \
1882	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1883	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1884	  | -with-* | --with-* | -without-* | --without-* | --x)
1885	    case "$ac_configure_args0 " in
1886	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1887	    esac
1888	    ;;
1889	  -* ) ac_must_keep_next=true ;;
1890	esac
1891      fi
1892      as_fn_append ac_configure_args " '$ac_arg'"
1893      ;;
1894    esac
1895  done
1896done
1897{ ac_configure_args0=; unset ac_configure_args0;}
1898{ ac_configure_args1=; unset ac_configure_args1;}
1899
1900# When interrupted or exit'd, cleanup temporary files, and complete
1901# config.log.  We remove comments because anyway the quotes in there
1902# would cause problems or look ugly.
1903# WARNING: Use '\'' to represent an apostrophe within the trap.
1904# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1905trap 'exit_status=$?
1906  # Save into config.log some information that might help in debugging.
1907  {
1908    echo
1909
1910    $as_echo "## ---------------- ##
1911## Cache variables. ##
1912## ---------------- ##"
1913    echo
1914    # The following way of writing the cache mishandles newlines in values,
1915(
1916  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1917    eval ac_val=\$$ac_var
1918    case $ac_val in #(
1919    *${as_nl}*)
1920      case $ac_var in #(
1921      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1922$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1923      esac
1924      case $ac_var in #(
1925      _ | IFS | as_nl) ;; #(
1926      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1927      *) { eval $ac_var=; unset $ac_var;} ;;
1928      esac ;;
1929    esac
1930  done
1931  (set) 2>&1 |
1932    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1933    *${as_nl}ac_space=\ *)
1934      sed -n \
1935	"s/'\''/'\''\\\\'\'''\''/g;
1936	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1937      ;; #(
1938    *)
1939      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1940      ;;
1941    esac |
1942    sort
1943)
1944    echo
1945
1946    $as_echo "## ----------------- ##
1947## Output variables. ##
1948## ----------------- ##"
1949    echo
1950    for ac_var in $ac_subst_vars
1951    do
1952      eval ac_val=\$$ac_var
1953      case $ac_val in
1954      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955      esac
1956      $as_echo "$ac_var='\''$ac_val'\''"
1957    done | sort
1958    echo
1959
1960    if test -n "$ac_subst_files"; then
1961      $as_echo "## ------------------- ##
1962## File substitutions. ##
1963## ------------------- ##"
1964      echo
1965      for ac_var in $ac_subst_files
1966      do
1967	eval ac_val=\$$ac_var
1968	case $ac_val in
1969	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970	esac
1971	$as_echo "$ac_var='\''$ac_val'\''"
1972      done | sort
1973      echo
1974    fi
1975
1976    if test -s confdefs.h; then
1977      $as_echo "## ----------- ##
1978## confdefs.h. ##
1979## ----------- ##"
1980      echo
1981      cat confdefs.h
1982      echo
1983    fi
1984    test "$ac_signal" != 0 &&
1985      $as_echo "$as_me: caught signal $ac_signal"
1986    $as_echo "$as_me: exit $exit_status"
1987  } >&5
1988  rm -f core *.core core.conftest.* &&
1989    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1990    exit $exit_status
1991' 0
1992for ac_signal in 1 2 13 15; do
1993  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1994done
1995ac_signal=0
1996
1997# confdefs.h avoids OS command line length limits that DEFS can exceed.
1998rm -f -r conftest* confdefs.h
1999
2000$as_echo "/* confdefs.h */" > confdefs.h
2001
2002# Predefined preprocessor variables.
2003
2004cat >>confdefs.h <<_ACEOF
2005#define PACKAGE_NAME "$PACKAGE_NAME"
2006_ACEOF
2007
2008cat >>confdefs.h <<_ACEOF
2009#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2010_ACEOF
2011
2012cat >>confdefs.h <<_ACEOF
2013#define PACKAGE_VERSION "$PACKAGE_VERSION"
2014_ACEOF
2015
2016cat >>confdefs.h <<_ACEOF
2017#define PACKAGE_STRING "$PACKAGE_STRING"
2018_ACEOF
2019
2020cat >>confdefs.h <<_ACEOF
2021#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2022_ACEOF
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_URL "$PACKAGE_URL"
2026_ACEOF
2027
2028
2029# Let the site file select an alternate cache file if it wants to.
2030# Prefer an explicitly selected file to automatically selected ones.
2031ac_site_file1=NONE
2032ac_site_file2=NONE
2033if test -n "$CONFIG_SITE"; then
2034  # We do not want a PATH search for config.site.
2035  case $CONFIG_SITE in #((
2036    -*)  ac_site_file1=./$CONFIG_SITE;;
2037    */*) ac_site_file1=$CONFIG_SITE;;
2038    *)   ac_site_file1=./$CONFIG_SITE;;
2039  esac
2040elif test "x$prefix" != xNONE; then
2041  ac_site_file1=$prefix/share/config.site
2042  ac_site_file2=$prefix/etc/config.site
2043else
2044  ac_site_file1=$ac_default_prefix/share/config.site
2045  ac_site_file2=$ac_default_prefix/etc/config.site
2046fi
2047for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2048do
2049  test "x$ac_site_file" = xNONE && continue
2050  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2051    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2052$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2053    sed 's/^/| /' "$ac_site_file" >&5
2054    . "$ac_site_file" \
2055      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2057as_fn_error $? "failed to load site script $ac_site_file
2058See \`config.log' for more details" "$LINENO" 5; }
2059  fi
2060done
2061
2062if test -r "$cache_file"; then
2063  # Some versions of bash will fail to source /dev/null (special files
2064  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2065  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2066    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067$as_echo "$as_me: loading cache $cache_file" >&6;}
2068    case $cache_file in
2069      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070      *)                      . "./$cache_file";;
2071    esac
2072  fi
2073else
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075$as_echo "$as_me: creating cache $cache_file" >&6;}
2076  >$cache_file
2077fi
2078
2079# Check that the precious variables saved in the cache have kept the same
2080# value.
2081ac_cache_corrupted=false
2082for ac_var in $ac_precious_vars; do
2083  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084  eval ac_new_set=\$ac_env_${ac_var}_set
2085  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086  eval ac_new_val=\$ac_env_${ac_var}_value
2087  case $ac_old_set,$ac_new_set in
2088    set,)
2089      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2091      ac_cache_corrupted=: ;;
2092    ,set)
2093      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2095      ac_cache_corrupted=: ;;
2096    ,);;
2097    *)
2098      if test "x$ac_old_val" != "x$ac_new_val"; then
2099	# differences in whitespace do not lead to failure.
2100	ac_old_val_w=`echo x $ac_old_val`
2101	ac_new_val_w=`echo x $ac_new_val`
2102	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105	  ac_cache_corrupted=:
2106	else
2107	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109	  eval $ac_var=\$ac_old_val
2110	fi
2111	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2112$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2113	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2114$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2115      fi;;
2116  esac
2117  # Pass precious variables to config.status.
2118  if test "$ac_new_set" = set; then
2119    case $ac_new_val in
2120    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2121    *) ac_arg=$ac_var=$ac_new_val ;;
2122    esac
2123    case " $ac_configure_args " in
2124      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2125      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2126    esac
2127  fi
2128done
2129if $ac_cache_corrupted; then
2130  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2135fi
2136## -------------------- ##
2137## Main body of script. ##
2138## -------------------- ##
2139
2140ac_ext=c
2141ac_cpp='$CPP $CPPFLAGS'
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
2146
2147
2148ac_config_headers="$ac_config_headers config.h"
2149
2150
2151# Initialize Automake
2152am__api_version='1.11'
2153
2154ac_aux_dir=
2155for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2156  if test -f "$ac_dir/install-sh"; then
2157    ac_aux_dir=$ac_dir
2158    ac_install_sh="$ac_aux_dir/install-sh -c"
2159    break
2160  elif test -f "$ac_dir/install.sh"; then
2161    ac_aux_dir=$ac_dir
2162    ac_install_sh="$ac_aux_dir/install.sh -c"
2163    break
2164  elif test -f "$ac_dir/shtool"; then
2165    ac_aux_dir=$ac_dir
2166    ac_install_sh="$ac_aux_dir/shtool install -c"
2167    break
2168  fi
2169done
2170if test -z "$ac_aux_dir"; then
2171  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2172fi
2173
2174# These three variables are undocumented and unsupported,
2175# and are intended to be withdrawn in a future Autoconf release.
2176# They can cause serious problems if a builder's source tree is in a directory
2177# whose full name contains unusual characters.
2178ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2179ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2180ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2181
2182
2183# Find a good install program.  We prefer a C program (faster),
2184# so one script is as good as another.  But avoid the broken or
2185# incompatible versions:
2186# SysV /etc/install, /usr/sbin/install
2187# SunOS /usr/etc/install
2188# IRIX /sbin/install
2189# AIX /bin/install
2190# AmigaOS /C/install, which installs bootblocks on floppy discs
2191# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2192# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2193# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2194# OS/2's system install, which has a completely different semantic
2195# ./install, which can be erroneously created by make from ./install.sh.
2196# Reject install programs that cannot install multiple files.
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2198$as_echo_n "checking for a BSD-compatible install... " >&6; }
2199if test -z "$INSTALL"; then
2200if ${ac_cv_path_install+:} false; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206  IFS=$as_save_IFS
2207  test -z "$as_dir" && as_dir=.
2208    # Account for people who put trailing slashes in PATH elements.
2209case $as_dir/ in #((
2210  ./ | .// | /[cC]/* | \
2211  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2212  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2213  /usr/ucb/* ) ;;
2214  *)
2215    # OSF1 and SCO ODT 3.0 have their own names for install.
2216    # Don't use installbsd from OSF since it installs stuff as root
2217    # by default.
2218    for ac_prog in ginstall scoinst install; do
2219      for ac_exec_ext in '' $ac_executable_extensions; do
2220	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2221	  if test $ac_prog = install &&
2222	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223	    # AIX install.  It has an incompatible calling convention.
2224	    :
2225	  elif test $ac_prog = install &&
2226	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2227	    # program-specific install script used by HP pwplus--don't use.
2228	    :
2229	  else
2230	    rm -rf conftest.one conftest.two conftest.dir
2231	    echo one > conftest.one
2232	    echo two > conftest.two
2233	    mkdir conftest.dir
2234	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2235	      test -s conftest.one && test -s conftest.two &&
2236	      test -s conftest.dir/conftest.one &&
2237	      test -s conftest.dir/conftest.two
2238	    then
2239	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2240	      break 3
2241	    fi
2242	  fi
2243	fi
2244      done
2245    done
2246    ;;
2247esac
2248
2249  done
2250IFS=$as_save_IFS
2251
2252rm -rf conftest.one conftest.two conftest.dir
2253
2254fi
2255  if test "${ac_cv_path_install+set}" = set; then
2256    INSTALL=$ac_cv_path_install
2257  else
2258    # As a last resort, use the slow shell script.  Don't cache a
2259    # value for INSTALL within a source directory, because that will
2260    # break other packages using the cache if that directory is
2261    # removed, or if the value is a relative name.
2262    INSTALL=$ac_install_sh
2263  fi
2264fi
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2266$as_echo "$INSTALL" >&6; }
2267
2268# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2269# It thinks the first close brace ends the variable substitution.
2270test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2271
2272test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2273
2274test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2275
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2277$as_echo_n "checking whether build environment is sane... " >&6; }
2278# Just in case
2279sleep 1
2280echo timestamp > conftest.file
2281# Reject unsafe characters in $srcdir or the absolute working directory
2282# name.  Accept space and tab only in the latter.
2283am_lf='
2284'
2285case `pwd` in
2286  *[\\\"\#\$\&\'\`$am_lf]*)
2287    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2288esac
2289case $srcdir in
2290  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2291    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2292esac
2293
2294# Do `set' in a subshell so we don't clobber the current shell's
2295# arguments.  Must try -L first in case configure is actually a
2296# symlink; some systems play weird games with the mod time of symlinks
2297# (eg FreeBSD returns the mod time of the symlink's containing
2298# directory).
2299if (
2300   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2301   if test "$*" = "X"; then
2302      # -L didn't work.
2303      set X `ls -t "$srcdir/configure" conftest.file`
2304   fi
2305   rm -f conftest.file
2306   if test "$*" != "X $srcdir/configure conftest.file" \
2307      && test "$*" != "X conftest.file $srcdir/configure"; then
2308
2309      # If neither matched, then we have a broken ls.  This can happen
2310      # if, for instance, CONFIG_SHELL is bash and it inherits a
2311      # broken ls alias from the environment.  This has actually
2312      # happened.  Such a system could not be considered "sane".
2313      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2314alias in your environment" "$LINENO" 5
2315   fi
2316
2317   test "$2" = conftest.file
2318   )
2319then
2320   # Ok.
2321   :
2322else
2323   as_fn_error $? "newly created file is older than distributed files!
2324Check your system clock" "$LINENO" 5
2325fi
2326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2327$as_echo "yes" >&6; }
2328test "$program_prefix" != NONE &&
2329  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2330# Use a double $ so make ignores it.
2331test "$program_suffix" != NONE &&
2332  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2333# Double any \ or $.
2334# By default was `s,x,x', remove it if useless.
2335ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2336program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2337
2338# expand $ac_aux_dir to an absolute path
2339am_aux_dir=`cd $ac_aux_dir && pwd`
2340
2341if test x"${MISSING+set}" != xset; then
2342  case $am_aux_dir in
2343  *\ * | *\	*)
2344    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2345  *)
2346    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2347  esac
2348fi
2349# Use eval to expand $SHELL
2350if eval "$MISSING --run true"; then
2351  am_missing_run="$MISSING --run "
2352else
2353  am_missing_run=
2354  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2355$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2356fi
2357
2358if test x"${install_sh}" != xset; then
2359  case $am_aux_dir in
2360  *\ * | *\	*)
2361    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2362  *)
2363    install_sh="\${SHELL} $am_aux_dir/install-sh"
2364  esac
2365fi
2366
2367# Installed binaries are usually stripped using `strip' when the user
2368# run `make install-strip'.  However `strip' might not be the right
2369# tool to use in cross-compilation environments, therefore Automake
2370# will honor the `STRIP' environment variable to overrule this program.
2371if test "$cross_compiling" != no; then
2372  if test -n "$ac_tool_prefix"; then
2373  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2374set dummy ${ac_tool_prefix}strip; ac_word=$2
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376$as_echo_n "checking for $ac_word... " >&6; }
2377if ${ac_cv_prog_STRIP+:} false; then :
2378  $as_echo_n "(cached) " >&6
2379else
2380  if test -n "$STRIP"; then
2381  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386  IFS=$as_save_IFS
2387  test -z "$as_dir" && as_dir=.
2388    for ac_exec_ext in '' $ac_executable_extensions; do
2389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392    break 2
2393  fi
2394done
2395  done
2396IFS=$as_save_IFS
2397
2398fi
2399fi
2400STRIP=$ac_cv_prog_STRIP
2401if test -n "$STRIP"; then
2402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2403$as_echo "$STRIP" >&6; }
2404else
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406$as_echo "no" >&6; }
2407fi
2408
2409
2410fi
2411if test -z "$ac_cv_prog_STRIP"; then
2412  ac_ct_STRIP=$STRIP
2413  # Extract the first word of "strip", so it can be a program name with args.
2414set dummy strip; ac_word=$2
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
2417if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2418  $as_echo_n "(cached) " >&6
2419else
2420  if test -n "$ac_ct_STRIP"; then
2421  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426  IFS=$as_save_IFS
2427  test -z "$as_dir" && as_dir=.
2428    for ac_exec_ext in '' $ac_executable_extensions; do
2429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430    ac_cv_prog_ac_ct_STRIP="strip"
2431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432    break 2
2433  fi
2434done
2435  done
2436IFS=$as_save_IFS
2437
2438fi
2439fi
2440ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2441if test -n "$ac_ct_STRIP"; then
2442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2443$as_echo "$ac_ct_STRIP" >&6; }
2444else
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
2447fi
2448
2449  if test "x$ac_ct_STRIP" = x; then
2450    STRIP=":"
2451  else
2452    case $cross_compiling:$ac_tool_warned in
2453yes:)
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456ac_tool_warned=yes ;;
2457esac
2458    STRIP=$ac_ct_STRIP
2459  fi
2460else
2461  STRIP="$ac_cv_prog_STRIP"
2462fi
2463
2464fi
2465INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2466
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2468$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2469if test -z "$MKDIR_P"; then
2470  if ${ac_cv_path_mkdir+:} false; then :
2471  $as_echo_n "(cached) " >&6
2472else
2473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2475do
2476  IFS=$as_save_IFS
2477  test -z "$as_dir" && as_dir=.
2478    for ac_prog in mkdir gmkdir; do
2479	 for ac_exec_ext in '' $ac_executable_extensions; do
2480	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2481	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2482	     'mkdir (GNU coreutils) '* | \
2483	     'mkdir (coreutils) '* | \
2484	     'mkdir (fileutils) '4.1*)
2485	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2486	       break 3;;
2487	   esac
2488	 done
2489       done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494
2495  test -d ./--version && rmdir ./--version
2496  if test "${ac_cv_path_mkdir+set}" = set; then
2497    MKDIR_P="$ac_cv_path_mkdir -p"
2498  else
2499    # As a last resort, use the slow shell script.  Don't cache a
2500    # value for MKDIR_P within a source directory, because that will
2501    # break other packages using the cache if that directory is
2502    # removed, or if the value is a relative name.
2503    MKDIR_P="$ac_install_sh -d"
2504  fi
2505fi
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2507$as_echo "$MKDIR_P" >&6; }
2508
2509mkdir_p="$MKDIR_P"
2510case $mkdir_p in
2511  [\\/$]* | ?:[\\/]*) ;;
2512  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2513esac
2514
2515for ac_prog in gawk mawk nawk awk
2516do
2517  # Extract the first word of "$ac_prog", so it can be a program name with args.
2518set dummy $ac_prog; ac_word=$2
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520$as_echo_n "checking for $ac_word... " >&6; }
2521if ${ac_cv_prog_AWK+:} false; then :
2522  $as_echo_n "(cached) " >&6
2523else
2524  if test -n "$AWK"; then
2525  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530  IFS=$as_save_IFS
2531  test -z "$as_dir" && as_dir=.
2532    for ac_exec_ext in '' $ac_executable_extensions; do
2533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534    ac_cv_prog_AWK="$ac_prog"
2535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536    break 2
2537  fi
2538done
2539  done
2540IFS=$as_save_IFS
2541
2542fi
2543fi
2544AWK=$ac_cv_prog_AWK
2545if test -n "$AWK"; then
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2547$as_echo "$AWK" >&6; }
2548else
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550$as_echo "no" >&6; }
2551fi
2552
2553
2554  test -n "$AWK" && break
2555done
2556
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2558$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2559set x ${MAKE-make}
2560ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2561if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  cat >conftest.make <<\_ACEOF
2565SHELL = /bin/sh
2566all:
2567	@echo '@@@%%%=$(MAKE)=@@@%%%'
2568_ACEOF
2569# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2570case `${MAKE-make} -f conftest.make 2>/dev/null` in
2571  *@@@%%%=?*=@@@%%%*)
2572    eval ac_cv_prog_make_${ac_make}_set=yes;;
2573  *)
2574    eval ac_cv_prog_make_${ac_make}_set=no;;
2575esac
2576rm -f conftest.make
2577fi
2578if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580$as_echo "yes" >&6; }
2581  SET_MAKE=
2582else
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584$as_echo "no" >&6; }
2585  SET_MAKE="MAKE=${MAKE-make}"
2586fi
2587
2588rm -rf .tst 2>/dev/null
2589mkdir .tst 2>/dev/null
2590if test -d .tst; then
2591  am__leading_dot=.
2592else
2593  am__leading_dot=_
2594fi
2595rmdir .tst 2>/dev/null
2596
2597if test "`cd $srcdir && pwd`" != "`pwd`"; then
2598  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2599  # is not polluted with repeated "-I."
2600  am__isrc=' -I$(srcdir)'
2601  # test to see if srcdir already configured
2602  if test -f $srcdir/config.status; then
2603    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2604  fi
2605fi
2606
2607# test whether we have cygpath
2608if test -z "$CYGPATH_W"; then
2609  if (cygpath --version) >/dev/null 2>/dev/null; then
2610    CYGPATH_W='cygpath -w'
2611  else
2612    CYGPATH_W=echo
2613  fi
2614fi
2615
2616
2617# Define the identity of the package.
2618 PACKAGE='x11perf'
2619 VERSION='1.5.3'
2620
2621
2622cat >>confdefs.h <<_ACEOF
2623#define PACKAGE "$PACKAGE"
2624_ACEOF
2625
2626
2627cat >>confdefs.h <<_ACEOF
2628#define VERSION "$VERSION"
2629_ACEOF
2630
2631# Some tools Automake needs.
2632
2633ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2634
2635
2636AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2637
2638
2639AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2640
2641
2642AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2643
2644
2645MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2646
2647# We need awk for the "check" target.  The system "awk" is bad on
2648# some platforms.
2649# Always define AMTAR for backward compatibility.
2650
2651AMTAR=${AMTAR-"${am_missing_run}tar"}
2652
2653am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2654
2655
2656
2657
2658
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2661$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2662    # Check whether --enable-maintainer-mode was given.
2663if test "${enable_maintainer_mode+set}" = set; then :
2664  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2665else
2666  USE_MAINTAINER_MODE=no
2667fi
2668
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2670$as_echo "$USE_MAINTAINER_MODE" >&6; }
2671   if test $USE_MAINTAINER_MODE = yes; then
2672  MAINTAINER_MODE_TRUE=
2673  MAINTAINER_MODE_FALSE='#'
2674else
2675  MAINTAINER_MODE_TRUE='#'
2676  MAINTAINER_MODE_FALSE=
2677fi
2678
2679  MAINT=$MAINTAINER_MODE_TRUE
2680
2681
2682
2683# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695DEPDIR="${am__leading_dot}deps"
2696
2697ac_config_commands="$ac_config_commands depfiles"
2698
2699
2700am_make=${MAKE-make}
2701cat > confinc << 'END'
2702am__doit:
2703	@echo this is the am__doit target
2704.PHONY: am__doit
2705END
2706# If we don't find an include directive, just comment out the code.
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2708$as_echo_n "checking for style of include used by $am_make... " >&6; }
2709am__include="#"
2710am__quote=
2711_am_result=none
2712# First try GNU make style include.
2713echo "include confinc" > confmf
2714# Ignore all kinds of additional output from `make'.
2715case `$am_make -s -f confmf 2> /dev/null` in #(
2716*the\ am__doit\ target*)
2717  am__include=include
2718  am__quote=
2719  _am_result=GNU
2720  ;;
2721esac
2722# Now try BSD make style include.
2723if test "$am__include" = "#"; then
2724   echo '.include "confinc"' > confmf
2725   case `$am_make -s -f confmf 2> /dev/null` in #(
2726   *the\ am__doit\ target*)
2727     am__include=.include
2728     am__quote="\""
2729     _am_result=BSD
2730     ;;
2731   esac
2732fi
2733
2734
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2736$as_echo "$_am_result" >&6; }
2737rm -f confinc confmf
2738
2739# Check whether --enable-dependency-tracking was given.
2740if test "${enable_dependency_tracking+set}" = set; then :
2741  enableval=$enable_dependency_tracking;
2742fi
2743
2744if test "x$enable_dependency_tracking" != xno; then
2745  am_depcomp="$ac_aux_dir/depcomp"
2746  AMDEPBACKSLASH='\'
2747fi
2748 if test "x$enable_dependency_tracking" != xno; then
2749  AMDEP_TRUE=
2750  AMDEP_FALSE='#'
2751else
2752  AMDEP_TRUE='#'
2753  AMDEP_FALSE=
2754fi
2755
2756
2757ac_ext=c
2758ac_cpp='$CPP $CPPFLAGS'
2759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762if test -n "$ac_tool_prefix"; then
2763  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2764set dummy ${ac_tool_prefix}gcc; ac_word=$2
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766$as_echo_n "checking for $ac_word... " >&6; }
2767if ${ac_cv_prog_CC+:} false; then :
2768  $as_echo_n "(cached) " >&6
2769else
2770  if test -n "$CC"; then
2771  ac_cv_prog_CC="$CC" # Let the user override the test.
2772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776  IFS=$as_save_IFS
2777  test -z "$as_dir" && as_dir=.
2778    for ac_exec_ext in '' $ac_executable_extensions; do
2779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782    break 2
2783  fi
2784done
2785  done
2786IFS=$as_save_IFS
2787
2788fi
2789fi
2790CC=$ac_cv_prog_CC
2791if test -n "$CC"; then
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793$as_echo "$CC" >&6; }
2794else
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796$as_echo "no" >&6; }
2797fi
2798
2799
2800fi
2801if test -z "$ac_cv_prog_CC"; then
2802  ac_ct_CC=$CC
2803  # Extract the first word of "gcc", so it can be a program name with args.
2804set dummy gcc; ac_word=$2
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806$as_echo_n "checking for $ac_word... " >&6; }
2807if ${ac_cv_prog_ac_ct_CC+:} false; then :
2808  $as_echo_n "(cached) " >&6
2809else
2810  if test -n "$ac_ct_CC"; then
2811  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816  IFS=$as_save_IFS
2817  test -z "$as_dir" && as_dir=.
2818    for ac_exec_ext in '' $ac_executable_extensions; do
2819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820    ac_cv_prog_ac_ct_CC="gcc"
2821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822    break 2
2823  fi
2824done
2825  done
2826IFS=$as_save_IFS
2827
2828fi
2829fi
2830ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831if test -n "$ac_ct_CC"; then
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2833$as_echo "$ac_ct_CC" >&6; }
2834else
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836$as_echo "no" >&6; }
2837fi
2838
2839  if test "x$ac_ct_CC" = x; then
2840    CC=""
2841  else
2842    case $cross_compiling:$ac_tool_warned in
2843yes:)
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846ac_tool_warned=yes ;;
2847esac
2848    CC=$ac_ct_CC
2849  fi
2850else
2851  CC="$ac_cv_prog_CC"
2852fi
2853
2854if test -z "$CC"; then
2855          if test -n "$ac_tool_prefix"; then
2856    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2857set dummy ${ac_tool_prefix}cc; ac_word=$2
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859$as_echo_n "checking for $ac_word... " >&6; }
2860if ${ac_cv_prog_CC+:} false; then :
2861  $as_echo_n "(cached) " >&6
2862else
2863  if test -n "$CC"; then
2864  ac_cv_prog_CC="$CC" # Let the user override the test.
2865else
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869  IFS=$as_save_IFS
2870  test -z "$as_dir" && as_dir=.
2871    for ac_exec_ext in '' $ac_executable_extensions; do
2872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873    ac_cv_prog_CC="${ac_tool_prefix}cc"
2874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875    break 2
2876  fi
2877done
2878  done
2879IFS=$as_save_IFS
2880
2881fi
2882fi
2883CC=$ac_cv_prog_CC
2884if test -n "$CC"; then
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886$as_echo "$CC" >&6; }
2887else
2888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889$as_echo "no" >&6; }
2890fi
2891
2892
2893  fi
2894fi
2895if test -z "$CC"; then
2896  # Extract the first word of "cc", so it can be a program name with args.
2897set dummy cc; ac_word=$2
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899$as_echo_n "checking for $ac_word... " >&6; }
2900if ${ac_cv_prog_CC+:} false; then :
2901  $as_echo_n "(cached) " >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906  ac_prog_rejected=no
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910  IFS=$as_save_IFS
2911  test -z "$as_dir" && as_dir=.
2912    for ac_exec_ext in '' $ac_executable_extensions; do
2913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2915       ac_prog_rejected=yes
2916       continue
2917     fi
2918    ac_cv_prog_CC="cc"
2919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920    break 2
2921  fi
2922done
2923  done
2924IFS=$as_save_IFS
2925
2926if test $ac_prog_rejected = yes; then
2927  # We found a bogon in the path, so make sure we never use it.
2928  set dummy $ac_cv_prog_CC
2929  shift
2930  if test $# != 0; then
2931    # We chose a different compiler from the bogus one.
2932    # However, it has the same basename, so the bogon will be chosen
2933    # first if we set CC to just the basename; use the full file name.
2934    shift
2935    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2936  fi
2937fi
2938fi
2939fi
2940CC=$ac_cv_prog_CC
2941if test -n "$CC"; then
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943$as_echo "$CC" >&6; }
2944else
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949
2950fi
2951if test -z "$CC"; then
2952  if test -n "$ac_tool_prefix"; then
2953  for ac_prog in cl.exe
2954  do
2955    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
2959if ${ac_cv_prog_CC+:} false; then :
2960  $as_echo_n "(cached) " >&6
2961else
2962  if test -n "$CC"; then
2963  ac_cv_prog_CC="$CC" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968  IFS=$as_save_IFS
2969  test -z "$as_dir" && as_dir=.
2970    for ac_exec_ext in '' $ac_executable_extensions; do
2971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974    break 2
2975  fi
2976done
2977  done
2978IFS=$as_save_IFS
2979
2980fi
2981fi
2982CC=$ac_cv_prog_CC
2983if test -n "$CC"; then
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985$as_echo "$CC" >&6; }
2986else
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
2989fi
2990
2991
2992    test -n "$CC" && break
2993  done
2994fi
2995if test -z "$CC"; then
2996  ac_ct_CC=$CC
2997  for ac_prog in cl.exe
2998do
2999  # Extract the first word of "$ac_prog", so it can be a program name with args.
3000set dummy $ac_prog; ac_word=$2
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002$as_echo_n "checking for $ac_word... " >&6; }
3003if ${ac_cv_prog_ac_ct_CC+:} false; then :
3004  $as_echo_n "(cached) " >&6
3005else
3006  if test -n "$ac_ct_CC"; then
3007  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008else
3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012  IFS=$as_save_IFS
3013  test -z "$as_dir" && as_dir=.
3014    for ac_exec_ext in '' $ac_executable_extensions; do
3015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016    ac_cv_prog_ac_ct_CC="$ac_prog"
3017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018    break 2
3019  fi
3020done
3021  done
3022IFS=$as_save_IFS
3023
3024fi
3025fi
3026ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027if test -n "$ac_ct_CC"; then
3028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3029$as_echo "$ac_ct_CC" >&6; }
3030else
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032$as_echo "no" >&6; }
3033fi
3034
3035
3036  test -n "$ac_ct_CC" && break
3037done
3038
3039  if test "x$ac_ct_CC" = x; then
3040    CC=""
3041  else
3042    case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048    CC=$ac_ct_CC
3049  fi
3050fi
3051
3052fi
3053
3054
3055test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057as_fn_error $? "no acceptable C compiler found in \$PATH
3058See \`config.log' for more details" "$LINENO" 5; }
3059
3060# Provide some information about the compiler.
3061$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3062set X $ac_compile
3063ac_compiler=$2
3064for ac_option in --version -v -V -qversion; do
3065  { { ac_try="$ac_compiler $ac_option >&5"
3066case "(($ac_try" in
3067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068  *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071$as_echo "$ac_try_echo"; } >&5
3072  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3073  ac_status=$?
3074  if test -s conftest.err; then
3075    sed '10a\
3076... rest of stderr output deleted ...
3077         10q' conftest.err >conftest.er1
3078    cat conftest.er1 >&5
3079  fi
3080  rm -f conftest.er1 conftest.err
3081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082  test $ac_status = 0; }
3083done
3084
3085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086/* end confdefs.h.  */
3087
3088int
3089main ()
3090{
3091
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096ac_clean_files_save=$ac_clean_files
3097ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3098# Try to create an executable without -o first, disregard a.out.
3099# It will help us diagnose broken compilers, and finding out an intuition
3100# of exeext.
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102$as_echo_n "checking whether the C compiler works... " >&6; }
3103ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3104
3105# The possible output files:
3106ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3107
3108ac_rmfiles=
3109for ac_file in $ac_files
3110do
3111  case $ac_file in
3112    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114  esac
3115done
3116rm -f $ac_rmfiles
3117
3118if { { ac_try="$ac_link_default"
3119case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124$as_echo "$ac_try_echo"; } >&5
3125  (eval "$ac_link_default") 2>&5
3126  ac_status=$?
3127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128  test $ac_status = 0; }; then :
3129  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3130# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3131# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3132# so that the user can short-circuit this test for compilers unknown to
3133# Autoconf.
3134for ac_file in $ac_files ''
3135do
3136  test -f "$ac_file" || continue
3137  case $ac_file in
3138    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3139	;;
3140    [ab].out )
3141	# We found the default executable, but exeext='' is most
3142	# certainly right.
3143	break;;
3144    *.* )
3145	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146	then :; else
3147	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148	fi
3149	# We set ac_cv_exeext here because the later test for it is not
3150	# safe: cross compilers may not add the suffix if given an `-o'
3151	# argument, so we may need to know it at that point already.
3152	# Even if this section looks crufty: it has the advantage of
3153	# actually working.
3154	break;;
3155    * )
3156	break;;
3157  esac
3158done
3159test "$ac_cv_exeext" = no && ac_cv_exeext=
3160
3161else
3162  ac_file=''
3163fi
3164if test -z "$ac_file"; then :
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167$as_echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172as_fn_error 77 "C compiler cannot create executables
3173See \`config.log' for more details" "$LINENO" 5; }
3174else
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176$as_echo "yes" >&6; }
3177fi
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3179$as_echo_n "checking for C compiler default output file name... " >&6; }
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3181$as_echo "$ac_file" >&6; }
3182ac_exeext=$ac_cv_exeext
3183
3184rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3185ac_clean_files=$ac_clean_files_save
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3187$as_echo_n "checking for suffix of executables... " >&6; }
3188if { { ac_try="$ac_link"
3189case "(($ac_try" in
3190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191  *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194$as_echo "$ac_try_echo"; } >&5
3195  (eval "$ac_link") 2>&5
3196  ac_status=$?
3197  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198  test $ac_status = 0; }; then :
3199  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3200# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3201# work properly (i.e., refer to `conftest.exe'), while it won't with
3202# `rm'.
3203for ac_file in conftest.exe conftest conftest.*; do
3204  test -f "$ac_file" || continue
3205  case $ac_file in
3206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208	  break;;
3209    * ) break;;
3210  esac
3211done
3212else
3213  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3216See \`config.log' for more details" "$LINENO" 5; }
3217fi
3218rm -f conftest conftest$ac_cv_exeext
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3220$as_echo "$ac_cv_exeext" >&6; }
3221
3222rm -f conftest.$ac_ext
3223EXEEXT=$ac_cv_exeext
3224ac_exeext=$EXEEXT
3225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227#include <stdio.h>
3228int
3229main ()
3230{
3231FILE *f = fopen ("conftest.out", "w");
3232 return ferror (f) || fclose (f) != 0;
3233
3234  ;
3235  return 0;
3236}
3237_ACEOF
3238ac_clean_files="$ac_clean_files conftest.out"
3239# Check that the compiler produces executables we can run.  If not, either
3240# the compiler is broken, or we cross compile.
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3242$as_echo_n "checking whether we are cross compiling... " >&6; }
3243if test "$cross_compiling" != yes; then
3244  { { ac_try="$ac_link"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250$as_echo "$ac_try_echo"; } >&5
3251  (eval "$ac_link") 2>&5
3252  ac_status=$?
3253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254  test $ac_status = 0; }
3255  if { ac_try='./conftest$ac_cv_exeext'
3256  { { case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261$as_echo "$ac_try_echo"; } >&5
3262  (eval "$ac_try") 2>&5
3263  ac_status=$?
3264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265  test $ac_status = 0; }; }; then
3266    cross_compiling=no
3267  else
3268    if test "$cross_compiling" = maybe; then
3269	cross_compiling=yes
3270    else
3271	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273as_fn_error $? "cannot run C compiled programs.
3274If you meant to cross compile, use \`--host'.
3275See \`config.log' for more details" "$LINENO" 5; }
3276    fi
3277  fi
3278fi
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3280$as_echo "$cross_compiling" >&6; }
3281
3282rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3283ac_clean_files=$ac_clean_files_save
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3285$as_echo_n "checking for suffix of object files... " >&6; }
3286if ${ac_cv_objext+:} false; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h.  */
3291
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300rm -f conftest.o conftest.obj
3301if { { ac_try="$ac_compile"
3302case "(($ac_try" in
3303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304  *) ac_try_echo=$ac_try;;
3305esac
3306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307$as_echo "$ac_try_echo"; } >&5
3308  (eval "$ac_compile") 2>&5
3309  ac_status=$?
3310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311  test $ac_status = 0; }; then :
3312  for ac_file in conftest.o conftest.obj conftest.*; do
3313  test -f "$ac_file" || continue;
3314  case $ac_file in
3315    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3316    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3317       break;;
3318  esac
3319done
3320else
3321  $as_echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326as_fn_error $? "cannot compute suffix of object files: cannot compile
3327See \`config.log' for more details" "$LINENO" 5; }
3328fi
3329rm -f conftest.$ac_cv_objext conftest.$ac_ext
3330fi
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3332$as_echo "$ac_cv_objext" >&6; }
3333OBJEXT=$ac_cv_objext
3334ac_objext=$OBJEXT
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3336$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3337if ${ac_cv_c_compiler_gnu+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h.  */
3342
3343int
3344main ()
3345{
3346#ifndef __GNUC__
3347       choke me
3348#endif
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354if ac_fn_c_try_compile "$LINENO"; then :
3355  ac_compiler_gnu=yes
3356else
3357  ac_compiler_gnu=no
3358fi
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360ac_cv_c_compiler_gnu=$ac_compiler_gnu
3361
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3364$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3365if test $ac_compiler_gnu = yes; then
3366  GCC=yes
3367else
3368  GCC=
3369fi
3370ac_test_CFLAGS=${CFLAGS+set}
3371ac_save_CFLAGS=$CFLAGS
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3373$as_echo_n "checking whether $CC accepts -g... " >&6; }
3374if ${ac_cv_prog_cc_g+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  ac_save_c_werror_flag=$ac_c_werror_flag
3378   ac_c_werror_flag=yes
3379   ac_cv_prog_cc_g=no
3380   CFLAGS="-g"
3381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392if ac_fn_c_try_compile "$LINENO"; then :
3393  ac_cv_prog_cc_g=yes
3394else
3395  CFLAGS=""
3396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h.  */
3398
3399int
3400main ()
3401{
3402
3403  ;
3404  return 0;
3405}
3406_ACEOF
3407if ac_fn_c_try_compile "$LINENO"; then :
3408
3409else
3410  ac_c_werror_flag=$ac_save_c_werror_flag
3411	 CFLAGS="-g"
3412	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h.  */
3414
3415int
3416main ()
3417{
3418
3419  ;
3420  return 0;
3421}
3422_ACEOF
3423if ac_fn_c_try_compile "$LINENO"; then :
3424  ac_cv_prog_cc_g=yes
3425fi
3426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427fi
3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429fi
3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431   ac_c_werror_flag=$ac_save_c_werror_flag
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3434$as_echo "$ac_cv_prog_cc_g" >&6; }
3435if test "$ac_test_CFLAGS" = set; then
3436  CFLAGS=$ac_save_CFLAGS
3437elif test $ac_cv_prog_cc_g = yes; then
3438  if test "$GCC" = yes; then
3439    CFLAGS="-g -O2"
3440  else
3441    CFLAGS="-g"
3442  fi
3443else
3444  if test "$GCC" = yes; then
3445    CFLAGS="-O2"
3446  else
3447    CFLAGS=
3448  fi
3449fi
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3451$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3452if ${ac_cv_prog_cc_c89+:} false; then :
3453  $as_echo_n "(cached) " >&6
3454else
3455  ac_cv_prog_cc_c89=no
3456ac_save_CC=$CC
3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458/* end confdefs.h.  */
3459#include <stdarg.h>
3460#include <stdio.h>
3461#include <sys/types.h>
3462#include <sys/stat.h>
3463/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3464struct buf { int x; };
3465FILE * (*rcsopen) (struct buf *, struct stat *, int);
3466static char *e (p, i)
3467     char **p;
3468     int i;
3469{
3470  return p[i];
3471}
3472static char *f (char * (*g) (char **, int), char **p, ...)
3473{
3474  char *s;
3475  va_list v;
3476  va_start (v,p);
3477  s = g (p, va_arg (v,int));
3478  va_end (v);
3479  return s;
3480}
3481
3482/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3483   function prototypes and stuff, but not '\xHH' hex character constants.
3484   These don't provoke an error unfortunately, instead are silently treated
3485   as 'x'.  The following induces an error, until -std is added to get
3486   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3487   array size at least.  It's necessary to write '\x00'==0 to get something
3488   that's true only with -std.  */
3489int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490
3491/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3492   inside strings and character constants.  */
3493#define FOO(x) 'x'
3494int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3495
3496int test (int i, double x);
3497struct s1 {int (*f) (int a);};
3498struct s2 {int (*f) (double a);};
3499int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3500int argc;
3501char **argv;
3502int
3503main ()
3504{
3505return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3506  ;
3507  return 0;
3508}
3509_ACEOF
3510for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3511	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512do
3513  CC="$ac_save_CC $ac_arg"
3514  if ac_fn_c_try_compile "$LINENO"; then :
3515  ac_cv_prog_cc_c89=$ac_arg
3516fi
3517rm -f core conftest.err conftest.$ac_objext
3518  test "x$ac_cv_prog_cc_c89" != "xno" && break
3519done
3520rm -f conftest.$ac_ext
3521CC=$ac_save_CC
3522
3523fi
3524# AC_CACHE_VAL
3525case "x$ac_cv_prog_cc_c89" in
3526  x)
3527    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3528$as_echo "none needed" >&6; } ;;
3529  xno)
3530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3531$as_echo "unsupported" >&6; } ;;
3532  *)
3533    CC="$CC $ac_cv_prog_cc_c89"
3534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3535$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3536esac
3537if test "x$ac_cv_prog_cc_c89" != xno; then :
3538
3539fi
3540
3541ac_ext=c
3542ac_cpp='$CPP $CPPFLAGS'
3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546
3547depcc="$CC"   am_compiler_list=
3548
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3550$as_echo_n "checking dependency style of $depcc... " >&6; }
3551if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3552  $as_echo_n "(cached) " >&6
3553else
3554  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3555  # We make a subdir and do the tests there.  Otherwise we can end up
3556  # making bogus files that we don't know about and never remove.  For
3557  # instance it was reported that on HP-UX the gcc test will end up
3558  # making a dummy file named `D' -- because `-MD' means `put the output
3559  # in D'.
3560  mkdir conftest.dir
3561  # Copy depcomp to subdir because otherwise we won't find it if we're
3562  # using a relative directory.
3563  cp "$am_depcomp" conftest.dir
3564  cd conftest.dir
3565  # We will build objects and dependencies in a subdirectory because
3566  # it helps to detect inapplicable dependency modes.  For instance
3567  # both Tru64's cc and ICC support -MD to output dependencies as a
3568  # side effect of compilation, but ICC will put the dependencies in
3569  # the current directory while Tru64 will put them in the object
3570  # directory.
3571  mkdir sub
3572
3573  am_cv_CC_dependencies_compiler_type=none
3574  if test "$am_compiler_list" = ""; then
3575     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576  fi
3577  am__universal=false
3578  case " $depcc " in #(
3579     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3580     esac
3581
3582  for depmode in $am_compiler_list; do
3583    # Setup a source with many dependencies, because some compilers
3584    # like to wrap large dependency lists on column 80 (with \), and
3585    # we should not choose a depcomp mode which is confused by this.
3586    #
3587    # We need to recreate these files for each test, as the compiler may
3588    # overwrite some of them when testing with obscure command lines.
3589    # This happens at least with the AIX C compiler.
3590    : > sub/conftest.c
3591    for i in 1 2 3 4 5 6; do
3592      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594      # Solaris 8's {/usr,}/bin/sh.
3595      touch sub/conftst$i.h
3596    done
3597    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
3599    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600    # mode.  It turns out that the SunPro C++ compiler does not properly
3601    # handle `-M -o', and we need to detect this.  Also, some Intel
3602    # versions had trouble with output in subdirs
3603    am__obj=sub/conftest.${OBJEXT-o}
3604    am__minus_obj="-o $am__obj"
3605    case $depmode in
3606    gcc)
3607      # This depmode causes a compiler race in universal mode.
3608      test "$am__universal" = false || continue
3609      ;;
3610    nosideeffect)
3611      # after this tag, mechanisms are not by side-effect, so they'll
3612      # only be used when explicitly requested
3613      if test "x$enable_dependency_tracking" = xyes; then
3614	continue
3615      else
3616	break
3617      fi
3618      ;;
3619    msvisualcpp | msvcmsys)
3620      # This compiler won't grok `-c -o', but also, the minuso test has
3621      # not run yet.  These depmodes are late enough in the game, and
3622      # so weak that their functioning should not be impacted.
3623      am__obj=conftest.${OBJEXT-o}
3624      am__minus_obj=
3625      ;;
3626    none) break ;;
3627    esac
3628    if depmode=$depmode \
3629       source=sub/conftest.c object=$am__obj \
3630       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3632         >/dev/null 2>conftest.err &&
3633       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3634       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3635       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3636       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3637      # icc doesn't choke on unknown options, it will just issue warnings
3638      # or remarks (even with -Werror).  So we grep stderr for any message
3639      # that says an option was ignored or not supported.
3640      # When given -MP, icc 7.0 and 7.1 complain thusly:
3641      #   icc: Command line warning: ignoring option '-M'; no argument required
3642      # The diagnosis changed in icc 8.0:
3643      #   icc: Command line remark: option '-MP' not supported
3644      if (grep 'ignoring option' conftest.err ||
3645          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3646        am_cv_CC_dependencies_compiler_type=$depmode
3647        break
3648      fi
3649    fi
3650  done
3651
3652  cd ..
3653  rm -rf conftest.dir
3654else
3655  am_cv_CC_dependencies_compiler_type=none
3656fi
3657
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3660$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3661CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3662
3663 if
3664  test "x$enable_dependency_tracking" != xno \
3665  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3666  am__fastdepCC_TRUE=
3667  am__fastdepCC_FALSE='#'
3668else
3669  am__fastdepCC_TRUE='#'
3670  am__fastdepCC_FALSE=
3671fi
3672
3673
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3675$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3676if ${ac_cv_prog_cc_c99+:} false; then :
3677  $as_echo_n "(cached) " >&6
3678else
3679  ac_cv_prog_cc_c99=no
3680ac_save_CC=$CC
3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h.  */
3683#include <stdarg.h>
3684#include <stdbool.h>
3685#include <stdlib.h>
3686#include <wchar.h>
3687#include <stdio.h>
3688
3689// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3690#define debug(...) fprintf (stderr, __VA_ARGS__)
3691#define showlist(...) puts (#__VA_ARGS__)
3692#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3693static void
3694test_varargs_macros (void)
3695{
3696  int x = 1234;
3697  int y = 5678;
3698  debug ("Flag");
3699  debug ("X = %d\n", x);
3700  showlist (The first, second, and third items.);
3701  report (x>y, "x is %d but y is %d", x, y);
3702}
3703
3704// Check long long types.
3705#define BIG64 18446744073709551615ull
3706#define BIG32 4294967295ul
3707#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3708#if !BIG_OK
3709  your preprocessor is broken;
3710#endif
3711#if BIG_OK
3712#else
3713  your preprocessor is broken;
3714#endif
3715static long long int bignum = -9223372036854775807LL;
3716static unsigned long long int ubignum = BIG64;
3717
3718struct incomplete_array
3719{
3720  int datasize;
3721  double data[];
3722};
3723
3724struct named_init {
3725  int number;
3726  const wchar_t *name;
3727  double average;
3728};
3729
3730typedef const char *ccp;
3731
3732static inline int
3733test_restrict (ccp restrict text)
3734{
3735  // See if C++-style comments work.
3736  // Iterate through items via the restricted pointer.
3737  // Also check for declarations in for loops.
3738  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3739    continue;
3740  return 0;
3741}
3742
3743// Check varargs and va_copy.
3744static void
3745test_varargs (const char *format, ...)
3746{
3747  va_list args;
3748  va_start (args, format);
3749  va_list args_copy;
3750  va_copy (args_copy, args);
3751
3752  const char *str;
3753  int number;
3754  float fnumber;
3755
3756  while (*format)
3757    {
3758      switch (*format++)
3759	{
3760	case 's': // string
3761	  str = va_arg (args_copy, const char *);
3762	  break;
3763	case 'd': // int
3764	  number = va_arg (args_copy, int);
3765	  break;
3766	case 'f': // float
3767	  fnumber = va_arg (args_copy, double);
3768	  break;
3769	default:
3770	  break;
3771	}
3772    }
3773  va_end (args_copy);
3774  va_end (args);
3775}
3776
3777int
3778main ()
3779{
3780
3781  // Check bool.
3782  _Bool success = false;
3783
3784  // Check restrict.
3785  if (test_restrict ("String literal") == 0)
3786    success = true;
3787  char *restrict newvar = "Another string";
3788
3789  // Check varargs.
3790  test_varargs ("s, d' f .", "string", 65, 34.234);
3791  test_varargs_macros ();
3792
3793  // Check flexible array members.
3794  struct incomplete_array *ia =
3795    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3796  ia->datasize = 10;
3797  for (int i = 0; i < ia->datasize; ++i)
3798    ia->data[i] = i * 1.234;
3799
3800  // Check named initializers.
3801  struct named_init ni = {
3802    .number = 34,
3803    .name = L"Test wide string",
3804    .average = 543.34343,
3805  };
3806
3807  ni.number = 58;
3808
3809  int dynamic_array[ni.number];
3810  dynamic_array[ni.number - 1] = 543;
3811
3812  // work around unused variable warnings
3813  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3814	  || dynamic_array[ni.number - 1] != 543);
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3821do
3822  CC="$ac_save_CC $ac_arg"
3823  if ac_fn_c_try_compile "$LINENO"; then :
3824  ac_cv_prog_cc_c99=$ac_arg
3825fi
3826rm -f core conftest.err conftest.$ac_objext
3827  test "x$ac_cv_prog_cc_c99" != "xno" && break
3828done
3829rm -f conftest.$ac_ext
3830CC=$ac_save_CC
3831
3832fi
3833# AC_CACHE_VAL
3834case "x$ac_cv_prog_cc_c99" in
3835  x)
3836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3837$as_echo "none needed" >&6; } ;;
3838  xno)
3839    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3840$as_echo "unsupported" >&6; } ;;
3841  *)
3842    CC="$CC $ac_cv_prog_cc_c99"
3843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3844$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3845esac
3846if test "x$ac_cv_prog_cc_c99" != xno; then :
3847
3848fi
3849
3850
3851
3852ac_ext=c
3853ac_cpp='$CPP $CPPFLAGS'
3854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3858$as_echo_n "checking how to run the C preprocessor... " >&6; }
3859# On Suns, sometimes $CPP names a directory.
3860if test -n "$CPP" && test -d "$CPP"; then
3861  CPP=
3862fi
3863if test -z "$CPP"; then
3864  if ${ac_cv_prog_CPP+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867      # Double quotes because CPP needs to be expanded
3868    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3869    do
3870      ac_preproc_ok=false
3871for ac_c_preproc_warn_flag in '' yes
3872do
3873  # Use a header file that comes with gcc, so configuring glibc
3874  # with a fresh cross-compiler works.
3875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3876  # <limits.h> exists even on freestanding compilers.
3877  # On the NeXT, cc -E runs the code through the compiler's parser,
3878  # not just through cpp. "Syntax error" is here to catch this case.
3879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881#ifdef __STDC__
3882# include <limits.h>
3883#else
3884# include <assert.h>
3885#endif
3886		     Syntax error
3887_ACEOF
3888if ac_fn_c_try_cpp "$LINENO"; then :
3889
3890else
3891  # Broken: fails on valid input.
3892continue
3893fi
3894rm -f conftest.err conftest.i conftest.$ac_ext
3895
3896  # OK, works on sane cases.  Now check whether nonexistent headers
3897  # can be detected and how.
3898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h.  */
3900#include <ac_nonexistent.h>
3901_ACEOF
3902if ac_fn_c_try_cpp "$LINENO"; then :
3903  # Broken: success on invalid input.
3904continue
3905else
3906  # Passes both tests.
3907ac_preproc_ok=:
3908break
3909fi
3910rm -f conftest.err conftest.i conftest.$ac_ext
3911
3912done
3913# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3914rm -f conftest.i conftest.err conftest.$ac_ext
3915if $ac_preproc_ok; then :
3916  break
3917fi
3918
3919    done
3920    ac_cv_prog_CPP=$CPP
3921
3922fi
3923  CPP=$ac_cv_prog_CPP
3924else
3925  ac_cv_prog_CPP=$CPP
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3928$as_echo "$CPP" >&6; }
3929ac_preproc_ok=false
3930for ac_c_preproc_warn_flag in '' yes
3931do
3932  # Use a header file that comes with gcc, so configuring glibc
3933  # with a fresh cross-compiler works.
3934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3935  # <limits.h> exists even on freestanding compilers.
3936  # On the NeXT, cc -E runs the code through the compiler's parser,
3937  # not just through cpp. "Syntax error" is here to catch this case.
3938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939/* end confdefs.h.  */
3940#ifdef __STDC__
3941# include <limits.h>
3942#else
3943# include <assert.h>
3944#endif
3945		     Syntax error
3946_ACEOF
3947if ac_fn_c_try_cpp "$LINENO"; then :
3948
3949else
3950  # Broken: fails on valid input.
3951continue
3952fi
3953rm -f conftest.err conftest.i conftest.$ac_ext
3954
3955  # OK, works on sane cases.  Now check whether nonexistent headers
3956  # can be detected and how.
3957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959#include <ac_nonexistent.h>
3960_ACEOF
3961if ac_fn_c_try_cpp "$LINENO"; then :
3962  # Broken: success on invalid input.
3963continue
3964else
3965  # Passes both tests.
3966ac_preproc_ok=:
3967break
3968fi
3969rm -f conftest.err conftest.i conftest.$ac_ext
3970
3971done
3972# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3973rm -f conftest.i conftest.err conftest.$ac_ext
3974if $ac_preproc_ok; then :
3975
3976else
3977  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3980See \`config.log' for more details" "$LINENO" 5; }
3981fi
3982
3983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
3989
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3991$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3992if ${ac_cv_path_GREP+:} false; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  if test -z "$GREP"; then
3996  ac_path_GREP_found=false
3997  # Loop through the user's path and test for each of PROGNAME-LIST
3998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003    for ac_prog in grep ggrep; do
4004    for ac_exec_ext in '' $ac_executable_extensions; do
4005      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4006      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4007# Check for GNU ac_path_GREP and select it if it is found.
4008  # Check for GNU $ac_path_GREP
4009case `"$ac_path_GREP" --version 2>&1` in
4010*GNU*)
4011  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012*)
4013  ac_count=0
4014  $as_echo_n 0123456789 >"conftest.in"
4015  while :
4016  do
4017    cat "conftest.in" "conftest.in" >"conftest.tmp"
4018    mv "conftest.tmp" "conftest.in"
4019    cp "conftest.in" "conftest.nl"
4020    $as_echo 'GREP' >> "conftest.nl"
4021    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023    as_fn_arith $ac_count + 1 && ac_count=$as_val
4024    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4025      # Best one so far, save it but keep looking for a better one
4026      ac_cv_path_GREP="$ac_path_GREP"
4027      ac_path_GREP_max=$ac_count
4028    fi
4029    # 10*(2^10) chars as input seems more than enough
4030    test $ac_count -gt 10 && break
4031  done
4032  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033esac
4034
4035      $ac_path_GREP_found && break 3
4036    done
4037  done
4038  done
4039IFS=$as_save_IFS
4040  if test -z "$ac_cv_path_GREP"; then
4041    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4042  fi
4043else
4044  ac_cv_path_GREP=$GREP
4045fi
4046
4047fi
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4049$as_echo "$ac_cv_path_GREP" >&6; }
4050 GREP="$ac_cv_path_GREP"
4051
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4054$as_echo_n "checking for egrep... " >&6; }
4055if ${ac_cv_path_EGREP+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4059   then ac_cv_path_EGREP="$GREP -E"
4060   else
4061     if test -z "$EGREP"; then
4062  ac_path_EGREP_found=false
4063  # Loop through the user's path and test for each of PROGNAME-LIST
4064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4066do
4067  IFS=$as_save_IFS
4068  test -z "$as_dir" && as_dir=.
4069    for ac_prog in egrep; do
4070    for ac_exec_ext in '' $ac_executable_extensions; do
4071      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4072      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4073# Check for GNU ac_path_EGREP and select it if it is found.
4074  # Check for GNU $ac_path_EGREP
4075case `"$ac_path_EGREP" --version 2>&1` in
4076*GNU*)
4077  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4078*)
4079  ac_count=0
4080  $as_echo_n 0123456789 >"conftest.in"
4081  while :
4082  do
4083    cat "conftest.in" "conftest.in" >"conftest.tmp"
4084    mv "conftest.tmp" "conftest.in"
4085    cp "conftest.in" "conftest.nl"
4086    $as_echo 'EGREP' >> "conftest.nl"
4087    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089    as_fn_arith $ac_count + 1 && ac_count=$as_val
4090    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4091      # Best one so far, save it but keep looking for a better one
4092      ac_cv_path_EGREP="$ac_path_EGREP"
4093      ac_path_EGREP_max=$ac_count
4094    fi
4095    # 10*(2^10) chars as input seems more than enough
4096    test $ac_count -gt 10 && break
4097  done
4098  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099esac
4100
4101      $ac_path_EGREP_found && break 3
4102    done
4103  done
4104  done
4105IFS=$as_save_IFS
4106  if test -z "$ac_cv_path_EGREP"; then
4107    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4108  fi
4109else
4110  ac_cv_path_EGREP=$EGREP
4111fi
4112
4113   fi
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4116$as_echo "$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4118
4119
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4121$as_echo_n "checking for ANSI C header files... " >&6; }
4122if ${ac_cv_header_stdc+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127#include <stdlib.h>
4128#include <stdarg.h>
4129#include <string.h>
4130#include <float.h>
4131
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_cv_header_stdc=yes
4142else
4143  ac_cv_header_stdc=no
4144fi
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147if test $ac_cv_header_stdc = yes; then
4148  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#include <string.h>
4152
4153_ACEOF
4154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155  $EGREP "memchr" >/dev/null 2>&1; then :
4156
4157else
4158  ac_cv_header_stdc=no
4159fi
4160rm -f conftest*
4161
4162fi
4163
4164if test $ac_cv_header_stdc = yes; then
4165  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172  $EGREP "free" >/dev/null 2>&1; then :
4173
4174else
4175  ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183  if test "$cross_compiling" = yes; then :
4184  :
4185else
4186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188#include <ctype.h>
4189#include <stdlib.h>
4190#if ((' ' & 0x0FF) == 0x020)
4191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4193#else
4194# define ISLOWER(c) \
4195		   (('a' <= (c) && (c) <= 'i') \
4196		     || ('j' <= (c) && (c) <= 'r') \
4197		     || ('s' <= (c) && (c) <= 'z'))
4198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199#endif
4200
4201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202int
4203main ()
4204{
4205  int i;
4206  for (i = 0; i < 256; i++)
4207    if (XOR (islower (i), ISLOWER (i))
4208	|| toupper (i) != TOUPPER (i))
4209      return 2;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_run "$LINENO"; then :
4214
4215else
4216  ac_cv_header_stdc=no
4217fi
4218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4219  conftest.$ac_objext conftest.beam conftest.$ac_ext
4220fi
4221
4222fi
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4225$as_echo "$ac_cv_header_stdc" >&6; }
4226if test $ac_cv_header_stdc = yes; then
4227
4228$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4229
4230fi
4231
4232# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4234		  inttypes.h stdint.h unistd.h
4235do :
4236  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4237ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4238"
4239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4240  cat >>confdefs.h <<_ACEOF
4241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4242_ACEOF
4243
4244fi
4245
4246done
4247
4248
4249
4250
4251if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4252	if test -n "$ac_tool_prefix"; then
4253  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4254set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256$as_echo_n "checking for $ac_word... " >&6; }
4257if ${ac_cv_path_PKG_CONFIG+:} false; then :
4258  $as_echo_n "(cached) " >&6
4259else
4260  case $PKG_CONFIG in
4261  [\\/]* | ?:[\\/]*)
4262  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4263  ;;
4264  *)
4265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268  IFS=$as_save_IFS
4269  test -z "$as_dir" && as_dir=.
4270    for ac_exec_ext in '' $ac_executable_extensions; do
4271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274    break 2
4275  fi
4276done
4277  done
4278IFS=$as_save_IFS
4279
4280  ;;
4281esac
4282fi
4283PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4284if test -n "$PKG_CONFIG"; then
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4286$as_echo "$PKG_CONFIG" >&6; }
4287else
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290fi
4291
4292
4293fi
4294if test -z "$ac_cv_path_PKG_CONFIG"; then
4295  ac_pt_PKG_CONFIG=$PKG_CONFIG
4296  # Extract the first word of "pkg-config", so it can be a program name with args.
4297set dummy pkg-config; ac_word=$2
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299$as_echo_n "checking for $ac_word... " >&6; }
4300if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4301  $as_echo_n "(cached) " >&6
4302else
4303  case $ac_pt_PKG_CONFIG in
4304  [\\/]* | ?:[\\/]*)
4305  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4306  ;;
4307  *)
4308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH
4310do
4311  IFS=$as_save_IFS
4312  test -z "$as_dir" && as_dir=.
4313    for ac_exec_ext in '' $ac_executable_extensions; do
4314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317    break 2
4318  fi
4319done
4320  done
4321IFS=$as_save_IFS
4322
4323  ;;
4324esac
4325fi
4326ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4327if test -n "$ac_pt_PKG_CONFIG"; then
4328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4329$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4330else
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4333fi
4334
4335  if test "x$ac_pt_PKG_CONFIG" = x; then
4336    PKG_CONFIG=""
4337  else
4338    case $cross_compiling:$ac_tool_warned in
4339yes:)
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342ac_tool_warned=yes ;;
4343esac
4344    PKG_CONFIG=$ac_pt_PKG_CONFIG
4345  fi
4346else
4347  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4348fi
4349
4350fi
4351if test -n "$PKG_CONFIG"; then
4352	_pkg_min_version=0.9.0
4353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4354$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4355	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357$as_echo "yes" >&6; }
4358	else
4359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361		PKG_CONFIG=""
4362	fi
4363
4364fi
4365# Make sure we can run config.sub.
4366$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4367  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4368
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4370$as_echo_n "checking build system type... " >&6; }
4371if ${ac_cv_build+:} false; then :
4372  $as_echo_n "(cached) " >&6
4373else
4374  ac_build_alias=$build_alias
4375test "x$ac_build_alias" = x &&
4376  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4377test "x$ac_build_alias" = x &&
4378  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4379ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4380  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4381
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4384$as_echo "$ac_cv_build" >&6; }
4385case $ac_cv_build in
4386*-*-*) ;;
4387*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4388esac
4389build=$ac_cv_build
4390ac_save_IFS=$IFS; IFS='-'
4391set x $ac_cv_build
4392shift
4393build_cpu=$1
4394build_vendor=$2
4395shift; shift
4396# Remember, the first character of IFS is used to create $*,
4397# except with old shells:
4398build_os=$*
4399IFS=$ac_save_IFS
4400case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4401
4402
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4404$as_echo_n "checking host system type... " >&6; }
4405if ${ac_cv_host+:} false; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if test "x$host_alias" = x; then
4409  ac_cv_host=$ac_cv_build
4410else
4411  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4412    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4413fi
4414
4415fi
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4417$as_echo "$ac_cv_host" >&6; }
4418case $ac_cv_host in
4419*-*-*) ;;
4420*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4421esac
4422host=$ac_cv_host
4423ac_save_IFS=$IFS; IFS='-'
4424set x $ac_cv_host
4425shift
4426host_cpu=$1
4427host_vendor=$2
4428shift; shift
4429# Remember, the first character of IFS is used to create $*,
4430# except with old shells:
4431host_os=$*
4432IFS=$ac_save_IFS
4433case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4434
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4437$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4438if ${ac_cv_path_SED+:} false; then :
4439  $as_echo_n "(cached) " >&6
4440else
4441            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4442     for ac_i in 1 2 3 4 5 6 7; do
4443       ac_script="$ac_script$as_nl$ac_script"
4444     done
4445     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4446     { ac_script=; unset ac_script;}
4447     if test -z "$SED"; then
4448  ac_path_SED_found=false
4449  # Loop through the user's path and test for each of PROGNAME-LIST
4450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455    for ac_prog in sed gsed; do
4456    for ac_exec_ext in '' $ac_executable_extensions; do
4457      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4458      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4459# Check for GNU ac_path_SED and select it if it is found.
4460  # Check for GNU $ac_path_SED
4461case `"$ac_path_SED" --version 2>&1` in
4462*GNU*)
4463  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4464*)
4465  ac_count=0
4466  $as_echo_n 0123456789 >"conftest.in"
4467  while :
4468  do
4469    cat "conftest.in" "conftest.in" >"conftest.tmp"
4470    mv "conftest.tmp" "conftest.in"
4471    cp "conftest.in" "conftest.nl"
4472    $as_echo '' >> "conftest.nl"
4473    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475    as_fn_arith $ac_count + 1 && ac_count=$as_val
4476    if test $ac_count -gt ${ac_path_SED_max-0}; then
4477      # Best one so far, save it but keep looking for a better one
4478      ac_cv_path_SED="$ac_path_SED"
4479      ac_path_SED_max=$ac_count
4480    fi
4481    # 10*(2^10) chars as input seems more than enough
4482    test $ac_count -gt 10 && break
4483  done
4484  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485esac
4486
4487      $ac_path_SED_found && break 3
4488    done
4489  done
4490  done
4491IFS=$as_save_IFS
4492  if test -z "$ac_cv_path_SED"; then
4493    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4494  fi
4495else
4496  ac_cv_path_SED=$SED
4497fi
4498
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4501$as_echo "$ac_cv_path_SED" >&6; }
4502 SED="$ac_cv_path_SED"
4503  rm -f conftest.sed
4504
4505
4506
4507
4508
4509if  test "x$GCC" = xyes ; then
4510    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4511-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4512-Wbad-function-cast -Wformat=2"
4513    case `$CC -dumpversion` in
4514    3.4.* | 4.*)
4515	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4516	;;
4517    esac
4518else
4519    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4520if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4521  SUNCC="yes"
4522else
4523  SUNCC="no"
4524fi
4525
4526    if test "x$SUNCC" = "xyes"; then
4527	CWARNFLAGS="-v"
4528    fi
4529fi
4530
4531
4532
4533# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4534
4535
4536
4537# Check whether --enable-strict-compilation was given.
4538if test "${enable_strict_compilation+set}" = set; then :
4539  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4540else
4541  STRICT_COMPILE=no
4542fi
4543
4544if test "x$STRICT_COMPILE" = "xyes"; then
4545	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4546if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4547  SUNCC="yes"
4548else
4549  SUNCC="no"
4550fi
4551
4552	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4553if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4554  INTELCC="yes"
4555else
4556  INTELCC="no"
4557fi
4558
4559	if test "x$GCC" = xyes ; then
4560		STRICT_CFLAGS="-pedantic -Werror"
4561	elif test "x$SUNCC" = "xyes"; then
4562		STRICT_CFLAGS="-errwarn"
4563    elif test "x$INTELCC" = "xyes"; then
4564		STRICT_CFLAGS="-Werror"
4565	fi
4566fi
4567CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4568
4569
4570
4571
4572cat >>confdefs.h <<_ACEOF
4573#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4574_ACEOF
4575
4576	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4577	if test "x$PVM" = "x"; then
4578		PVM="0"
4579	fi
4580
4581cat >>confdefs.h <<_ACEOF
4582#define PACKAGE_VERSION_MINOR $PVM
4583_ACEOF
4584
4585	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4586	if test "x$PVP" = "x"; then
4587		PVP="0"
4588	fi
4589
4590cat >>confdefs.h <<_ACEOF
4591#define PACKAGE_VERSION_PATCHLEVEL $PVP
4592_ACEOF
4593
4594
4595
4596CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4597mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4598|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4599echo 'git directory not found: installing possibly empty changelog.' >&2)"
4600
4601
4602
4603
4604macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4605INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4606mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4607|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4608echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4609
4610
4611
4612
4613
4614
4615if test x$APP_MAN_SUFFIX = x    ; then
4616    APP_MAN_SUFFIX=1
4617fi
4618if test x$APP_MAN_DIR = x    ; then
4619    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4620fi
4621
4622if test x$LIB_MAN_SUFFIX = x    ; then
4623    LIB_MAN_SUFFIX=3
4624fi
4625if test x$LIB_MAN_DIR = x    ; then
4626    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4627fi
4628
4629if test x$FILE_MAN_SUFFIX = x    ; then
4630    case $host_os in
4631	solaris*)	FILE_MAN_SUFFIX=4  ;;
4632	*)		FILE_MAN_SUFFIX=5  ;;
4633    esac
4634fi
4635if test x$FILE_MAN_DIR = x    ; then
4636    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4637fi
4638
4639if test x$MISC_MAN_SUFFIX = x    ; then
4640    case $host_os in
4641	solaris*)	MISC_MAN_SUFFIX=5  ;;
4642	*)		MISC_MAN_SUFFIX=7  ;;
4643    esac
4644fi
4645if test x$MISC_MAN_DIR = x    ; then
4646    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4647fi
4648
4649if test x$DRIVER_MAN_SUFFIX = x    ; then
4650    case $host_os in
4651	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4652	*)		DRIVER_MAN_SUFFIX=4  ;;
4653    esac
4654fi
4655if test x$DRIVER_MAN_DIR = x    ; then
4656    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4657fi
4658
4659if test x$ADMIN_MAN_SUFFIX = x    ; then
4660    case $host_os in
4661	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4662	*)		ADMIN_MAN_SUFFIX=8  ;;
4663    esac
4664fi
4665if test x$ADMIN_MAN_DIR = x    ; then
4666    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4667fi
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683XORG_MAN_PAGE="X Version 11"
4684
4685MAN_SUBSTS="\
4686	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4687	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4688	-e 's|__xservername__|Xorg|g' \
4689	-e 's|__xconfigfile__|xorg.conf|g' \
4690	-e 's|__projectroot__|\$(prefix)|g' \
4691	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4692	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4693	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4694	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4695	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4696	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4697	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4698
4699
4700
4701# Check whether --enable-silent-rules was given.
4702if test "${enable_silent_rules+set}" = set; then :
4703  enableval=$enable_silent_rules;
4704fi
4705
4706case $enable_silent_rules in
4707yes) AM_DEFAULT_VERBOSITY=0;;
4708no)  AM_DEFAULT_VERBOSITY=1;;
4709*)   AM_DEFAULT_VERBOSITY=0;;
4710esac
4711AM_BACKSLASH='\'
4712
4713
4714
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4716$as_echo_n "checking return type of signal handlers... " >&6; }
4717if ${ac_cv_type_signal+:} false; then :
4718  $as_echo_n "(cached) " >&6
4719else
4720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h.  */
4722#include <sys/types.h>
4723#include <signal.h>
4724
4725int
4726main ()
4727{
4728return *(signal (0, 0)) (0) == 1;
4729  ;
4730  return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_compile "$LINENO"; then :
4734  ac_cv_type_signal=int
4735else
4736  ac_cv_type_signal=void
4737fi
4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4741$as_echo "$ac_cv_type_signal" >&6; }
4742
4743cat >>confdefs.h <<_ACEOF
4744#define RETSIGTYPE $ac_cv_type_signal
4745_ACEOF
4746
4747
4748
4749# Checks for pkg-config packages
4750
4751pkg_failed=no
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11PERF" >&5
4753$as_echo_n "checking for X11PERF... " >&6; }
4754
4755if test -n "$X11PERF_CFLAGS"; then
4756    pkg_cv_X11PERF_CFLAGS="$X11PERF_CFLAGS"
4757 elif test -n "$PKG_CONFIG"; then
4758    if test -n "$PKG_CONFIG" && \
4759    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\""; } >&5
4760  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
4761  ac_status=$?
4762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763  test $ac_status = 0; }; then
4764  pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu" 2>/dev/null`
4765else
4766  pkg_failed=yes
4767fi
4768 else
4769    pkg_failed=untried
4770fi
4771if test -n "$X11PERF_LIBS"; then
4772    pkg_cv_X11PERF_LIBS="$X11PERF_LIBS"
4773 elif test -n "$PKG_CONFIG"; then
4774    if test -n "$PKG_CONFIG" && \
4775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\""; } >&5
4776  ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
4777  ac_status=$?
4778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779  test $ac_status = 0; }; then
4780  pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu" 2>/dev/null`
4781else
4782  pkg_failed=yes
4783fi
4784 else
4785    pkg_failed=untried
4786fi
4787
4788
4789
4790if test $pkg_failed = yes; then
4791
4792if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4793        _pkg_short_errors_supported=yes
4794else
4795        _pkg_short_errors_supported=no
4796fi
4797        if test $_pkg_short_errors_supported = yes; then
4798	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu" 2>&1`
4799        else
4800	        X11PERF_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu" 2>&1`
4801        fi
4802	# Put the nasty error message in config.log where it belongs
4803	echo "$X11PERF_PKG_ERRORS" >&5
4804
4805	as_fn_error $? "Package requirements (x11 xmuu) were not met:
4806
4807$X11PERF_PKG_ERRORS
4808
4809Consider adjusting the PKG_CONFIG_PATH environment variable if you
4810installed software in a non-standard prefix.
4811
4812Alternatively, you may set the environment variables X11PERF_CFLAGS
4813and X11PERF_LIBS to avoid the need to call pkg-config.
4814See the pkg-config man page for more details.
4815" "$LINENO" 5
4816elif test $pkg_failed = untried; then
4817	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4819as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4820is in your PATH or set the PKG_CONFIG environment variable to the full
4821path to pkg-config.
4822
4823Alternatively, you may set the environment variables X11PERF_CFLAGS
4824and X11PERF_LIBS to avoid the need to call pkg-config.
4825See the pkg-config man page for more details.
4826
4827To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4828See \`config.log' for more details" "$LINENO" 5; }
4829else
4830	X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
4831	X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
4832        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4833$as_echo "yes" >&6; }
4834	:
4835fi
4836
4837# Check for Xrender library
4838
4839pkg_failed=no
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
4841$as_echo_n "checking for XRENDER... " >&6; }
4842
4843if test -n "$XRENDER_CFLAGS"; then
4844    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
4845 elif test -n "$PKG_CONFIG"; then
4846    if test -n "$PKG_CONFIG" && \
4847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
4848  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
4849  ac_status=$?
4850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851  test $ac_status = 0; }; then
4852  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
4853else
4854  pkg_failed=yes
4855fi
4856 else
4857    pkg_failed=untried
4858fi
4859if test -n "$XRENDER_LIBS"; then
4860    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
4861 elif test -n "$PKG_CONFIG"; then
4862    if test -n "$PKG_CONFIG" && \
4863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5
4864  ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
4865  ac_status=$?
4866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867  test $ac_status = 0; }; then
4868  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
4869else
4870  pkg_failed=yes
4871fi
4872 else
4873    pkg_failed=untried
4874fi
4875
4876
4877
4878if test $pkg_failed = yes; then
4879
4880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4881        _pkg_short_errors_supported=yes
4882else
4883        _pkg_short_errors_supported=no
4884fi
4885        if test $_pkg_short_errors_supported = yes; then
4886	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1`
4887        else
4888	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1`
4889        fi
4890	# Put the nasty error message in config.log where it belongs
4891	echo "$XRENDER_PKG_ERRORS" >&5
4892
4893	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895                xrender_found=no
4896elif test $pkg_failed = untried; then
4897	xrender_found=no
4898else
4899	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
4900	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
4901        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902$as_echo "yes" >&6; }
4903	xrender_found=yes
4904fi
4905case "$xrender_found" in
4906yes)
4907
4908$as_echo "#define XRENDER 1" >>confdefs.h
4909
4910	;;
4911esac
4912
4913# Check for Xft library
4914
4915pkg_failed=no
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
4917$as_echo_n "checking for XFT... " >&6; }
4918
4919if test -n "$XFT_CFLAGS"; then
4920    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
4921 elif test -n "$PKG_CONFIG"; then
4922    if test -n "$PKG_CONFIG" && \
4923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
4924  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
4925  ac_status=$?
4926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927  test $ac_status = 0; }; then
4928  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
4929else
4930  pkg_failed=yes
4931fi
4932 else
4933    pkg_failed=untried
4934fi
4935if test -n "$XFT_LIBS"; then
4936    pkg_cv_XFT_LIBS="$XFT_LIBS"
4937 elif test -n "$PKG_CONFIG"; then
4938    if test -n "$PKG_CONFIG" && \
4939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5
4940  ($PKG_CONFIG --exists --print-errors "xft") 2>&5
4941  ac_status=$?
4942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943  test $ac_status = 0; }; then
4944  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
4945else
4946  pkg_failed=yes
4947fi
4948 else
4949    pkg_failed=untried
4950fi
4951
4952
4953
4954if test $pkg_failed = yes; then
4955
4956if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4957        _pkg_short_errors_supported=yes
4958else
4959        _pkg_short_errors_supported=no
4960fi
4961        if test $_pkg_short_errors_supported = yes; then
4962	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1`
4963        else
4964	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1`
4965        fi
4966	# Put the nasty error message in config.log where it belongs
4967	echo "$XFT_PKG_ERRORS" >&5
4968
4969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971                xft_found=no
4972elif test $pkg_failed = untried; then
4973	xft_found=no
4974else
4975	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
4976	XFT_LIBS=$pkg_cv_XFT_LIBS
4977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4978$as_echo "yes" >&6; }
4979	xft_found=yes
4980fi
4981case "$xft_found" in
4982yes)
4983
4984$as_echo "#define XFT 1" >>confdefs.h
4985
4986	;;
4987esac
4988
4989# Check for MIT-SHM extension
4990
4991pkg_failed=no
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
4993$as_echo_n "checking for XEXT... " >&6; }
4994
4995if test -n "$XEXT_CFLAGS"; then
4996    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
4997 elif test -n "$PKG_CONFIG"; then
4998    if test -n "$PKG_CONFIG" && \
4999    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
5000  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5001  ac_status=$?
5002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003  test $ac_status = 0; }; then
5004  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
5005else
5006  pkg_failed=yes
5007fi
5008 else
5009    pkg_failed=untried
5010fi
5011if test -n "$XEXT_LIBS"; then
5012    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
5013 elif test -n "$PKG_CONFIG"; then
5014    if test -n "$PKG_CONFIG" && \
5015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
5016  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
5017  ac_status=$?
5018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5019  test $ac_status = 0; }; then
5020  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
5021else
5022  pkg_failed=yes
5023fi
5024 else
5025    pkg_failed=untried
5026fi
5027
5028
5029
5030if test $pkg_failed = yes; then
5031
5032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5033        _pkg_short_errors_supported=yes
5034else
5035        _pkg_short_errors_supported=no
5036fi
5037        if test $_pkg_short_errors_supported = yes; then
5038	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
5039        else
5040	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
5041        fi
5042	# Put the nasty error message in config.log where it belongs
5043	echo "$XEXT_PKG_ERRORS" >&5
5044
5045	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047                xext_found=no
5048elif test $pkg_failed = untried; then
5049	xext_found=no
5050else
5051	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
5052	XEXT_LIBS=$pkg_cv_XEXT_LIBS
5053        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5054$as_echo "yes" >&6; }
5055	xext_found=yes
5056fi
5057case "$xext_found" in
5058yes)
5059	save_LIBS="$LIBS"
5060	LIBS="$XEXT_LIBS $LIBS"
5061	for ac_func in XShmQueryExtension
5062do :
5063  ac_fn_c_check_func "$LINENO" "XShmQueryExtension" "ac_cv_func_XShmQueryExtension"
5064if test "x$ac_cv_func_XShmQueryExtension" = xyes; then :
5065  cat >>confdefs.h <<_ACEOF
5066#define HAVE_XSHMQUERYEXTENSION 1
5067_ACEOF
5068
5069$as_echo "#define MITSHM 1" >>confdefs.h
5070
5071fi
5072done
5073
5074	LIBS="$save_LIBS"
5075	;;
5076esac
5077
5078ac_config_files="$ac_config_files Makefile"
5079
5080cat >confcache <<\_ACEOF
5081# This file is a shell script that caches the results of configure
5082# tests run on this system so they can be shared between configure
5083# scripts and configure runs, see configure's option --config-cache.
5084# It is not useful on other systems.  If it contains results you don't
5085# want to keep, you may remove or edit it.
5086#
5087# config.status only pays attention to the cache file if you give it
5088# the --recheck option to rerun configure.
5089#
5090# `ac_cv_env_foo' variables (set or unset) will be overridden when
5091# loading this file, other *unset* `ac_cv_foo' will be assigned the
5092# following values.
5093
5094_ACEOF
5095
5096# The following way of writing the cache mishandles newlines in values,
5097# but we know of no workaround that is simple, portable, and efficient.
5098# So, we kill variables containing newlines.
5099# Ultrix sh set writes to stderr and can't be redirected directly,
5100# and sets the high bit in the cache file unless we assign to the vars.
5101(
5102  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5103    eval ac_val=\$$ac_var
5104    case $ac_val in #(
5105    *${as_nl}*)
5106      case $ac_var in #(
5107      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5108$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5109      esac
5110      case $ac_var in #(
5111      _ | IFS | as_nl) ;; #(
5112      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5113      *) { eval $ac_var=; unset $ac_var;} ;;
5114      esac ;;
5115    esac
5116  done
5117
5118  (set) 2>&1 |
5119    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5120    *${as_nl}ac_space=\ *)
5121      # `set' does not quote correctly, so add quotes: double-quote
5122      # substitution turns \\\\ into \\, and sed turns \\ into \.
5123      sed -n \
5124	"s/'/'\\\\''/g;
5125	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5126      ;; #(
5127    *)
5128      # `set' quotes correctly as required by POSIX, so do not add quotes.
5129      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5130      ;;
5131    esac |
5132    sort
5133) |
5134  sed '
5135     /^ac_cv_env_/b end
5136     t clear
5137     :clear
5138     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5139     t end
5140     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5141     :end' >>confcache
5142if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5143  if test -w "$cache_file"; then
5144    if test "x$cache_file" != "x/dev/null"; then
5145      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5146$as_echo "$as_me: updating cache $cache_file" >&6;}
5147      if test ! -f "$cache_file" || test -h "$cache_file"; then
5148	cat confcache >"$cache_file"
5149      else
5150        case $cache_file in #(
5151        */* | ?:*)
5152	  mv -f confcache "$cache_file"$$ &&
5153	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5154        *)
5155	  mv -f confcache "$cache_file" ;;
5156	esac
5157      fi
5158    fi
5159  else
5160    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5161$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5162  fi
5163fi
5164rm -f confcache
5165
5166test "x$prefix" = xNONE && prefix=$ac_default_prefix
5167# Let make expand exec_prefix.
5168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5169
5170DEFS=-DHAVE_CONFIG_H
5171
5172ac_libobjs=
5173ac_ltlibobjs=
5174U=
5175for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5176  # 1. Remove the extension, and $U if already installed.
5177  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5178  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5179  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5180  #    will be set to the directory where LIBOBJS objects are built.
5181  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5182  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5183done
5184LIBOBJS=$ac_libobjs
5185
5186LTLIBOBJS=$ac_ltlibobjs
5187
5188
5189 if test -n "$EXEEXT"; then
5190  am__EXEEXT_TRUE=
5191  am__EXEEXT_FALSE='#'
5192else
5193  am__EXEEXT_TRUE='#'
5194  am__EXEEXT_FALSE=
5195fi
5196
5197if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5198  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5199Usually this means the macro was only invoked conditionally." "$LINENO" 5
5200fi
5201if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5202  as_fn_error $? "conditional \"AMDEP\" was never defined.
5203Usually this means the macro was only invoked conditionally." "$LINENO" 5
5204fi
5205if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5206  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5207Usually this means the macro was only invoked conditionally." "$LINENO" 5
5208fi
5209
5210: "${CONFIG_STATUS=./config.status}"
5211ac_write_fail=0
5212ac_clean_files_save=$ac_clean_files
5213ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5215$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5216as_write_fail=0
5217cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5218#! $SHELL
5219# Generated by $as_me.
5220# Run this file to recreate the current configuration.
5221# Compiler output produced by configure, useful for debugging
5222# configure, is in config.log if it exists.
5223
5224debug=false
5225ac_cs_recheck=false
5226ac_cs_silent=false
5227
5228SHELL=\${CONFIG_SHELL-$SHELL}
5229export SHELL
5230_ASEOF
5231cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5232## -------------------- ##
5233## M4sh Initialization. ##
5234## -------------------- ##
5235
5236# Be more Bourne compatible
5237DUALCASE=1; export DUALCASE # for MKS sh
5238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5239  emulate sh
5240  NULLCMD=:
5241  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5242  # is contrary to our usage.  Disable this feature.
5243  alias -g '${1+"$@"}'='"$@"'
5244  setopt NO_GLOB_SUBST
5245else
5246  case `(set -o) 2>/dev/null` in #(
5247  *posix*) :
5248    set -o posix ;; #(
5249  *) :
5250     ;;
5251esac
5252fi
5253
5254
5255as_nl='
5256'
5257export as_nl
5258# Printing a long string crashes Solaris 7 /usr/bin/printf.
5259as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5262# Prefer a ksh shell builtin over an external printf program on Solaris,
5263# but without wasting forks for bash or zsh.
5264if test -z "$BASH_VERSION$ZSH_VERSION" \
5265    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5266  as_echo='print -r --'
5267  as_echo_n='print -rn --'
5268elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5269  as_echo='printf %s\n'
5270  as_echo_n='printf %s'
5271else
5272  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5273    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5274    as_echo_n='/usr/ucb/echo -n'
5275  else
5276    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5277    as_echo_n_body='eval
5278      arg=$1;
5279      case $arg in #(
5280      *"$as_nl"*)
5281	expr "X$arg" : "X\\(.*\\)$as_nl";
5282	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5283      esac;
5284      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5285    '
5286    export as_echo_n_body
5287    as_echo_n='sh -c $as_echo_n_body as_echo'
5288  fi
5289  export as_echo_body
5290  as_echo='sh -c $as_echo_body as_echo'
5291fi
5292
5293# The user is always right.
5294if test "${PATH_SEPARATOR+set}" != set; then
5295  PATH_SEPARATOR=:
5296  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5297    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5298      PATH_SEPARATOR=';'
5299  }
5300fi
5301
5302
5303# IFS
5304# We need space, tab and new line, in precisely that order.  Quoting is
5305# there to prevent editors from complaining about space-tab.
5306# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5307# splitting by setting IFS to empty value.)
5308IFS=" ""	$as_nl"
5309
5310# Find who we are.  Look in the path if we contain no directory separator.
5311as_myself=
5312case $0 in #((
5313  *[\\/]* ) as_myself=$0 ;;
5314  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317  IFS=$as_save_IFS
5318  test -z "$as_dir" && as_dir=.
5319    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5320  done
5321IFS=$as_save_IFS
5322
5323     ;;
5324esac
5325# We did not find ourselves, most probably we were run as `sh COMMAND'
5326# in which case we are not to be found in the path.
5327if test "x$as_myself" = x; then
5328  as_myself=$0
5329fi
5330if test ! -f "$as_myself"; then
5331  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5332  exit 1
5333fi
5334
5335# Unset variables that we do not need and which cause bugs (e.g. in
5336# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5337# suppresses any "Segmentation fault" message there.  '((' could
5338# trigger a bug in pdksh 5.2.14.
5339for as_var in BASH_ENV ENV MAIL MAILPATH
5340do eval test x\${$as_var+set} = xset \
5341  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5342done
5343PS1='$ '
5344PS2='> '
5345PS4='+ '
5346
5347# NLS nuisances.
5348LC_ALL=C
5349export LC_ALL
5350LANGUAGE=C
5351export LANGUAGE
5352
5353# CDPATH.
5354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5355
5356
5357# as_fn_error STATUS ERROR [LINENO LOG_FD]
5358# ----------------------------------------
5359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5361# script with STATUS, using 1 if that was 0.
5362as_fn_error ()
5363{
5364  as_status=$1; test $as_status -eq 0 && as_status=1
5365  if test "$4"; then
5366    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5368  fi
5369  $as_echo "$as_me: error: $2" >&2
5370  as_fn_exit $as_status
5371} # as_fn_error
5372
5373
5374# as_fn_set_status STATUS
5375# -----------------------
5376# Set $? to STATUS, without forking.
5377as_fn_set_status ()
5378{
5379  return $1
5380} # as_fn_set_status
5381
5382# as_fn_exit STATUS
5383# -----------------
5384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5385as_fn_exit ()
5386{
5387  set +e
5388  as_fn_set_status $1
5389  exit $1
5390} # as_fn_exit
5391
5392# as_fn_unset VAR
5393# ---------------
5394# Portably unset VAR.
5395as_fn_unset ()
5396{
5397  { eval $1=; unset $1;}
5398}
5399as_unset=as_fn_unset
5400# as_fn_append VAR VALUE
5401# ----------------------
5402# Append the text in VALUE to the end of the definition contained in VAR. Take
5403# advantage of any shell optimizations that allow amortized linear growth over
5404# repeated appends, instead of the typical quadratic growth present in naive
5405# implementations.
5406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5407  eval 'as_fn_append ()
5408  {
5409    eval $1+=\$2
5410  }'
5411else
5412  as_fn_append ()
5413  {
5414    eval $1=\$$1\$2
5415  }
5416fi # as_fn_append
5417
5418# as_fn_arith ARG...
5419# ------------------
5420# Perform arithmetic evaluation on the ARGs, and store the result in the
5421# global $as_val. Take advantage of shells that can avoid forks. The arguments
5422# must be portable across $(()) and expr.
5423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5424  eval 'as_fn_arith ()
5425  {
5426    as_val=$(( $* ))
5427  }'
5428else
5429  as_fn_arith ()
5430  {
5431    as_val=`expr "$@" || test $? -eq 1`
5432  }
5433fi # as_fn_arith
5434
5435
5436if expr a : '\(a\)' >/dev/null 2>&1 &&
5437   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5438  as_expr=expr
5439else
5440  as_expr=false
5441fi
5442
5443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5444  as_basename=basename
5445else
5446  as_basename=false
5447fi
5448
5449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5450  as_dirname=dirname
5451else
5452  as_dirname=false
5453fi
5454
5455as_me=`$as_basename -- "$0" ||
5456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5457	 X"$0" : 'X\(//\)$' \| \
5458	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5459$as_echo X/"$0" |
5460    sed '/^.*\/\([^/][^/]*\)\/*$/{
5461	    s//\1/
5462	    q
5463	  }
5464	  /^X\/\(\/\/\)$/{
5465	    s//\1/
5466	    q
5467	  }
5468	  /^X\/\(\/\).*/{
5469	    s//\1/
5470	    q
5471	  }
5472	  s/.*/./; q'`
5473
5474# Avoid depending upon Character Ranges.
5475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5478as_cr_digits='0123456789'
5479as_cr_alnum=$as_cr_Letters$as_cr_digits
5480
5481ECHO_C= ECHO_N= ECHO_T=
5482case `echo -n x` in #(((((
5483-n*)
5484  case `echo 'xy\c'` in
5485  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5486  xy)  ECHO_C='\c';;
5487  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5488       ECHO_T='	';;
5489  esac;;
5490*)
5491  ECHO_N='-n';;
5492esac
5493
5494rm -f conf$$ conf$$.exe conf$$.file
5495if test -d conf$$.dir; then
5496  rm -f conf$$.dir/conf$$.file
5497else
5498  rm -f conf$$.dir
5499  mkdir conf$$.dir 2>/dev/null
5500fi
5501if (echo >conf$$.file) 2>/dev/null; then
5502  if ln -s conf$$.file conf$$ 2>/dev/null; then
5503    as_ln_s='ln -s'
5504    # ... but there are two gotchas:
5505    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5506    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5507    # In both cases, we have to default to `cp -p'.
5508    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5509      as_ln_s='cp -p'
5510  elif ln conf$$.file conf$$ 2>/dev/null; then
5511    as_ln_s=ln
5512  else
5513    as_ln_s='cp -p'
5514  fi
5515else
5516  as_ln_s='cp -p'
5517fi
5518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5519rmdir conf$$.dir 2>/dev/null
5520
5521
5522# as_fn_mkdir_p
5523# -------------
5524# Create "$as_dir" as a directory, including parents if necessary.
5525as_fn_mkdir_p ()
5526{
5527
5528  case $as_dir in #(
5529  -*) as_dir=./$as_dir;;
5530  esac
5531  test -d "$as_dir" || eval $as_mkdir_p || {
5532    as_dirs=
5533    while :; do
5534      case $as_dir in #(
5535      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5536      *) as_qdir=$as_dir;;
5537      esac
5538      as_dirs="'$as_qdir' $as_dirs"
5539      as_dir=`$as_dirname -- "$as_dir" ||
5540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5541	 X"$as_dir" : 'X\(//\)[^/]' \| \
5542	 X"$as_dir" : 'X\(//\)$' \| \
5543	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5544$as_echo X"$as_dir" |
5545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5546	    s//\1/
5547	    q
5548	  }
5549	  /^X\(\/\/\)[^/].*/{
5550	    s//\1/
5551	    q
5552	  }
5553	  /^X\(\/\/\)$/{
5554	    s//\1/
5555	    q
5556	  }
5557	  /^X\(\/\).*/{
5558	    s//\1/
5559	    q
5560	  }
5561	  s/.*/./; q'`
5562      test -d "$as_dir" && break
5563    done
5564    test -z "$as_dirs" || eval "mkdir $as_dirs"
5565  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5566
5567
5568} # as_fn_mkdir_p
5569if mkdir -p . 2>/dev/null; then
5570  as_mkdir_p='mkdir -p "$as_dir"'
5571else
5572  test -d ./-p && rmdir ./-p
5573  as_mkdir_p=false
5574fi
5575
5576if test -x / >/dev/null 2>&1; then
5577  as_test_x='test -x'
5578else
5579  if ls -dL / >/dev/null 2>&1; then
5580    as_ls_L_option=L
5581  else
5582    as_ls_L_option=
5583  fi
5584  as_test_x='
5585    eval sh -c '\''
5586      if test -d "$1"; then
5587	test -d "$1/.";
5588      else
5589	case $1 in #(
5590	-*)set "./$1";;
5591	esac;
5592	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5593	???[sx]*):;;*)false;;esac;fi
5594    '\'' sh
5595  '
5596fi
5597as_executable_p=$as_test_x
5598
5599# Sed expression to map a string onto a valid CPP name.
5600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5601
5602# Sed expression to map a string onto a valid variable name.
5603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5604
5605
5606exec 6>&1
5607## ----------------------------------- ##
5608## Main body of $CONFIG_STATUS script. ##
5609## ----------------------------------- ##
5610_ASEOF
5611test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5612
5613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5614# Save the log message, to keep $0 and so on meaningful, and to
5615# report actual input values of CONFIG_FILES etc. instead of their
5616# values after options handling.
5617ac_log="
5618This file was extended by x11perf $as_me 1.5.3, which was
5619generated by GNU Autoconf 2.68.  Invocation command line was
5620
5621  CONFIG_FILES    = $CONFIG_FILES
5622  CONFIG_HEADERS  = $CONFIG_HEADERS
5623  CONFIG_LINKS    = $CONFIG_LINKS
5624  CONFIG_COMMANDS = $CONFIG_COMMANDS
5625  $ $0 $@
5626
5627on `(hostname || uname -n) 2>/dev/null | sed 1q`
5628"
5629
5630_ACEOF
5631
5632case $ac_config_files in *"
5633"*) set x $ac_config_files; shift; ac_config_files=$*;;
5634esac
5635
5636case $ac_config_headers in *"
5637"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5638esac
5639
5640
5641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5642# Files that config.status was made for.
5643config_files="$ac_config_files"
5644config_headers="$ac_config_headers"
5645config_commands="$ac_config_commands"
5646
5647_ACEOF
5648
5649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5650ac_cs_usage="\
5651\`$as_me' instantiates files and other configuration actions
5652from templates according to the current configuration.  Unless the files
5653and actions are specified as TAGs, all are instantiated by default.
5654
5655Usage: $0 [OPTION]... [TAG]...
5656
5657  -h, --help       print this help, then exit
5658  -V, --version    print version number and configuration settings, then exit
5659      --config     print configuration, then exit
5660  -q, --quiet, --silent
5661                   do not print progress messages
5662  -d, --debug      don't remove temporary files
5663      --recheck    update $as_me by reconfiguring in the same conditions
5664      --file=FILE[:TEMPLATE]
5665                   instantiate the configuration file FILE
5666      --header=FILE[:TEMPLATE]
5667                   instantiate the configuration header FILE
5668
5669Configuration files:
5670$config_files
5671
5672Configuration headers:
5673$config_headers
5674
5675Configuration commands:
5676$config_commands
5677
5678Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5679
5680_ACEOF
5681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5682ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5683ac_cs_version="\\
5684x11perf config.status 1.5.3
5685configured by $0, generated by GNU Autoconf 2.68,
5686  with options \\"\$ac_cs_config\\"
5687
5688Copyright (C) 2010 Free Software Foundation, Inc.
5689This config.status script is free software; the Free Software Foundation
5690gives unlimited permission to copy, distribute and modify it."
5691
5692ac_pwd='$ac_pwd'
5693srcdir='$srcdir'
5694INSTALL='$INSTALL'
5695MKDIR_P='$MKDIR_P'
5696AWK='$AWK'
5697test -n "\$AWK" || AWK=awk
5698_ACEOF
5699
5700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5701# The default lists apply if the user does not specify any file.
5702ac_need_defaults=:
5703while test $# != 0
5704do
5705  case $1 in
5706  --*=?*)
5707    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5708    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5709    ac_shift=:
5710    ;;
5711  --*=)
5712    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5713    ac_optarg=
5714    ac_shift=:
5715    ;;
5716  *)
5717    ac_option=$1
5718    ac_optarg=$2
5719    ac_shift=shift
5720    ;;
5721  esac
5722
5723  case $ac_option in
5724  # Handling of the options.
5725  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5726    ac_cs_recheck=: ;;
5727  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5728    $as_echo "$ac_cs_version"; exit ;;
5729  --config | --confi | --conf | --con | --co | --c )
5730    $as_echo "$ac_cs_config"; exit ;;
5731  --debug | --debu | --deb | --de | --d | -d )
5732    debug=: ;;
5733  --file | --fil | --fi | --f )
5734    $ac_shift
5735    case $ac_optarg in
5736    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5737    '') as_fn_error $? "missing file argument" ;;
5738    esac
5739    as_fn_append CONFIG_FILES " '$ac_optarg'"
5740    ac_need_defaults=false;;
5741  --header | --heade | --head | --hea )
5742    $ac_shift
5743    case $ac_optarg in
5744    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5745    esac
5746    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5747    ac_need_defaults=false;;
5748  --he | --h)
5749    # Conflict between --help and --header
5750    as_fn_error $? "ambiguous option: \`$1'
5751Try \`$0 --help' for more information.";;
5752  --help | --hel | -h )
5753    $as_echo "$ac_cs_usage"; exit ;;
5754  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5755  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5756    ac_cs_silent=: ;;
5757
5758  # This is an error.
5759  -*) as_fn_error $? "unrecognized option: \`$1'
5760Try \`$0 --help' for more information." ;;
5761
5762  *) as_fn_append ac_config_targets " $1"
5763     ac_need_defaults=false ;;
5764
5765  esac
5766  shift
5767done
5768
5769ac_configure_extra_args=
5770
5771if $ac_cs_silent; then
5772  exec 6>/dev/null
5773  ac_configure_extra_args="$ac_configure_extra_args --silent"
5774fi
5775
5776_ACEOF
5777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5778if \$ac_cs_recheck; then
5779  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5780  shift
5781  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5782  CONFIG_SHELL='$SHELL'
5783  export CONFIG_SHELL
5784  exec "\$@"
5785fi
5786
5787_ACEOF
5788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5789exec 5>>config.log
5790{
5791  echo
5792  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5793## Running $as_me. ##
5794_ASBOX
5795  $as_echo "$ac_log"
5796} >&5
5797
5798_ACEOF
5799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5800#
5801# INIT-COMMANDS
5802#
5803AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5804
5805_ACEOF
5806
5807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5808
5809# Handling of arguments.
5810for ac_config_target in $ac_config_targets
5811do
5812  case $ac_config_target in
5813    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5814    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5815    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5816
5817  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5818  esac
5819done
5820
5821
5822# If the user did not use the arguments to specify the items to instantiate,
5823# then the envvar interface is used.  Set only those that are not.
5824# We use the long form for the default assignment because of an extremely
5825# bizarre bug on SunOS 4.1.3.
5826if $ac_need_defaults; then
5827  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5828  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5829  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5830fi
5831
5832# Have a temporary directory for convenience.  Make it in the build tree
5833# simply because there is no reason against having it here, and in addition,
5834# creating and moving files from /tmp can sometimes cause problems.
5835# Hook for its removal unless debugging.
5836# Note that there is a small window in which the directory will not be cleaned:
5837# after its creation but before its name has been assigned to `$tmp'.
5838$debug ||
5839{
5840  tmp= ac_tmp=
5841  trap 'exit_status=$?
5842  : "${ac_tmp:=$tmp}"
5843  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5844' 0
5845  trap 'as_fn_exit 1' 1 2 13 15
5846}
5847# Create a (secure) tmp directory for tmp files.
5848
5849{
5850  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5851  test -d "$tmp"
5852}  ||
5853{
5854  tmp=./conf$$-$RANDOM
5855  (umask 077 && mkdir "$tmp")
5856} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5857ac_tmp=$tmp
5858
5859# Set up the scripts for CONFIG_FILES section.
5860# No need to generate them if there are no CONFIG_FILES.
5861# This happens for instance with `./config.status config.h'.
5862if test -n "$CONFIG_FILES"; then
5863
5864
5865ac_cr=`echo X | tr X '\015'`
5866# On cygwin, bash can eat \r inside `` if the user requested igncr.
5867# But we know of no other shell where ac_cr would be empty at this
5868# point, so we can use a bashism as a fallback.
5869if test "x$ac_cr" = x; then
5870  eval ac_cr=\$\'\\r\'
5871fi
5872ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5873if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5874  ac_cs_awk_cr='\\r'
5875else
5876  ac_cs_awk_cr=$ac_cr
5877fi
5878
5879echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5880_ACEOF
5881
5882
5883{
5884  echo "cat >conf$$subs.awk <<_ACEOF" &&
5885  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5886  echo "_ACEOF"
5887} >conf$$subs.sh ||
5888  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5889ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5890ac_delim='%!_!# '
5891for ac_last_try in false false false false false :; do
5892  . ./conf$$subs.sh ||
5893    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5894
5895  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5896  if test $ac_delim_n = $ac_delim_num; then
5897    break
5898  elif $ac_last_try; then
5899    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5900  else
5901    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5902  fi
5903done
5904rm -f conf$$subs.sh
5905
5906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5907cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5908_ACEOF
5909sed -n '
5910h
5911s/^/S["/; s/!.*/"]=/
5912p
5913g
5914s/^[^!]*!//
5915:repl
5916t repl
5917s/'"$ac_delim"'$//
5918t delim
5919:nl
5920h
5921s/\(.\{148\}\)..*/\1/
5922t more1
5923s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5924p
5925n
5926b repl
5927:more1
5928s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5929p
5930g
5931s/.\{148\}//
5932t nl
5933:delim
5934h
5935s/\(.\{148\}\)..*/\1/
5936t more2
5937s/["\\]/\\&/g; s/^/"/; s/$/"/
5938p
5939b
5940:more2
5941s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5942p
5943g
5944s/.\{148\}//
5945t delim
5946' <conf$$subs.awk | sed '
5947/^[^""]/{
5948  N
5949  s/\n//
5950}
5951' >>$CONFIG_STATUS || ac_write_fail=1
5952rm -f conf$$subs.awk
5953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5954_ACAWK
5955cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5956  for (key in S) S_is_set[key] = 1
5957  FS = ""
5958
5959}
5960{
5961  line = $ 0
5962  nfields = split(line, field, "@")
5963  substed = 0
5964  len = length(field[1])
5965  for (i = 2; i < nfields; i++) {
5966    key = field[i]
5967    keylen = length(key)
5968    if (S_is_set[key]) {
5969      value = S[key]
5970      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5971      len += length(value) + length(field[++i])
5972      substed = 1
5973    } else
5974      len += 1 + keylen
5975  }
5976
5977  print line
5978}
5979
5980_ACAWK
5981_ACEOF
5982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5983if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5984  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5985else
5986  cat
5987fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5988  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5989_ACEOF
5990
5991# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5992# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5993# trailing colons and then remove the whole line if VPATH becomes empty
5994# (actually we leave an empty line to preserve line numbers).
5995if test "x$srcdir" = x.; then
5996  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5997h
5998s///
5999s/^/:/
6000s/[	 ]*$/:/
6001s/:\$(srcdir):/:/g
6002s/:\${srcdir}:/:/g
6003s/:@srcdir@:/:/g
6004s/^:*//
6005s/:*$//
6006x
6007s/\(=[	 ]*\).*/\1/
6008G
6009s/\n//
6010s/^[^=]*=[	 ]*$//
6011}'
6012fi
6013
6014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6015fi # test -n "$CONFIG_FILES"
6016
6017# Set up the scripts for CONFIG_HEADERS section.
6018# No need to generate them if there are no CONFIG_HEADERS.
6019# This happens for instance with `./config.status Makefile'.
6020if test -n "$CONFIG_HEADERS"; then
6021cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6022BEGIN {
6023_ACEOF
6024
6025# Transform confdefs.h into an awk script `defines.awk', embedded as
6026# here-document in config.status, that substitutes the proper values into
6027# config.h.in to produce config.h.
6028
6029# Create a delimiter string that does not exist in confdefs.h, to ease
6030# handling of long lines.
6031ac_delim='%!_!# '
6032for ac_last_try in false false :; do
6033  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6034  if test -z "$ac_tt"; then
6035    break
6036  elif $ac_last_try; then
6037    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6038  else
6039    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6040  fi
6041done
6042
6043# For the awk script, D is an array of macro values keyed by name,
6044# likewise P contains macro parameters if any.  Preserve backslash
6045# newline sequences.
6046
6047ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6048sed -n '
6049s/.\{148\}/&'"$ac_delim"'/g
6050t rset
6051:rset
6052s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6053t def
6054d
6055:def
6056s/\\$//
6057t bsnl
6058s/["\\]/\\&/g
6059s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6060D["\1"]=" \3"/p
6061s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6062d
6063:bsnl
6064s/["\\]/\\&/g
6065s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6066D["\1"]=" \3\\\\\\n"\\/p
6067t cont
6068s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6069t cont
6070d
6071:cont
6072n
6073s/.\{148\}/&'"$ac_delim"'/g
6074t clear
6075:clear
6076s/\\$//
6077t bsnlc
6078s/["\\]/\\&/g; s/^/"/; s/$/"/p
6079d
6080:bsnlc
6081s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6082b cont
6083' <confdefs.h | sed '
6084s/'"$ac_delim"'/"\\\
6085"/g' >>$CONFIG_STATUS || ac_write_fail=1
6086
6087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6088  for (key in D) D_is_set[key] = 1
6089  FS = ""
6090}
6091/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6092  line = \$ 0
6093  split(line, arg, " ")
6094  if (arg[1] == "#") {
6095    defundef = arg[2]
6096    mac1 = arg[3]
6097  } else {
6098    defundef = substr(arg[1], 2)
6099    mac1 = arg[2]
6100  }
6101  split(mac1, mac2, "(") #)
6102  macro = mac2[1]
6103  prefix = substr(line, 1, index(line, defundef) - 1)
6104  if (D_is_set[macro]) {
6105    # Preserve the white space surrounding the "#".
6106    print prefix "define", macro P[macro] D[macro]
6107    next
6108  } else {
6109    # Replace #undef with comments.  This is necessary, for example,
6110    # in the case of _POSIX_SOURCE, which is predefined and required
6111    # on some systems where configure will not decide to define it.
6112    if (defundef == "undef") {
6113      print "/*", prefix defundef, macro, "*/"
6114      next
6115    }
6116  }
6117}
6118{ print }
6119_ACAWK
6120_ACEOF
6121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6122  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6123fi # test -n "$CONFIG_HEADERS"
6124
6125
6126eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6127shift
6128for ac_tag
6129do
6130  case $ac_tag in
6131  :[FHLC]) ac_mode=$ac_tag; continue;;
6132  esac
6133  case $ac_mode$ac_tag in
6134  :[FHL]*:*);;
6135  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6136  :[FH]-) ac_tag=-:-;;
6137  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6138  esac
6139  ac_save_IFS=$IFS
6140  IFS=:
6141  set x $ac_tag
6142  IFS=$ac_save_IFS
6143  shift
6144  ac_file=$1
6145  shift
6146
6147  case $ac_mode in
6148  :L) ac_source=$1;;
6149  :[FH])
6150    ac_file_inputs=
6151    for ac_f
6152    do
6153      case $ac_f in
6154      -) ac_f="$ac_tmp/stdin";;
6155      *) # Look for the file first in the build tree, then in the source tree
6156	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6157	 # because $ac_f cannot contain `:'.
6158	 test -f "$ac_f" ||
6159	   case $ac_f in
6160	   [\\/$]*) false;;
6161	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6162	   esac ||
6163	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6164      esac
6165      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6166      as_fn_append ac_file_inputs " '$ac_f'"
6167    done
6168
6169    # Let's still pretend it is `configure' which instantiates (i.e., don't
6170    # use $as_me), people would be surprised to read:
6171    #    /* config.h.  Generated by config.status.  */
6172    configure_input='Generated from '`
6173	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6174	`' by configure.'
6175    if test x"$ac_file" != x-; then
6176      configure_input="$ac_file.  $configure_input"
6177      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6178$as_echo "$as_me: creating $ac_file" >&6;}
6179    fi
6180    # Neutralize special characters interpreted by sed in replacement strings.
6181    case $configure_input in #(
6182    *\&* | *\|* | *\\* )
6183       ac_sed_conf_input=`$as_echo "$configure_input" |
6184       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6185    *) ac_sed_conf_input=$configure_input;;
6186    esac
6187
6188    case $ac_tag in
6189    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6190      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6191    esac
6192    ;;
6193  esac
6194
6195  ac_dir=`$as_dirname -- "$ac_file" ||
6196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6197	 X"$ac_file" : 'X\(//\)[^/]' \| \
6198	 X"$ac_file" : 'X\(//\)$' \| \
6199	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6200$as_echo X"$ac_file" |
6201    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6202	    s//\1/
6203	    q
6204	  }
6205	  /^X\(\/\/\)[^/].*/{
6206	    s//\1/
6207	    q
6208	  }
6209	  /^X\(\/\/\)$/{
6210	    s//\1/
6211	    q
6212	  }
6213	  /^X\(\/\).*/{
6214	    s//\1/
6215	    q
6216	  }
6217	  s/.*/./; q'`
6218  as_dir="$ac_dir"; as_fn_mkdir_p
6219  ac_builddir=.
6220
6221case "$ac_dir" in
6222.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6223*)
6224  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6225  # A ".." for each directory in $ac_dir_suffix.
6226  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6227  case $ac_top_builddir_sub in
6228  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6229  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6230  esac ;;
6231esac
6232ac_abs_top_builddir=$ac_pwd
6233ac_abs_builddir=$ac_pwd$ac_dir_suffix
6234# for backward compatibility:
6235ac_top_builddir=$ac_top_build_prefix
6236
6237case $srcdir in
6238  .)  # We are building in place.
6239    ac_srcdir=.
6240    ac_top_srcdir=$ac_top_builddir_sub
6241    ac_abs_top_srcdir=$ac_pwd ;;
6242  [\\/]* | ?:[\\/]* )  # Absolute name.
6243    ac_srcdir=$srcdir$ac_dir_suffix;
6244    ac_top_srcdir=$srcdir
6245    ac_abs_top_srcdir=$srcdir ;;
6246  *) # Relative name.
6247    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6248    ac_top_srcdir=$ac_top_build_prefix$srcdir
6249    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6250esac
6251ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6252
6253
6254  case $ac_mode in
6255  :F)
6256  #
6257  # CONFIG_FILE
6258  #
6259
6260  case $INSTALL in
6261  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6262  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6263  esac
6264  ac_MKDIR_P=$MKDIR_P
6265  case $MKDIR_P in
6266  [\\/$]* | ?:[\\/]* ) ;;
6267  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6268  esac
6269_ACEOF
6270
6271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6272# If the template does not know about datarootdir, expand it.
6273# FIXME: This hack should be removed a few years after 2.60.
6274ac_datarootdir_hack=; ac_datarootdir_seen=
6275ac_sed_dataroot='
6276/datarootdir/ {
6277  p
6278  q
6279}
6280/@datadir@/p
6281/@docdir@/p
6282/@infodir@/p
6283/@localedir@/p
6284/@mandir@/p'
6285case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6286*datarootdir*) ac_datarootdir_seen=yes;;
6287*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6289$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6290_ACEOF
6291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6292  ac_datarootdir_hack='
6293  s&@datadir@&$datadir&g
6294  s&@docdir@&$docdir&g
6295  s&@infodir@&$infodir&g
6296  s&@localedir@&$localedir&g
6297  s&@mandir@&$mandir&g
6298  s&\\\${datarootdir}&$datarootdir&g' ;;
6299esac
6300_ACEOF
6301
6302# Neutralize VPATH when `$srcdir' = `.'.
6303# Shell code in configure.ac might set extrasub.
6304# FIXME: do we really want to maintain this feature?
6305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6306ac_sed_extra="$ac_vpsub
6307$extrasub
6308_ACEOF
6309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6310:t
6311/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6312s|@configure_input@|$ac_sed_conf_input|;t t
6313s&@top_builddir@&$ac_top_builddir_sub&;t t
6314s&@top_build_prefix@&$ac_top_build_prefix&;t t
6315s&@srcdir@&$ac_srcdir&;t t
6316s&@abs_srcdir@&$ac_abs_srcdir&;t t
6317s&@top_srcdir@&$ac_top_srcdir&;t t
6318s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6319s&@builddir@&$ac_builddir&;t t
6320s&@abs_builddir@&$ac_abs_builddir&;t t
6321s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6322s&@INSTALL@&$ac_INSTALL&;t t
6323s&@MKDIR_P@&$ac_MKDIR_P&;t t
6324$ac_datarootdir_hack
6325"
6326eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6327  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6328
6329test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6330  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6331  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6332      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6333  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6334which seems to be undefined.  Please make sure it is defined" >&5
6335$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6336which seems to be undefined.  Please make sure it is defined" >&2;}
6337
6338  rm -f "$ac_tmp/stdin"
6339  case $ac_file in
6340  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6341  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6342  esac \
6343  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6344 ;;
6345  :H)
6346  #
6347  # CONFIG_HEADER
6348  #
6349  if test x"$ac_file" != x-; then
6350    {
6351      $as_echo "/* $configure_input  */" \
6352      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6353    } >"$ac_tmp/config.h" \
6354      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6355    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6356      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6357$as_echo "$as_me: $ac_file is unchanged" >&6;}
6358    else
6359      rm -f "$ac_file"
6360      mv "$ac_tmp/config.h" "$ac_file" \
6361	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6362    fi
6363  else
6364    $as_echo "/* $configure_input  */" \
6365      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6366      || as_fn_error $? "could not create -" "$LINENO" 5
6367  fi
6368# Compute "$ac_file"'s index in $config_headers.
6369_am_arg="$ac_file"
6370_am_stamp_count=1
6371for _am_header in $config_headers :; do
6372  case $_am_header in
6373    $_am_arg | $_am_arg:* )
6374      break ;;
6375    * )
6376      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6377  esac
6378done
6379echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6380$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6381	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6382	 X"$_am_arg" : 'X\(//\)$' \| \
6383	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6384$as_echo X"$_am_arg" |
6385    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6386	    s//\1/
6387	    q
6388	  }
6389	  /^X\(\/\/\)[^/].*/{
6390	    s//\1/
6391	    q
6392	  }
6393	  /^X\(\/\/\)$/{
6394	    s//\1/
6395	    q
6396	  }
6397	  /^X\(\/\).*/{
6398	    s//\1/
6399	    q
6400	  }
6401	  s/.*/./; q'`/stamp-h$_am_stamp_count
6402 ;;
6403
6404  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6405$as_echo "$as_me: executing $ac_file commands" >&6;}
6406 ;;
6407  esac
6408
6409
6410  case $ac_file$ac_mode in
6411    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6412  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6413  # are listed without --file.  Let's play safe and only enable the eval
6414  # if we detect the quoting.
6415  case $CONFIG_FILES in
6416  *\'*) eval set x "$CONFIG_FILES" ;;
6417  *)   set x $CONFIG_FILES ;;
6418  esac
6419  shift
6420  for mf
6421  do
6422    # Strip MF so we end up with the name of the file.
6423    mf=`echo "$mf" | sed -e 's/:.*$//'`
6424    # Check whether this is an Automake generated Makefile or not.
6425    # We used to match only the files named `Makefile.in', but
6426    # some people rename them; so instead we look at the file content.
6427    # Grep'ing the first line is not enough: some people post-process
6428    # each Makefile.in and add a new line on top of each file to say so.
6429    # Grep'ing the whole file is not good either: AIX grep has a line
6430    # limit of 2048, but all sed's we know have understand at least 4000.
6431    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6432      dirpart=`$as_dirname -- "$mf" ||
6433$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6434	 X"$mf" : 'X\(//\)[^/]' \| \
6435	 X"$mf" : 'X\(//\)$' \| \
6436	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6437$as_echo X"$mf" |
6438    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6439	    s//\1/
6440	    q
6441	  }
6442	  /^X\(\/\/\)[^/].*/{
6443	    s//\1/
6444	    q
6445	  }
6446	  /^X\(\/\/\)$/{
6447	    s//\1/
6448	    q
6449	  }
6450	  /^X\(\/\).*/{
6451	    s//\1/
6452	    q
6453	  }
6454	  s/.*/./; q'`
6455    else
6456      continue
6457    fi
6458    # Extract the definition of DEPDIR, am__include, and am__quote
6459    # from the Makefile without running `make'.
6460    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6461    test -z "$DEPDIR" && continue
6462    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6463    test -z "am__include" && continue
6464    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6465    # When using ansi2knr, U may be empty or an underscore; expand it
6466    U=`sed -n 's/^U = //p' < "$mf"`
6467    # Find all dependency output files, they are included files with
6468    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6469    # simplest approach to changing $(DEPDIR) to its actual value in the
6470    # expansion.
6471    for file in `sed -n "
6472      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6473	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6474      # Make sure the directory exists.
6475      test -f "$dirpart/$file" && continue
6476      fdir=`$as_dirname -- "$file" ||
6477$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6478	 X"$file" : 'X\(//\)[^/]' \| \
6479	 X"$file" : 'X\(//\)$' \| \
6480	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6481$as_echo X"$file" |
6482    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6483	    s//\1/
6484	    q
6485	  }
6486	  /^X\(\/\/\)[^/].*/{
6487	    s//\1/
6488	    q
6489	  }
6490	  /^X\(\/\/\)$/{
6491	    s//\1/
6492	    q
6493	  }
6494	  /^X\(\/\).*/{
6495	    s//\1/
6496	    q
6497	  }
6498	  s/.*/./; q'`
6499      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6500      # echo "creating $dirpart/$file"
6501      echo '# dummy' > "$dirpart/$file"
6502    done
6503  done
6504}
6505 ;;
6506
6507  esac
6508done # for ac_tag
6509
6510
6511as_fn_exit 0
6512_ACEOF
6513ac_clean_files=$ac_clean_files_save
6514
6515test $ac_write_fail = 0 ||
6516  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6517
6518
6519# configure is writing to config.log, and then calls config.status.
6520# config.status does its own redirection, appending to config.log.
6521# Unfortunately, on DOS this fails, as config.log is still kept open
6522# by configure, so config.status won't be able to write to it; its
6523# output is simply discarded.  So we exec the FD to /dev/null,
6524# effectively closing config.log, so it can be properly (re)opened and
6525# appended to by config.status.  When coming back to configure, we
6526# need to make the FD available again.
6527if test "$no_create" != yes; then
6528  ac_cs_success=:
6529  ac_config_status_args=
6530  test "$silent" = yes &&
6531    ac_config_status_args="$ac_config_status_args --quiet"
6532  exec 5>/dev/null
6533  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6534  exec 5>>config.log
6535  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6536  # would make configure fail if this is the last instruction.
6537  $ac_cs_success || as_fn_exit 1
6538fi
6539if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6541$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6542fi
6543
6544