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