configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for xsetmode 1.0.0.
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='xsetmode'
271 PACKAGE_TARNAME='xsetmode'
272 PACKAGE_VERSION='1.0.0'
273 PACKAGE_STRING='xsetmode 1.0.0'
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 PKG_CONFIG ac_pt_PKG_CONFIG XSETMODE_CFLAGS XSETMODE_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_XSETMODE_CFLAGS_set=${XSETMODE_CFLAGS+set}
738 ac_env_XSETMODE_CFLAGS_value=$XSETMODE_CFLAGS
739 ac_cv_env_XSETMODE_CFLAGS_set=${XSETMODE_CFLAGS+set}
740 ac_cv_env_XSETMODE_CFLAGS_value=$XSETMODE_CFLAGS
741 ac_env_XSETMODE_LIBS_set=${XSETMODE_LIBS+set}
742 ac_env_XSETMODE_LIBS_value=$XSETMODE_LIBS
743 ac_cv_env_XSETMODE_LIBS_set=${XSETMODE_LIBS+set}
744 ac_cv_env_XSETMODE_LIBS_value=$XSETMODE_LIBS
745
746 #
747 # Report the --help message.
748 #
749 if test "$ac_init_help" = "long"; then
750 # Omit some internal or obsolete options to make the list less imposing.
751 # This message is too long to be a string in the A/UX 3.1 sh.
752 cat <<_ACEOF
753 \`configure' configures xsetmode 1.0.0 to adapt to many kinds of systems.
754
755 Usage: $0 [OPTION]... [VAR=VALUE]...
756
757 To assign environment variables (e.g., CC, CFLAGS...), specify them as
758 VAR=VALUE. See below for descriptions of some of the useful variables.
759
760 Defaults for the options are specified in brackets.
761
762 Configuration:
763 -h, --help display this help and exit
764 --help=short display options specific to this package
765 --help=recursive display the short help of all the included packages
766 -V, --version display version information and exit
767 -q, --quiet, --silent do not print \`checking...' messages
768 --cache-file=FILE cache test results in FILE [disabled]
769 -C, --config-cache alias for \`--cache-file=config.cache'
770 -n, --no-create do not create output files
771 --srcdir=DIR find the sources in DIR [configure dir or \`..']
772
773 _ACEOF
774
775 cat <<_ACEOF
776 Installation directories:
777 --prefix=PREFIX install architecture-independent files in PREFIX
778 [$ac_default_prefix]
779 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
780 [PREFIX]
781
782 By default, \`make install' will install all the files in
783 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
784 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
785 for instance \`--prefix=\$HOME'.
786
787 For better control, use the options below.
788
789 Fine tuning of the installation directories:
790 --bindir=DIR user executables [EPREFIX/bin]
791 --sbindir=DIR system admin executables [EPREFIX/sbin]
792 --libexecdir=DIR program executables [EPREFIX/libexec]
793 --datadir=DIR read-only architecture-independent data [PREFIX/share]
794 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
795 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
796 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
797 --libdir=DIR object code libraries [EPREFIX/lib]
798 --includedir=DIR C header files [PREFIX/include]
799 --oldincludedir=DIR C header files for non-gcc [/usr/include]
800 --infodir=DIR info documentation [PREFIX/info]
801 --mandir=DIR man documentation [PREFIX/man]
802 _ACEOF
803
804 cat <<\_ACEOF
805
806 Program names:
807 --program-prefix=PREFIX prepend PREFIX to installed program names
808 --program-suffix=SUFFIX append SUFFIX to installed program names
809 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
810
811 System types:
812 --build=BUILD configure for building on BUILD [guessed]
813 --host=HOST cross-compile to build programs to run on HOST [BUILD]
814 _ACEOF
815 fi
816
817 if test -n "$ac_init_help"; then
818 case $ac_init_help in
819 short | recursive ) echo "Configuration of xsetmode 1.0.0:";;
820 esac
821 cat <<\_ACEOF
822
823 Optional Features:
824 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
825 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
826 --enable-maintainer-mode enable make rules and dependencies not useful
827 (and sometimes confusing) to the casual installer
828 --disable-dependency-tracking Speeds up one-time builds
829 --enable-dependency-tracking Do not reject slow dependency extractors
830
831 Optional Packages:
832 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
833 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
834 --with-release-version=STRING
835 Use release version string in package name
836
837 Some influential environment variables:
838 CC C compiler command
839 CFLAGS C compiler flags
840 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
841 nonstandard directory <lib dir>
842 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
843 headers in a nonstandard directory <include dir>
844 PKG_CONFIG path to pkg-config utility
845 XSETMODE_CFLAGS
846 C compiler flags for XSETMODE, overriding pkg-config
847 XSETMODE_LIBS
848 linker flags for XSETMODE, overriding pkg-config
849
850 Use these variables to override the choices made by `configure' or to help
851 it to find libraries and programs with nonstandard names/locations.
852
853 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
854 _ACEOF
855 fi
856
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
859 ac_popdir=`pwd`
860 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
861 test -d $ac_dir || continue
862 ac_builddir=.
863
864 if test "$ac_dir" != .; then
865 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
866 # A "../" for each directory in $ac_dir_suffix.
867 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
868 else
869 ac_dir_suffix= ac_top_builddir=
870 fi
871
872 case $srcdir in
873 .) # No --srcdir option. We are building in place.
874 ac_srcdir=.
875 if test -z "$ac_top_builddir"; then
876 ac_top_srcdir=.
877 else
878 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
879 fi ;;
880 [\\/]* | ?:[\\/]* ) # Absolute path.
881 ac_srcdir=$srcdir$ac_dir_suffix;
882 ac_top_srcdir=$srcdir ;;
883 *) # Relative path.
884 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
885 ac_top_srcdir=$ac_top_builddir$srcdir ;;
886 esac
887
888 # Do not use `cd foo && pwd` to compute absolute paths, because
889 # the directories may not exist.
890 case `pwd` in
891 .) ac_abs_builddir="$ac_dir";;
892 *)
893 case "$ac_dir" in
894 .) ac_abs_builddir=`pwd`;;
895 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
896 *) ac_abs_builddir=`pwd`/"$ac_dir";;
897 esac;;
898 esac
899 case $ac_abs_builddir in
900 .) ac_abs_top_builddir=${ac_top_builddir}.;;
901 *)
902 case ${ac_top_builddir}. in
903 .) ac_abs_top_builddir=$ac_abs_builddir;;
904 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
905 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
906 esac;;
907 esac
908 case $ac_abs_builddir in
909 .) ac_abs_srcdir=$ac_srcdir;;
910 *)
911 case $ac_srcdir in
912 .) ac_abs_srcdir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
914 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
915 esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_srcdir=$ac_top_srcdir;;
919 *)
920 case $ac_top_srcdir in
921 .) ac_abs_top_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
923 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
924 esac;;
925 esac
926
927 cd $ac_dir
928 # Check for guested configure; otherwise get Cygnus style configure.
929 if test -f $ac_srcdir/configure.gnu; then
930 echo
931 $SHELL $ac_srcdir/configure.gnu --help=recursive
932 elif test -f $ac_srcdir/configure; then
933 echo
934 $SHELL $ac_srcdir/configure --help=recursive
935 elif test -f $ac_srcdir/configure.ac ||
936 test -f $ac_srcdir/configure.in; then
937 echo
938 $ac_configure --help
939 else
940 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941 fi
942 cd $ac_popdir
943 done
944 fi
945
946 test -n "$ac_init_help" && exit 0
947 if $ac_init_version; then
948 cat <<\_ACEOF
949 xsetmode configure 1.0.0
950 generated by GNU Autoconf 2.59
951
952 Copyright (C) 2003 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
955 _ACEOF
956 exit 0
957 fi
958 exec 5>config.log
959 cat >&5 <<_ACEOF
960 This file contains any messages produced by compilers while
961 running configure, to aid debugging if configure makes a mistake.
962
963 It was created by xsetmode $as_me 1.0.0, which was
964 generated by GNU Autoconf 2.59. Invocation command line was
965
966 $ $0 $@
967
968 _ACEOF
969 {
970 cat <<_ASUNAME
971 ## --------- ##
972 ## Platform. ##
973 ## --------- ##
974
975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
980
981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
983
984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
991
992 _ASUNAME
993
994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
995 for as_dir in $PATH
996 do
997 IFS=$as_save_IFS
998 test -z "$as_dir" && as_dir=.
999 echo "PATH: $as_dir"
1000 done
1001
1002 } >&5
1003
1004 cat >&5 <<_ACEOF
1005
1006
1007 ## ----------- ##
1008 ## Core tests. ##
1009 ## ----------- ##
1010
1011 _ACEOF
1012
1013
1014 # Keep a trace of the command line.
1015 # Strip out --no-create and --no-recursion so they do not pile up.
1016 # Strip out --silent because we don't want to record it for future runs.
1017 # Also quote any args containing shell meta-characters.
1018 # Make two passes to allow for proper duplicate-argument suppression.
1019 ac_configure_args=
1020 ac_configure_args0=
1021 ac_configure_args1=
1022 ac_sep=
1023 ac_must_keep_next=false
1024 for ac_pass in 1 2
1025 do
1026 for ac_arg
1027 do
1028 case $ac_arg in
1029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1032 continue ;;
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1035 esac
1036 case $ac_pass in
1037 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1038 2)
1039 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1040 if test $ac_must_keep_next = true; then
1041 ac_must_keep_next=false # Got value, back to normal.
1042 else
1043 case $ac_arg in
1044 *=* | --config-cache | -C | -disable-* | --disable-* \
1045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1047 | -with-* | --with-* | -without-* | --without-* | --x)
1048 case "$ac_configure_args0 " in
1049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1050 esac
1051 ;;
1052 -* ) ac_must_keep_next=true ;;
1053 esac
1054 fi
1055 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1056 # Get rid of the leading space.
1057 ac_sep=" "
1058 ;;
1059 esac
1060 done
1061 done
1062 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1063 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1064
1065 # When interrupted or exit'd, cleanup temporary files, and complete
1066 # config.log. We remove comments because anyway the quotes in there
1067 # would cause problems or look ugly.
1068 # WARNING: Be sure not to use single quotes in there, as some shells,
1069 # such as our DU 5.0 friend, will then `close' the trap.
1070 trap 'exit_status=$?
1071 # Save into config.log some information that might help in debugging.
1072 {
1073 echo
1074
1075 cat <<\_ASBOX
1076 ## ---------------- ##
1077 ## Cache variables. ##
1078 ## ---------------- ##
1079 _ASBOX
1080 echo
1081 # The following way of writing the cache mishandles newlines in values,
1082 {
1083 (set) 2>&1 |
1084 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085 *ac_space=\ *)
1086 sed -n \
1087 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1089 ;;
1090 *)
1091 sed -n \
1092 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1093 ;;
1094 esac;
1095 }
1096 echo
1097
1098 cat <<\_ASBOX
1099 ## ----------------- ##
1100 ## Output variables. ##
1101 ## ----------------- ##
1102 _ASBOX
1103 echo
1104 for ac_var in $ac_subst_vars
1105 do
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1110
1111 if test -n "$ac_subst_files"; then
1112 cat <<\_ASBOX
1113 ## ------------- ##
1114 ## Output files. ##
1115 ## ------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_files
1119 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1124 fi
1125
1126 if test -s confdefs.h; then
1127 cat <<\_ASBOX
1128 ## ----------- ##
1129 ## confdefs.h. ##
1130 ## ----------- ##
1131 _ASBOX
1132 echo
1133 sed "/^$/d" confdefs.h | sort
1134 echo
1135 fi
1136 test "$ac_signal" != 0 &&
1137 echo "$as_me: caught signal $ac_signal"
1138 echo "$as_me: exit $exit_status"
1139 } >&5
1140 rm -f core *.core &&
1141 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1142 exit $exit_status
1143 ' 0
1144 for ac_signal in 1 2 13 15; do
1145 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1146 done
1147 ac_signal=0
1148
1149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1150 rm -rf conftest* confdefs.h
1151 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1152 echo >confdefs.h
1153
1154 # Predefined preprocessor variables.
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_NAME "$PACKAGE_NAME"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1163 _ACEOF
1164
1165
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1168 _ACEOF
1169
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_STRING "$PACKAGE_STRING"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1178 _ACEOF
1179
1180
1181 # Let the site file select an alternate cache file if it wants to.
1182 # Prefer explicitly selected file to automatically selected ones.
1183 if test -z "$CONFIG_SITE"; then
1184 if test "x$prefix" != xNONE; then
1185 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1186 else
1187 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1188 fi
1189 fi
1190 for ac_site_file in $CONFIG_SITE; do
1191 if test -r "$ac_site_file"; then
1192 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1193 echo "$as_me: loading site script $ac_site_file" >&6;}
1194 sed 's/^/| /' "$ac_site_file" >&5
1195 . "$ac_site_file"
1196 fi
1197 done
1198
1199 if test -r "$cache_file"; then
1200 # Some versions of bash will fail to source /dev/null (special
1201 # files actually), so we avoid doing that.
1202 if test -f "$cache_file"; then
1203 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1204 echo "$as_me: loading cache $cache_file" >&6;}
1205 case $cache_file in
1206 [\\/]* | ?:[\\/]* ) . $cache_file;;
1207 *) . ./$cache_file;;
1208 esac
1209 fi
1210 else
1211 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1212 echo "$as_me: creating cache $cache_file" >&6;}
1213 >$cache_file
1214 fi
1215
1216 # Check that the precious variables saved in the cache have kept the same
1217 # value.
1218 ac_cache_corrupted=false
1219 for ac_var in `(set) 2>&1 |
1220 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1222 eval ac_new_set=\$ac_env_${ac_var}_set
1223 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1224 eval ac_new_val="\$ac_env_${ac_var}_value"
1225 case $ac_old_set,$ac_new_set in
1226 set,)
1227 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1228 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1229 ac_cache_corrupted=: ;;
1230 ,set)
1231 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1232 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1233 ac_cache_corrupted=: ;;
1234 ,);;
1235 *)
1236 if test "x$ac_old_val" != "x$ac_new_val"; then
1237 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1238 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1239 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1240 echo "$as_me: former value: $ac_old_val" >&2;}
1241 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1242 echo "$as_me: current value: $ac_new_val" >&2;}
1243 ac_cache_corrupted=:
1244 fi;;
1245 esac
1246 # Pass precious variables to config.status.
1247 if test "$ac_new_set" = set; then
1248 case $ac_new_val in
1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1251 *) ac_arg=$ac_var=$ac_new_val ;;
1252 esac
1253 case " $ac_configure_args " in
1254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1255 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1256 esac
1257 fi
1258 done
1259 if $ac_cache_corrupted; then
1260 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1261 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1262 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1263 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1264 { (exit 1); exit 1; }; }
1265 fi
1266
1267 ac_ext=c
1268 ac_cpp='$CPP $CPPFLAGS'
1269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 am__api_version="1.7"
1300 ac_aux_dir=
1301 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1302 if test -f $ac_dir/install-sh; then
1303 ac_aux_dir=$ac_dir
1304 ac_install_sh="$ac_aux_dir/install-sh -c"
1305 break
1306 elif test -f $ac_dir/install.sh; then
1307 ac_aux_dir=$ac_dir
1308 ac_install_sh="$ac_aux_dir/install.sh -c"
1309 break
1310 elif test -f $ac_dir/shtool; then
1311 ac_aux_dir=$ac_dir
1312 ac_install_sh="$ac_aux_dir/shtool install -c"
1313 break
1314 fi
1315 done
1316 if test -z "$ac_aux_dir"; then
1317 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1318 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1319 { (exit 1); exit 1; }; }
1320 fi
1321 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1322 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1323 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1324
1325 # Find a good install program. We prefer a C program (faster),
1326 # so one script is as good as another. But avoid the broken or
1327 # incompatible versions:
1328 # SysV /etc/install, /usr/sbin/install
1329 # SunOS /usr/etc/install
1330 # IRIX /sbin/install
1331 # AIX /bin/install
1332 # AmigaOS /C/install, which installs bootblocks on floppy discs
1333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1336 # OS/2's system install, which has a completely different semantic
1337 # ./install, which can be erroneously created by make from ./install.sh.
1338 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1340 if test -z "$INSTALL"; then
1341 if test "${ac_cv_path_install+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 else
1344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1345 for as_dir in $PATH
1346 do
1347 IFS=$as_save_IFS
1348 test -z "$as_dir" && as_dir=.
1349 # Account for people who put trailing slashes in PATH elements.
1350 case $as_dir/ in
1351 ./ | .// | /cC/* | \
1352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1353 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1354 /usr/ucb/* ) ;;
1355 *)
1356 # OSF1 and SCO ODT 3.0 have their own names for install.
1357 # Don't use installbsd from OSF since it installs stuff as root
1358 # by default.
1359 for ac_prog in ginstall scoinst install; do
1360 for ac_exec_ext in '' $ac_executable_extensions; do
1361 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1362 if test $ac_prog = install &&
1363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1364 # AIX install. It has an incompatible calling convention.
1365 :
1366 elif test $ac_prog = install &&
1367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1368 # program-specific install script used by HP pwplus--don't use.
1369 :
1370 else
1371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1372 break 3
1373 fi
1374 fi
1375 done
1376 done
1377 ;;
1378 esac
1379 done
1380
1381
1382 fi
1383 if test "${ac_cv_path_install+set}" = set; then
1384 INSTALL=$ac_cv_path_install
1385 else
1386 # As a last resort, use the slow shell script. We don't cache a
1387 # path for INSTALL within a source directory, because that will
1388 # break other packages using the cache if that directory is
1389 # removed, or if the path is relative.
1390 INSTALL=$ac_install_sh
1391 fi
1392 fi
1393 echo "$as_me:$LINENO: result: $INSTALL" >&5
1394 echo "${ECHO_T}$INSTALL" >&6
1395
1396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1397 # It thinks the first close brace ends the variable substitution.
1398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1399
1400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1401
1402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1403
1404 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1405 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1406 # Just in case
1407 sleep 1
1408 echo timestamp > conftest.file
1409 # Do `set' in a subshell so we don't clobber the current shell's
1410 # arguments. Must try -L first in case configure is actually a
1411 # symlink; some systems play weird games with the mod time of symlinks
1412 # (eg FreeBSD returns the mod time of the symlink's containing
1413 # directory).
1414 if (
1415 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1416 if test "$*" = "X"; then
1417 # -L didn't work.
1418 set X `ls -t $srcdir/configure conftest.file`
1419 fi
1420 rm -f conftest.file
1421 if test "$*" != "X $srcdir/configure conftest.file" \
1422 && test "$*" != "X conftest.file $srcdir/configure"; then
1423
1424 # If neither matched, then we have a broken ls. This can happen
1425 # if, for instance, CONFIG_SHELL is bash and it inherits a
1426 # broken ls alias from the environment. This has actually
1427 # happened. Such a system could not be considered "sane".
1428 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1429 alias in your environment" >&5
1430 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1431 alias in your environment" >&2;}
1432 { (exit 1); exit 1; }; }
1433 fi
1434
1435 test "$2" = conftest.file
1436 )
1437 then
1438 # Ok.
1439 :
1440 else
1441 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1442 Check your system clock" >&5
1443 echo "$as_me: error: newly created file is older than distributed files!
1444 Check your system clock" >&2;}
1445 { (exit 1); exit 1; }; }
1446 fi
1447 echo "$as_me:$LINENO: result: yes" >&5
1448 echo "${ECHO_T}yes" >&6
1449 test "$program_prefix" != NONE &&
1450 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1451 # Use a double $ so make ignores it.
1452 test "$program_suffix" != NONE &&
1453 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1454 # Double any \ or $. echo might interpret backslashes.
1455 # By default was `s,x,x', remove it if useless.
1456 cat <<\_ACEOF >conftest.sed
1457 s/[\\$]/&&/g;s/;s,x,x,$//
1458 _ACEOF
1459 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1460 rm conftest.sed
1461
1462
1463 # expand $ac_aux_dir to an absolute path
1464 am_aux_dir=`cd $ac_aux_dir && pwd`
1465
1466 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1467 # Use eval to expand $SHELL
1468 if eval "$MISSING --run true"; then
1469 am_missing_run="$MISSING --run "
1470 else
1471 am_missing_run=
1472 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1473 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1474 fi
1475
1476 for ac_prog in gawk mawk nawk awk
1477 do
1478 # Extract the first word of "$ac_prog", so it can be a program name with args.
1479 set dummy $ac_prog; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_AWK+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$AWK"; then
1486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_AWK="$ac_prog"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 AWK=$ac_cv_prog_AWK
1505 if test -n "$AWK"; then
1506 echo "$as_me:$LINENO: result: $AWK" >&5
1507 echo "${ECHO_T}$AWK" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 test -n "$AWK" && break
1514 done
1515
1516 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1517 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1518 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1519 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 cat >conftest.make <<\_ACEOF
1523 all:
1524 @echo 'ac_maketemp="$(MAKE)"'
1525 _ACEOF
1526 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1527 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1528 if test -n "$ac_maketemp"; then
1529 eval ac_cv_prog_make_${ac_make}_set=yes
1530 else
1531 eval ac_cv_prog_make_${ac_make}_set=no
1532 fi
1533 rm -f conftest.make
1534 fi
1535 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1536 echo "$as_me:$LINENO: result: yes" >&5
1537 echo "${ECHO_T}yes" >&6
1538 SET_MAKE=
1539 else
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 SET_MAKE="MAKE=${MAKE-make}"
1543 fi
1544
1545 rm -rf .tst 2>/dev/null
1546 mkdir .tst 2>/dev/null
1547 if test -d .tst; then
1548 am__leading_dot=.
1549 else
1550 am__leading_dot=_
1551 fi
1552 rmdir .tst 2>/dev/null
1553
1554 # test to see if srcdir already configured
1555 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1556 test -f $srcdir/config.status; then
1557 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1558 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1559 { (exit 1); exit 1; }; }
1560 fi
1561
1562 # test whether we have cygpath
1563 if test -z "$CYGPATH_W"; then
1564 if (cygpath --version) >/dev/null 2>/dev/null; then
1565 CYGPATH_W='cygpath -w'
1566 else
1567 CYGPATH_W=echo
1568 fi
1569 fi
1570
1571
1572 # Define the identity of the package.
1573 PACKAGE='xsetmode'
1574 VERSION='1.0.0'
1575
1576
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE "$PACKAGE"
1579 _ACEOF
1580
1581
1582 cat >>confdefs.h <<_ACEOF
1583 #define VERSION "$VERSION"
1584 _ACEOF
1585
1586 # Some tools Automake needs.
1587
1588 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1589
1590
1591 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1592
1593
1594 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1595
1596
1597 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1598
1599
1600 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1601
1602
1603 AMTAR=${AMTAR-"${am_missing_run}tar"}
1604
1605 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1606
1607 # Installed binaries are usually stripped using `strip' when the user
1608 # run `make install-strip'. However `strip' might not be the right
1609 # tool to use in cross-compilation environments, therefore Automake
1610 # will honor the `STRIP' environment variable to overrule this program.
1611 if test "$cross_compiling" != no; then
1612 if test -n "$ac_tool_prefix"; then
1613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1614 set dummy ${ac_tool_prefix}strip; ac_word=$2
1615 echo "$as_me:$LINENO: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_STRIP+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620 if test -n "$STRIP"; then
1621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1622 else
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1625 do
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 for ac_exec_ext in '' $ac_executable_extensions; do
1629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 break 2
1633 fi
1634 done
1635 done
1636
1637 fi
1638 fi
1639 STRIP=$ac_cv_prog_STRIP
1640 if test -n "$STRIP"; then
1641 echo "$as_me:$LINENO: result: $STRIP" >&5
1642 echo "${ECHO_T}$STRIP" >&6
1643 else
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1646 fi
1647
1648 fi
1649 if test -z "$ac_cv_prog_STRIP"; then
1650 ac_ct_STRIP=$STRIP
1651 # Extract the first word of "strip", so it can be a program name with args.
1652 set dummy strip; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$ac_ct_STRIP"; then
1659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_ac_ct_STRIP="strip"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672 done
1673 done
1674
1675 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1676 fi
1677 fi
1678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1679 if test -n "$ac_ct_STRIP"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1681 echo "${ECHO_T}$ac_ct_STRIP" >&6
1682 else
1683 echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 STRIP=$ac_ct_STRIP
1688 else
1689 STRIP="$ac_cv_prog_STRIP"
1690 fi
1691
1692 fi
1693 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1694
1695 # We need awk for the "check" target. The system "awk" is bad on
1696 # some platforms.
1697
1698
1699
1700 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1701 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1702 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1703 if test "${enable_maintainer_mode+set}" = set; then
1704 enableval="$enable_maintainer_mode"
1705 USE_MAINTAINER_MODE=$enableval
1706 else
1707 USE_MAINTAINER_MODE=no
1708 fi;
1709 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1710 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1711
1712
1713 if test $USE_MAINTAINER_MODE = yes; then
1714 MAINTAINER_MODE_TRUE=
1715 MAINTAINER_MODE_FALSE='#'
1716 else
1717 MAINTAINER_MODE_TRUE='#'
1718 MAINTAINER_MODE_FALSE=
1719 fi
1720
1721 MAINT=$MAINTAINER_MODE_TRUE
1722
1723
1724
1725 ac_config_headers="$ac_config_headers config.h"
1726
1727
1728 ac_ext=c
1729 ac_cpp='$CPP $CPPFLAGS'
1730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1733 if test -n "$ac_tool_prefix"; then
1734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1735 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_CC+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741 if test -n "$CC"; then
1742 ac_cv_prog_CC="$CC" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747 IFS=$as_save_IFS
1748 test -z "$as_dir" && as_dir=.
1749 for ac_exec_ext in '' $ac_executable_extensions; do
1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 break 2
1754 fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 CC=$ac_cv_prog_CC
1761 if test -n "$CC"; then
1762 echo "$as_me:$LINENO: result: $CC" >&5
1763 echo "${ECHO_T}$CC" >&6
1764 else
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769 fi
1770 if test -z "$ac_cv_prog_CC"; then
1771 ac_ct_CC=$CC
1772 # Extract the first word of "gcc", so it can be a program name with args.
1773 set dummy gcc; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779 if test -n "$ac_ct_CC"; then
1780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1784 do
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_ac_ct_CC="gcc"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 break 2
1792 fi
1793 done
1794 done
1795
1796 fi
1797 fi
1798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1799 if test -n "$ac_ct_CC"; then
1800 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1801 echo "${ECHO_T}$ac_ct_CC" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807 CC=$ac_ct_CC
1808 else
1809 CC="$ac_cv_prog_CC"
1810 fi
1811
1812 if test -z "$CC"; then
1813 if test -n "$ac_tool_prefix"; then
1814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}cc; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_CC+set}" = set; then
1819 echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 for ac_exec_ext in '' $ac_executable_extensions; do
1830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831 ac_cv_prog_CC="${ac_tool_prefix}cc"
1832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 break 2
1834 fi
1835 done
1836 done
1837
1838 fi
1839 fi
1840 CC=$ac_cv_prog_CC
1841 if test -n "$CC"; then
1842 echo "$as_me:$LINENO: result: $CC" >&5
1843 echo "${ECHO_T}$CC" >&6
1844 else
1845 echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 fi
1848
1849 fi
1850 if test -z "$ac_cv_prog_CC"; then
1851 ac_ct_CC=$CC
1852 # Extract the first word of "cc", so it can be a program name with args.
1853 set dummy cc; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$ac_ct_CC"; then
1860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_ac_ct_CC="cc"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1879 if test -n "$ac_ct_CC"; then
1880 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1881 echo "${ECHO_T}$ac_ct_CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887 CC=$ac_ct_CC
1888 else
1889 CC="$ac_cv_prog_CC"
1890 fi
1891
1892 fi
1893 if test -z "$CC"; then
1894 # Extract the first word of "cc", so it can be a program name with args.
1895 set dummy cc; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 ac_prog_rejected=no
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1913 ac_prog_rejected=yes
1914 continue
1915 fi
1916 ac_cv_prog_CC="cc"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 break 2
1919 fi
1920 done
1921 done
1922
1923 if test $ac_prog_rejected = yes; then
1924 # We found a bogon in the path, so make sure we never use it.
1925 set dummy $ac_cv_prog_CC
1926 shift
1927 if test $# != 0; then
1928 # We chose a different compiler from the bogus one.
1929 # However, it has the same basename, so the bogon will be chosen
1930 # first if we set CC to just the basename; use the full file name.
1931 shift
1932 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1933 fi
1934 fi
1935 fi
1936 fi
1937 CC=$ac_cv_prog_CC
1938 if test -n "$CC"; then
1939 echo "$as_me:$LINENO: result: $CC" >&5
1940 echo "${ECHO_T}$CC" >&6
1941 else
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944 fi
1945
1946 fi
1947 if test -z "$CC"; then
1948 if test -n "$ac_tool_prefix"; then
1949 for ac_prog in cl
1950 do
1951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 break 2
1971 fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 CC=$ac_cv_prog_CC
1978 if test -n "$CC"; then
1979 echo "$as_me:$LINENO: result: $CC" >&5
1980 echo "${ECHO_T}$CC" >&6
1981 else
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986 test -n "$CC" && break
1987 done
1988 fi
1989 if test -z "$CC"; then
1990 ac_ct_CC=$CC
1991 for ac_prog in cl
1992 do
1993 # Extract the first word of "$ac_prog", so it can be a program name with args.
1994 set dummy $ac_prog; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000 if test -n "$ac_ct_CC"; then
2001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_ac_ct_CC="$ac_prog"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 break 2
2013 fi
2014 done
2015 done
2016
2017 fi
2018 fi
2019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2020 if test -n "$ac_ct_CC"; then
2021 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2022 echo "${ECHO_T}$ac_ct_CC" >&6
2023 else
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028 test -n "$ac_ct_CC" && break
2029 done
2030
2031 CC=$ac_ct_CC
2032 fi
2033
2034 fi
2035
2036
2037 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: no acceptable C compiler found in \$PATH
2040 See \`config.log' for more details." >&2;}
2041 { (exit 1); exit 1; }; }
2042
2043 # Provide some information about the compiler.
2044 echo "$as_me:$LINENO:" \
2045 "checking for C compiler version" >&5
2046 ac_compiler=`set X $ac_compile; echo $2`
2047 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2048 (eval $ac_compiler --version </dev/null >&5) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }
2052 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2053 (eval $ac_compiler -v </dev/null >&5) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }
2057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2058 (eval $ac_compiler -V </dev/null >&5) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }
2062
2063 cat >conftest.$ac_ext <<_ACEOF
2064 /* confdefs.h. */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2069
2070 int
2071 main ()
2072 {
2073
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 ac_clean_files_save=$ac_clean_files
2079 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2080 # Try to create an executable without -o first, disregard a.out.
2081 # It will help us diagnose broken compilers, and finding out an intuition
2082 # of exeext.
2083 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2084 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2085 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2087 (eval $ac_link_default) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # Find the output, starting from the most likely. This scheme is
2092 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2093 # resort.
2094
2095 # Be careful to initialize this variable, since it used to be cached.
2096 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2097 ac_cv_exeext=
2098 # b.out is created by i960 compilers.
2099 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2100 do
2101 test -f "$ac_file" || continue
2102 case $ac_file in
2103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2104 ;;
2105 conftest.$ac_ext )
2106 # This is the source file.
2107 ;;
2108 [ab].out )
2109 # We found the default executable, but exeext='' is most
2110 # certainly right.
2111 break;;
2112 *.* )
2113 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2114 # FIXME: I believe we export ac_cv_exeext for Libtool,
2115 # but it would be cool to find out if it's true. Does anybody
2116 # maintain Libtool? --akim.
2117 export ac_cv_exeext
2118 break;;
2119 * )
2120 break;;
2121 esac
2122 done
2123 else
2124 echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: C compiler cannot create executables
2130 See \`config.log' for more details." >&2;}
2131 { (exit 77); exit 77; }; }
2132 fi
2133
2134 ac_exeext=$ac_cv_exeext
2135 echo "$as_me:$LINENO: result: $ac_file" >&5
2136 echo "${ECHO_T}$ac_file" >&6
2137
2138 # Check the compiler produces executables we can run. If not, either
2139 # the compiler is broken, or we cross compile.
2140 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2141 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2142 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2143 # If not cross compiling, check that we can run a simple program.
2144 if test "$cross_compiling" != yes; then
2145 if { ac_try='./$ac_file'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 (eval $ac_try) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; }; then
2151 cross_compiling=no
2152 else
2153 if test "$cross_compiling" = maybe; then
2154 cross_compiling=yes
2155 else
2156 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2157 If you meant to cross compile, use \`--host'.
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: cannot run C compiled programs.
2160 If you meant to cross compile, use \`--host'.
2161 See \`config.log' for more details." >&2;}
2162 { (exit 1); exit 1; }; }
2163 fi
2164 fi
2165 fi
2166 echo "$as_me:$LINENO: result: yes" >&5
2167 echo "${ECHO_T}yes" >&6
2168
2169 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2170 ac_clean_files=$ac_clean_files_save
2171 # Check the compiler produces executables we can run. If not, either
2172 # the compiler is broken, or we cross compile.
2173 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2174 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2175 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2176 echo "${ECHO_T}$cross_compiling" >&6
2177
2178 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2179 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2181 (eval $ac_link) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2186 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2187 # work properly (i.e., refer to `conftest.exe'), while it won't with
2188 # `rm'.
2189 for ac_file in conftest.exe conftest conftest.*; do
2190 test -f "$ac_file" || continue
2191 case $ac_file in
2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 export ac_cv_exeext
2195 break;;
2196 * ) break;;
2197 esac
2198 done
2199 else
2200 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2203 See \`config.log' for more details." >&2;}
2204 { (exit 1); exit 1; }; }
2205 fi
2206
2207 rm -f conftest$ac_cv_exeext
2208 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2209 echo "${ECHO_T}$ac_cv_exeext" >&6
2210
2211 rm -f conftest.$ac_ext
2212 EXEEXT=$ac_cv_exeext
2213 ac_exeext=$EXEEXT
2214 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2215 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2216 if test "${ac_cv_objext+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 cat >conftest.$ac_ext <<_ACEOF
2220 /* confdefs.h. */
2221 _ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2225
2226 int
2227 main ()
2228 {
2229
2230 ;
2231 return 0;
2232 }
2233 _ACEOF
2234 rm -f conftest.o conftest.obj
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; then
2240 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2241 case $ac_file in
2242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2244 break;;
2245 esac
2246 done
2247 else
2248 echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }
2256 fi
2257
2258 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2259 fi
2260 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2261 echo "${ECHO_T}$ac_cv_objext" >&6
2262 OBJEXT=$ac_cv_objext
2263 ac_objext=$OBJEXT
2264 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2265 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2266 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 cat >conftest.$ac_ext <<_ACEOF
2270 /* confdefs.h. */
2271 _ACEOF
2272 cat confdefs.h >>conftest.$ac_ext
2273 cat >>conftest.$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2275
2276 int
2277 main ()
2278 {
2279 #ifndef __GNUC__
2280 choke me
2281 #endif
2282
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2290 ac_status=$?
2291 grep -v '^ *+' conftest.er1 >conftest.err
2292 rm -f conftest.er1
2293 cat conftest.err >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -z "$ac_c_werror_flag"
2297 || test ! -s conftest.err'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2309 ac_compiler_gnu=yes
2310 else
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 ac_compiler_gnu=no
2315 fi
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2318
2319 fi
2320 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2321 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2322 GCC=`test $ac_compiler_gnu = yes && echo yes`
2323 ac_test_CFLAGS=${CFLAGS+set}
2324 ac_save_CFLAGS=$CFLAGS
2325 CFLAGS="-g"
2326 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2327 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2328 if test "${ac_cv_prog_cc_g+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h. */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2337
2338 int
2339 main ()
2340 {
2341
2342 ;
2343 return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 ac_cv_prog_cc_g=yes
2369 else
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2372
2373 ac_cv_prog_cc_g=no
2374 fi
2375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2376 fi
2377 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2378 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2379 if test "$ac_test_CFLAGS" = set; then
2380 CFLAGS=$ac_save_CFLAGS
2381 elif test $ac_cv_prog_cc_g = yes; then
2382 if test "$GCC" = yes; then
2383 CFLAGS="-g -O2"
2384 else
2385 CFLAGS="-g"
2386 fi
2387 else
2388 if test "$GCC" = yes; then
2389 CFLAGS="-O2"
2390 else
2391 CFLAGS=
2392 fi
2393 fi
2394 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2395 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2396 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 ac_cv_prog_cc_stdc=no
2400 ac_save_CC=$CC
2401 cat >conftest.$ac_ext <<_ACEOF
2402 /* confdefs.h. */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2407 #include <stdarg.h>
2408 #include <stdio.h>
2409 #include <sys/types.h>
2410 #include <sys/stat.h>
2411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2412 struct buf { int x; };
2413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2414 static char *e (p, i)
2415 char **p;
2416 int i;
2417 {
2418 return p[i];
2419 }
2420 static char *f (char * (*g) (char **, int), char **p, ...)
2421 {
2422 char *s;
2423 va_list v;
2424 va_start (v,p);
2425 s = g (p, va_arg (v,int));
2426 va_end (v);
2427 return s;
2428 }
2429
2430 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2431 function prototypes and stuff, but not '\xHH' hex character constants.
2432 These don't provoke an error unfortunately, instead are silently treated
2433 as 'x'. The following induces an error, until -std1 is added to get
2434 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2435 array size at least. It's necessary to write '\x00'==0 to get something
2436 that's true only with -std1. */
2437 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2438
2439 int test (int i, double x);
2440 struct s1 {int (*f) (int a);};
2441 struct s2 {int (*f) (double a);};
2442 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2443 int argc;
2444 char **argv;
2445 int
2446 main ()
2447 {
2448 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2449 ;
2450 return 0;
2451 }
2452 _ACEOF
2453 # Don't try gcc -ansi; that turns off useful extensions and
2454 # breaks some systems' header files.
2455 # AIX -qlanglvl=ansi
2456 # Ultrix and OSF/1 -std1
2457 # HP-UX 10.20 and later -Ae
2458 # HP-UX older versions -Aa -D_HPUX_SOURCE
2459 # SVR4 -Xc -D__EXTENSIONS__
2460 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2461 do
2462 CC="$ac_save_CC $ac_arg"
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag"
2473 || test ! -s conftest.err'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 ac_cv_prog_cc_stdc=$ac_arg
2486 break
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 fi
2492 rm -f conftest.err conftest.$ac_objext
2493 done
2494 rm -f conftest.$ac_ext conftest.$ac_objext
2495 CC=$ac_save_CC
2496
2497 fi
2498
2499 case "x$ac_cv_prog_cc_stdc" in
2500 x|xno)
2501 echo "$as_me:$LINENO: result: none needed" >&5
2502 echo "${ECHO_T}none needed" >&6 ;;
2503 *)
2504 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2505 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2506 CC="$CC $ac_cv_prog_cc_stdc" ;;
2507 esac
2508
2509 # Some people use a C++ compiler to compile C. Since we use `exit',
2510 # in C++ we need to declare it. In case someone uses the same compiler
2511 # for both compiling C and C++ we need to have the C++ compiler decide
2512 # the declaration of exit, since it's the most demanding environment.
2513 cat >conftest.$ac_ext <<_ACEOF
2514 #ifndef __cplusplus
2515 choke me
2516 #endif
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 for ac_declaration in \
2541 '' \
2542 'extern "C" void std::exit (int) throw (); using std::exit;' \
2543 'extern "C" void std::exit (int); using std::exit;' \
2544 'extern "C" void exit (int) throw ();' \
2545 'extern "C" void exit (int);' \
2546 'void exit (int);'
2547 do
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2554 $ac_declaration
2555 #include <stdlib.h>
2556 int
2557 main ()
2558 {
2559 exit (42);
2560 ;
2561 return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2567 ac_status=$?
2568 grep -v '^ *+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag"
2574 || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 :
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 continue
2592 fi
2593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2594 cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600 $ac_declaration
2601 int
2602 main ()
2603 {
2604 exit (42);
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611 (eval $ac_compile) 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } &&
2618 { ac_try='test -z "$ac_c_werror_flag"
2619 || test ! -s conftest.err'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 break
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 fi
2637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2638 done
2639 rm -f conftest*
2640 if test -n "$ac_declaration"; then
2641 echo '#ifdef __cplusplus' >>confdefs.h
2642 echo $ac_declaration >>confdefs.h
2643 echo '#endif' >>confdefs.h
2644 fi
2645
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 fi
2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657 DEPDIR="${am__leading_dot}deps"
2658
2659 ac_config_commands="$ac_config_commands depfiles"
2660
2661
2662 am_make=${MAKE-make}
2663 cat > confinc << 'END'
2664 am__doit:
2665 @echo done
2666 .PHONY: am__doit
2667 END
2668 # If we don't find an include directive, just comment out the code.
2669 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2670 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2671 am__include="#"
2672 am__quote=
2673 _am_result=none
2674 # First try GNU make style include.
2675 echo "include confinc" > confmf
2676 # We grep out `Entering directory' and `Leaving directory'
2677 # messages which can occur if `w' ends up in MAKEFLAGS.
2678 # In particular we don't look at `^make:' because GNU make might
2679 # be invoked under some other name (usually "gmake"), in which
2680 # case it prints its new name instead of `make'.
2681 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2682 am__include=include
2683 am__quote=
2684 _am_result=GNU
2685 fi
2686 # Now try BSD make style include.
2687 if test "$am__include" = "#"; then
2688 echo '.include "confinc"' > confmf
2689 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2690 am__include=.include
2691 am__quote="\""
2692 _am_result=BSD
2693 fi
2694 fi
2695
2696
2697 echo "$as_me:$LINENO: result: $_am_result" >&5
2698 echo "${ECHO_T}$_am_result" >&6
2699 rm -f confinc confmf
2700
2701 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2702 if test "${enable_dependency_tracking+set}" = set; then
2703 enableval="$enable_dependency_tracking"
2704
2705 fi;
2706 if test "x$enable_dependency_tracking" != xno; then
2707 am_depcomp="$ac_aux_dir/depcomp"
2708 AMDEPBACKSLASH='\'
2709 fi
2710
2711
2712 if test "x$enable_dependency_tracking" != xno; then
2713 AMDEP_TRUE=
2714 AMDEP_FALSE='#'
2715 else
2716 AMDEP_TRUE='#'
2717 AMDEP_FALSE=
2718 fi
2719
2720
2721
2722
2723 depcc="$CC" am_compiler_list=
2724
2725 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2726 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2727 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2731 # We make a subdir and do the tests there. Otherwise we can end up
2732 # making bogus files that we don't know about and never remove. For
2733 # instance it was reported that on HP-UX the gcc test will end up
2734 # making a dummy file named `D' -- because `-MD' means `put the output
2735 # in D'.
2736 mkdir conftest.dir
2737 # Copy depcomp to subdir because otherwise we won't find it if we're
2738 # using a relative directory.
2739 cp "$am_depcomp" conftest.dir
2740 cd conftest.dir
2741 # We will build objects and dependencies in a subdirectory because
2742 # it helps to detect inapplicable dependency modes. For instance
2743 # both Tru64's cc and ICC support -MD to output dependencies as a
2744 # side effect of compilation, but ICC will put the dependencies in
2745 # the current directory while Tru64 will put them in the object
2746 # directory.
2747 mkdir sub
2748
2749 am_cv_CC_dependencies_compiler_type=none
2750 if test "$am_compiler_list" = ""; then
2751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2752 fi
2753 for depmode in $am_compiler_list; do
2754 # Setup a source with many dependencies, because some compilers
2755 # like to wrap large dependency lists on column 80 (with \), and
2756 # we should not choose a depcomp mode which is confused by this.
2757 #
2758 # We need to recreate these files for each test, as the compiler may
2759 # overwrite some of them when testing with obscure command lines.
2760 # This happens at least with the AIX C compiler.
2761 : > sub/conftest.c
2762 for i in 1 2 3 4 5 6; do
2763 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2764 : > sub/conftst$i.h
2765 done
2766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2767
2768 case $depmode in
2769 nosideeffect)
2770 # after this tag, mechanisms are not by side-effect, so they'll
2771 # only be used when explicitly requested
2772 if test "x$enable_dependency_tracking" = xyes; then
2773 continue
2774 else
2775 break
2776 fi
2777 ;;
2778 none) break ;;
2779 esac
2780 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2781 # mode. It turns out that the SunPro C++ compiler does not properly
2782 # handle `-M -o', and we need to detect this.
2783 if depmode=$depmode \
2784 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2785 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2786 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2787 >/dev/null 2>conftest.err &&
2788 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2789 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2790 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2791 # icc doesn't choke on unknown options, it will just issue warnings
2792 # (even with -Werror). So we grep stderr for any message
2793 # that says an option was ignored.
2794 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2795 am_cv_CC_dependencies_compiler_type=$depmode
2796 break
2797 fi
2798 fi
2799 done
2800
2801 cd ..
2802 rm -rf conftest.dir
2803 else
2804 am_cv_CC_dependencies_compiler_type=none
2805 fi
2806
2807 fi
2808 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2809 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2810 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2811
2812
2813
2814 if
2815 test "x$enable_dependency_tracking" != xno \
2816 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2817 am__fastdepCC_TRUE=
2818 am__fastdepCC_FALSE='#'
2819 else
2820 am__fastdepCC_TRUE='#'
2821 am__fastdepCC_FALSE=
2822 fi
2823
2824
2825 # Find a good install program. We prefer a C program (faster),
2826 # so one script is as good as another. But avoid the broken or
2827 # incompatible versions:
2828 # SysV /etc/install, /usr/sbin/install
2829 # SunOS /usr/etc/install
2830 # IRIX /sbin/install
2831 # AIX /bin/install
2832 # AmigaOS /C/install, which installs bootblocks on floppy discs
2833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2836 # OS/2's system install, which has a completely different semantic
2837 # ./install, which can be erroneously created by make from ./install.sh.
2838 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2840 if test -z "$INSTALL"; then
2841 if test "${ac_cv_path_install+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 # Account for people who put trailing slashes in PATH elements.
2850 case $as_dir/ in
2851 ./ | .// | /cC/* | \
2852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2853 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2854 /usr/ucb/* ) ;;
2855 *)
2856 # OSF1 and SCO ODT 3.0 have their own names for install.
2857 # Don't use installbsd from OSF since it installs stuff as root
2858 # by default.
2859 for ac_prog in ginstall scoinst install; do
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2862 if test $ac_prog = install &&
2863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2864 # AIX install. It has an incompatible calling convention.
2865 :
2866 elif test $ac_prog = install &&
2867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # program-specific install script used by HP pwplus--don't use.
2869 :
2870 else
2871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2872 break 3
2873 fi
2874 fi
2875 done
2876 done
2877 ;;
2878 esac
2879 done
2880
2881
2882 fi
2883 if test "${ac_cv_path_install+set}" = set; then
2884 INSTALL=$ac_cv_path_install
2885 else
2886 # As a last resort, use the slow shell script. We don't cache a
2887 # path for INSTALL within a source directory, because that will
2888 # break other packages using the cache if that directory is
2889 # removed, or if the path is relative.
2890 INSTALL=$ac_install_sh
2891 fi
2892 fi
2893 echo "$as_me:$LINENO: result: $INSTALL" >&5
2894 echo "${ECHO_T}$INSTALL" >&6
2895
2896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2897 # It thinks the first close brace ends the variable substitution.
2898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2899
2900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2901
2902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2903
2904
2905 # Checks for pkg-config packages
2906
2907
2908 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 case $PKG_CONFIG in
2918 [\\/]* | ?:[\\/]*)
2919 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2920 ;;
2921 *)
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935
2936 ;;
2937 esac
2938 fi
2939 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2940
2941 if test -n "$PKG_CONFIG"; then
2942 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2943 echo "${ECHO_T}$PKG_CONFIG" >&6
2944 else
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2947 fi
2948
2949 fi
2950 if test -z "$ac_cv_path_PKG_CONFIG"; then
2951 ac_pt_PKG_CONFIG=$PKG_CONFIG
2952 # Extract the first word of "pkg-config", so it can be a program name with args.
2953 set dummy pkg-config; ac_word=$2
2954 echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 case $ac_pt_PKG_CONFIG in
2960 [\\/]* | ?:[\\/]*)
2961 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2962 ;;
2963 *)
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977
2978 ;;
2979 esac
2980 fi
2981 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2982
2983 if test -n "$ac_pt_PKG_CONFIG"; then
2984 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2985 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2986 else
2987 echo "$as_me:$LINENO: result: no" >&5
2988 echo "${ECHO_T}no" >&6
2989 fi
2990
2991 PKG_CONFIG=$ac_pt_PKG_CONFIG
2992 else
2993 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2994 fi
2995
2996 fi
2997 if test -n "$PKG_CONFIG"; then
2998 _pkg_min_version=0.9.0
2999 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3000 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3001 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3002 echo "$as_me:$LINENO: result: yes" >&5
3003 echo "${ECHO_T}yes" >&6
3004 else
3005 echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6
3007 PKG_CONFIG=""
3008 fi
3009
3010 fi
3011
3012 pkg_failed=no
3013 echo "$as_me:$LINENO: checking for XSETMODE" >&5
3014 echo $ECHO_N "checking for XSETMODE... $ECHO_C" >&6
3015
3016 if test -n "$PKG_CONFIG"; then
3017 if test -n "$XSETMODE_CFLAGS"; then
3018 pkg_cv_XSETMODE_CFLAGS="$XSETMODE_CFLAGS"
3019 else
3020 if test -n "$PKG_CONFIG" && \
3021 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xi x11\"") >&5
3022 ($PKG_CONFIG --exists --print-errors "xi x11") 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; then
3026 pkg_cv_XSETMODE_CFLAGS=`$PKG_CONFIG --cflags "xi x11" 2>/dev/null`
3027 else
3028 pkg_failed=yes
3029 fi
3030 fi
3031 else
3032 pkg_failed=untried
3033 fi
3034 if test -n "$PKG_CONFIG"; then
3035 if test -n "$XSETMODE_LIBS"; then
3036 pkg_cv_XSETMODE_LIBS="$XSETMODE_LIBS"
3037 else
3038 if test -n "$PKG_CONFIG" && \
3039 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xi x11\"") >&5
3040 ($PKG_CONFIG --exists --print-errors "xi x11") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; then
3044 pkg_cv_XSETMODE_LIBS=`$PKG_CONFIG --libs "xi x11" 2>/dev/null`
3045 else
3046 pkg_failed=yes
3047 fi
3048 fi
3049 else
3050 pkg_failed=untried
3051 fi
3052
3053
3054
3055 if test $pkg_failed = yes; then
3056
3057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3058 _pkg_short_errors_supported=yes
3059 else
3060 _pkg_short_errors_supported=no
3061 fi
3062 if test $_pkg_short_errors_supported = yes; then
3063 XSETMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xi x11"`
3064 else
3065 XSETMODE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xi x11"`
3066 fi
3067 # Put the nasty error message in config.log where it belongs
3068 echo "$XSETMODE_PKG_ERRORS" >&5
3069
3070 { { echo "$as_me:$LINENO: error: Package requirements (xi x11) were not met:
3071
3072 $XSETMODE_PKG_ERRORS
3073
3074 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3075 installed software in a non-standard prefix.
3076
3077 Alternatively, you may set the environment variables XSETMODE_CFLAGS
3078 and XSETMODE_LIBS to avoid the need to call pkg-config.
3079 See the pkg-config man page for more details.
3080 " >&5
3081 echo "$as_me: error: Package requirements (xi x11) were not met:
3082
3083 $XSETMODE_PKG_ERRORS
3084
3085 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3086 installed software in a non-standard prefix.
3087
3088 Alternatively, you may set the environment variables XSETMODE_CFLAGS
3089 and XSETMODE_LIBS to avoid the need to call pkg-config.
3090 See the pkg-config man page for more details.
3091 " >&2;}
3092 { (exit 1); exit 1; }; }
3093 elif test $pkg_failed = untried; then
3094 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3095 is in your PATH or set the PKG_CONFIG environment variable to the full
3096 path to pkg-config.
3097
3098 Alternatively, you may set the environment variables XSETMODE_CFLAGS
3099 and XSETMODE_LIBS to avoid the need to call pkg-config.
3100 See the pkg-config man page for more details.
3101
3102 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3105 is in your PATH or set the PKG_CONFIG environment variable to the full
3106 path to pkg-config.
3107
3108 Alternatively, you may set the environment variables XSETMODE_CFLAGS
3109 and XSETMODE_LIBS to avoid the need to call pkg-config.
3110 See the pkg-config man page for more details.
3111
3112 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3113 See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }
3115 else
3116 XSETMODE_CFLAGS=$pkg_cv_XSETMODE_CFLAGS
3117 XSETMODE_LIBS=$pkg_cv_XSETMODE_LIBS
3118 echo "$as_me:$LINENO: result: yes" >&5
3119 echo "${ECHO_T}yes" >&6
3120 :
3121 fi
3122
3123
3124
3125 # Make sure we can run config.sub.
3126 $ac_config_sub sun4 >/dev/null 2>&1 ||
3127 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3128 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3129 { (exit 1); exit 1; }; }
3130
3131 echo "$as_me:$LINENO: checking build system type" >&5
3132 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3133 if test "${ac_cv_build+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 ac_cv_build_alias=$build_alias
3137 test -z "$ac_cv_build_alias" &&
3138 ac_cv_build_alias=`$ac_config_guess`
3139 test -z "$ac_cv_build_alias" &&
3140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3142 { (exit 1); exit 1; }; }
3143 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3144 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3145 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3146 { (exit 1); exit 1; }; }
3147
3148 fi
3149 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3150 echo "${ECHO_T}$ac_cv_build" >&6
3151 build=$ac_cv_build
3152 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3153 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3154 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3155
3156
3157 echo "$as_me:$LINENO: checking host system type" >&5
3158 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3159 if test "${ac_cv_host+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 ac_cv_host_alias=$host_alias
3163 test -z "$ac_cv_host_alias" &&
3164 ac_cv_host_alias=$ac_cv_build_alias
3165 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3166 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3167 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3168 { (exit 1); exit 1; }; }
3169
3170 fi
3171 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3172 echo "${ECHO_T}$ac_cv_host" >&6
3173 host=$ac_cv_host
3174 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3175 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3176 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3177
3178
3179
3180
3181
3182 if test x$APP_MAN_SUFFIX = x ; then
3183 case $host_os in
3184 linux*) APP_MAN_SUFFIX=1x ;;
3185 *) APP_MAN_SUFFIX=1 ;;
3186 esac
3187 fi
3188 if test x$APP_MAN_DIR = x ; then
3189 case $host_os in
3190 linux*) APP_MAN_DIR='$(mandir)/man1' ;;
3191 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
3192 esac
3193 fi
3194
3195 if test x$LIB_MAN_SUFFIX = x ; then
3196 case $host_os in
3197 linux*) LIB_MAN_SUFFIX=3x ;;
3198 *) LIB_MAN_SUFFIX=3 ;;
3199 esac
3200 fi
3201 if test x$LIB_MAN_DIR = x ; then
3202 case $host_os in
3203 linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
3204 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
3205 esac
3206 fi
3207
3208 if test x$FILE_MAN_SUFFIX = x ; then
3209 case $host_os in
3210 linux*) FILE_MAN_SUFFIX=5x ;;
3211 solaris*) FILE_MAN_SUFFIX=4 ;;
3212 *) FILE_MAN_SUFFIX=5 ;;
3213 esac
3214 fi
3215 if test x$FILE_MAN_DIR = x ; then
3216 case $host_os in
3217 linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
3218 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
3219 esac
3220 fi
3221
3222 # In Imake's linux.cf, the misc man suffix & dir was only changed for
3223 # LinuxDebian, not other Linuxes, so we leave it unchanged here
3224 if test x$MISC_MAN_SUFFIX = x ; then
3225 case $host_os in
3226 # linux*) MISC_MAN_SUFFIX=7x ;;
3227 solaris*) MISC_MAN_SUFFIX=5 ;;
3228 *) MISC_MAN_SUFFIX=7 ;;
3229 esac
3230 fi
3231 if test x$MISC_MAN_DIR = x ; then
3232 case $host_os in
3233 # linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
3234 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
3235 esac
3236 fi
3237
3238 # In Imake's linux.cf, the driver man suffix & dir was only changed for
3239 # LinuxDebian, not other Linuxes, so we leave it unchanged here
3240 if test x$DRIVER_MAN_SUFFIX = x ; then
3241 case $host_os in
3242 # linux*) DRIVER_MAN_SUFFIX=4x ;;
3243 solaris*) DRIVER_MAN_SUFFIX=7 ;;
3244 *) DRIVER_MAN_SUFFIX=4 ;;
3245 esac
3246 fi
3247 if test x$DRIVER_MAN_DIR = x ; then
3248 case $host_os in
3249 # linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
3250 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
3251 esac
3252 fi
3253
3254 if test x$ADMIN_MAN_SUFFIX = x ; then
3255 case $host_os in
3256 solaris*) ADMIN_MAN_SUFFIX=1m ;;
3257 *) ADMIN_MAN_SUFFIX=8 ;;
3258 esac
3259 fi
3260 if test x$ADMIN_MAN_DIR = x ; then
3261 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
3262 fi
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280 # Check whether --with-release-version or --without-release-version was given.
3281 if test "${with_release_version+set}" = set; then
3282 withval="$with_release_version"
3283 RELEASE_VERSION="$withval"
3284 else
3285 RELEASE_VERSION=""
3286 fi;
3287 if test "x$RELEASE_VERSION" != "x"; then
3288 PACKAGE="$PACKAGE-$RELEASE_VERSION"
3289 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
3290 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
3291 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
3292 fi
3293
3294
3295 ac_config_files="$ac_config_files Makefile"
3296 cat >confcache <<\_ACEOF
3297 # This file is a shell script that caches the results of configure
3298 # tests run on this system so they can be shared between configure
3299 # scripts and configure runs, see configure's option --config-cache.
3300 # It is not useful on other systems. If it contains results you don't
3301 # want to keep, you may remove or edit it.
3302 #
3303 # config.status only pays attention to the cache file if you give it
3304 # the --recheck option to rerun configure.
3305 #
3306 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3308 # following values.
3309
3310 _ACEOF
3311
3312 # The following way of writing the cache mishandles newlines in values,
3313 # but we know of no workaround that is simple, portable, and efficient.
3314 # So, don't put newlines in cache variables' values.
3315 # Ultrix sh set writes to stderr and can't be redirected directly,
3316 # and sets the high bit in the cache file unless we assign to the vars.
3317 {
3318 (set) 2>&1 |
3319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3320 *ac_space=\ *)
3321 # `set' does not quote correctly, so add quotes (double-quote
3322 # substitution turns \\\\ into \\, and sed turns \\ into \).
3323 sed -n \
3324 "s/'/'\\\\''/g;
3325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3326 ;;
3327 *)
3328 # `set' quotes correctly as required by POSIX, so do not add quotes.
3329 sed -n \
3330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3331 ;;
3332 esac;
3333 } |
3334 sed '
3335 t clear
3336 : clear
3337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3338 t end
3339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3340 : end' >>confcache
3341 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3342 if test -w $cache_file; then
3343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3344 cat confcache >$cache_file
3345 else
3346 echo "not updating unwritable cache $cache_file"
3347 fi
3348 fi
3349 rm -f confcache
3350
3351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3352 # Let make expand exec_prefix.
3353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3354
3355 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3356 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3357 # trailing colons and then remove the whole line if VPATH becomes empty
3358 # (actually we leave an empty line to preserve line numbers).
3359 if test "x$srcdir" = x.; then
3360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3361 s/:*\$(srcdir):*/:/;
3362 s/:*\${srcdir}:*/:/;
3363 s/:*@srcdir@:*/:/;
3364 s/^\([^=]*=[ ]*\):*/\1/;
3365 s/:*$//;
3366 s/^[^=]*=[ ]*$//;
3367 }'
3368 fi
3369
3370 DEFS=-DHAVE_CONFIG_H
3371
3372 ac_libobjs=
3373 ac_ltlibobjs=
3374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3375 # 1. Remove the extension, and $U if already installed.
3376 ac_i=`echo "$ac_i" |
3377 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3378 # 2. Add them.
3379 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3380 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3381 done
3382 LIBOBJS=$ac_libobjs
3383
3384 LTLIBOBJS=$ac_ltlibobjs
3385
3386
3387 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3388 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
3389 Usually this means the macro was only invoked conditionally." >&5
3390 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3391 Usually this means the macro was only invoked conditionally." >&2;}
3392 { (exit 1); exit 1; }; }
3393 fi
3394 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3395 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3396 Usually this means the macro was only invoked conditionally." >&5
3397 echo "$as_me: error: conditional \"AMDEP\" was never defined.
3398 Usually this means the macro was only invoked conditionally." >&2;}
3399 { (exit 1); exit 1; }; }
3400 fi
3401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3402 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3403 Usually this means the macro was only invoked conditionally." >&5
3404 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3405 Usually this means the macro was only invoked conditionally." >&2;}
3406 { (exit 1); exit 1; }; }
3407 fi
3408
3409 : ${CONFIG_STATUS=./config.status}
3410 ac_clean_files_save=$ac_clean_files
3411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3412 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3413 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3414 cat >$CONFIG_STATUS <<_ACEOF
3415 #! $SHELL
3416 # Generated by $as_me.
3417 # Run this file to recreate the current configuration.
3418 # Compiler output produced by configure, useful for debugging
3419 # configure, is in config.log if it exists.
3420
3421 debug=false
3422 ac_cs_recheck=false
3423 ac_cs_silent=false
3424 SHELL=\${CONFIG_SHELL-$SHELL}
3425 _ACEOF
3426
3427 cat >>$CONFIG_STATUS <<\_ACEOF
3428 ## --------------------- ##
3429 ## M4sh Initialization. ##
3430 ## --------------------- ##
3431
3432 # Be Bourne compatible
3433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3434 emulate sh
3435 NULLCMD=:
3436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3437 # is contrary to our usage. Disable this feature.
3438 alias -g '${1+"$@"}'='"$@"'
3439 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3440 set -o posix
3441 fi
3442 DUALCASE=1; export DUALCASE # for MKS sh
3443
3444 # Support unset when possible.
3445 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3446 as_unset=unset
3447 else
3448 as_unset=false
3449 fi
3450
3451
3452 # Work around bugs in pre-3.0 UWIN ksh.
3453 $as_unset ENV MAIL MAILPATH
3454 PS1='$ '
3455 PS2='> '
3456 PS4='+ '
3457
3458 # NLS nuisances.
3459 for as_var in \
3460 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3461 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3462 LC_TELEPHONE LC_TIME
3463 do
3464 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3465 eval $as_var=C; export $as_var
3466 else
3467 $as_unset $as_var
3468 fi
3469 done
3470
3471 # Required to use basename.
3472 if expr a : '\(a\)' >/dev/null 2>&1; then
3473 as_expr=expr
3474 else
3475 as_expr=false
3476 fi
3477
3478 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3479 as_basename=basename
3480 else
3481 as_basename=false
3482 fi
3483
3484
3485 # Name of the executable.
3486 as_me=`$as_basename "$0" ||
3487 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3488 X"$0" : 'X\(//\)$' \| \
3489 X"$0" : 'X\(/\)$' \| \
3490 . : '\(.\)' 2>/dev/null ||
3491 echo X/"$0" |
3492 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3493 /^X\/\(\/\/\)$/{ s//\1/; q; }
3494 /^X\/\(\/\).*/{ s//\1/; q; }
3495 s/.*/./; q'`
3496
3497
3498 # PATH needs CR, and LINENO needs CR and PATH.
3499 # Avoid depending upon Character Ranges.
3500 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3501 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3502 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3503 as_cr_digits='0123456789'
3504 as_cr_alnum=$as_cr_Letters$as_cr_digits
3505
3506 # The user is always right.
3507 if test "${PATH_SEPARATOR+set}" != set; then
3508 echo "#! /bin/sh" >conf$$.sh
3509 echo "exit 0" >>conf$$.sh
3510 chmod +x conf$$.sh
3511 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3512 PATH_SEPARATOR=';'
3513 else
3514 PATH_SEPARATOR=:
3515 fi
3516 rm -f conf$$.sh
3517 fi
3518
3519
3520 as_lineno_1=$LINENO
3521 as_lineno_2=$LINENO
3522 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3523 test "x$as_lineno_1" != "x$as_lineno_2" &&
3524 test "x$as_lineno_3" = "x$as_lineno_2" || {
3525 # Find who we are. Look in the path if we contain no path at all
3526 # relative or not.
3527 case $0 in
3528 *[\\/]* ) as_myself=$0 ;;
3529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3535 done
3536
3537 ;;
3538 esac
3539 # We did not find ourselves, most probably we were run as `sh COMMAND'
3540 # in which case we are not to be found in the path.
3541 if test "x$as_myself" = x; then
3542 as_myself=$0
3543 fi
3544 if test ! -f "$as_myself"; then
3545 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3546 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3547 { (exit 1); exit 1; }; }
3548 fi
3549 case $CONFIG_SHELL in
3550 '')
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3553 do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for as_base in sh bash ksh sh5; do
3557 case $as_dir in
3558 /*)
3559 if ("$as_dir/$as_base" -c '
3560 as_lineno_1=$LINENO
3561 as_lineno_2=$LINENO
3562 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3563 test "x$as_lineno_1" != "x$as_lineno_2" &&
3564 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3565 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3566 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3567 CONFIG_SHELL=$as_dir/$as_base
3568 export CONFIG_SHELL
3569 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3570 fi;;
3571 esac
3572 done
3573 done
3574 ;;
3575 esac
3576
3577 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3578 # uniformly replaced by the line number. The first 'sed' inserts a
3579 # line-number line before each line; the second 'sed' does the real
3580 # work. The second script uses 'N' to pair each line-number line
3581 # with the numbered line, and appends trailing '-' during
3582 # substitution so that $LINENO is not a special case at line end.
3583 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3584 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3585 sed '=' <$as_myself |
3586 sed '
3587 N
3588 s,$,-,
3589 : loop
3590 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3591 t loop
3592 s,-$,,
3593 s,^['$as_cr_digits']*\n,,
3594 ' >$as_me.lineno &&
3595 chmod +x $as_me.lineno ||
3596 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3597 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3598 { (exit 1); exit 1; }; }
3599
3600 # Don't try to exec as it changes $[0], causing all sort of problems
3601 # (the dirname of $[0] is not the place where we might find the
3602 # original and so on. Autoconf is especially sensible to this).
3603 . ./$as_me.lineno
3604 # Exit status is that of the last command.
3605 exit
3606 }
3607
3608
3609 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3610 *c*,-n*) ECHO_N= ECHO_C='
3611 ' ECHO_T=' ' ;;
3612 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3613 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3614 esac
3615
3616 if expr a : '\(a\)' >/dev/null 2>&1; then
3617 as_expr=expr
3618 else
3619 as_expr=false
3620 fi
3621
3622 rm -f conf$$ conf$$.exe conf$$.file
3623 echo >conf$$.file
3624 if ln -s conf$$.file conf$$ 2>/dev/null; then
3625 # We could just check for DJGPP; but this test a) works b) is more generic
3626 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3627 if test -f conf$$.exe; then
3628 # Don't use ln at all; we don't have any links
3629 as_ln_s='cp -p'
3630 else
3631 as_ln_s='ln -s'
3632 fi
3633 elif ln conf$$.file conf$$ 2>/dev/null; then
3634 as_ln_s=ln
3635 else
3636 as_ln_s='cp -p'
3637 fi
3638 rm -f conf$$ conf$$.exe conf$$.file
3639
3640 if mkdir -p . 2>/dev/null; then
3641 as_mkdir_p=:
3642 else
3643 test -d ./-p && rmdir ./-p
3644 as_mkdir_p=false
3645 fi
3646
3647 as_executable_p="test -f"
3648
3649 # Sed expression to map a string onto a valid CPP name.
3650 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3651
3652 # Sed expression to map a string onto a valid variable name.
3653 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3654
3655
3656 # IFS
3657 # We need space, tab and new line, in precisely that order.
3658 as_nl='
3659 '
3660 IFS=" $as_nl"
3661
3662 # CDPATH.
3663 $as_unset CDPATH
3664
3665 exec 6>&1
3666
3667 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3668 # report actual input values of CONFIG_FILES etc. instead of their
3669 # values after options handling. Logging --version etc. is OK.
3670 exec 5>>config.log
3671 {
3672 echo
3673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3674 ## Running $as_me. ##
3675 _ASBOX
3676 } >&5
3677 cat >&5 <<_CSEOF
3678
3679 This file was extended by xsetmode $as_me 1.0.0, which was
3680 generated by GNU Autoconf 2.59. Invocation command line was
3681
3682 CONFIG_FILES = $CONFIG_FILES
3683 CONFIG_HEADERS = $CONFIG_HEADERS
3684 CONFIG_LINKS = $CONFIG_LINKS
3685 CONFIG_COMMANDS = $CONFIG_COMMANDS
3686 $ $0 $@
3687
3688 _CSEOF
3689 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3690 echo >&5
3691 _ACEOF
3692
3693 # Files that config.status was made for.
3694 if test -n "$ac_config_files"; then
3695 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3696 fi
3697
3698 if test -n "$ac_config_headers"; then
3699 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3700 fi
3701
3702 if test -n "$ac_config_links"; then
3703 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3704 fi
3705
3706 if test -n "$ac_config_commands"; then
3707 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3708 fi
3709
3710 cat >>$CONFIG_STATUS <<\_ACEOF
3711
3712 ac_cs_usage="\
3713 \`$as_me' instantiates files from templates according to the
3714 current configuration.
3715
3716 Usage: $0 [OPTIONS] [FILE]...
3717
3718 -h, --help print this help, then exit
3719 -V, --version print version number, then exit
3720 -q, --quiet do not print progress messages
3721 -d, --debug don't remove temporary files
3722 --recheck update $as_me by reconfiguring in the same conditions
3723 --file=FILE[:TEMPLATE]
3724 instantiate the configuration file FILE
3725 --header=FILE[:TEMPLATE]
3726 instantiate the configuration header FILE
3727
3728 Configuration files:
3729 $config_files
3730
3731 Configuration headers:
3732 $config_headers
3733
3734 Configuration commands:
3735 $config_commands
3736
3737 Report bugs to <bug-autoconf@gnu.org>."
3738 _ACEOF
3739
3740 cat >>$CONFIG_STATUS <<_ACEOF
3741 ac_cs_version="\\
3742 xsetmode config.status 1.0.0
3743 configured by $0, generated by GNU Autoconf 2.59,
3744 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3745
3746 Copyright (C) 2003 Free Software Foundation, Inc.
3747 This config.status script is free software; the Free Software Foundation
3748 gives unlimited permission to copy, distribute and modify it."
3749 srcdir=$srcdir
3750 INSTALL="$INSTALL"
3751 _ACEOF
3752
3753 cat >>$CONFIG_STATUS <<\_ACEOF
3754 # If no file are specified by the user, then we need to provide default
3755 # value. By we need to know if files were specified by the user.
3756 ac_need_defaults=:
3757 while test $# != 0
3758 do
3759 case $1 in
3760 --*=*)
3761 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3762 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3763 ac_shift=:
3764 ;;
3765 -*)
3766 ac_option=$1
3767 ac_optarg=$2
3768 ac_shift=shift
3769 ;;
3770 *) # This is not an option, so the user has probably given explicit
3771 # arguments.
3772 ac_option=$1
3773 ac_need_defaults=false;;
3774 esac
3775
3776 case $ac_option in
3777 # Handling of the options.
3778 _ACEOF
3779 cat >>$CONFIG_STATUS <<\_ACEOF
3780 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3781 ac_cs_recheck=: ;;
3782 --version | --vers* | -V )
3783 echo "$ac_cs_version"; exit 0 ;;
3784 --he | --h)
3785 # Conflict between --help and --header
3786 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3787 Try \`$0 --help' for more information." >&5
3788 echo "$as_me: error: ambiguous option: $1
3789 Try \`$0 --help' for more information." >&2;}
3790 { (exit 1); exit 1; }; };;
3791 --help | --hel | -h )
3792 echo "$ac_cs_usage"; exit 0 ;;
3793 --debug | --d* | -d )
3794 debug=: ;;
3795 --file | --fil | --fi | --f )
3796 $ac_shift
3797 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3798 ac_need_defaults=false;;
3799 --header | --heade | --head | --hea )
3800 $ac_shift
3801 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3802 ac_need_defaults=false;;
3803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3805 ac_cs_silent=: ;;
3806
3807 # This is an error.
3808 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3809 Try \`$0 --help' for more information." >&5
3810 echo "$as_me: error: unrecognized option: $1
3811 Try \`$0 --help' for more information." >&2;}
3812 { (exit 1); exit 1; }; } ;;
3813
3814 *) ac_config_targets="$ac_config_targets $1" ;;
3815
3816 esac
3817 shift
3818 done
3819
3820 ac_configure_extra_args=
3821
3822 if $ac_cs_silent; then
3823 exec 6>/dev/null
3824 ac_configure_extra_args="$ac_configure_extra_args --silent"
3825 fi
3826
3827 _ACEOF
3828 cat >>$CONFIG_STATUS <<_ACEOF
3829 if \$ac_cs_recheck; then
3830 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3831 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3832 fi
3833
3834 _ACEOF
3835
3836 cat >>$CONFIG_STATUS <<_ACEOF
3837 #
3838 # INIT-COMMANDS section.
3839 #
3840
3841 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3842
3843 _ACEOF
3844
3845
3846
3847 cat >>$CONFIG_STATUS <<\_ACEOF
3848 for ac_config_target in $ac_config_targets
3849 do
3850 case "$ac_config_target" in
3851 # Handling of arguments.
3852 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3853 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3854 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3855 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3856 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3857 { (exit 1); exit 1; }; };;
3858 esac
3859 done
3860
3861 # If the user did not use the arguments to specify the items to instantiate,
3862 # then the envvar interface is used. Set only those that are not.
3863 # We use the long form for the default assignment because of an extremely
3864 # bizarre bug on SunOS 4.1.3.
3865 if $ac_need_defaults; then
3866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3867 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3868 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3869 fi
3870
3871 # Have a temporary directory for convenience. Make it in the build tree
3872 # simply because there is no reason to put it here, and in addition,
3873 # creating and moving files from /tmp can sometimes cause problems.
3874 # Create a temporary directory, and hook for its removal unless debugging.
3875 $debug ||
3876 {
3877 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3878 trap '{ (exit 1); exit 1; }' 1 2 13 15
3879 }
3880
3881 # Create a (secure) tmp directory for tmp files.
3882
3883 {
3884 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3885 test -n "$tmp" && test -d "$tmp"
3886 } ||
3887 {
3888 tmp=./confstat$$-$RANDOM
3889 (umask 077 && mkdir $tmp)
3890 } ||
3891 {
3892 echo "$me: cannot create a temporary directory in ." >&2
3893 { (exit 1); exit 1; }
3894 }
3895
3896 _ACEOF
3897
3898 cat >>$CONFIG_STATUS <<_ACEOF
3899
3900 #
3901 # CONFIG_FILES section.
3902 #
3903
3904 # No need to generate the scripts if there are no CONFIG_FILES.
3905 # This happens for instance when ./config.status config.h
3906 if test -n "\$CONFIG_FILES"; then
3907 # Protect against being on the right side of a sed subst in config.status.
3908 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3909 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3910 s,@SHELL@,$SHELL,;t t
3911 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3912 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3913 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3914 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3915 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3916 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3917 s,@exec_prefix@,$exec_prefix,;t t
3918 s,@prefix@,$prefix,;t t
3919 s,@program_transform_name@,$program_transform_name,;t t
3920 s,@bindir@,$bindir,;t t
3921 s,@sbindir@,$sbindir,;t t
3922 s,@libexecdir@,$libexecdir,;t t
3923 s,@datadir@,$datadir,;t t
3924 s,@sysconfdir@,$sysconfdir,;t t
3925 s,@sharedstatedir@,$sharedstatedir,;t t
3926 s,@localstatedir@,$localstatedir,;t t
3927 s,@libdir@,$libdir,;t t
3928 s,@includedir@,$includedir,;t t
3929 s,@oldincludedir@,$oldincludedir,;t t
3930 s,@infodir@,$infodir,;t t
3931 s,@mandir@,$mandir,;t t
3932 s,@build_alias@,$build_alias,;t t
3933 s,@host_alias@,$host_alias,;t t
3934 s,@target_alias@,$target_alias,;t t
3935 s,@DEFS@,$DEFS,;t t
3936 s,@ECHO_C@,$ECHO_C,;t t
3937 s,@ECHO_N@,$ECHO_N,;t t
3938 s,@ECHO_T@,$ECHO_T,;t t
3939 s,@LIBS@,$LIBS,;t t
3940 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3941 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3942 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3943 s,@CYGPATH_W@,$CYGPATH_W,;t t
3944 s,@PACKAGE@,$PACKAGE,;t t
3945 s,@VERSION@,$VERSION,;t t
3946 s,@ACLOCAL@,$ACLOCAL,;t t
3947 s,@AUTOCONF@,$AUTOCONF,;t t
3948 s,@AUTOMAKE@,$AUTOMAKE,;t t
3949 s,@AUTOHEADER@,$AUTOHEADER,;t t
3950 s,@MAKEINFO@,$MAKEINFO,;t t
3951 s,@AMTAR@,$AMTAR,;t t
3952 s,@install_sh@,$install_sh,;t t
3953 s,@STRIP@,$STRIP,;t t
3954 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3955 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3956 s,@AWK@,$AWK,;t t
3957 s,@SET_MAKE@,$SET_MAKE,;t t
3958 s,@am__leading_dot@,$am__leading_dot,;t t
3959 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3960 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3961 s,@MAINT@,$MAINT,;t t
3962 s,@CC@,$CC,;t t
3963 s,@CFLAGS@,$CFLAGS,;t t
3964 s,@LDFLAGS@,$LDFLAGS,;t t
3965 s,@CPPFLAGS@,$CPPFLAGS,;t t
3966 s,@ac_ct_CC@,$ac_ct_CC,;t t
3967 s,@EXEEXT@,$EXEEXT,;t t
3968 s,@OBJEXT@,$OBJEXT,;t t
3969 s,@DEPDIR@,$DEPDIR,;t t
3970 s,@am__include@,$am__include,;t t
3971 s,@am__quote@,$am__quote,;t t
3972 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3973 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3974 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3975 s,@CCDEPMODE@,$CCDEPMODE,;t t
3976 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
3977 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
3978 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
3979 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
3980 s,@XSETMODE_CFLAGS@,$XSETMODE_CFLAGS,;t t
3981 s,@XSETMODE_LIBS@,$XSETMODE_LIBS,;t t
3982 s,@build@,$build,;t t
3983 s,@build_cpu@,$build_cpu,;t t
3984 s,@build_vendor@,$build_vendor,;t t
3985 s,@build_os@,$build_os,;t t
3986 s,@host@,$host,;t t
3987 s,@host_cpu@,$host_cpu,;t t
3988 s,@host_vendor@,$host_vendor,;t t
3989 s,@host_os@,$host_os,;t t
3990 s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
3991 s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
3992 s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
3993 s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
3994 s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
3995 s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
3996 s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
3997 s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
3998 s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
3999 s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
4000 s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
4001 s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
4002 s,@LIBOBJS@,$LIBOBJS,;t t
4003 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4004 CEOF
4005
4006 _ACEOF
4007
4008 cat >>$CONFIG_STATUS <<\_ACEOF
4009 # Split the substitutions into bite-sized pieces for seds with
4010 # small command number limits, like on Digital OSF/1 and HP-UX.
4011 ac_max_sed_lines=48
4012 ac_sed_frag=1 # Number of current file.
4013 ac_beg=1 # First line for current file.
4014 ac_end=$ac_max_sed_lines # Line after last line for current file.
4015 ac_more_lines=:
4016 ac_sed_cmds=
4017 while $ac_more_lines; do
4018 if test $ac_beg -gt 1; then
4019 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4020 else
4021 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4022 fi
4023 if test ! -s $tmp/subs.frag; then
4024 ac_more_lines=false
4025 else
4026 # The purpose of the label and of the branching condition is to
4027 # speed up the sed processing (if there are no `@' at all, there
4028 # is no need to browse any of the substitutions).
4029 # These are the two extra sed commands mentioned above.
4030 (echo ':t
4031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4032 if test -z "$ac_sed_cmds"; then
4033 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4034 else
4035 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4036 fi
4037 ac_sed_frag=`expr $ac_sed_frag + 1`
4038 ac_beg=$ac_end
4039 ac_end=`expr $ac_end + $ac_max_sed_lines`
4040 fi
4041 done
4042 if test -z "$ac_sed_cmds"; then
4043 ac_sed_cmds=cat
4044 fi
4045 fi # test -n "$CONFIG_FILES"
4046
4047 _ACEOF
4048 cat >>$CONFIG_STATUS <<\_ACEOF
4049 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4051 case $ac_file in
4052 - | *:- | *:-:* ) # input from stdin
4053 cat >$tmp/stdin
4054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4058 * ) ac_file_in=$ac_file.in ;;
4059 esac
4060
4061 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4062 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4063 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4064 X"$ac_file" : 'X\(//\)[^/]' \| \
4065 X"$ac_file" : 'X\(//\)$' \| \
4066 X"$ac_file" : 'X\(/\)' \| \
4067 . : '\(.\)' 2>/dev/null ||
4068 echo X"$ac_file" |
4069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4071 /^X\(\/\/\)$/{ s//\1/; q; }
4072 /^X\(\/\).*/{ s//\1/; q; }
4073 s/.*/./; q'`
4074 { if $as_mkdir_p; then
4075 mkdir -p "$ac_dir"
4076 else
4077 as_dir="$ac_dir"
4078 as_dirs=
4079 while test ! -d "$as_dir"; do
4080 as_dirs="$as_dir $as_dirs"
4081 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4083 X"$as_dir" : 'X\(//\)[^/]' \| \
4084 X"$as_dir" : 'X\(//\)$' \| \
4085 X"$as_dir" : 'X\(/\)' \| \
4086 . : '\(.\)' 2>/dev/null ||
4087 echo X"$as_dir" |
4088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4090 /^X\(\/\/\)$/{ s//\1/; q; }
4091 /^X\(\/\).*/{ s//\1/; q; }
4092 s/.*/./; q'`
4093 done
4094 test ! -n "$as_dirs" || mkdir $as_dirs
4095 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4096 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4097 { (exit 1); exit 1; }; }; }
4098
4099 ac_builddir=.
4100
4101 if test "$ac_dir" != .; then
4102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4103 # A "../" for each directory in $ac_dir_suffix.
4104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4105 else
4106 ac_dir_suffix= ac_top_builddir=
4107 fi
4108
4109 case $srcdir in
4110 .) # No --srcdir option. We are building in place.
4111 ac_srcdir=.
4112 if test -z "$ac_top_builddir"; then
4113 ac_top_srcdir=.
4114 else
4115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4116 fi ;;
4117 [\\/]* | ?:[\\/]* ) # Absolute path.
4118 ac_srcdir=$srcdir$ac_dir_suffix;
4119 ac_top_srcdir=$srcdir ;;
4120 *) # Relative path.
4121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4123 esac
4124
4125 # Do not use `cd foo && pwd` to compute absolute paths, because
4126 # the directories may not exist.
4127 case `pwd` in
4128 .) ac_abs_builddir="$ac_dir";;
4129 *)
4130 case "$ac_dir" in
4131 .) ac_abs_builddir=`pwd`;;
4132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4134 esac;;
4135 esac
4136 case $ac_abs_builddir in
4137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4138 *)
4139 case ${ac_top_builddir}. in
4140 .) ac_abs_top_builddir=$ac_abs_builddir;;
4141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4143 esac;;
4144 esac
4145 case $ac_abs_builddir in
4146 .) ac_abs_srcdir=$ac_srcdir;;
4147 *)
4148 case $ac_srcdir in
4149 .) ac_abs_srcdir=$ac_abs_builddir;;
4150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4152 esac;;
4153 esac
4154 case $ac_abs_builddir in
4155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4156 *)
4157 case $ac_top_srcdir in
4158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4161 esac;;
4162 esac
4163
4164
4165 case $INSTALL in
4166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4167 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4168 esac
4169
4170 if test x"$ac_file" != x-; then
4171 { echo "$as_me:$LINENO: creating $ac_file" >&5
4172 echo "$as_me: creating $ac_file" >&6;}
4173 rm -f "$ac_file"
4174 fi
4175 # Let's still pretend it is `configure' which instantiates (i.e., don't
4176 # use $as_me), people would be surprised to read:
4177 # /* config.h. Generated by config.status. */
4178 if test x"$ac_file" = x-; then
4179 configure_input=
4180 else
4181 configure_input="$ac_file. "
4182 fi
4183 configure_input=$configure_input"Generated from `echo $ac_file_in |
4184 sed 's,.*/,,'` by configure."
4185
4186 # First look for the input files in the build tree, otherwise in the
4187 # src tree.
4188 ac_file_inputs=`IFS=:
4189 for f in $ac_file_in; do
4190 case $f in
4191 -) echo $tmp/stdin ;;
4192 [\\/$]*)
4193 # Absolute (can't be DOS-style, as IFS=:)
4194 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4195 echo "$as_me: error: cannot find input file: $f" >&2;}
4196 { (exit 1); exit 1; }; }
4197 echo "$f";;
4198 *) # Relative
4199 if test -f "$f"; then
4200 # Build tree
4201 echo "$f"
4202 elif test -f "$srcdir/$f"; then
4203 # Source tree
4204 echo "$srcdir/$f"
4205 else
4206 # /dev/null tree
4207 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4208 echo "$as_me: error: cannot find input file: $f" >&2;}
4209 { (exit 1); exit 1; }; }
4210 fi;;
4211 esac
4212 done` || { (exit 1); exit 1; }
4213 _ACEOF
4214 cat >>$CONFIG_STATUS <<_ACEOF
4215 sed "$ac_vpsub
4216 $extrasub
4217 _ACEOF
4218 cat >>$CONFIG_STATUS <<\_ACEOF
4219 :t
4220 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4221 s,@configure_input@,$configure_input,;t t
4222 s,@srcdir@,$ac_srcdir,;t t
4223 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4224 s,@top_srcdir@,$ac_top_srcdir,;t t
4225 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4226 s,@builddir@,$ac_builddir,;t t
4227 s,@abs_builddir@,$ac_abs_builddir,;t t
4228 s,@top_builddir@,$ac_top_builddir,;t t
4229 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4230 s,@INSTALL@,$ac_INSTALL,;t t
4231 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4232 rm -f $tmp/stdin
4233 if test x"$ac_file" != x-; then
4234 mv $tmp/out $ac_file
4235 else
4236 cat $tmp/out
4237 rm -f $tmp/out
4238 fi
4239
4240 done
4241 _ACEOF
4242 cat >>$CONFIG_STATUS <<\_ACEOF
4243
4244 #
4245 # CONFIG_HEADER section.
4246 #
4247
4248 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4249 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4250 #
4251 # ac_d sets the value in "#define NAME VALUE" lines.
4252 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4253 ac_dB='[ ].*$,\1#\2'
4254 ac_dC=' '
4255 ac_dD=',;t'
4256 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4257 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4258 ac_uB='$,\1#\2define\3'
4259 ac_uC=' '
4260 ac_uD=',;t'
4261
4262 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4264 case $ac_file in
4265 - | *:- | *:-:* ) # input from stdin
4266 cat >$tmp/stdin
4267 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4269 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4270 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4271 * ) ac_file_in=$ac_file.in ;;
4272 esac
4273
4274 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4275 echo "$as_me: creating $ac_file" >&6;}
4276
4277 # First look for the input files in the build tree, otherwise in the
4278 # src tree.
4279 ac_file_inputs=`IFS=:
4280 for f in $ac_file_in; do
4281 case $f in
4282 -) echo $tmp/stdin ;;
4283 [\\/$]*)
4284 # Absolute (can't be DOS-style, as IFS=:)
4285 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4286 echo "$as_me: error: cannot find input file: $f" >&2;}
4287 { (exit 1); exit 1; }; }
4288 # Do quote $f, to prevent DOS paths from being IFS'd.
4289 echo "$f";;
4290 *) # Relative
4291 if test -f "$f"; then
4292 # Build tree
4293 echo "$f"
4294 elif test -f "$srcdir/$f"; then
4295 # Source tree
4296 echo "$srcdir/$f"
4297 else
4298 # /dev/null tree
4299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4300 echo "$as_me: error: cannot find input file: $f" >&2;}
4301 { (exit 1); exit 1; }; }
4302 fi;;
4303 esac
4304 done` || { (exit 1); exit 1; }
4305 # Remove the trailing spaces.
4306 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4307
4308 _ACEOF
4309
4310 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4311 # `conftest.undefs', that substitutes the proper values into
4312 # config.h.in to produce config.h. The first handles `#define'
4313 # templates, and the second `#undef' templates.
4314 # And first: Protect against being on the right side of a sed subst in
4315 # config.status. Protect against being in an unquoted here document
4316 # in config.status.
4317 rm -f conftest.defines conftest.undefs
4318 # Using a here document instead of a string reduces the quoting nightmare.
4319 # Putting comments in sed scripts is not portable.
4320 #
4321 # `end' is used to avoid that the second main sed command (meant for
4322 # 0-ary CPP macros) applies to n-ary macro definitions.
4323 # See the Autoconf documentation for `clear'.
4324 cat >confdef2sed.sed <<\_ACEOF
4325 s/[\\&,]/\\&/g
4326 s,[\\$`],\\&,g
4327 t clear
4328 : clear
4329 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4330 t end
4331 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4332 : end
4333 _ACEOF
4334 # If some macros were called several times there might be several times
4335 # the same #defines, which is useless. Nevertheless, we may not want to
4336 # sort them, since we want the *last* AC-DEFINE to be honored.
4337 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4338 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4339 rm -f confdef2sed.sed
4340
4341 # This sed command replaces #undef with comments. This is necessary, for
4342 # example, in the case of _POSIX_SOURCE, which is predefined and required
4343 # on some systems where configure will not decide to define it.
4344 cat >>conftest.undefs <<\_ACEOF
4345 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4346 _ACEOF
4347
4348 # Break up conftest.defines because some shells have a limit on the size
4349 # of here documents, and old seds have small limits too (100 cmds).
4350 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4351 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4352 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4353 echo ' :' >>$CONFIG_STATUS
4354 rm -f conftest.tail
4355 while grep . conftest.defines >/dev/null
4356 do
4357 # Write a limited-size here document to $tmp/defines.sed.
4358 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4359 # Speed up: don't consider the non `#define' lines.
4360 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4361 # Work around the forget-to-reset-the-flag bug.
4362 echo 't clr' >>$CONFIG_STATUS
4363 echo ': clr' >>$CONFIG_STATUS
4364 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4365 echo 'CEOF
4366 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4367 rm -f $tmp/in
4368 mv $tmp/out $tmp/in
4369 ' >>$CONFIG_STATUS
4370 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4371 rm -f conftest.defines
4372 mv conftest.tail conftest.defines
4373 done
4374 rm -f conftest.defines
4375 echo ' fi # grep' >>$CONFIG_STATUS
4376 echo >>$CONFIG_STATUS
4377
4378 # Break up conftest.undefs because some shells have a limit on the size
4379 # of here documents, and old seds have small limits too (100 cmds).
4380 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4381 rm -f conftest.tail
4382 while grep . conftest.undefs >/dev/null
4383 do
4384 # Write a limited-size here document to $tmp/undefs.sed.
4385 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4386 # Speed up: don't consider the non `#undef'
4387 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4388 # Work around the forget-to-reset-the-flag bug.
4389 echo 't clr' >>$CONFIG_STATUS
4390 echo ': clr' >>$CONFIG_STATUS
4391 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4392 echo 'CEOF
4393 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4394 rm -f $tmp/in
4395 mv $tmp/out $tmp/in
4396 ' >>$CONFIG_STATUS
4397 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4398 rm -f conftest.undefs
4399 mv conftest.tail conftest.undefs
4400 done
4401 rm -f conftest.undefs
4402
4403 cat >>$CONFIG_STATUS <<\_ACEOF
4404 # Let's still pretend it is `configure' which instantiates (i.e., don't
4405 # use $as_me), people would be surprised to read:
4406 # /* config.h. Generated by config.status. */
4407 if test x"$ac_file" = x-; then
4408 echo "/* Generated by configure. */" >$tmp/config.h
4409 else
4410 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4411 fi
4412 cat $tmp/in >>$tmp/config.h
4413 rm -f $tmp/in
4414 if test x"$ac_file" != x-; then
4415 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4416 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4417 echo "$as_me: $ac_file is unchanged" >&6;}
4418 else
4419 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4421 X"$ac_file" : 'X\(//\)[^/]' \| \
4422 X"$ac_file" : 'X\(//\)$' \| \
4423 X"$ac_file" : 'X\(/\)' \| \
4424 . : '\(.\)' 2>/dev/null ||
4425 echo X"$ac_file" |
4426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4428 /^X\(\/\/\)$/{ s//\1/; q; }
4429 /^X\(\/\).*/{ s//\1/; q; }
4430 s/.*/./; q'`
4431 { if $as_mkdir_p; then
4432 mkdir -p "$ac_dir"
4433 else
4434 as_dir="$ac_dir"
4435 as_dirs=
4436 while test ! -d "$as_dir"; do
4437 as_dirs="$as_dir $as_dirs"
4438 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4440 X"$as_dir" : 'X\(//\)[^/]' \| \
4441 X"$as_dir" : 'X\(//\)$' \| \
4442 X"$as_dir" : 'X\(/\)' \| \
4443 . : '\(.\)' 2>/dev/null ||
4444 echo X"$as_dir" |
4445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4446 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4447 /^X\(\/\/\)$/{ s//\1/; q; }
4448 /^X\(\/\).*/{ s//\1/; q; }
4449 s/.*/./; q'`
4450 done
4451 test ! -n "$as_dirs" || mkdir $as_dirs
4452 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4453 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4454 { (exit 1); exit 1; }; }; }
4455
4456 rm -f $ac_file
4457 mv $tmp/config.h $ac_file
4458 fi
4459 else
4460 cat $tmp/config.h
4461 rm -f $tmp/config.h
4462 fi
4463 # Compute $ac_file's index in $config_headers.
4464 _am_stamp_count=1
4465 for _am_header in $config_headers :; do
4466 case $_am_header in
4467 $ac_file | $ac_file:* )
4468 break ;;
4469 * )
4470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4471 esac
4472 done
4473 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4474 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4475 X$ac_file : 'X\(//\)[^/]' \| \
4476 X$ac_file : 'X\(//\)$' \| \
4477 X$ac_file : 'X\(/\)' \| \
4478 . : '\(.\)' 2>/dev/null ||
4479 echo X$ac_file |
4480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4482 /^X\(\/\/\)$/{ s//\1/; q; }
4483 /^X\(\/\).*/{ s//\1/; q; }
4484 s/.*/./; q'`/stamp-h$_am_stamp_count
4485 done
4486 _ACEOF
4487 cat >>$CONFIG_STATUS <<\_ACEOF
4488
4489 #
4490 # CONFIG_COMMANDS section.
4491 #
4492 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4495 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4496 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4497 X"$ac_dest" : 'X\(//\)[^/]' \| \
4498 X"$ac_dest" : 'X\(//\)$' \| \
4499 X"$ac_dest" : 'X\(/\)' \| \
4500 . : '\(.\)' 2>/dev/null ||
4501 echo X"$ac_dest" |
4502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4504 /^X\(\/\/\)$/{ s//\1/; q; }
4505 /^X\(\/\).*/{ s//\1/; q; }
4506 s/.*/./; q'`
4507 { if $as_mkdir_p; then
4508 mkdir -p "$ac_dir"
4509 else
4510 as_dir="$ac_dir"
4511 as_dirs=
4512 while test ! -d "$as_dir"; do
4513 as_dirs="$as_dir $as_dirs"
4514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4516 X"$as_dir" : 'X\(//\)[^/]' \| \
4517 X"$as_dir" : 'X\(//\)$' \| \
4518 X"$as_dir" : 'X\(/\)' \| \
4519 . : '\(.\)' 2>/dev/null ||
4520 echo X"$as_dir" |
4521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4523 /^X\(\/\/\)$/{ s//\1/; q; }
4524 /^X\(\/\).*/{ s//\1/; q; }
4525 s/.*/./; q'`
4526 done
4527 test ! -n "$as_dirs" || mkdir $as_dirs
4528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4530 { (exit 1); exit 1; }; }; }
4531
4532 ac_builddir=.
4533
4534 if test "$ac_dir" != .; then
4535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4536 # A "../" for each directory in $ac_dir_suffix.
4537 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4538 else
4539 ac_dir_suffix= ac_top_builddir=
4540 fi
4541
4542 case $srcdir in
4543 .) # No --srcdir option. We are building in place.
4544 ac_srcdir=.
4545 if test -z "$ac_top_builddir"; then
4546 ac_top_srcdir=.
4547 else
4548 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4549 fi ;;
4550 [\\/]* | ?:[\\/]* ) # Absolute path.
4551 ac_srcdir=$srcdir$ac_dir_suffix;
4552 ac_top_srcdir=$srcdir ;;
4553 *) # Relative path.
4554 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4555 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4556 esac
4557
4558 # Do not use `cd foo && pwd` to compute absolute paths, because
4559 # the directories may not exist.
4560 case `pwd` in
4561 .) ac_abs_builddir="$ac_dir";;
4562 *)
4563 case "$ac_dir" in
4564 .) ac_abs_builddir=`pwd`;;
4565 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4566 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4567 esac;;
4568 esac
4569 case $ac_abs_builddir in
4570 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4571 *)
4572 case ${ac_top_builddir}. in
4573 .) ac_abs_top_builddir=$ac_abs_builddir;;
4574 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4575 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4576 esac;;
4577 esac
4578 case $ac_abs_builddir in
4579 .) ac_abs_srcdir=$ac_srcdir;;
4580 *)
4581 case $ac_srcdir in
4582 .) ac_abs_srcdir=$ac_abs_builddir;;
4583 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4584 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4585 esac;;
4586 esac
4587 case $ac_abs_builddir in
4588 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4589 *)
4590 case $ac_top_srcdir in
4591 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4592 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4593 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4594 esac;;
4595 esac
4596
4597
4598 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4599 echo "$as_me: executing $ac_dest commands" >&6;}
4600 case $ac_dest in
4601 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4602 # Strip MF so we end up with the name of the file.
4603 mf=`echo "$mf" | sed -e 's/:.*$//'`
4604 # Check whether this is an Automake generated Makefile or not.
4605 # We used to match only the files named `Makefile.in', but
4606 # some people rename them; so instead we look at the file content.
4607 # Grep'ing the first line is not enough: some people post-process
4608 # each Makefile.in and add a new line on top of each file to say so.
4609 # So let's grep whole file.
4610 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4611 dirpart=`(dirname "$mf") 2>/dev/null ||
4612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4613 X"$mf" : 'X\(//\)[^/]' \| \
4614 X"$mf" : 'X\(//\)$' \| \
4615 X"$mf" : 'X\(/\)' \| \
4616 . : '\(.\)' 2>/dev/null ||
4617 echo X"$mf" |
4618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4620 /^X\(\/\/\)$/{ s//\1/; q; }
4621 /^X\(\/\).*/{ s//\1/; q; }
4622 s/.*/./; q'`
4623 else
4624 continue
4625 fi
4626 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4627 # Extract the definition of DEP_FILES from the Makefile without
4628 # running `make'.
4629 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4630 test -z "$DEPDIR" && continue
4631 # When using ansi2knr, U may be empty or an underscore; expand it
4632 U=`sed -n -e '/^U = / s///p' < "$mf"`
4633 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4634 # We invoke sed twice because it is the simplest approach to
4635 # changing $(DEPDIR) to its actual value in the expansion.
4636 for file in `sed -n -e '
4637 /^DEP_FILES = .*\\\\$/ {
4638 s/^DEP_FILES = //
4639 :loop
4640 s/\\\\$//
4641 p
4642 n
4643 /\\\\$/ b loop
4644 p
4645 }
4646 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4647 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4648 # Make sure the directory exists.
4649 test -f "$dirpart/$file" && continue
4650 fdir=`(dirname "$file") 2>/dev/null ||
4651 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4652 X"$file" : 'X\(//\)[^/]' \| \
4653 X"$file" : 'X\(//\)$' \| \
4654 X"$file" : 'X\(/\)' \| \
4655 . : '\(.\)' 2>/dev/null ||
4656 echo X"$file" |
4657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4659 /^X\(\/\/\)$/{ s//\1/; q; }
4660 /^X\(\/\).*/{ s//\1/; q; }
4661 s/.*/./; q'`
4662 { if $as_mkdir_p; then
4663 mkdir -p $dirpart/$fdir
4664 else
4665 as_dir=$dirpart/$fdir
4666 as_dirs=
4667 while test ! -d "$as_dir"; do
4668 as_dirs="$as_dir $as_dirs"
4669 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4671 X"$as_dir" : 'X\(//\)[^/]' \| \
4672 X"$as_dir" : 'X\(//\)$' \| \
4673 X"$as_dir" : 'X\(/\)' \| \
4674 . : '\(.\)' 2>/dev/null ||
4675 echo X"$as_dir" |
4676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4678 /^X\(\/\/\)$/{ s//\1/; q; }
4679 /^X\(\/\).*/{ s//\1/; q; }
4680 s/.*/./; q'`
4681 done
4682 test ! -n "$as_dirs" || mkdir $as_dirs
4683 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
4684 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
4685 { (exit 1); exit 1; }; }; }
4686
4687 # echo "creating $dirpart/$file"
4688 echo '# dummy' > "$dirpart/$file"
4689 done
4690 done
4691 ;;
4692 esac
4693 done
4694 _ACEOF
4695
4696 cat >>$CONFIG_STATUS <<\_ACEOF
4697
4698 { (exit 0); exit 0; }
4699 _ACEOF
4700 chmod +x $CONFIG_STATUS
4701 ac_clean_files=$ac_clean_files_save
4702
4703
4704 # configure is writing to config.log, and then calls config.status.
4705 # config.status does its own redirection, appending to config.log.
4706 # Unfortunately, on DOS this fails, as config.log is still kept open
4707 # by configure, so config.status won't be able to write to it; its
4708 # output is simply discarded. So we exec the FD to /dev/null,
4709 # effectively closing config.log, so it can be properly (re)opened and
4710 # appended to by config.status. When coming back to configure, we
4711 # need to make the FD available again.
4712 if test "$no_create" != yes; then
4713 ac_cs_success=:
4714 ac_config_status_args=
4715 test "$silent" = yes &&
4716 ac_config_status_args="$ac_config_status_args --quiet"
4717 exec 5>/dev/null
4718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4719 exec 5>>config.log
4720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4721 # would make configure fail if this is the last instruction.
4722 $ac_cs_success || { (exit 1); exit 1; }
4723 fi
4724
4725