configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for x11perf 1.4.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='x11perf'
271 PACKAGE_TARNAME='x11perf'
272 PACKAGE_VERSION='1.4.1'
273 PACKAGE_STRING='x11perf 1.4.1'
274 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
275
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED PKG_CONFIG ac_pt_PKG_CONFIG X11PERF_CFLAGS X11PERF_LIBS XRENDER_CFLAGS XRENDER_LIBS XFT_CFLAGS XFT_LIBS XEXT_CFLAGS XEXT_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614 done
615
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636 do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689 else
690 ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
734 ac_env_PKG_CONFIG_value=$PKG_CONFIG
735 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
736 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
737 ac_env_X11PERF_CFLAGS_set=${X11PERF_CFLAGS+set}
738 ac_env_X11PERF_CFLAGS_value=$X11PERF_CFLAGS
739 ac_cv_env_X11PERF_CFLAGS_set=${X11PERF_CFLAGS+set}
740 ac_cv_env_X11PERF_CFLAGS_value=$X11PERF_CFLAGS
741 ac_env_X11PERF_LIBS_set=${X11PERF_LIBS+set}
742 ac_env_X11PERF_LIBS_value=$X11PERF_LIBS
743 ac_cv_env_X11PERF_LIBS_set=${X11PERF_LIBS+set}
744 ac_cv_env_X11PERF_LIBS_value=$X11PERF_LIBS
745 ac_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
746 ac_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
747 ac_cv_env_XRENDER_CFLAGS_set=${XRENDER_CFLAGS+set}
748 ac_cv_env_XRENDER_CFLAGS_value=$XRENDER_CFLAGS
749 ac_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
750 ac_env_XRENDER_LIBS_value=$XRENDER_LIBS
751 ac_cv_env_XRENDER_LIBS_set=${XRENDER_LIBS+set}
752 ac_cv_env_XRENDER_LIBS_value=$XRENDER_LIBS
753 ac_env_XFT_CFLAGS_set=${XFT_CFLAGS+set}
754 ac_env_XFT_CFLAGS_value=$XFT_CFLAGS
755 ac_cv_env_XFT_CFLAGS_set=${XFT_CFLAGS+set}
756 ac_cv_env_XFT_CFLAGS_value=$XFT_CFLAGS
757 ac_env_XFT_LIBS_set=${XFT_LIBS+set}
758 ac_env_XFT_LIBS_value=$XFT_LIBS
759 ac_cv_env_XFT_LIBS_set=${XFT_LIBS+set}
760 ac_cv_env_XFT_LIBS_value=$XFT_LIBS
761 ac_env_XEXT_CFLAGS_set=${XEXT_CFLAGS+set}
762 ac_env_XEXT_CFLAGS_value=$XEXT_CFLAGS
763 ac_cv_env_XEXT_CFLAGS_set=${XEXT_CFLAGS+set}
764 ac_cv_env_XEXT_CFLAGS_value=$XEXT_CFLAGS
765 ac_env_XEXT_LIBS_set=${XEXT_LIBS+set}
766 ac_env_XEXT_LIBS_value=$XEXT_LIBS
767 ac_cv_env_XEXT_LIBS_set=${XEXT_LIBS+set}
768 ac_cv_env_XEXT_LIBS_value=$XEXT_LIBS
769
770 #
771 # Report the --help message.
772 #
773 if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
776 cat <<_ACEOF
777 \`configure' configures x11perf 1.4.1 to adapt to many kinds of systems.
778
779 Usage: $0 [OPTION]... [VAR=VALUE]...
780
781 To assign environment variables (e.g., CC, CFLAGS...), specify them as
782 VAR=VALUE. See below for descriptions of some of the useful variables.
783
784 Defaults for the options are specified in brackets.
785
786 Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
796
797 _ACEOF
798
799 cat <<_ACEOF
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
805
806 By default, \`make install' will install all the files in
807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809 for instance \`--prefix=\$HOME'.
810
811 For better control, use the options below.
812
813 Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
826 _ACEOF
827
828 cat <<\_ACEOF
829
830 Program names:
831 --program-prefix=PREFIX prepend PREFIX to installed program names
832 --program-suffix=SUFFIX append SUFFIX to installed program names
833 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
834
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842 case $ac_init_help in
843 short | recursive ) echo "Configuration of x11perf 1.4.1:";;
844 esac
845 cat <<\_ACEOF
846
847 Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-maintainer-mode enable make rules and dependencies not useful
851 (and sometimes confusing) to the casual installer
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854
855 Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-release-version=STRING
859 Use release version string in package name
860
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 PKG_CONFIG path to pkg-config utility
869 X11PERF_CFLAGS
870 C compiler flags for X11PERF, overriding pkg-config
871 X11PERF_LIBS
872 linker flags for X11PERF, overriding pkg-config
873 XRENDER_CFLAGS
874 C compiler flags for XRENDER, overriding pkg-config
875 XRENDER_LIBS
876 linker flags for XRENDER, overriding pkg-config
877 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config
878 XFT_LIBS linker flags for XFT, overriding pkg-config
879 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
880 XEXT_LIBS linker flags for XEXT, overriding pkg-config
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
924 *)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
942 *)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957 esac
958
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
974 cd $ac_popdir
975 done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980 cat <<\_ACEOF
981 x11perf configure 1.4.1
982 generated by GNU Autoconf 2.59
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by x11perf $as_me 1.4.1, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114 {
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127 }
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 am__api_version="1.7"
1332 ac_aux_dir=
1333 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1334 if test -f $ac_dir/install-sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 break
1338 elif test -f $ac_dir/install.sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 break
1342 elif test -f $ac_dir/shtool; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1345 break
1346 fi
1347 done
1348 if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1351 { (exit 1); exit 1; }; }
1352 fi
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356
1357 # Find a good install program. We prefer a C program (faster),
1358 # so one script is as good as another. But avoid the broken or
1359 # incompatible versions:
1360 # SysV /etc/install, /usr/sbin/install
1361 # SunOS /usr/etc/install
1362 # IRIX /sbin/install
1363 # AIX /bin/install
1364 # AmigaOS /C/install, which installs bootblocks on floppy discs
1365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1368 # OS/2's system install, which has a completely different semantic
1369 # ./install, which can be erroneously created by make from ./install.sh.
1370 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1371 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1372 if test -z "$INSTALL"; then
1373 if test "${ac_cv_path_install+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 for as_dir in $PATH
1378 do
1379 IFS=$as_save_IFS
1380 test -z "$as_dir" && as_dir=.
1381 # Account for people who put trailing slashes in PATH elements.
1382 case $as_dir/ in
1383 ./ | .// | /cC/* | \
1384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1385 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1386 /usr/ucb/* ) ;;
1387 *)
1388 # OSF1 and SCO ODT 3.0 have their own names for install.
1389 # Don't use installbsd from OSF since it installs stuff as root
1390 # by default.
1391 for ac_prog in ginstall scoinst install; do
1392 for ac_exec_ext in '' $ac_executable_extensions; do
1393 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1394 if test $ac_prog = install &&
1395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1396 # AIX install. It has an incompatible calling convention.
1397 :
1398 elif test $ac_prog = install &&
1399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1400 # program-specific install script used by HP pwplus--don't use.
1401 :
1402 else
1403 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1404 break 3
1405 fi
1406 fi
1407 done
1408 done
1409 ;;
1410 esac
1411 done
1412
1413
1414 fi
1415 if test "${ac_cv_path_install+set}" = set; then
1416 INSTALL=$ac_cv_path_install
1417 else
1418 # As a last resort, use the slow shell script. We don't cache a
1419 # path for INSTALL within a source directory, because that will
1420 # break other packages using the cache if that directory is
1421 # removed, or if the path is relative.
1422 INSTALL=$ac_install_sh
1423 fi
1424 fi
1425 echo "$as_me:$LINENO: result: $INSTALL" >&5
1426 echo "${ECHO_T}$INSTALL" >&6
1427
1428 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1429 # It thinks the first close brace ends the variable substitution.
1430 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1431
1432 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1433
1434 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1435
1436 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1437 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1438 # Just in case
1439 sleep 1
1440 echo timestamp > conftest.file
1441 # Do `set' in a subshell so we don't clobber the current shell's
1442 # arguments. Must try -L first in case configure is actually a
1443 # symlink; some systems play weird games with the mod time of symlinks
1444 # (eg FreeBSD returns the mod time of the symlink's containing
1445 # directory).
1446 if (
1447 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1448 if test "$*" = "X"; then
1449 # -L didn't work.
1450 set X `ls -t $srcdir/configure conftest.file`
1451 fi
1452 rm -f conftest.file
1453 if test "$*" != "X $srcdir/configure conftest.file" \
1454 && test "$*" != "X conftest.file $srcdir/configure"; then
1455
1456 # If neither matched, then we have a broken ls. This can happen
1457 # if, for instance, CONFIG_SHELL is bash and it inherits a
1458 # broken ls alias from the environment. This has actually
1459 # happened. Such a system could not be considered "sane".
1460 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1461 alias in your environment" >&5
1462 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1463 alias in your environment" >&2;}
1464 { (exit 1); exit 1; }; }
1465 fi
1466
1467 test "$2" = conftest.file
1468 )
1469 then
1470 # Ok.
1471 :
1472 else
1473 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1474 Check your system clock" >&5
1475 echo "$as_me: error: newly created file is older than distributed files!
1476 Check your system clock" >&2;}
1477 { (exit 1); exit 1; }; }
1478 fi
1479 echo "$as_me:$LINENO: result: yes" >&5
1480 echo "${ECHO_T}yes" >&6
1481 test "$program_prefix" != NONE &&
1482 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1483 # Use a double $ so make ignores it.
1484 test "$program_suffix" != NONE &&
1485 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1486 # Double any \ or $. echo might interpret backslashes.
1487 # By default was `s,x,x', remove it if useless.
1488 cat <<\_ACEOF >conftest.sed
1489 s/[\\$]/&&/g;s/;s,x,x,$//
1490 _ACEOF
1491 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1492 rm conftest.sed
1493
1494
1495 # expand $ac_aux_dir to an absolute path
1496 am_aux_dir=`cd $ac_aux_dir && pwd`
1497
1498 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1499 # Use eval to expand $SHELL
1500 if eval "$MISSING --run true"; then
1501 am_missing_run="$MISSING --run "
1502 else
1503 am_missing_run=
1504 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1505 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1506 fi
1507
1508 for ac_prog in gawk mawk nawk awk
1509 do
1510 # Extract the first word of "$ac_prog", so it can be a program name with args.
1511 set dummy $ac_prog; ac_word=$2
1512 echo "$as_me:$LINENO: checking for $ac_word" >&5
1513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514 if test "${ac_cv_prog_AWK+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517 if test -n "$AWK"; then
1518 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1519 else
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523 IFS=$as_save_IFS
1524 test -z "$as_dir" && as_dir=.
1525 for ac_exec_ext in '' $ac_executable_extensions; do
1526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527 ac_cv_prog_AWK="$ac_prog"
1528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529 break 2
1530 fi
1531 done
1532 done
1533
1534 fi
1535 fi
1536 AWK=$ac_cv_prog_AWK
1537 if test -n "$AWK"; then
1538 echo "$as_me:$LINENO: result: $AWK" >&5
1539 echo "${ECHO_T}$AWK" >&6
1540 else
1541 echo "$as_me:$LINENO: result: no" >&5
1542 echo "${ECHO_T}no" >&6
1543 fi
1544
1545 test -n "$AWK" && break
1546 done
1547
1548 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1549 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1550 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1551 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 cat >conftest.make <<\_ACEOF
1555 all:
1556 @echo 'ac_maketemp="$(MAKE)"'
1557 _ACEOF
1558 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1559 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1560 if test -n "$ac_maketemp"; then
1561 eval ac_cv_prog_make_${ac_make}_set=yes
1562 else
1563 eval ac_cv_prog_make_${ac_make}_set=no
1564 fi
1565 rm -f conftest.make
1566 fi
1567 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1568 echo "$as_me:$LINENO: result: yes" >&5
1569 echo "${ECHO_T}yes" >&6
1570 SET_MAKE=
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 SET_MAKE="MAKE=${MAKE-make}"
1575 fi
1576
1577 rm -rf .tst 2>/dev/null
1578 mkdir .tst 2>/dev/null
1579 if test -d .tst; then
1580 am__leading_dot=.
1581 else
1582 am__leading_dot=_
1583 fi
1584 rmdir .tst 2>/dev/null
1585
1586 # test to see if srcdir already configured
1587 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1588 test -f $srcdir/config.status; then
1589 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1590 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1591 { (exit 1); exit 1; }; }
1592 fi
1593
1594 # test whether we have cygpath
1595 if test -z "$CYGPATH_W"; then
1596 if (cygpath --version) >/dev/null 2>/dev/null; then
1597 CYGPATH_W='cygpath -w'
1598 else
1599 CYGPATH_W=echo
1600 fi
1601 fi
1602
1603
1604 # Define the identity of the package.
1605 PACKAGE='x11perf'
1606 VERSION='1.4.1'
1607
1608
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE "$PACKAGE"
1611 _ACEOF
1612
1613
1614 cat >>confdefs.h <<_ACEOF
1615 #define VERSION "$VERSION"
1616 _ACEOF
1617
1618 # Some tools Automake needs.
1619
1620 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1621
1622
1623 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1624
1625
1626 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1627
1628
1629 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1630
1631
1632 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1633
1634
1635 AMTAR=${AMTAR-"${am_missing_run}tar"}
1636
1637 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1638
1639 # Installed binaries are usually stripped using `strip' when the user
1640 # run `make install-strip'. However `strip' might not be the right
1641 # tool to use in cross-compilation environments, therefore Automake
1642 # will honor the `STRIP' environment variable to overrule this program.
1643 if test "$cross_compiling" != no; then
1644 if test -n "$ac_tool_prefix"; then
1645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1646 set dummy ${ac_tool_prefix}strip; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_STRIP+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652 if test -n "$STRIP"; then
1653 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 STRIP=$ac_cv_prog_STRIP
1672 if test -n "$STRIP"; then
1673 echo "$as_me:$LINENO: result: $STRIP" >&5
1674 echo "${ECHO_T}$STRIP" >&6
1675 else
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680 fi
1681 if test -z "$ac_cv_prog_STRIP"; then
1682 ac_ct_STRIP=$STRIP
1683 # Extract the first word of "strip", so it can be a program name with args.
1684 set dummy strip; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 if test -n "$ac_ct_STRIP"; then
1691 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_ac_ct_STRIP="strip"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704 done
1705 done
1706
1707 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1708 fi
1709 fi
1710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1711 if test -n "$ac_ct_STRIP"; then
1712 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1713 echo "${ECHO_T}$ac_ct_STRIP" >&6
1714 else
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719 STRIP=$ac_ct_STRIP
1720 else
1721 STRIP="$ac_cv_prog_STRIP"
1722 fi
1723
1724 fi
1725 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1726
1727 # We need awk for the "check" target. The system "awk" is bad on
1728 # some platforms.
1729
1730
1731
1732 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1733 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1734 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1735 if test "${enable_maintainer_mode+set}" = set; then
1736 enableval="$enable_maintainer_mode"
1737 USE_MAINTAINER_MODE=$enableval
1738 else
1739 USE_MAINTAINER_MODE=no
1740 fi;
1741 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1742 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1743
1744
1745 if test $USE_MAINTAINER_MODE = yes; then
1746 MAINTAINER_MODE_TRUE=
1747 MAINTAINER_MODE_FALSE='#'
1748 else
1749 MAINTAINER_MODE_TRUE='#'
1750 MAINTAINER_MODE_FALSE=
1751 fi
1752
1753 MAINT=$MAINTAINER_MODE_TRUE
1754
1755
1756
1757 ac_config_headers="$ac_config_headers config.h"
1758
1759
1760 ac_ext=c
1761 ac_cpp='$CPP $CPPFLAGS'
1762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1765 if test -n "$ac_tool_prefix"; then
1766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_CC+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773 if test -n "$CC"; then
1774 ac_cv_prog_CC="$CC" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 for ac_exec_ext in '' $ac_executable_extensions; do
1782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785 break 2
1786 fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 CC=$ac_cv_prog_CC
1793 if test -n "$CC"; then
1794 echo "$as_me:$LINENO: result: $CC" >&5
1795 echo "${ECHO_T}$CC" >&6
1796 else
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801 fi
1802 if test -z "$ac_cv_prog_CC"; then
1803 ac_ct_CC=$CC
1804 # Extract the first word of "gcc", so it can be a program name with args.
1805 set dummy gcc; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="gcc"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1824 fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839 CC=$ac_ct_CC
1840 else
1841 CC="$ac_cv_prog_CC"
1842 fi
1843
1844 if test -z "$CC"; then
1845 if test -n "$ac_tool_prefix"; then
1846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1847 set dummy ${ac_tool_prefix}cc; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_CC="${ac_tool_prefix}cc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867 done
1868 done
1869
1870 fi
1871 fi
1872 CC=$ac_cv_prog_CC
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1876 else
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881 fi
1882 if test -z "$ac_cv_prog_CC"; then
1883 ac_ct_CC=$CC
1884 # Extract the first word of "cc", so it can be a program name with args.
1885 set dummy cc; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$ac_ct_CC"; then
1892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_ac_ct_CC="cc"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1904 fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911 if test -n "$ac_ct_CC"; then
1912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913 echo "${ECHO_T}$ac_ct_CC" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 CC=$ac_ct_CC
1920 else
1921 CC="$ac_cv_prog_CC"
1922 fi
1923
1924 fi
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 else
1936 ac_prog_rejected=no
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected=yes
1946 continue
1947 fi
1948 ac_cv_prog_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952 done
1953 done
1954
1955 if test $ac_prog_rejected = yes; then
1956 # We found a bogon in the path, so make sure we never use it.
1957 set dummy $ac_cv_prog_CC
1958 shift
1959 if test $# != 0; then
1960 # We chose a different compiler from the bogus one.
1961 # However, it has the same basename, so the bogon will be chosen
1962 # first if we set CC to just the basename; use the full file name.
1963 shift
1964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965 fi
1966 fi
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978 fi
1979 if test -z "$CC"; then
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in cl
1982 do
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004 done
2005 done
2006
2007 fi
2008 fi
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2013 else
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018 test -n "$CC" && break
2019 done
2020 fi
2021 if test -z "$CC"; then
2022 ac_ct_CC=$CC
2023 for ac_prog in cl
2024 do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046 done
2047 done
2048
2049 fi
2050 fi
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2055 else
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060 test -n "$ac_ct_CC" && break
2061 done
2062
2063 CC=$ac_ct_CC
2064 fi
2065
2066 fi
2067
2068
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2074
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO:" \
2077 "checking for C compiler version" >&5
2078 ac_compiler=`set X $ac_compile; echo $2`
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2080 (eval $ac_compiler --version </dev/null >&5) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2085 (eval $ac_compiler -v </dev/null >&5) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2090 (eval $ac_compiler -V </dev/null >&5) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }
2094
2095 cat >conftest.$ac_ext <<_ACEOF
2096 /* confdefs.h. */
2097 _ACEOF
2098 cat confdefs.h >>conftest.$ac_ext
2099 cat >>conftest.$ac_ext <<_ACEOF
2100 /* end confdefs.h. */
2101
2102 int
2103 main ()
2104 {
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 ac_clean_files_save=$ac_clean_files
2111 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2112 # Try to create an executable without -o first, disregard a.out.
2113 # It will help us diagnose broken compilers, and finding out an intuition
2114 # of exeext.
2115 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2116 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2117 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2119 (eval $ac_link_default) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; then
2123 # Find the output, starting from the most likely. This scheme is
2124 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125 # resort.
2126
2127 # Be careful to initialize this variable, since it used to be cached.
2128 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129 ac_cv_exeext=
2130 # b.out is created by i960 compilers.
2131 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132 do
2133 test -f "$ac_file" || continue
2134 case $ac_file in
2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2136 ;;
2137 conftest.$ac_ext )
2138 # This is the source file.
2139 ;;
2140 [ab].out )
2141 # We found the default executable, but exeext='' is most
2142 # certainly right.
2143 break;;
2144 *.* )
2145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 # FIXME: I believe we export ac_cv_exeext for Libtool,
2147 # but it would be cool to find out if it's true. Does anybody
2148 # maintain Libtool? --akim.
2149 export ac_cv_exeext
2150 break;;
2151 * )
2152 break;;
2153 esac
2154 done
2155 else
2156 echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&2;}
2163 { (exit 77); exit 77; }; }
2164 fi
2165
2166 ac_exeext=$ac_cv_exeext
2167 echo "$as_me:$LINENO: result: $ac_file" >&5
2168 echo "${ECHO_T}$ac_file" >&6
2169
2170 # Check the compiler produces executables we can run. If not, either
2171 # the compiler is broken, or we cross compile.
2172 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2173 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2174 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175 # If not cross compiling, check that we can run a simple program.
2176 if test "$cross_compiling" != yes; then
2177 if { ac_try='./$ac_file'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 cross_compiling=no
2184 else
2185 if test "$cross_compiling" = maybe; then
2186 cross_compiling=yes
2187 else
2188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2189 If you meant to cross compile, use \`--host'.
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2195 fi
2196 fi
2197 fi
2198 echo "$as_me:$LINENO: result: yes" >&5
2199 echo "${ECHO_T}yes" >&6
2200
2201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2202 ac_clean_files=$ac_clean_files_save
2203 # Check the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208 echo "${ECHO_T}$cross_compiling" >&6
2209
2210 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213 (eval $ac_link) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2219 # work properly (i.e., refer to `conftest.exe'), while it won't with
2220 # `rm'.
2221 for ac_file in conftest.exe conftest conftest.*; do
2222 test -f "$ac_file" || continue
2223 case $ac_file in
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226 export ac_cv_exeext
2227 break;;
2228 * ) break;;
2229 esac
2230 done
2231 else
2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2237 fi
2238
2239 rm -f conftest$ac_cv_exeext
2240 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241 echo "${ECHO_T}$ac_cv_exeext" >&6
2242
2243 rm -f conftest.$ac_ext
2244 EXEEXT=$ac_cv_exeext
2245 ac_exeext=$EXEEXT
2246 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248 if test "${ac_cv_objext+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h. */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2257
2258 int
2259 main ()
2260 {
2261
2262 ;
2263 return 0;
2264 }
2265 _ACEOF
2266 rm -f conftest.o conftest.obj
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273 case $ac_file in
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2276 break;;
2277 esac
2278 done
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2288 fi
2289
2290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2291 fi
2292 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2293 echo "${ECHO_T}$ac_cv_objext" >&6
2294 OBJEXT=$ac_cv_objext
2295 ac_objext=$OBJEXT
2296 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h. */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2307
2308 int
2309 main ()
2310 {
2311 #ifndef __GNUC__
2312 choke me
2313 #endif
2314
2315 ;
2316 return 0;
2317 }
2318 _ACEOF
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2322 ac_status=$?
2323 grep -v '^ *+' conftest.er1 >conftest.err
2324 rm -f conftest.er1
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2341 ac_compiler_gnu=yes
2342 else
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 ac_compiler_gnu=no
2347 fi
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2350
2351 fi
2352 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2353 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2354 GCC=`test $ac_compiler_gnu = yes && echo yes`
2355 ac_test_CFLAGS=${CFLAGS+set}
2356 ac_save_CFLAGS=$CFLAGS
2357 CFLAGS="-g"
2358 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2359 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2360 if test "${ac_cv_prog_cc_g+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h. */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2369
2370 int
2371 main ()
2372 {
2373
2374 ;
2375 return 0;
2376 }
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 (eval $ac_try) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_prog_cc_g=yes
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_cv_prog_cc_g=no
2406 fi
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 fi
2409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411 if test "$ac_test_CFLAGS" = set; then
2412 CFLAGS=$ac_save_CFLAGS
2413 elif test $ac_cv_prog_cc_g = yes; then
2414 if test "$GCC" = yes; then
2415 CFLAGS="-g -O2"
2416 else
2417 CFLAGS="-g"
2418 fi
2419 else
2420 if test "$GCC" = yes; then
2421 CFLAGS="-O2"
2422 else
2423 CFLAGS=
2424 fi
2425 fi
2426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_cv_prog_cc_stdc=no
2432 ac_save_CC=$CC
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h. */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2439 #include <stdarg.h>
2440 #include <stdio.h>
2441 #include <sys/types.h>
2442 #include <sys/stat.h>
2443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2444 struct buf { int x; };
2445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446 static char *e (p, i)
2447 char **p;
2448 int i;
2449 {
2450 return p[i];
2451 }
2452 static char *f (char * (*g) (char **, int), char **p, ...)
2453 {
2454 char *s;
2455 va_list v;
2456 va_start (v,p);
2457 s = g (p, va_arg (v,int));
2458 va_end (v);
2459 return s;
2460 }
2461
2462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2463 function prototypes and stuff, but not '\xHH' hex character constants.
2464 These don't provoke an error unfortunately, instead are silently treated
2465 as 'x'. The following induces an error, until -std1 is added to get
2466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2467 array size at least. It's necessary to write '\x00'==0 to get something
2468 that's true only with -std1. */
2469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475 int argc;
2476 char **argv;
2477 int
2478 main ()
2479 {
2480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2481 ;
2482 return 0;
2483 }
2484 _ACEOF
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX -qlanglvl=ansi
2488 # Ultrix and OSF/1 -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions -Aa -D_HPUX_SOURCE
2491 # SVR4 -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 do
2494 CC="$ac_save_CC $ac_arg"
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_prog_cc_stdc=$ac_arg
2518 break
2519 else
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 fi
2524 rm -f conftest.err conftest.$ac_objext
2525 done
2526 rm -f conftest.$ac_ext conftest.$ac_objext
2527 CC=$ac_save_CC
2528
2529 fi
2530
2531 case "x$ac_cv_prog_cc_stdc" in
2532 x|xno)
2533 echo "$as_me:$LINENO: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2535 *)
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2539 esac
2540
2541 # Some people use a C++ compiler to compile C. Since we use `exit',
2542 # in C++ we need to declare it. In case someone uses the same compiler
2543 # for both compiling C and C++ we need to have the C++ compiler decide
2544 # the declaration of exit, since it's the most demanding environment.
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #ifndef __cplusplus
2547 choke me
2548 #endif
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 for ac_declaration in \
2573 '' \
2574 'extern "C" void std::exit (int) throw (); using std::exit;' \
2575 'extern "C" void std::exit (int); using std::exit;' \
2576 'extern "C" void exit (int) throw ();' \
2577 'extern "C" void exit (int);' \
2578 'void exit (int);'
2579 do
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h. */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2586 $ac_declaration
2587 #include <stdlib.h>
2588 int
2589 main ()
2590 {
2591 exit (42);
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 :
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 continue
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2632 $ac_declaration
2633 int
2634 main ()
2635 {
2636 exit (42);
2637 ;
2638 return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 break
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 done
2671 rm -f conftest*
2672 if test -n "$ac_declaration"; then
2673 echo '#ifdef __cplusplus' >>confdefs.h
2674 echo $ac_declaration >>confdefs.h
2675 echo '#endif' >>confdefs.h
2676 fi
2677
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 fi
2683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 ac_ext=c
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 DEPDIR="${am__leading_dot}deps"
2690
2691 ac_config_commands="$ac_config_commands depfiles"
2692
2693
2694 am_make=${MAKE-make}
2695 cat > confinc << 'END'
2696 am__doit:
2697 @echo done
2698 .PHONY: am__doit
2699 END
2700 # If we don't find an include directive, just comment out the code.
2701 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2702 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2703 am__include="#"
2704 am__quote=
2705 _am_result=none
2706 # First try GNU make style include.
2707 echo "include confinc" > confmf
2708 # We grep out `Entering directory' and `Leaving directory'
2709 # messages which can occur if `w' ends up in MAKEFLAGS.
2710 # In particular we don't look at `^make:' because GNU make might
2711 # be invoked under some other name (usually "gmake"), in which
2712 # case it prints its new name instead of `make'.
2713 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2714 am__include=include
2715 am__quote=
2716 _am_result=GNU
2717 fi
2718 # Now try BSD make style include.
2719 if test "$am__include" = "#"; then
2720 echo '.include "confinc"' > confmf
2721 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2722 am__include=.include
2723 am__quote="\""
2724 _am_result=BSD
2725 fi
2726 fi
2727
2728
2729 echo "$as_me:$LINENO: result: $_am_result" >&5
2730 echo "${ECHO_T}$_am_result" >&6
2731 rm -f confinc confmf
2732
2733 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2734 if test "${enable_dependency_tracking+set}" = set; then
2735 enableval="$enable_dependency_tracking"
2736
2737 fi;
2738 if test "x$enable_dependency_tracking" != xno; then
2739 am_depcomp="$ac_aux_dir/depcomp"
2740 AMDEPBACKSLASH='\'
2741 fi
2742
2743
2744 if test "x$enable_dependency_tracking" != xno; then
2745 AMDEP_TRUE=
2746 AMDEP_FALSE='#'
2747 else
2748 AMDEP_TRUE='#'
2749 AMDEP_FALSE=
2750 fi
2751
2752
2753
2754
2755 depcc="$CC" am_compiler_list=
2756
2757 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2758 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2759 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2763 # We make a subdir and do the tests there. Otherwise we can end up
2764 # making bogus files that we don't know about and never remove. For
2765 # instance it was reported that on HP-UX the gcc test will end up
2766 # making a dummy file named `D' -- because `-MD' means `put the output
2767 # in D'.
2768 mkdir conftest.dir
2769 # Copy depcomp to subdir because otherwise we won't find it if we're
2770 # using a relative directory.
2771 cp "$am_depcomp" conftest.dir
2772 cd conftest.dir
2773 # We will build objects and dependencies in a subdirectory because
2774 # it helps to detect inapplicable dependency modes. For instance
2775 # both Tru64's cc and ICC support -MD to output dependencies as a
2776 # side effect of compilation, but ICC will put the dependencies in
2777 # the current directory while Tru64 will put them in the object
2778 # directory.
2779 mkdir sub
2780
2781 am_cv_CC_dependencies_compiler_type=none
2782 if test "$am_compiler_list" = ""; then
2783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2784 fi
2785 for depmode in $am_compiler_list; do
2786 # Setup a source with many dependencies, because some compilers
2787 # like to wrap large dependency lists on column 80 (with \), and
2788 # we should not choose a depcomp mode which is confused by this.
2789 #
2790 # We need to recreate these files for each test, as the compiler may
2791 # overwrite some of them when testing with obscure command lines.
2792 # This happens at least with the AIX C compiler.
2793 : > sub/conftest.c
2794 for i in 1 2 3 4 5 6; do
2795 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2796 : > sub/conftst$i.h
2797 done
2798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2799
2800 case $depmode in
2801 nosideeffect)
2802 # after this tag, mechanisms are not by side-effect, so they'll
2803 # only be used when explicitly requested
2804 if test "x$enable_dependency_tracking" = xyes; then
2805 continue
2806 else
2807 break
2808 fi
2809 ;;
2810 none) break ;;
2811 esac
2812 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2813 # mode. It turns out that the SunPro C++ compiler does not properly
2814 # handle `-M -o', and we need to detect this.
2815 if depmode=$depmode \
2816 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2818 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2819 >/dev/null 2>conftest.err &&
2820 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2821 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2822 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2823 # icc doesn't choke on unknown options, it will just issue warnings
2824 # (even with -Werror). So we grep stderr for any message
2825 # that says an option was ignored.
2826 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2827 am_cv_CC_dependencies_compiler_type=$depmode
2828 break
2829 fi
2830 fi
2831 done
2832
2833 cd ..
2834 rm -rf conftest.dir
2835 else
2836 am_cv_CC_dependencies_compiler_type=none
2837 fi
2838
2839 fi
2840 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2841 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2843
2844
2845
2846 if
2847 test "x$enable_dependency_tracking" != xno \
2848 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2849 am__fastdepCC_TRUE=
2850 am__fastdepCC_FALSE='#'
2851 else
2852 am__fastdepCC_TRUE='#'
2853 am__fastdepCC_FALSE=
2854 fi
2855
2856
2857 # Find a good install program. We prefer a C program (faster),
2858 # so one script is as good as another. But avoid the broken or
2859 # incompatible versions:
2860 # SysV /etc/install, /usr/sbin/install
2861 # SunOS /usr/etc/install
2862 # IRIX /sbin/install
2863 # AIX /bin/install
2864 # AmigaOS /C/install, which installs bootblocks on floppy discs
2865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868 # OS/2's system install, which has a completely different semantic
2869 # ./install, which can be erroneously created by make from ./install.sh.
2870 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2871 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2872 if test -z "$INSTALL"; then
2873 if test "${ac_cv_path_install+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in
2883 ./ | .// | /cC/* | \
2884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2886 /usr/ucb/* ) ;;
2887 *)
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2890 # by default.
2891 for ac_prog in ginstall scoinst install; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2894 if test $ac_prog = install &&
2895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2897 :
2898 elif test $ac_prog = install &&
2899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2901 :
2902 else
2903 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2904 break 3
2905 fi
2906 fi
2907 done
2908 done
2909 ;;
2910 esac
2911 done
2912
2913
2914 fi
2915 if test "${ac_cv_path_install+set}" = set; then
2916 INSTALL=$ac_cv_path_install
2917 else
2918 # As a last resort, use the slow shell script. We don't cache a
2919 # path for INSTALL within a source directory, because that will
2920 # break other packages using the cache if that directory is
2921 # removed, or if the path is relative.
2922 INSTALL=$ac_install_sh
2923 fi
2924 fi
2925 echo "$as_me:$LINENO: result: $INSTALL" >&5
2926 echo "${ECHO_T}$INSTALL" >&6
2927
2928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929 # It thinks the first close brace ends the variable substitution.
2930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931
2932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933
2934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935
2936
2937 # Extract the first word of "sed", so it can be a program name with args.
2938 set dummy sed; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_path_SED+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 case $SED in
2945 [\\/]* | ?:[\\/]*)
2946 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2947 ;;
2948 *)
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962
2963 ;;
2964 esac
2965 fi
2966 SED=$ac_cv_path_SED
2967
2968 if test -n "$SED"; then
2969 echo "$as_me:$LINENO: result: $SED" >&5
2970 echo "${ECHO_T}$SED" >&6
2971 else
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2974 fi
2975
2976 if [ -z $SED ] ; then
2977 { { echo "$as_me:$LINENO: error: sed is needed to build x11perf" >&5
2978 echo "$as_me: error: sed is needed to build x11perf" >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981
2982
2983 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
2984 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2985 if test "${ac_cv_type_signal+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994 #include <sys/types.h>
2995 #include <signal.h>
2996 #ifdef signal
2997 # undef signal
2998 #endif
2999 #ifdef __cplusplus
3000 extern "C" void (*signal (int, void (*)(int)))(int);
3001 #else
3002 void (*signal ()) ();
3003 #endif
3004
3005 int
3006 main ()
3007 {
3008 int i;
3009 ;
3010 return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015 (eval $ac_compile) 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
3022 { ac_try='test -z "$ac_c_werror_flag"
3023 || test ! -s conftest.err'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_cv_type_signal=void
3036 else
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 ac_cv_type_signal=int
3041 fi
3042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043 fi
3044 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3045 echo "${ECHO_T}$ac_cv_type_signal" >&6
3046
3047 cat >>confdefs.h <<_ACEOF
3048 #define RETSIGTYPE $ac_cv_type_signal
3049 _ACEOF
3050
3051
3052
3053 # Checks for pkg-config packages
3054
3055
3056 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 case $PKG_CONFIG in
3066 [\\/]* | ?:[\\/]*)
3067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3068 ;;
3069 *)
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083
3084 ;;
3085 esac
3086 fi
3087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3088
3089 if test -n "$PKG_CONFIG"; then
3090 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3091 echo "${ECHO_T}$PKG_CONFIG" >&6
3092 else
3093 echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3095 fi
3096
3097 fi
3098 if test -z "$ac_cv_path_PKG_CONFIG"; then
3099 ac_pt_PKG_CONFIG=$PKG_CONFIG
3100 # Extract the first word of "pkg-config", so it can be a program name with args.
3101 set dummy pkg-config; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 case $ac_pt_PKG_CONFIG in
3108 [\\/]* | ?:[\\/]*)
3109 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3110 ;;
3111 *)
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125
3126 ;;
3127 esac
3128 fi
3129 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3130
3131 if test -n "$ac_pt_PKG_CONFIG"; then
3132 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3133 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3137 fi
3138
3139 PKG_CONFIG=$ac_pt_PKG_CONFIG
3140 else
3141 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3142 fi
3143
3144 fi
3145 if test -n "$PKG_CONFIG"; then
3146 _pkg_min_version=0.9.0
3147 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3148 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3149 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152 else
3153 echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3155 PKG_CONFIG=""
3156 fi
3157
3158 fi
3159
3160 pkg_failed=no
3161 echo "$as_me:$LINENO: checking for X11PERF" >&5
3162 echo $ECHO_N "checking for X11PERF... $ECHO_C" >&6
3163
3164 if test -n "$PKG_CONFIG"; then
3165 if test -n "$PKG_CONFIG" && \
3166 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
3167 ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 pkg_cv_X11PERF_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu" 2>/dev/null`
3172 else
3173 pkg_failed=yes
3174 fi
3175 else
3176 pkg_failed=untried
3177 fi
3178 if test -n "$PKG_CONFIG"; then
3179 if test -n "$PKG_CONFIG" && \
3180 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu\"") >&5
3181 ($PKG_CONFIG --exists --print-errors "x11 xmuu") 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; then
3185 pkg_cv_X11PERF_LIBS=`$PKG_CONFIG --libs "x11 xmuu" 2>/dev/null`
3186 else
3187 pkg_failed=yes
3188 fi
3189 else
3190 pkg_failed=untried
3191 fi
3192
3193 if test $pkg_failed = yes; then
3194 X11PERF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xmuu"`
3195 # Put the nasty error message in config.log where it belongs
3196 echo "$X11PERF_PKG_ERRORS" 1>&5
3197
3198 { { echo "$as_me:$LINENO: error: Package requirements (x11 xmuu) were not met.
3199 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3200 installed software in a non-standard prefix.
3201
3202 Alternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3203 to avoid the need to call pkg-config. See the pkg-config man page for
3204 more details." >&5
3205 echo "$as_me: error: Package requirements (x11 xmuu) were not met.
3206 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3207 installed software in a non-standard prefix.
3208
3209 Alternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3210 to avoid the need to call pkg-config. See the pkg-config man page for
3211 more details." >&2;}
3212 { (exit 1); exit 1; }; }
3213 elif test $pkg_failed = untried; then
3214 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3215 is in your PATH or set the PKG_CONFIG environment variable to the full
3216 path to pkg-config.
3217
3218 Alternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3219 to avoid the need to call pkg-config. See the pkg-config man page for
3220 more details.
3221
3222 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3225 is in your PATH or set the PKG_CONFIG environment variable to the full
3226 path to pkg-config.
3227
3228 Alternatively you may set the X11PERF_CFLAGS and X11PERF_LIBS environment variables
3229 to avoid the need to call pkg-config. See the pkg-config man page for
3230 more details.
3231
3232 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3233 See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }
3235 else
3236 X11PERF_CFLAGS=$pkg_cv_X11PERF_CFLAGS
3237 X11PERF_LIBS=$pkg_cv_X11PERF_LIBS
3238 echo "$as_me:$LINENO: result: yes" >&5
3239 echo "${ECHO_T}yes" >&6
3240 :
3241 fi
3242
3243
3244
3245 # Check for Xrender library
3246
3247 pkg_failed=no
3248 echo "$as_me:$LINENO: checking for XRENDER" >&5
3249 echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6
3250
3251 if test -n "$PKG_CONFIG"; then
3252 if test -n "$PKG_CONFIG" && \
3253 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender\"") >&5
3254 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; then
3258 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null`
3259 else
3260 pkg_failed=yes
3261 fi
3262 else
3263 pkg_failed=untried
3264 fi
3265 if test -n "$PKG_CONFIG"; then
3266 if test -n "$PKG_CONFIG" && \
3267 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender\"") >&5
3268 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; then
3272 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null`
3273 else
3274 pkg_failed=yes
3275 fi
3276 else
3277 pkg_failed=untried
3278 fi
3279
3280 if test $pkg_failed = yes; then
3281 XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender"`
3282 # Put the nasty error message in config.log where it belongs
3283 echo "$XRENDER_PKG_ERRORS" 1>&5
3284
3285 xrender_found=no
3286 elif test $pkg_failed = untried; then
3287 xrender_found=no
3288 else
3289 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
3290 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
3291 echo "$as_me:$LINENO: result: yes" >&5
3292 echo "${ECHO_T}yes" >&6
3293 xrender_found=yes
3294 fi
3295
3296
3297 case "$xrender_found" in
3298 yes)
3299
3300 cat >>confdefs.h <<\_ACEOF
3301 #define XRENDER 1
3302 _ACEOF
3303
3304 ;;
3305 esac
3306
3307 # Check for Xft library
3308
3309 pkg_failed=no
3310 echo "$as_me:$LINENO: checking for XFT" >&5
3311 echo $ECHO_N "checking for XFT... $ECHO_C" >&6
3312
3313 if test -n "$PKG_CONFIG"; then
3314 if test -n "$PKG_CONFIG" && \
3315 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
3316 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; then
3320 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
3321 else
3322 pkg_failed=yes
3323 fi
3324 else
3325 pkg_failed=untried
3326 fi
3327 if test -n "$PKG_CONFIG"; then
3328 if test -n "$PKG_CONFIG" && \
3329 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
3330 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; then
3334 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
3335 else
3336 pkg_failed=yes
3337 fi
3338 else
3339 pkg_failed=untried
3340 fi
3341
3342 if test $pkg_failed = yes; then
3343 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
3344 # Put the nasty error message in config.log where it belongs
3345 echo "$XFT_PKG_ERRORS" 1>&5
3346
3347 xft_found=no
3348 elif test $pkg_failed = untried; then
3349 xft_found=no
3350 else
3351 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
3352 XFT_LIBS=$pkg_cv_XFT_LIBS
3353 echo "$as_me:$LINENO: result: yes" >&5
3354 echo "${ECHO_T}yes" >&6
3355 xft_found=yes
3356 fi
3357
3358
3359 case "$xft_found" in
3360 yes)
3361
3362 cat >>confdefs.h <<\_ACEOF
3363 #define XFT 1
3364 _ACEOF
3365
3366 ;;
3367 esac
3368
3369 # Check for MIT-SHM extension
3370
3371 pkg_failed=no
3372 echo "$as_me:$LINENO: checking for XEXT" >&5
3373 echo $ECHO_N "checking for XEXT... $ECHO_C" >&6
3374
3375 if test -n "$PKG_CONFIG"; then
3376 if test -n "$PKG_CONFIG" && \
3377 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
3378 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; then
3382 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
3383 else
3384 pkg_failed=yes
3385 fi
3386 else
3387 pkg_failed=untried
3388 fi
3389 if test -n "$PKG_CONFIG"; then
3390 if test -n "$PKG_CONFIG" && \
3391 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
3392 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; then
3396 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
3397 else
3398 pkg_failed=yes
3399 fi
3400 else
3401 pkg_failed=untried
3402 fi
3403
3404 if test $pkg_failed = yes; then
3405 XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
3406 # Put the nasty error message in config.log where it belongs
3407 echo "$XEXT_PKG_ERRORS" 1>&5
3408
3409 xext_found=no
3410 elif test $pkg_failed = untried; then
3411 xext_found=no
3412 else
3413 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
3414 XEXT_LIBS=$pkg_cv_XEXT_LIBS
3415 echo "$as_me:$LINENO: result: yes" >&5
3416 echo "${ECHO_T}yes" >&6
3417 xext_found=yes
3418 fi
3419
3420
3421 case "$xext_found" in
3422 yes)
3423 save_LIBS="$LIBS"
3424 LIBS="$XEXT_LIBS $LIBS"
3425
3426 for ac_func in XShmQueryExtension
3427 do
3428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3429 echo "$as_me:$LINENO: checking for $ac_func" >&5
3430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3431 if eval "test \"\${$as_ac_var+set}\" = set"; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h. */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3442 #define $ac_func innocuous_$ac_func
3443
3444 /* System header to define __stub macros and hopefully few prototypes,
3445 which can conflict with char $ac_func (); below.
3446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 <limits.h> exists even on freestanding compilers. */
3448
3449 #ifdef __STDC__
3450 # include <limits.h>
3451 #else
3452 # include <assert.h>
3453 #endif
3454
3455 #undef $ac_func
3456
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 #ifdef __cplusplus
3459 extern "C"
3460 {
3461 #endif
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3464 char $ac_func ();
3465 /* The GNU C library defines this for functions which it implements
3466 to always fail with ENOSYS. Some functions are actually named
3467 something starting with __ and the normal name is an alias. */
3468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3469 choke me
3470 #else
3471 char (*f) () = $ac_func;
3472 #endif
3473 #ifdef __cplusplus
3474 }
3475 #endif
3476
3477 int
3478 main ()
3479 {
3480 return f != $ac_func;
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 rm -f conftest.$ac_objext conftest$ac_exeext
3486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3487 (eval $ac_link) 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest$ac_exeext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 eval "$as_ac_var=yes"
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 eval "$as_ac_var=no"
3513 fi
3514 rm -f conftest.err conftest.$ac_objext \
3515 conftest$ac_exeext conftest.$ac_ext
3516 fi
3517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3519 if test `eval echo '${'$as_ac_var'}'` = yes; then
3520 cat >>confdefs.h <<_ACEOF
3521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3522 _ACEOF
3523
3524 cat >>confdefs.h <<\_ACEOF
3525 #define MITSHM 1
3526 _ACEOF
3527
3528 fi
3529 done
3530
3531 LIBS="$save_LIBS"
3532 ;;
3533 esac
3534
3535 # Make sure we can run config.sub.
3536 $ac_config_sub sun4 >/dev/null 2>&1 ||
3537 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3538 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3539 { (exit 1); exit 1; }; }
3540
3541 echo "$as_me:$LINENO: checking build system type" >&5
3542 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3543 if test "${ac_cv_build+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 ac_cv_build_alias=$build_alias
3547 test -z "$ac_cv_build_alias" &&
3548 ac_cv_build_alias=`$ac_config_guess`
3549 test -z "$ac_cv_build_alias" &&
3550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3552 { (exit 1); exit 1; }; }
3553 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3555 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3557
3558 fi
3559 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3560 echo "${ECHO_T}$ac_cv_build" >&6
3561 build=$ac_cv_build
3562 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3563 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3564 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3565
3566
3567 echo "$as_me:$LINENO: checking host system type" >&5
3568 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3569 if test "${ac_cv_host+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572 ac_cv_host_alias=$host_alias
3573 test -z "$ac_cv_host_alias" &&
3574 ac_cv_host_alias=$ac_cv_build_alias
3575 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3577 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3578 { (exit 1); exit 1; }; }
3579
3580 fi
3581 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3582 echo "${ECHO_T}$ac_cv_host" >&6
3583 host=$ac_cv_host
3584 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3585 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3586 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3587
3588
3589
3590
3591
3592 if test x$APP_MAN_SUFFIX = x ; then
3593 case $host_os in
3594 linux*) APP_MAN_SUFFIX=1x ;;
3595 *) APP_MAN_SUFFIX=1 ;;
3596 esac
3597 fi
3598 if test x$APP_MAN_DIR = x ; then
3599 case $host_os in
3600 linux*) APP_MAN_DIR='$(mandir)/man1' ;;
3601 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
3602 esac
3603 fi
3604
3605 if test x$LIB_MAN_SUFFIX = x ; then
3606 case $host_os in
3607 linux*) LIB_MAN_SUFFIX=3x ;;
3608 *) LIB_MAN_SUFFIX=3 ;;
3609 esac
3610 fi
3611 if test x$LIB_MAN_DIR = x ; then
3612 case $host_os in
3613 linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
3614 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
3615 esac
3616 fi
3617
3618 if test x$FILE_MAN_SUFFIX = x ; then
3619 case $host_os in
3620 linux*) FILE_MAN_SUFFIX=5x ;;
3621 solaris*) FILE_MAN_SUFFIX=4 ;;
3622 *) FILE_MAN_SUFFIX=5 ;;
3623 esac
3624 fi
3625 if test x$FILE_MAN_DIR = x ; then
3626 case $host_os in
3627 linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
3628 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
3629 esac
3630 fi
3631
3632 # In Imake's linux.cf, the misc man suffix & dir was only changed for
3633 # LinuxDebian, not other Linuxes, so we leave it unchanged here
3634 if test x$MISC_MAN_SUFFIX = x ; then
3635 case $host_os in
3636 # linux*) MISC_MAN_SUFFIX=7x ;;
3637 solaris*) MISC_MAN_SUFFIX=5 ;;
3638 *) MISC_MAN_SUFFIX=7 ;;
3639 esac
3640 fi
3641 if test x$MISC_MAN_DIR = x ; then
3642 case $host_os in
3643 # linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
3644 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
3645 esac
3646 fi
3647
3648 # In Imake's linux.cf, the driver man suffix & dir was only changed for
3649 # LinuxDebian, not other Linuxes, so we leave it unchanged here
3650 if test x$DRIVER_MAN_SUFFIX = x ; then
3651 case $host_os in
3652 # linux*) DRIVER_MAN_SUFFIX=4x ;;
3653 solaris*) DRIVER_MAN_SUFFIX=7 ;;
3654 *) DRIVER_MAN_SUFFIX=4 ;;
3655 esac
3656 fi
3657 if test x$DRIVER_MAN_DIR = x ; then
3658 case $host_os in
3659 # linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
3660 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
3661 esac
3662 fi
3663
3664 if test x$ADMIN_MAN_SUFFIX = x ; then
3665 case $host_os in
3666 solaris*) ADMIN_MAN_SUFFIX=1m ;;
3667 *) ADMIN_MAN_SUFFIX=8 ;;
3668 esac
3669 fi
3670 if test x$ADMIN_MAN_DIR = x ; then
3671 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
3672 fi
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690 # Check whether --with-release-version or --without-release-version was given.
3691 if test "${with_release_version+set}" = set; then
3692 withval="$with_release_version"
3693 RELEASE_VERSION="$withval"
3694 else
3695 RELEASE_VERSION=""
3696 fi;
3697 if test "x$RELEASE_VERSION" != "x"; then
3698 PACKAGE="$PACKAGE-$RELEASE_VERSION"
3699 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
3700 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
3701 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
3702 fi
3703
3704
3705 ac_config_files="$ac_config_files Makefile"
3706 cat >confcache <<\_ACEOF
3707 # This file is a shell script that caches the results of configure
3708 # tests run on this system so they can be shared between configure
3709 # scripts and configure runs, see configure's option --config-cache.
3710 # It is not useful on other systems. If it contains results you don't
3711 # want to keep, you may remove or edit it.
3712 #
3713 # config.status only pays attention to the cache file if you give it
3714 # the --recheck option to rerun configure.
3715 #
3716 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3717 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3718 # following values.
3719
3720 _ACEOF
3721
3722 # The following way of writing the cache mishandles newlines in values,
3723 # but we know of no workaround that is simple, portable, and efficient.
3724 # So, don't put newlines in cache variables' values.
3725 # Ultrix sh set writes to stderr and can't be redirected directly,
3726 # and sets the high bit in the cache file unless we assign to the vars.
3727 {
3728 (set) 2>&1 |
3729 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3730 *ac_space=\ *)
3731 # `set' does not quote correctly, so add quotes (double-quote
3732 # substitution turns \\\\ into \\, and sed turns \\ into \).
3733 sed -n \
3734 "s/'/'\\\\''/g;
3735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3736 ;;
3737 *)
3738 # `set' quotes correctly as required by POSIX, so do not add quotes.
3739 sed -n \
3740 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3741 ;;
3742 esac;
3743 } |
3744 sed '
3745 t clear
3746 : clear
3747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3748 t end
3749 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3750 : end' >>confcache
3751 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3752 if test -w $cache_file; then
3753 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3754 cat confcache >$cache_file
3755 else
3756 echo "not updating unwritable cache $cache_file"
3757 fi
3758 fi
3759 rm -f confcache
3760
3761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3762 # Let make expand exec_prefix.
3763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3764
3765 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3766 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3767 # trailing colons and then remove the whole line if VPATH becomes empty
3768 # (actually we leave an empty line to preserve line numbers).
3769 if test "x$srcdir" = x.; then
3770 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3771 s/:*\$(srcdir):*/:/;
3772 s/:*\${srcdir}:*/:/;
3773 s/:*@srcdir@:*/:/;
3774 s/^\([^=]*=[ ]*\):*/\1/;
3775 s/:*$//;
3776 s/^[^=]*=[ ]*$//;
3777 }'
3778 fi
3779
3780 DEFS=-DHAVE_CONFIG_H
3781
3782 ac_libobjs=
3783 ac_ltlibobjs=
3784 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3785 # 1. Remove the extension, and $U if already installed.
3786 ac_i=`echo "$ac_i" |
3787 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3788 # 2. Add them.
3789 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3790 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3791 done
3792 LIBOBJS=$ac_libobjs
3793
3794 LTLIBOBJS=$ac_ltlibobjs
3795
3796
3797 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3798 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
3799 Usually this means the macro was only invoked conditionally." >&5
3800 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3801 Usually this means the macro was only invoked conditionally." >&2;}
3802 { (exit 1); exit 1; }; }
3803 fi
3804 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3805 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3806 Usually this means the macro was only invoked conditionally." >&5
3807 echo "$as_me: error: conditional \"AMDEP\" was never defined.
3808 Usually this means the macro was only invoked conditionally." >&2;}
3809 { (exit 1); exit 1; }; }
3810 fi
3811 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3812 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3813 Usually this means the macro was only invoked conditionally." >&5
3814 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3815 Usually this means the macro was only invoked conditionally." >&2;}
3816 { (exit 1); exit 1; }; }
3817 fi
3818
3819 : ${CONFIG_STATUS=./config.status}
3820 ac_clean_files_save=$ac_clean_files
3821 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3822 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3823 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3824 cat >$CONFIG_STATUS <<_ACEOF
3825 #! $SHELL
3826 # Generated by $as_me.
3827 # Run this file to recreate the current configuration.
3828 # Compiler output produced by configure, useful for debugging
3829 # configure, is in config.log if it exists.
3830
3831 debug=false
3832 ac_cs_recheck=false
3833 ac_cs_silent=false
3834 SHELL=\${CONFIG_SHELL-$SHELL}
3835 _ACEOF
3836
3837 cat >>$CONFIG_STATUS <<\_ACEOF
3838 ## --------------------- ##
3839 ## M4sh Initialization. ##
3840 ## --------------------- ##
3841
3842 # Be Bourne compatible
3843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3844 emulate sh
3845 NULLCMD=:
3846 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3847 # is contrary to our usage. Disable this feature.
3848 alias -g '${1+"$@"}'='"$@"'
3849 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3850 set -o posix
3851 fi
3852 DUALCASE=1; export DUALCASE # for MKS sh
3853
3854 # Support unset when possible.
3855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3856 as_unset=unset
3857 else
3858 as_unset=false
3859 fi
3860
3861
3862 # Work around bugs in pre-3.0 UWIN ksh.
3863 $as_unset ENV MAIL MAILPATH
3864 PS1='$ '
3865 PS2='> '
3866 PS4='+ '
3867
3868 # NLS nuisances.
3869 for as_var in \
3870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3872 LC_TELEPHONE LC_TIME
3873 do
3874 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3875 eval $as_var=C; export $as_var
3876 else
3877 $as_unset $as_var
3878 fi
3879 done
3880
3881 # Required to use basename.
3882 if expr a : '\(a\)' >/dev/null 2>&1; then
3883 as_expr=expr
3884 else
3885 as_expr=false
3886 fi
3887
3888 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3889 as_basename=basename
3890 else
3891 as_basename=false
3892 fi
3893
3894
3895 # Name of the executable.
3896 as_me=`$as_basename "$0" ||
3897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3898 X"$0" : 'X\(//\)$' \| \
3899 X"$0" : 'X\(/\)$' \| \
3900 . : '\(.\)' 2>/dev/null ||
3901 echo X/"$0" |
3902 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3903 /^X\/\(\/\/\)$/{ s//\1/; q; }
3904 /^X\/\(\/\).*/{ s//\1/; q; }
3905 s/.*/./; q'`
3906
3907
3908 # PATH needs CR, and LINENO needs CR and PATH.
3909 # Avoid depending upon Character Ranges.
3910 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3911 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3912 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3913 as_cr_digits='0123456789'
3914 as_cr_alnum=$as_cr_Letters$as_cr_digits
3915
3916 # The user is always right.
3917 if test "${PATH_SEPARATOR+set}" != set; then
3918 echo "#! /bin/sh" >conf$$.sh
3919 echo "exit 0" >>conf$$.sh
3920 chmod +x conf$$.sh
3921 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3922 PATH_SEPARATOR=';'
3923 else
3924 PATH_SEPARATOR=:
3925 fi
3926 rm -f conf$$.sh
3927 fi
3928
3929
3930 as_lineno_1=$LINENO
3931 as_lineno_2=$LINENO
3932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3933 test "x$as_lineno_1" != "x$as_lineno_2" &&
3934 test "x$as_lineno_3" = "x$as_lineno_2" || {
3935 # Find who we are. Look in the path if we contain no path at all
3936 # relative or not.
3937 case $0 in
3938 *[\\/]* ) as_myself=$0 ;;
3939 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3945 done
3946
3947 ;;
3948 esac
3949 # We did not find ourselves, most probably we were run as `sh COMMAND'
3950 # in which case we are not to be found in the path.
3951 if test "x$as_myself" = x; then
3952 as_myself=$0
3953 fi
3954 if test ! -f "$as_myself"; then
3955 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3956 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3957 { (exit 1); exit 1; }; }
3958 fi
3959 case $CONFIG_SHELL in
3960 '')
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3963 do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for as_base in sh bash ksh sh5; do
3967 case $as_dir in
3968 /*)
3969 if ("$as_dir/$as_base" -c '
3970 as_lineno_1=$LINENO
3971 as_lineno_2=$LINENO
3972 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3973 test "x$as_lineno_1" != "x$as_lineno_2" &&
3974 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3975 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3976 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3977 CONFIG_SHELL=$as_dir/$as_base
3978 export CONFIG_SHELL
3979 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3980 fi;;
3981 esac
3982 done
3983 done
3984 ;;
3985 esac
3986
3987 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3988 # uniformly replaced by the line number. The first 'sed' inserts a
3989 # line-number line before each line; the second 'sed' does the real
3990 # work. The second script uses 'N' to pair each line-number line
3991 # with the numbered line, and appends trailing '-' during
3992 # substitution so that $LINENO is not a special case at line end.
3993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3994 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3995 sed '=' <$as_myself |
3996 sed '
3997 N
3998 s,$,-,
3999 : loop
4000 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4001 t loop
4002 s,-$,,
4003 s,^['$as_cr_digits']*\n,,
4004 ' >$as_me.lineno &&
4005 chmod +x $as_me.lineno ||
4006 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4007 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4008 { (exit 1); exit 1; }; }
4009
4010 # Don't try to exec as it changes $[0], causing all sort of problems
4011 # (the dirname of $[0] is not the place where we might find the
4012 # original and so on. Autoconf is especially sensible to this).
4013 . ./$as_me.lineno
4014 # Exit status is that of the last command.
4015 exit
4016 }
4017
4018
4019 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4020 *c*,-n*) ECHO_N= ECHO_C='
4021 ' ECHO_T=' ' ;;
4022 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4023 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4024 esac
4025
4026 if expr a : '\(a\)' >/dev/null 2>&1; then
4027 as_expr=expr
4028 else
4029 as_expr=false
4030 fi
4031
4032 rm -f conf$$ conf$$.exe conf$$.file
4033 echo >conf$$.file
4034 if ln -s conf$$.file conf$$ 2>/dev/null; then
4035 # We could just check for DJGPP; but this test a) works b) is more generic
4036 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4037 if test -f conf$$.exe; then
4038 # Don't use ln at all; we don't have any links
4039 as_ln_s='cp -p'
4040 else
4041 as_ln_s='ln -s'
4042 fi
4043 elif ln conf$$.file conf$$ 2>/dev/null; then
4044 as_ln_s=ln
4045 else
4046 as_ln_s='cp -p'
4047 fi
4048 rm -f conf$$ conf$$.exe conf$$.file
4049
4050 if mkdir -p . 2>/dev/null; then
4051 as_mkdir_p=:
4052 else
4053 test -d ./-p && rmdir ./-p
4054 as_mkdir_p=false
4055 fi
4056
4057 as_executable_p="test -f"
4058
4059 # Sed expression to map a string onto a valid CPP name.
4060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4061
4062 # Sed expression to map a string onto a valid variable name.
4063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4064
4065
4066 # IFS
4067 # We need space, tab and new line, in precisely that order.
4068 as_nl='
4069 '
4070 IFS=" $as_nl"
4071
4072 # CDPATH.
4073 $as_unset CDPATH
4074
4075 exec 6>&1
4076
4077 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4078 # report actual input values of CONFIG_FILES etc. instead of their
4079 # values after options handling. Logging --version etc. is OK.
4080 exec 5>>config.log
4081 {
4082 echo
4083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4084 ## Running $as_me. ##
4085 _ASBOX
4086 } >&5
4087 cat >&5 <<_CSEOF
4088
4089 This file was extended by x11perf $as_me 1.4.1, which was
4090 generated by GNU Autoconf 2.59. Invocation command line was
4091
4092 CONFIG_FILES = $CONFIG_FILES
4093 CONFIG_HEADERS = $CONFIG_HEADERS
4094 CONFIG_LINKS = $CONFIG_LINKS
4095 CONFIG_COMMANDS = $CONFIG_COMMANDS
4096 $ $0 $@
4097
4098 _CSEOF
4099 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4100 echo >&5
4101 _ACEOF
4102
4103 # Files that config.status was made for.
4104 if test -n "$ac_config_files"; then
4105 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4106 fi
4107
4108 if test -n "$ac_config_headers"; then
4109 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4110 fi
4111
4112 if test -n "$ac_config_links"; then
4113 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4114 fi
4115
4116 if test -n "$ac_config_commands"; then
4117 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4118 fi
4119
4120 cat >>$CONFIG_STATUS <<\_ACEOF
4121
4122 ac_cs_usage="\
4123 \`$as_me' instantiates files from templates according to the
4124 current configuration.
4125
4126 Usage: $0 [OPTIONS] [FILE]...
4127
4128 -h, --help print this help, then exit
4129 -V, --version print version number, then exit
4130 -q, --quiet do not print progress messages
4131 -d, --debug don't remove temporary files
4132 --recheck update $as_me by reconfiguring in the same conditions
4133 --file=FILE[:TEMPLATE]
4134 instantiate the configuration file FILE
4135 --header=FILE[:TEMPLATE]
4136 instantiate the configuration header FILE
4137
4138 Configuration files:
4139 $config_files
4140
4141 Configuration headers:
4142 $config_headers
4143
4144 Configuration commands:
4145 $config_commands
4146
4147 Report bugs to <bug-autoconf@gnu.org>."
4148 _ACEOF
4149
4150 cat >>$CONFIG_STATUS <<_ACEOF
4151 ac_cs_version="\\
4152 x11perf config.status 1.4.1
4153 configured by $0, generated by GNU Autoconf 2.59,
4154 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4155
4156 Copyright (C) 2003 Free Software Foundation, Inc.
4157 This config.status script is free software; the Free Software Foundation
4158 gives unlimited permission to copy, distribute and modify it."
4159 srcdir=$srcdir
4160 INSTALL="$INSTALL"
4161 _ACEOF
4162
4163 cat >>$CONFIG_STATUS <<\_ACEOF
4164 # If no file are specified by the user, then we need to provide default
4165 # value. By we need to know if files were specified by the user.
4166 ac_need_defaults=:
4167 while test $# != 0
4168 do
4169 case $1 in
4170 --*=*)
4171 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4172 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4173 ac_shift=:
4174 ;;
4175 -*)
4176 ac_option=$1
4177 ac_optarg=$2
4178 ac_shift=shift
4179 ;;
4180 *) # This is not an option, so the user has probably given explicit
4181 # arguments.
4182 ac_option=$1
4183 ac_need_defaults=false;;
4184 esac
4185
4186 case $ac_option in
4187 # Handling of the options.
4188 _ACEOF
4189 cat >>$CONFIG_STATUS <<\_ACEOF
4190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4191 ac_cs_recheck=: ;;
4192 --version | --vers* | -V )
4193 echo "$ac_cs_version"; exit 0 ;;
4194 --he | --h)
4195 # Conflict between --help and --header
4196 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4197 Try \`$0 --help' for more information." >&5
4198 echo "$as_me: error: ambiguous option: $1
4199 Try \`$0 --help' for more information." >&2;}
4200 { (exit 1); exit 1; }; };;
4201 --help | --hel | -h )
4202 echo "$ac_cs_usage"; exit 0 ;;
4203 --debug | --d* | -d )
4204 debug=: ;;
4205 --file | --fil | --fi | --f )
4206 $ac_shift
4207 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4208 ac_need_defaults=false;;
4209 --header | --heade | --head | --hea )
4210 $ac_shift
4211 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4212 ac_need_defaults=false;;
4213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4215 ac_cs_silent=: ;;
4216
4217 # This is an error.
4218 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4219 Try \`$0 --help' for more information." >&5
4220 echo "$as_me: error: unrecognized option: $1
4221 Try \`$0 --help' for more information." >&2;}
4222 { (exit 1); exit 1; }; } ;;
4223
4224 *) ac_config_targets="$ac_config_targets $1" ;;
4225
4226 esac
4227 shift
4228 done
4229
4230 ac_configure_extra_args=
4231
4232 if $ac_cs_silent; then
4233 exec 6>/dev/null
4234 ac_configure_extra_args="$ac_configure_extra_args --silent"
4235 fi
4236
4237 _ACEOF
4238 cat >>$CONFIG_STATUS <<_ACEOF
4239 if \$ac_cs_recheck; then
4240 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4241 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4242 fi
4243
4244 _ACEOF
4245
4246 cat >>$CONFIG_STATUS <<_ACEOF
4247 #
4248 # INIT-COMMANDS section.
4249 #
4250
4251 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4252
4253 _ACEOF
4254
4255
4256
4257 cat >>$CONFIG_STATUS <<\_ACEOF
4258 for ac_config_target in $ac_config_targets
4259 do
4260 case "$ac_config_target" in
4261 # Handling of arguments.
4262 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4263 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4264 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4267 { (exit 1); exit 1; }; };;
4268 esac
4269 done
4270
4271 # If the user did not use the arguments to specify the items to instantiate,
4272 # then the envvar interface is used. Set only those that are not.
4273 # We use the long form for the default assignment because of an extremely
4274 # bizarre bug on SunOS 4.1.3.
4275 if $ac_need_defaults; then
4276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4279 fi
4280
4281 # Have a temporary directory for convenience. Make it in the build tree
4282 # simply because there is no reason to put it here, and in addition,
4283 # creating and moving files from /tmp can sometimes cause problems.
4284 # Create a temporary directory, and hook for its removal unless debugging.
4285 $debug ||
4286 {
4287 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4288 trap '{ (exit 1); exit 1; }' 1 2 13 15
4289 }
4290
4291 # Create a (secure) tmp directory for tmp files.
4292
4293 {
4294 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4295 test -n "$tmp" && test -d "$tmp"
4296 } ||
4297 {
4298 tmp=./confstat$$-$RANDOM
4299 (umask 077 && mkdir $tmp)
4300 } ||
4301 {
4302 echo "$me: cannot create a temporary directory in ." >&2
4303 { (exit 1); exit 1; }
4304 }
4305
4306 _ACEOF
4307
4308 cat >>$CONFIG_STATUS <<_ACEOF
4309
4310 #
4311 # CONFIG_FILES section.
4312 #
4313
4314 # No need to generate the scripts if there are no CONFIG_FILES.
4315 # This happens for instance when ./config.status config.h
4316 if test -n "\$CONFIG_FILES"; then
4317 # Protect against being on the right side of a sed subst in config.status.
4318 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4319 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4320 s,@SHELL@,$SHELL,;t t
4321 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4322 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4323 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4324 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4325 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4326 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4327 s,@exec_prefix@,$exec_prefix,;t t
4328 s,@prefix@,$prefix,;t t
4329 s,@program_transform_name@,$program_transform_name,;t t
4330 s,@bindir@,$bindir,;t t
4331 s,@sbindir@,$sbindir,;t t
4332 s,@libexecdir@,$libexecdir,;t t
4333 s,@datadir@,$datadir,;t t
4334 s,@sysconfdir@,$sysconfdir,;t t
4335 s,@sharedstatedir@,$sharedstatedir,;t t
4336 s,@localstatedir@,$localstatedir,;t t
4337 s,@libdir@,$libdir,;t t
4338 s,@includedir@,$includedir,;t t
4339 s,@oldincludedir@,$oldincludedir,;t t
4340 s,@infodir@,$infodir,;t t
4341 s,@mandir@,$mandir,;t t
4342 s,@build_alias@,$build_alias,;t t
4343 s,@host_alias@,$host_alias,;t t
4344 s,@target_alias@,$target_alias,;t t
4345 s,@DEFS@,$DEFS,;t t
4346 s,@ECHO_C@,$ECHO_C,;t t
4347 s,@ECHO_N@,$ECHO_N,;t t
4348 s,@ECHO_T@,$ECHO_T,;t t
4349 s,@LIBS@,$LIBS,;t t
4350 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4351 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4352 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4353 s,@CYGPATH_W@,$CYGPATH_W,;t t
4354 s,@PACKAGE@,$PACKAGE,;t t
4355 s,@VERSION@,$VERSION,;t t
4356 s,@ACLOCAL@,$ACLOCAL,;t t
4357 s,@AUTOCONF@,$AUTOCONF,;t t
4358 s,@AUTOMAKE@,$AUTOMAKE,;t t
4359 s,@AUTOHEADER@,$AUTOHEADER,;t t
4360 s,@MAKEINFO@,$MAKEINFO,;t t
4361 s,@AMTAR@,$AMTAR,;t t
4362 s,@install_sh@,$install_sh,;t t
4363 s,@STRIP@,$STRIP,;t t
4364 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4365 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4366 s,@AWK@,$AWK,;t t
4367 s,@SET_MAKE@,$SET_MAKE,;t t
4368 s,@am__leading_dot@,$am__leading_dot,;t t
4369 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4370 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4371 s,@MAINT@,$MAINT,;t t
4372 s,@CC@,$CC,;t t
4373 s,@CFLAGS@,$CFLAGS,;t t
4374 s,@LDFLAGS@,$LDFLAGS,;t t
4375 s,@CPPFLAGS@,$CPPFLAGS,;t t
4376 s,@ac_ct_CC@,$ac_ct_CC,;t t
4377 s,@EXEEXT@,$EXEEXT,;t t
4378 s,@OBJEXT@,$OBJEXT,;t t
4379 s,@DEPDIR@,$DEPDIR,;t t
4380 s,@am__include@,$am__include,;t t
4381 s,@am__quote@,$am__quote,;t t
4382 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4383 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4384 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4385 s,@CCDEPMODE@,$CCDEPMODE,;t t
4386 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4387 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4388 s,@SED@,$SED,;t t
4389 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4390 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
4391 s,@X11PERF_CFLAGS@,$X11PERF_CFLAGS,;t t
4392 s,@X11PERF_LIBS@,$X11PERF_LIBS,;t t
4393 s,@XRENDER_CFLAGS@,$XRENDER_CFLAGS,;t t
4394 s,@XRENDER_LIBS@,$XRENDER_LIBS,;t t
4395 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
4396 s,@XFT_LIBS@,$XFT_LIBS,;t t
4397 s,@XEXT_CFLAGS@,$XEXT_CFLAGS,;t t
4398 s,@XEXT_LIBS@,$XEXT_LIBS,;t t
4399 s,@build@,$build,;t t
4400 s,@build_cpu@,$build_cpu,;t t
4401 s,@build_vendor@,$build_vendor,;t t
4402 s,@build_os@,$build_os,;t t
4403 s,@host@,$host,;t t
4404 s,@host_cpu@,$host_cpu,;t t
4405 s,@host_vendor@,$host_vendor,;t t
4406 s,@host_os@,$host_os,;t t
4407 s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
4408 s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
4409 s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
4410 s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
4411 s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
4412 s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
4413 s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
4414 s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
4415 s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
4416 s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
4417 s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
4418 s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
4419 s,@LIBOBJS@,$LIBOBJS,;t t
4420 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4421 CEOF
4422
4423 _ACEOF
4424
4425 cat >>$CONFIG_STATUS <<\_ACEOF
4426 # Split the substitutions into bite-sized pieces for seds with
4427 # small command number limits, like on Digital OSF/1 and HP-UX.
4428 ac_max_sed_lines=48
4429 ac_sed_frag=1 # Number of current file.
4430 ac_beg=1 # First line for current file.
4431 ac_end=$ac_max_sed_lines # Line after last line for current file.
4432 ac_more_lines=:
4433 ac_sed_cmds=
4434 while $ac_more_lines; do
4435 if test $ac_beg -gt 1; then
4436 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4437 else
4438 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4439 fi
4440 if test ! -s $tmp/subs.frag; then
4441 ac_more_lines=false
4442 else
4443 # The purpose of the label and of the branching condition is to
4444 # speed up the sed processing (if there are no `@' at all, there
4445 # is no need to browse any of the substitutions).
4446 # These are the two extra sed commands mentioned above.
4447 (echo ':t
4448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4449 if test -z "$ac_sed_cmds"; then
4450 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4451 else
4452 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4453 fi
4454 ac_sed_frag=`expr $ac_sed_frag + 1`
4455 ac_beg=$ac_end
4456 ac_end=`expr $ac_end + $ac_max_sed_lines`
4457 fi
4458 done
4459 if test -z "$ac_sed_cmds"; then
4460 ac_sed_cmds=cat
4461 fi
4462 fi # test -n "$CONFIG_FILES"
4463
4464 _ACEOF
4465 cat >>$CONFIG_STATUS <<\_ACEOF
4466 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4467 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4468 case $ac_file in
4469 - | *:- | *:-:* ) # input from stdin
4470 cat >$tmp/stdin
4471 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4473 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4475 * ) ac_file_in=$ac_file.in ;;
4476 esac
4477
4478 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4479 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4481 X"$ac_file" : 'X\(//\)[^/]' \| \
4482 X"$ac_file" : 'X\(//\)$' \| \
4483 X"$ac_file" : 'X\(/\)' \| \
4484 . : '\(.\)' 2>/dev/null ||
4485 echo X"$ac_file" |
4486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4488 /^X\(\/\/\)$/{ s//\1/; q; }
4489 /^X\(\/\).*/{ s//\1/; q; }
4490 s/.*/./; q'`
4491 { if $as_mkdir_p; then
4492 mkdir -p "$ac_dir"
4493 else
4494 as_dir="$ac_dir"
4495 as_dirs=
4496 while test ! -d "$as_dir"; do
4497 as_dirs="$as_dir $as_dirs"
4498 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4500 X"$as_dir" : 'X\(//\)[^/]' \| \
4501 X"$as_dir" : 'X\(//\)$' \| \
4502 X"$as_dir" : 'X\(/\)' \| \
4503 . : '\(.\)' 2>/dev/null ||
4504 echo X"$as_dir" |
4505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4507 /^X\(\/\/\)$/{ s//\1/; q; }
4508 /^X\(\/\).*/{ s//\1/; q; }
4509 s/.*/./; q'`
4510 done
4511 test ! -n "$as_dirs" || mkdir $as_dirs
4512 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4514 { (exit 1); exit 1; }; }; }
4515
4516 ac_builddir=.
4517
4518 if test "$ac_dir" != .; then
4519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4520 # A "../" for each directory in $ac_dir_suffix.
4521 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4522 else
4523 ac_dir_suffix= ac_top_builddir=
4524 fi
4525
4526 case $srcdir in
4527 .) # No --srcdir option. We are building in place.
4528 ac_srcdir=.
4529 if test -z "$ac_top_builddir"; then
4530 ac_top_srcdir=.
4531 else
4532 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4533 fi ;;
4534 [\\/]* | ?:[\\/]* ) # Absolute path.
4535 ac_srcdir=$srcdir$ac_dir_suffix;
4536 ac_top_srcdir=$srcdir ;;
4537 *) # Relative path.
4538 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4539 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4540 esac
4541
4542 # Do not use `cd foo && pwd` to compute absolute paths, because
4543 # the directories may not exist.
4544 case `pwd` in
4545 .) ac_abs_builddir="$ac_dir";;
4546 *)
4547 case "$ac_dir" in
4548 .) ac_abs_builddir=`pwd`;;
4549 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4550 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4551 esac;;
4552 esac
4553 case $ac_abs_builddir in
4554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4555 *)
4556 case ${ac_top_builddir}. in
4557 .) ac_abs_top_builddir=$ac_abs_builddir;;
4558 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4559 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4560 esac;;
4561 esac
4562 case $ac_abs_builddir in
4563 .) ac_abs_srcdir=$ac_srcdir;;
4564 *)
4565 case $ac_srcdir in
4566 .) ac_abs_srcdir=$ac_abs_builddir;;
4567 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4568 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4569 esac;;
4570 esac
4571 case $ac_abs_builddir in
4572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4573 *)
4574 case $ac_top_srcdir in
4575 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4576 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4577 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4578 esac;;
4579 esac
4580
4581
4582 case $INSTALL in
4583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4584 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4585 esac
4586
4587 if test x"$ac_file" != x-; then
4588 { echo "$as_me:$LINENO: creating $ac_file" >&5
4589 echo "$as_me: creating $ac_file" >&6;}
4590 rm -f "$ac_file"
4591 fi
4592 # Let's still pretend it is `configure' which instantiates (i.e., don't
4593 # use $as_me), people would be surprised to read:
4594 # /* config.h. Generated by config.status. */
4595 if test x"$ac_file" = x-; then
4596 configure_input=
4597 else
4598 configure_input="$ac_file. "
4599 fi
4600 configure_input=$configure_input"Generated from `echo $ac_file_in |
4601 sed 's,.*/,,'` by configure."
4602
4603 # First look for the input files in the build tree, otherwise in the
4604 # src tree.
4605 ac_file_inputs=`IFS=:
4606 for f in $ac_file_in; do
4607 case $f in
4608 -) echo $tmp/stdin ;;
4609 [\\/$]*)
4610 # Absolute (can't be DOS-style, as IFS=:)
4611 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4612 echo "$as_me: error: cannot find input file: $f" >&2;}
4613 { (exit 1); exit 1; }; }
4614 echo "$f";;
4615 *) # Relative
4616 if test -f "$f"; then
4617 # Build tree
4618 echo "$f"
4619 elif test -f "$srcdir/$f"; then
4620 # Source tree
4621 echo "$srcdir/$f"
4622 else
4623 # /dev/null tree
4624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4625 echo "$as_me: error: cannot find input file: $f" >&2;}
4626 { (exit 1); exit 1; }; }
4627 fi;;
4628 esac
4629 done` || { (exit 1); exit 1; }
4630 _ACEOF
4631 cat >>$CONFIG_STATUS <<_ACEOF
4632 sed "$ac_vpsub
4633 $extrasub
4634 _ACEOF
4635 cat >>$CONFIG_STATUS <<\_ACEOF
4636 :t
4637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4638 s,@configure_input@,$configure_input,;t t
4639 s,@srcdir@,$ac_srcdir,;t t
4640 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4641 s,@top_srcdir@,$ac_top_srcdir,;t t
4642 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4643 s,@builddir@,$ac_builddir,;t t
4644 s,@abs_builddir@,$ac_abs_builddir,;t t
4645 s,@top_builddir@,$ac_top_builddir,;t t
4646 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4647 s,@INSTALL@,$ac_INSTALL,;t t
4648 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4649 rm -f $tmp/stdin
4650 if test x"$ac_file" != x-; then
4651 mv $tmp/out $ac_file
4652 else
4653 cat $tmp/out
4654 rm -f $tmp/out
4655 fi
4656
4657 done
4658 _ACEOF
4659 cat >>$CONFIG_STATUS <<\_ACEOF
4660
4661 #
4662 # CONFIG_HEADER section.
4663 #
4664
4665 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4666 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4667 #
4668 # ac_d sets the value in "#define NAME VALUE" lines.
4669 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4670 ac_dB='[ ].*$,\1#\2'
4671 ac_dC=' '
4672 ac_dD=',;t'
4673 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4674 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4675 ac_uB='$,\1#\2define\3'
4676 ac_uC=' '
4677 ac_uD=',;t'
4678
4679 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4681 case $ac_file in
4682 - | *:- | *:-:* ) # input from stdin
4683 cat >$tmp/stdin
4684 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4686 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4688 * ) ac_file_in=$ac_file.in ;;
4689 esac
4690
4691 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4692 echo "$as_me: creating $ac_file" >&6;}
4693
4694 # First look for the input files in the build tree, otherwise in the
4695 # src tree.
4696 ac_file_inputs=`IFS=:
4697 for f in $ac_file_in; do
4698 case $f in
4699 -) echo $tmp/stdin ;;
4700 [\\/$]*)
4701 # Absolute (can't be DOS-style, as IFS=:)
4702 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4703 echo "$as_me: error: cannot find input file: $f" >&2;}
4704 { (exit 1); exit 1; }; }
4705 # Do quote $f, to prevent DOS paths from being IFS'd.
4706 echo "$f";;
4707 *) # Relative
4708 if test -f "$f"; then
4709 # Build tree
4710 echo "$f"
4711 elif test -f "$srcdir/$f"; then
4712 # Source tree
4713 echo "$srcdir/$f"
4714 else
4715 # /dev/null tree
4716 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4717 echo "$as_me: error: cannot find input file: $f" >&2;}
4718 { (exit 1); exit 1; }; }
4719 fi;;
4720 esac
4721 done` || { (exit 1); exit 1; }
4722 # Remove the trailing spaces.
4723 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4724
4725 _ACEOF
4726
4727 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4728 # `conftest.undefs', that substitutes the proper values into
4729 # config.h.in to produce config.h. The first handles `#define'
4730 # templates, and the second `#undef' templates.
4731 # And first: Protect against being on the right side of a sed subst in
4732 # config.status. Protect against being in an unquoted here document
4733 # in config.status.
4734 rm -f conftest.defines conftest.undefs
4735 # Using a here document instead of a string reduces the quoting nightmare.
4736 # Putting comments in sed scripts is not portable.
4737 #
4738 # `end' is used to avoid that the second main sed command (meant for
4739 # 0-ary CPP macros) applies to n-ary macro definitions.
4740 # See the Autoconf documentation for `clear'.
4741 cat >confdef2sed.sed <<\_ACEOF
4742 s/[\\&,]/\\&/g
4743 s,[\\$`],\\&,g
4744 t clear
4745 : clear
4746 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4747 t end
4748 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4749 : end
4750 _ACEOF
4751 # If some macros were called several times there might be several times
4752 # the same #defines, which is useless. Nevertheless, we may not want to
4753 # sort them, since we want the *last* AC-DEFINE to be honored.
4754 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4755 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4756 rm -f confdef2sed.sed
4757
4758 # This sed command replaces #undef with comments. This is necessary, for
4759 # example, in the case of _POSIX_SOURCE, which is predefined and required
4760 # on some systems where configure will not decide to define it.
4761 cat >>conftest.undefs <<\_ACEOF
4762 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4763 _ACEOF
4764
4765 # Break up conftest.defines because some shells have a limit on the size
4766 # of here documents, and old seds have small limits too (100 cmds).
4767 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4768 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4769 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4770 echo ' :' >>$CONFIG_STATUS
4771 rm -f conftest.tail
4772 while grep . conftest.defines >/dev/null
4773 do
4774 # Write a limited-size here document to $tmp/defines.sed.
4775 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4776 # Speed up: don't consider the non `#define' lines.
4777 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4778 # Work around the forget-to-reset-the-flag bug.
4779 echo 't clr' >>$CONFIG_STATUS
4780 echo ': clr' >>$CONFIG_STATUS
4781 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4782 echo 'CEOF
4783 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4784 rm -f $tmp/in
4785 mv $tmp/out $tmp/in
4786 ' >>$CONFIG_STATUS
4787 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4788 rm -f conftest.defines
4789 mv conftest.tail conftest.defines
4790 done
4791 rm -f conftest.defines
4792 echo ' fi # grep' >>$CONFIG_STATUS
4793 echo >>$CONFIG_STATUS
4794
4795 # Break up conftest.undefs because some shells have a limit on the size
4796 # of here documents, and old seds have small limits too (100 cmds).
4797 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4798 rm -f conftest.tail
4799 while grep . conftest.undefs >/dev/null
4800 do
4801 # Write a limited-size here document to $tmp/undefs.sed.
4802 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4803 # Speed up: don't consider the non `#undef'
4804 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4805 # Work around the forget-to-reset-the-flag bug.
4806 echo 't clr' >>$CONFIG_STATUS
4807 echo ': clr' >>$CONFIG_STATUS
4808 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4809 echo 'CEOF
4810 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4811 rm -f $tmp/in
4812 mv $tmp/out $tmp/in
4813 ' >>$CONFIG_STATUS
4814 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4815 rm -f conftest.undefs
4816 mv conftest.tail conftest.undefs
4817 done
4818 rm -f conftest.undefs
4819
4820 cat >>$CONFIG_STATUS <<\_ACEOF
4821 # Let's still pretend it is `configure' which instantiates (i.e., don't
4822 # use $as_me), people would be surprised to read:
4823 # /* config.h. Generated by config.status. */
4824 if test x"$ac_file" = x-; then
4825 echo "/* Generated by configure. */" >$tmp/config.h
4826 else
4827 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4828 fi
4829 cat $tmp/in >>$tmp/config.h
4830 rm -f $tmp/in
4831 if test x"$ac_file" != x-; then
4832 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4833 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4834 echo "$as_me: $ac_file is unchanged" >&6;}
4835 else
4836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4838 X"$ac_file" : 'X\(//\)[^/]' \| \
4839 X"$ac_file" : 'X\(//\)$' \| \
4840 X"$ac_file" : 'X\(/\)' \| \
4841 . : '\(.\)' 2>/dev/null ||
4842 echo X"$ac_file" |
4843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4845 /^X\(\/\/\)$/{ s//\1/; q; }
4846 /^X\(\/\).*/{ s//\1/; q; }
4847 s/.*/./; q'`
4848 { if $as_mkdir_p; then
4849 mkdir -p "$ac_dir"
4850 else
4851 as_dir="$ac_dir"
4852 as_dirs=
4853 while test ! -d "$as_dir"; do
4854 as_dirs="$as_dir $as_dirs"
4855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4857 X"$as_dir" : 'X\(//\)[^/]' \| \
4858 X"$as_dir" : 'X\(//\)$' \| \
4859 X"$as_dir" : 'X\(/\)' \| \
4860 . : '\(.\)' 2>/dev/null ||
4861 echo X"$as_dir" |
4862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4864 /^X\(\/\/\)$/{ s//\1/; q; }
4865 /^X\(\/\).*/{ s//\1/; q; }
4866 s/.*/./; q'`
4867 done
4868 test ! -n "$as_dirs" || mkdir $as_dirs
4869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4870 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4871 { (exit 1); exit 1; }; }; }
4872
4873 rm -f $ac_file
4874 mv $tmp/config.h $ac_file
4875 fi
4876 else
4877 cat $tmp/config.h
4878 rm -f $tmp/config.h
4879 fi
4880 # Compute $ac_file's index in $config_headers.
4881 _am_stamp_count=1
4882 for _am_header in $config_headers :; do
4883 case $_am_header in
4884 $ac_file | $ac_file:* )
4885 break ;;
4886 * )
4887 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4888 esac
4889 done
4890 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4891 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4892 X$ac_file : 'X\(//\)[^/]' \| \
4893 X$ac_file : 'X\(//\)$' \| \
4894 X$ac_file : 'X\(/\)' \| \
4895 . : '\(.\)' 2>/dev/null ||
4896 echo X$ac_file |
4897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4898 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4899 /^X\(\/\/\)$/{ s//\1/; q; }
4900 /^X\(\/\).*/{ s//\1/; q; }
4901 s/.*/./; q'`/stamp-h$_am_stamp_count
4902 done
4903 _ACEOF
4904 cat >>$CONFIG_STATUS <<\_ACEOF
4905
4906 #
4907 # CONFIG_COMMANDS section.
4908 #
4909 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4910 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4911 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4912 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4913 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4914 X"$ac_dest" : 'X\(//\)[^/]' \| \
4915 X"$ac_dest" : 'X\(//\)$' \| \
4916 X"$ac_dest" : 'X\(/\)' \| \
4917 . : '\(.\)' 2>/dev/null ||
4918 echo X"$ac_dest" |
4919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4921 /^X\(\/\/\)$/{ s//\1/; q; }
4922 /^X\(\/\).*/{ s//\1/; q; }
4923 s/.*/./; q'`
4924 { if $as_mkdir_p; then
4925 mkdir -p "$ac_dir"
4926 else
4927 as_dir="$ac_dir"
4928 as_dirs=
4929 while test ! -d "$as_dir"; do
4930 as_dirs="$as_dir $as_dirs"
4931 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4933 X"$as_dir" : 'X\(//\)[^/]' \| \
4934 X"$as_dir" : 'X\(//\)$' \| \
4935 X"$as_dir" : 'X\(/\)' \| \
4936 . : '\(.\)' 2>/dev/null ||
4937 echo X"$as_dir" |
4938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4940 /^X\(\/\/\)$/{ s//\1/; q; }
4941 /^X\(\/\).*/{ s//\1/; q; }
4942 s/.*/./; q'`
4943 done
4944 test ! -n "$as_dirs" || mkdir $as_dirs
4945 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4946 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4947 { (exit 1); exit 1; }; }; }
4948
4949 ac_builddir=.
4950
4951 if test "$ac_dir" != .; then
4952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4953 # A "../" for each directory in $ac_dir_suffix.
4954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4955 else
4956 ac_dir_suffix= ac_top_builddir=
4957 fi
4958
4959 case $srcdir in
4960 .) # No --srcdir option. We are building in place.
4961 ac_srcdir=.
4962 if test -z "$ac_top_builddir"; then
4963 ac_top_srcdir=.
4964 else
4965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4966 fi ;;
4967 [\\/]* | ?:[\\/]* ) # Absolute path.
4968 ac_srcdir=$srcdir$ac_dir_suffix;
4969 ac_top_srcdir=$srcdir ;;
4970 *) # Relative path.
4971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4973 esac
4974
4975 # Do not use `cd foo && pwd` to compute absolute paths, because
4976 # the directories may not exist.
4977 case `pwd` in
4978 .) ac_abs_builddir="$ac_dir";;
4979 *)
4980 case "$ac_dir" in
4981 .) ac_abs_builddir=`pwd`;;
4982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4984 esac;;
4985 esac
4986 case $ac_abs_builddir in
4987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4988 *)
4989 case ${ac_top_builddir}. in
4990 .) ac_abs_top_builddir=$ac_abs_builddir;;
4991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4993 esac;;
4994 esac
4995 case $ac_abs_builddir in
4996 .) ac_abs_srcdir=$ac_srcdir;;
4997 *)
4998 case $ac_srcdir in
4999 .) ac_abs_srcdir=$ac_abs_builddir;;
5000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5002 esac;;
5003 esac
5004 case $ac_abs_builddir in
5005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5006 *)
5007 case $ac_top_srcdir in
5008 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5011 esac;;
5012 esac
5013
5014
5015 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5016 echo "$as_me: executing $ac_dest commands" >&6;}
5017 case $ac_dest in
5018 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5019 # Strip MF so we end up with the name of the file.
5020 mf=`echo "$mf" | sed -e 's/:.*$//'`
5021 # Check whether this is an Automake generated Makefile or not.
5022 # We used to match only the files named `Makefile.in', but
5023 # some people rename them; so instead we look at the file content.
5024 # Grep'ing the first line is not enough: some people post-process
5025 # each Makefile.in and add a new line on top of each file to say so.
5026 # So let's grep whole file.
5027 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5028 dirpart=`(dirname "$mf") 2>/dev/null ||
5029 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5030 X"$mf" : 'X\(//\)[^/]' \| \
5031 X"$mf" : 'X\(//\)$' \| \
5032 X"$mf" : 'X\(/\)' \| \
5033 . : '\(.\)' 2>/dev/null ||
5034 echo X"$mf" |
5035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5037 /^X\(\/\/\)$/{ s//\1/; q; }
5038 /^X\(\/\).*/{ s//\1/; q; }
5039 s/.*/./; q'`
5040 else
5041 continue
5042 fi
5043 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5044 # Extract the definition of DEP_FILES from the Makefile without
5045 # running `make'.
5046 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5047 test -z "$DEPDIR" && continue
5048 # When using ansi2knr, U may be empty or an underscore; expand it
5049 U=`sed -n -e '/^U = / s///p' < "$mf"`
5050 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5051 # We invoke sed twice because it is the simplest approach to
5052 # changing $(DEPDIR) to its actual value in the expansion.
5053 for file in `sed -n -e '
5054 /^DEP_FILES = .*\\\\$/ {
5055 s/^DEP_FILES = //
5056 :loop
5057 s/\\\\$//
5058 p
5059 n
5060 /\\\\$/ b loop
5061 p
5062 }
5063 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5064 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5065 # Make sure the directory exists.
5066 test -f "$dirpart/$file" && continue
5067 fdir=`(dirname "$file") 2>/dev/null ||
5068 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5069 X"$file" : 'X\(//\)[^/]' \| \
5070 X"$file" : 'X\(//\)$' \| \
5071 X"$file" : 'X\(/\)' \| \
5072 . : '\(.\)' 2>/dev/null ||
5073 echo X"$file" |
5074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5076 /^X\(\/\/\)$/{ s//\1/; q; }
5077 /^X\(\/\).*/{ s//\1/; q; }
5078 s/.*/./; q'`
5079 { if $as_mkdir_p; then
5080 mkdir -p $dirpart/$fdir
5081 else
5082 as_dir=$dirpart/$fdir
5083 as_dirs=
5084 while test ! -d "$as_dir"; do
5085 as_dirs="$as_dir $as_dirs"
5086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5088 X"$as_dir" : 'X\(//\)[^/]' \| \
5089 X"$as_dir" : 'X\(//\)$' \| \
5090 X"$as_dir" : 'X\(/\)' \| \
5091 . : '\(.\)' 2>/dev/null ||
5092 echo X"$as_dir" |
5093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5095 /^X\(\/\/\)$/{ s//\1/; q; }
5096 /^X\(\/\).*/{ s//\1/; q; }
5097 s/.*/./; q'`
5098 done
5099 test ! -n "$as_dirs" || mkdir $as_dirs
5100 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5101 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5102 { (exit 1); exit 1; }; }; }
5103
5104 # echo "creating $dirpart/$file"
5105 echo '# dummy' > "$dirpart/$file"
5106 done
5107 done
5108 ;;
5109 esac
5110 done
5111 _ACEOF
5112
5113 cat >>$CONFIG_STATUS <<\_ACEOF
5114
5115 { (exit 0); exit 0; }
5116 _ACEOF
5117 chmod +x $CONFIG_STATUS
5118 ac_clean_files=$ac_clean_files_save
5119
5120
5121 # configure is writing to config.log, and then calls config.status.
5122 # config.status does its own redirection, appending to config.log.
5123 # Unfortunately, on DOS this fails, as config.log is still kept open
5124 # by configure, so config.status won't be able to write to it; its
5125 # output is simply discarded. So we exec the FD to /dev/null,
5126 # effectively closing config.log, so it can be properly (re)opened and
5127 # appended to by config.status. When coming back to configure, we
5128 # need to make the FD available again.
5129 if test "$no_create" != yes; then
5130 ac_cs_success=:
5131 ac_config_status_args=
5132 test "$silent" = yes &&
5133 ac_config_status_args="$ac_config_status_args --quiet"
5134 exec 5>/dev/null
5135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5136 exec 5>>config.log
5137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5138 # would make configure fail if this is the last instruction.
5139 $ac_cs_success || { (exit 1); exit 1; }
5140 fi
5141
5142