another attempt at making the asm inlines portable, the syntax should now be complian...
[AROS-Contrib.git] / arospdf / configure
blob121e7b2840ecc7b7e6a5939ab51a59c78fd9f37b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="xpdf/xpdf.cc"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EXE LIBPREFIX AR UP_DIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP Xpm_LIBS Xpm_CFLAGS Xext_LIBS Xext_CFLAGS Xp_LIBS Xp_CFLAGS Xt_LIBS Xt_CFLAGS Xm_LIBS Xm_CFLAGS Sgm_LIBS Sgm_CFLAGS t1_LIBS t1_CFLAGS freetype2_LIBS freetype2_CFLAGS libpaper_LIBS libpaper_CFLAGS X XPDF_TARGET LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
842 X features:
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
845 _ACEOF
848 if test -n "$ac_init_help"; then
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-a4-paper use A4 paper size instead of Letter for
856 PostScript output
857 --enable-no-text-select do not allow text selection
858 --enable-opi include support for OPI comments
859 --enable-multithreaded include support for multithreading
860 --enable-exceptions use C++ exceptions
861 --enable-wordlist include support for building word lists
862 --enable-fixedpoint use fixed point (instead of floating point) arithmetic
863 --enable-cmyk include support for CMYK rasterization
864 --disable-largefile omit support for large files
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-appdef-dir set app-defaults directory
870 --with-x use the X Window System
871 --with-Xpm-library=PATH use Xpm library (pixmap library - used only for icon)
872 --with-Xpm-includes=DIR set directory for Xpm headers
873 --with-Xext-library=PATH
874 use Xext library (Motif library)
875 --with-Xext-includes=DIR
876 set directory for Xext headers
877 --with-Xp-library=PATH use Xp library (Motif library)
878 --with-Xp-includes=DIR set directory for Xp headers
879 --with-Xt-library=PATH use Xt library (Motif library)
880 --with-Xt-includes=DIR set directory for Xt headers
881 --with-Xm-library=PATH use Xm library (Motif library)
882 --with-Xm-includes=DIR set directory for Xm headers
883 --with-Sgm-library=PATH use Sgm library (SGI Motif library)
884 --with-Sgm-includes=DIR set directory for Sgm headers
885 --with-t1-library=PATH use t1 library (Type 1 font rasterizer)
886 --with-t1-includes=DIR set directory for t1 headers
887 --with-freetype2-library=PATH
888 use freetype2 library (FreeType2 font rasterizer - version 2.0.5+)
889 --with-freetype2-includes=DIR
890 set directory for freetype2 headers
891 --with-libpaper-library=PATH
892 use libpaper library (Debian libpaper)
893 --with-libpaper-includes=DIR
894 set directory for libpaper headers
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
903 CXX C++ compiler command
904 CXXFLAGS C++ compiler flags
905 CPP C preprocessor
907 Use these variables to override the choices made by `configure' or to help
908 it to find libraries and programs with nonstandard names/locations.
910 _ACEOF
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
915 ac_popdir=`pwd`
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
918 ac_builddir=.
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 else
925 ac_dir_suffix= ac_top_builddir=
928 case $srcdir in
929 .) # No --srcdir option. We are building in place.
930 ac_srcdir=.
931 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=.
933 else
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 fi ;;
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
939 *) # Relative path.
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 esac
944 # Do not use `cd foo && pwd` to compute absolute paths, because
945 # the directories may not exist.
946 case `pwd` in
947 .) ac_abs_builddir="$ac_dir";;
949 case "$ac_dir" in
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_srcdir=$ac_srcdir;;
967 case $ac_srcdir in
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 esac;;
972 esac
973 case $ac_abs_builddir in
974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 esac;;
981 esac
983 cd $ac_dir
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
986 echo
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
989 echo
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
993 echo
994 $ac_configure --help
995 else
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 cd $ac_popdir
999 done
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1004 cat <<\_ACEOF
1006 Copyright (C) 2003 Free Software Foundation, Inc.
1007 This configure script is free software; the Free Software Foundation
1008 gives unlimited permission to copy, distribute and modify it.
1009 _ACEOF
1010 exit 0
1012 exec 5>config.log
1013 cat >&5 <<_ACEOF
1014 This file contains any messages produced by compilers while
1015 running configure, to aid debugging if configure makes a mistake.
1017 It was created by $as_me, which was
1018 generated by GNU Autoconf 2.59. Invocation command line was
1020 $ $0 $@
1022 _ACEOF
1024 cat <<_ASUNAME
1025 ## --------- ##
1026 ## Platform. ##
1027 ## --------- ##
1029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046 _ASUNAME
1048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 for as_dir in $PATH
1051 IFS=$as_save_IFS
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1054 done
1056 } >&5
1058 cat >&5 <<_ACEOF
1061 ## ----------- ##
1062 ## Core tests. ##
1063 ## ----------- ##
1065 _ACEOF
1068 # Keep a trace of the command line.
1069 # Strip out --no-create and --no-recursion so they do not pile up.
1070 # Strip out --silent because we don't want to record it for future runs.
1071 # Also quote any args containing shell meta-characters.
1072 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_configure_args=
1074 ac_configure_args0=
1075 ac_configure_args1=
1076 ac_sep=
1077 ac_must_keep_next=false
1078 for ac_pass in 1 2
1080 for ac_arg
1082 case $ac_arg in
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 continue ;;
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 esac
1090 case $ac_pass in
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1096 else
1097 case $ac_arg in
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 esac
1106 -* ) ac_must_keep_next=true ;;
1107 esac
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1111 ac_sep=" "
1113 esac
1114 done
1115 done
1116 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119 # When interrupted or exit'd, cleanup temporary files, and complete
1120 # config.log. We remove comments because anyway the quotes in there
1121 # would cause problems or look ugly.
1122 # WARNING: Be sure not to use single quotes in there, as some shells,
1123 # such as our DU 5.0 friend, will then `close' the trap.
1124 trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1127 echo
1129 cat <<\_ASBOX
1130 ## ---------------- ##
1131 ## Cache variables. ##
1132 ## ---------------- ##
1133 _ASBOX
1134 echo
1135 # The following way of writing the cache mishandles newlines in values,
1137 (set) 2>&1 |
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 *ac_space=\ *)
1140 sed -n \
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1145 sed -n \
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148 esac;
1150 echo
1152 cat <<\_ASBOX
1153 ## ----------------- ##
1154 ## Output variables. ##
1155 ## ----------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_vars
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1165 if test -n "$ac_subst_files"; then
1166 cat <<\_ASBOX
1167 ## ------------- ##
1168 ## Output files. ##
1169 ## ------------- ##
1170 _ASBOX
1171 echo
1172 for ac_var in $ac_subst_files
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1176 done | sort
1177 echo
1180 if test -s confdefs.h; then
1181 cat <<\_ASBOX
1182 ## ----------- ##
1183 ## confdefs.h. ##
1184 ## ----------- ##
1185 _ASBOX
1186 echo
1187 sed "/^$/d" confdefs.h | sort
1188 echo
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1193 } >&5
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 exit $exit_status
1198 for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 done
1201 ac_signal=0
1203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204 rm -rf conftest* confdefs.h
1205 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206 echo >confdefs.h
1208 # Predefined preprocessor variables.
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 _ACEOF
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 _ACEOF
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 _ACEOF
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 _ACEOF
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 _ACEOF
1235 # Let the site file select an alternate cache file if it wants to.
1236 # Prefer explicitly selected file to automatically selected ones.
1237 if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 else
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1244 for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
1249 . "$ac_site_file"
1251 done
1253 if test -r "$cache_file"; then
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 echo "$as_me: loading cache $cache_file" >&6;}
1259 case $cache_file in
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1262 esac
1264 else
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 echo "$as_me: creating cache $cache_file" >&6;}
1267 >$cache_file
1270 # Check that the precious variables saved in the cache have kept the same
1271 # value.
1272 ac_cache_corrupted=false
1273 for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1280 set,)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,set)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,);;
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294 echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296 echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1312 done
1313 if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
1321 ac_ext=c
1322 ac_cpp='$CPP $CPPFLAGS'
1323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 ac_config_headers="$ac_config_headers aconf.h"
1348 # Check whether --enable-a4-paper or --disable-a4-paper was given.
1349 if test "${enable_a4_paper+set}" = set; then
1350 enableval="$enable_a4_paper"
1351 cat >>confdefs.h <<\_ACEOF
1352 #define A4_PAPER 1
1353 _ACEOF
1356 # Check whether --enable-no-text-select or --disable-no-text-select was given.
1357 if test "${enable_no_text_select+set}" = set; then
1358 enableval="$enable_no_text_select"
1359 cat >>confdefs.h <<\_ACEOF
1360 #define NO_TEXT_SELECT 1
1361 _ACEOF
1364 # Check whether --enable-opi or --disable-opi was given.
1365 if test "${enable_opi+set}" = set; then
1366 enableval="$enable_opi"
1367 cat >>confdefs.h <<\_ACEOF
1368 #define OPI_SUPPORT 1
1369 _ACEOF
1372 # Check whether --enable-multithreaded or --disable-multithreaded was given.
1373 if test "${enable_multithreaded+set}" = set; then
1374 enableval="$enable_multithreaded"
1375 cat >>confdefs.h <<\_ACEOF
1376 #define MULTITHREADED 1
1377 _ACEOF
1380 # Check whether --enable-exceptions or --disable-exceptions was given.
1381 if test "${enable_exceptions+set}" = set; then
1382 enableval="$enable_exceptions"
1383 cat >>confdefs.h <<\_ACEOF
1384 #define USE_EXCEPTIONS 1
1385 _ACEOF
1388 # Check whether --enable-wordlist or --disable-wordlist was given.
1389 if test "${enable_wordlist+set}" = set; then
1390 enableval="$enable_wordlist"
1391 cat >>confdefs.h <<\_ACEOF
1392 #define TEXTOUT_WORD_LIST 1
1393 _ACEOF
1396 # Check whether --enable-fixedpoint or --disable-fixedpoint was given.
1397 if test "${enable_fixedpoint+set}" = set; then
1398 enableval="$enable_fixedpoint"
1399 cat >>confdefs.h <<\_ACEOF
1400 #define USE_FIXEDPOINT 1
1401 _ACEOF
1404 # Check whether --enable-cmyk or --disable-cmyk was given.
1405 if test "${enable_cmyk+set}" = set; then
1406 enableval="$enable_cmyk"
1407 cat >>confdefs.h <<\_ACEOF
1408 #define SPLASH_CMYK 1
1409 _ACEOF
1413 # Check whether --with-appdef-dir or --without-appdef-dir was given.
1414 if test "${with_appdef_dir+set}" = set; then
1415 withval="$with_appdef_dir"
1416 cat >>confdefs.h <<_ACEOF
1417 #define APPDEFDIR "$with_appdef_dir"
1418 _ACEOF
1422 if test "$sysconfdir" = '${prefix}/etc'; then
1423 if test "x$prefix" = xNONE; then
1424 system_xpdfrc="$ac_default_prefix/etc/xpdfrc"
1425 else
1426 system_xpdfrc="$prefix/etc/xpdfrc"
1428 else
1429 system_xpdfrc="$sysconfdir/xpdfrc"
1431 cat >>confdefs.h <<_ACEOF
1432 #define SYSTEM_XPDFRC "$system_xpdfrc"
1433 _ACEOF
1436 ac_ext=c
1437 ac_cpp='$CPP $CPPFLAGS'
1438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441 if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1463 done
1464 done
1468 CC=$ac_cv_prog_CC
1469 if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1478 if test -z "$ac_cv_prog_CC"; then
1479 ac_ct_CC=$CC
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1501 done
1502 done
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1515 CC=$ac_ct_CC
1516 else
1517 CC="$ac_cv_prog_CC"
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523 set dummy ${ac_tool_prefix}cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1543 done
1544 done
1548 CC=$ac_cv_prog_CC
1549 if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1552 else
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1558 if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569 else
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1581 done
1582 done
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1590 else
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 CC=$ac_ct_CC
1596 else
1597 CC="$ac_cv_prog_CC"
1601 if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 else
1612 ac_prog_rejected=no
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1622 continue
1624 ac_cv_prog_CC="cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1628 done
1629 done
1631 if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1634 shift
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1639 shift
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1645 CC=$ac_cv_prog_CC
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1657 for ac_prog in cl
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1680 done
1681 done
1685 CC=$ac_cv_prog_CC
1686 if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688 echo "${ECHO_T}$CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$CC" && break
1695 done
1697 if test -z "$CC"; then
1698 ac_ct_CC=$CC
1699 for ac_prog in cl
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702 set dummy $ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1722 done
1723 done
1727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730 echo "${ECHO_T}$ac_ct_CC" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1736 test -n "$ac_ct_CC" && break
1737 done
1739 CC=$ac_ct_CC
1745 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&5
1747 echo "$as_me: error: no acceptable C compiler found in \$PATH
1748 See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1751 # Provide some information about the compiler.
1752 echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754 ac_compiler=`set X $ac_compile; echo $2`
1755 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1771 cat >conftest.$ac_ext <<_ACEOF
1772 /* confdefs.h. */
1773 _ACEOF
1774 cat confdefs.h >>conftest.$ac_ext
1775 cat >>conftest.$ac_ext <<_ACEOF
1776 /* end confdefs.h. */
1779 main ()
1783 return 0;
1785 _ACEOF
1786 ac_clean_files_save=$ac_clean_files
1787 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788 # Try to create an executable without -o first, disregard a.out.
1789 # It will help us diagnose broken compilers, and finding out an intuition
1790 # of exeext.
1791 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801 # resort.
1803 # Be careful to initialize this variable, since it used to be cached.
1804 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805 ac_cv_exeext=
1806 # b.out is created by i960 compilers.
1807 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1813 conftest.$ac_ext )
1814 # This is the source file.
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1828 break;;
1829 esac
1830 done
1831 else
1832 echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&5
1837 echo "$as_me: error: C compiler cannot create executables
1838 See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1842 ac_exeext=$ac_cv_exeext
1843 echo "$as_me:$LINENO: result: $ac_file" >&5
1844 echo "${ECHO_T}$ac_file" >&6
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1849 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1850 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851 # If not cross compiling, check that we can run a simple program.
1852 if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&5
1867 echo "$as_me: error: cannot run C compiled programs.
1868 If you meant to cross compile, use \`--host'.
1869 See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1874 echo "$as_me:$LINENO: result: yes" >&5
1875 echo "${ECHO_T}yes" >&6
1877 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878 ac_clean_files=$ac_clean_files_save
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884 echo "${ECHO_T}$cross_compiling" >&6
1886 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895 # work properly (i.e., refer to `conftest.exe'), while it won't with
1896 # `rm'.
1897 for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906 done
1907 else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911 See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1915 rm -f conftest$ac_cv_exeext
1916 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917 echo "${ECHO_T}$ac_cv_exeext" >&6
1919 rm -f conftest.$ac_ext
1920 EXEEXT=$ac_cv_exeext
1921 ac_exeext=$EXEEXT
1922 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924 if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 cat >conftest.$ac_ext <<_ACEOF
1928 /* confdefs.h. */
1929 _ACEOF
1930 cat confdefs.h >>conftest.$ac_ext
1931 cat >>conftest.$ac_ext <<_ACEOF
1932 /* end confdefs.h. */
1935 main ()
1939 return 0;
1941 _ACEOF
1942 rm -f conftest.o conftest.obj
1943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 break;;
1953 esac
1954 done
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962 See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1968 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969 echo "${ECHO_T}$ac_cv_objext" >&6
1970 OBJEXT=$ac_cv_objext
1971 ac_objext=$OBJEXT
1972 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 cat >conftest.$ac_ext <<_ACEOF
1978 /* confdefs.h. */
1979 _ACEOF
1980 cat confdefs.h >>conftest.$ac_ext
1981 cat >>conftest.$ac_ext <<_ACEOF
1982 /* end confdefs.h. */
1985 main ()
1987 #ifndef __GNUC__
1988 choke me
1989 #endif
1992 return 0;
1994 _ACEOF
1995 rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1998 ac_status=$?
1999 grep -v '^ *+' conftest.er1 >conftest.err
2000 rm -f conftest.er1
2001 cat conftest.err >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_compiler_gnu=yes
2018 else
2019 echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2022 ac_compiler_gnu=no
2024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2028 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030 GCC=`test $ac_compiler_gnu = yes && echo yes`
2031 ac_test_CFLAGS=${CFLAGS+set}
2032 ac_save_CFLAGS=$CFLAGS
2033 CFLAGS="-g"
2034 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036 if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 cat >conftest.$ac_ext <<_ACEOF
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2047 main ()
2051 return 0;
2053 _ACEOF
2054 rm -f conftest.$ac_objext
2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2057 ac_status=$?
2058 grep -v '^ *+' conftest.er1 >conftest.err
2059 rm -f conftest.er1
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077 else
2078 echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2081 ac_cv_prog_cc_g=no
2083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087 if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS=$ac_save_CFLAGS
2089 elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2091 CFLAGS="-g -O2"
2092 else
2093 CFLAGS="-g"
2095 else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2102 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_cv_prog_cc_stdc=no
2108 ac_save_CC=$CC
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h. */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2115 #include <stdarg.h>
2116 #include <stdio.h>
2117 #include <sys/types.h>
2118 #include <sys/stat.h>
2119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120 struct buf { int x; };
2121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122 static char *e (p, i)
2123 char **p;
2124 int i;
2126 return p[i];
2128 static char *f (char * (*g) (char **, int), char **p, ...)
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151 int argc;
2152 char **argv;
2154 main ()
2156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2158 return 0;
2160 _ACEOF
2161 # Don't try gcc -ansi; that turns off useful extensions and
2162 # breaks some systems' header files.
2163 # AIX -qlanglvl=ansi
2164 # Ultrix and OSF/1 -std1
2165 # HP-UX 10.20 and later -Ae
2166 # HP-UX older versions -Aa -D_HPUX_SOURCE
2167 # SVR4 -Xc -D__EXTENSIONS__
2168 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2170 CC="$ac_save_CC $ac_arg"
2171 rm -f conftest.$ac_objext
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194 break
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2200 rm -f conftest.err conftest.$ac_objext
2201 done
2202 rm -f conftest.$ac_ext conftest.$ac_objext
2203 CC=$ac_save_CC
2207 case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210 echo "${ECHO_T}none needed" >&6 ;;
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215 esac
2217 # Some people use a C++ compiler to compile C. Since we use `exit',
2218 # in C++ we need to declare it. In case someone uses the same compiler
2219 # for both compiling C and C++ we need to have the C++ compiler decide
2220 # the declaration of exit, since it's the most demanding environment.
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #ifndef __cplusplus
2223 choke me
2224 #endif
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262 $ac_declaration
2263 #include <stdlib.h>
2265 main ()
2267 exit (42);
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 continue
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h. */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2308 $ac_declaration
2310 main ()
2312 exit (42);
2314 return 0;
2316 _ACEOF
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340 else
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 done
2347 rm -f conftest*
2348 if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360 ac_ext=c
2361 ac_cpp='$CPP $CPPFLAGS'
2362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369 if test "${ac_cv_search_strerror+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 ac_func_search_save_LIBS=$LIBS
2373 ac_cv_search_strerror=no
2374 cat >conftest.$ac_ext <<_ACEOF
2375 /* confdefs.h. */
2376 _ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2381 /* Override any gcc2 internal prototype to avoid an error. */
2382 #ifdef __cplusplus
2383 extern "C"
2384 #endif
2385 /* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2387 char strerror ();
2389 main ()
2391 strerror ();
2393 return 0;
2395 _ACEOF
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_search_strerror="none required"
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426 if test "$ac_cv_search_strerror" = no; then
2427 for ac_lib in cposix; do
2428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h. */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 #ifdef __cplusplus
2438 extern "C"
2439 #endif
2440 /* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442 char strerror ();
2444 main ()
2446 strerror ();
2448 return 0;
2450 _ACEOF
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2474 break
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2480 rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 done
2484 LIBS=$ac_func_search_save_LIBS
2486 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488 if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2494 #if test -z "$CXX" -a "$CC" = "gcc"; then
2495 # CXX="gcc"
2497 ac_ext=cc
2498 ac_cpp='$CXXCPP $CPPFLAGS'
2499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2502 if test -n "$ac_tool_prefix"; then
2503 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2507 echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2509 if test "${ac_cv_prog_CXX+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 if test -n "$CXX"; then
2513 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2531 CXX=$ac_cv_prog_CXX
2532 if test -n "$CXX"; then
2533 echo "$as_me:$LINENO: result: $CXX" >&5
2534 echo "${ECHO_T}$CXX" >&6
2535 else
2536 echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6
2540 test -n "$CXX" && break
2541 done
2543 if test -z "$CXX"; then
2544 ac_ct_CXX=$CXX
2545 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2551 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554 if test -n "$ac_ct_CXX"; then
2555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_ac_ct_CXX="$ac_prog"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2568 done
2569 done
2573 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2574 if test -n "$ac_ct_CXX"; then
2575 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2576 echo "${ECHO_T}$ac_ct_CXX" >&6
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2582 test -n "$ac_ct_CXX" && break
2583 done
2584 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2586 CXX=$ac_ct_CXX
2590 # Provide some information about the compiler.
2591 echo "$as_me:$LINENO:" \
2592 "checking for C++ compiler version" >&5
2593 ac_compiler=`set X $ac_compile; echo $2`
2594 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2595 (eval $ac_compiler --version </dev/null >&5) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2600 (eval $ac_compiler -v </dev/null >&5) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2605 (eval $ac_compiler -V </dev/null >&5) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2610 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2611 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2612 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2623 main ()
2625 #ifndef __GNUC__
2626 choke me
2627 #endif
2630 return 0;
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635 (eval $ac_compile) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
2642 { ac_try='test -z "$ac_cxx_werror_flag"
2643 || test ! -s conftest.err'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest.$ac_objext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_compiler_gnu=yes
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 ac_compiler_gnu=no
2662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2667 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2668 GXX=`test $ac_compiler_gnu = yes && echo yes`
2669 ac_test_CXXFLAGS=${CXXFLAGS+set}
2670 ac_save_CXXFLAGS=$CXXFLAGS
2671 CXXFLAGS="-g"
2672 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2673 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cxx_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h. */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2685 main ()
2689 return 0;
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_cxx_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 ac_cv_prog_cxx_g=yes
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2719 ac_cv_prog_cxx_g=no
2721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2724 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2725 if test "$ac_test_CXXFLAGS" = set; then
2726 CXXFLAGS=$ac_save_CXXFLAGS
2727 elif test $ac_cv_prog_cxx_g = yes; then
2728 if test "$GXX" = yes; then
2729 CXXFLAGS="-g -O2"
2730 else
2731 CXXFLAGS="-g"
2733 else
2734 if test "$GXX" = yes; then
2735 CXXFLAGS="-O2"
2736 else
2737 CXXFLAGS=
2740 for ac_declaration in \
2741 '' \
2742 'extern "C" void std::exit (int) throw (); using std::exit;' \
2743 'extern "C" void std::exit (int); using std::exit;' \
2744 'extern "C" void exit (int) throw ();' \
2745 'extern "C" void exit (int);' \
2746 'void exit (int);'
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h. */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2754 $ac_declaration
2755 #include <stdlib.h>
2757 main ()
2759 exit (42);
2761 return 0;
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_cxx_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 continue
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2800 $ac_declaration
2802 main ()
2804 exit (42);
2806 return 0;
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_cxx_werror_flag"
2819 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 break
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2838 done
2839 rm -f conftest*
2840 if test -n "$ac_declaration"; then
2841 echo '#ifdef __cplusplus' >>confdefs.h
2842 echo $ac_declaration >>confdefs.h
2843 echo '#endif' >>confdefs.h
2846 ac_ext=c
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852 ac_aux_dir=
2853 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2854 if test -f $ac_dir/install-sh; then
2855 ac_aux_dir=$ac_dir
2856 ac_install_sh="$ac_aux_dir/install-sh -c"
2857 break
2858 elif test -f $ac_dir/install.sh; then
2859 ac_aux_dir=$ac_dir
2860 ac_install_sh="$ac_aux_dir/install.sh -c"
2861 break
2862 elif test -f $ac_dir/shtool; then
2863 ac_aux_dir=$ac_dir
2864 ac_install_sh="$ac_aux_dir/shtool install -c"
2865 break
2867 done
2868 if test -z "$ac_aux_dir"; then
2869 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2870 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2871 { (exit 1); exit 1; }; }
2873 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2874 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2875 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2877 # Find a good install program. We prefer a C program (faster),
2878 # so one script is as good as another. But avoid the broken or
2879 # incompatible versions:
2880 # SysV /etc/install, /usr/sbin/install
2881 # SunOS /usr/etc/install
2882 # IRIX /sbin/install
2883 # AIX /bin/install
2884 # AmigaOS /C/install, which installs bootblocks on floppy discs
2885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2888 # OS/2's system install, which has a completely different semantic
2889 # ./install, which can be erroneously created by make from ./install.sh.
2890 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2892 if test -z "$INSTALL"; then
2893 if test "${ac_cv_path_install+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 # Account for people who put trailing slashes in PATH elements.
2902 case $as_dir/ in
2903 ./ | .// | /cC/* | \
2904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2905 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2906 /usr/ucb/* ) ;;
2908 # OSF1 and SCO ODT 3.0 have their own names for install.
2909 # Don't use installbsd from OSF since it installs stuff as root
2910 # by default.
2911 for ac_prog in ginstall scoinst install; do
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2914 if test $ac_prog = install &&
2915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2916 # AIX install. It has an incompatible calling convention.
2918 elif test $ac_prog = install &&
2919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2920 # program-specific install script used by HP pwplus--don't use.
2922 else
2923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924 break 3
2927 done
2928 done
2930 esac
2931 done
2935 if test "${ac_cv_path_install+set}" = set; then
2936 INSTALL=$ac_cv_path_install
2937 else
2938 # As a last resort, use the slow shell script. We don't cache a
2939 # path for INSTALL within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the path is relative.
2942 INSTALL=$ac_install_sh
2945 echo "$as_me:$LINENO: result: $INSTALL" >&5
2946 echo "${ECHO_T}$INSTALL" >&6
2948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2949 # It thinks the first close brace ends the variable substitution.
2950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2959 echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_RANLIB+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 if test -n "$RANLIB"; then
2965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2978 done
2979 done
2983 RANLIB=$ac_cv_prog_RANLIB
2984 if test -n "$RANLIB"; then
2985 echo "$as_me:$LINENO: result: $RANLIB" >&5
2986 echo "${ECHO_T}$RANLIB" >&6
2987 else
2988 echo "$as_me:$LINENO: result: no" >&5
2989 echo "${ECHO_T}no" >&6
2993 if test -z "$ac_cv_prog_RANLIB"; then
2994 ac_ct_RANLIB=$RANLIB
2995 # Extract the first word of "ranlib", so it can be a program name with args.
2996 set dummy ranlib; ac_word=$2
2997 echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 if test -n "$ac_ct_RANLIB"; then
3003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_RANLIB="ranlib"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3019 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3023 if test -n "$ac_ct_RANLIB"; then
3024 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3025 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3026 else
3027 echo "$as_me:$LINENO: result: no" >&5
3028 echo "${ECHO_T}no" >&6
3031 RANLIB=$ac_ct_RANLIB
3032 else
3033 RANLIB="$ac_cv_prog_RANLIB"
3037 EXE=""
3038 LIBPREFIX="lib"
3039 AR="ar rc"
3040 UP_DIR=""
3042 echo "$as_me:$LINENO: checking for OS/2 (with EMX)" >&5
3043 echo $ECHO_N "checking for OS/2 (with EMX)... $ECHO_C" >&6
3044 if test "${xpdf_cv_sys_os2+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3055 main ()
3057 __EMX__
3059 return 0;
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag"
3072 || test ! -s conftest.err'
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3084 xpdf_cv_sys_os2=yes
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 xpdf_cv_sys_os2=no
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3093 echo "$as_me:$LINENO: result: $xpdf_cv_sys_os2" >&5
3094 echo "${ECHO_T}$xpdf_cv_sys_os2" >&6
3095 if test "$xpdf_cv_sys_os2" = yes; then
3096 EXE=".exe"
3097 LIBPREFIX=""
3098 AR="ar -rc"
3101 echo "$as_me:$LINENO: checking for DOS (with DJGPP)" >&5
3102 echo $ECHO_N "checking for DOS (with DJGPP)... $ECHO_C" >&6
3103 if test "${xpdf_cv_sys_dos+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3114 main ()
3116 __DJGPP__
3118 return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag"
3131 || test ! -s conftest.err'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 xpdf_cv_sys_dos=yes
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 xpdf_cv_sys_dos=no
3150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3152 echo "$as_me:$LINENO: result: $xpdf_cv_sys_dos" >&5
3153 echo "${ECHO_T}$xpdf_cv_sys_dos" >&6
3154 if test "$xpdf_cv_sys_dos" = yes; then
3155 EXE=".exe"
3156 LIBPREFIX="lib"
3157 AR="ar -rc"
3158 UP_DIR="../"
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3172 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3173 # On Suns, sometimes $CPP names a directory.
3174 if test -n "$CPP" && test -d "$CPP"; then
3175 CPP=
3177 if test -z "$CPP"; then
3178 if test "${ac_cv_prog_CPP+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 # Double quotes because CPP needs to be expanded
3182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3184 ac_preproc_ok=false
3185 for ac_c_preproc_warn_flag in '' yes
3187 # Use a header file that comes with gcc, so configuring glibc
3188 # with a fresh cross-compiler works.
3189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 # <limits.h> exists even on freestanding compilers.
3191 # On the NeXT, cc -E runs the code through the compiler's parser,
3192 # not just through cpp. "Syntax error" is here to catch this case.
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199 #ifdef __STDC__
3200 # include <limits.h>
3201 #else
3202 # include <assert.h>
3203 #endif
3204 Syntax error
3205 _ACEOF
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217 else
3218 ac_cpp_err=
3220 else
3221 ac_cpp_err=yes
3223 if test -z "$ac_cpp_err"; then
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 # Broken: fails on valid input.
3230 continue
3232 rm -f conftest.err conftest.$ac_ext
3234 # OK, works on sane cases. Now check whether non-existent headers
3235 # can be detected and how.
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <ac_nonexistent.h>
3243 _ACEOF
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255 else
3256 ac_cpp_err=
3258 else
3259 ac_cpp_err=yes
3261 if test -z "$ac_cpp_err"; then
3262 # Broken: success on invalid input.
3263 continue
3264 else
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 # Passes both tests.
3269 ac_preproc_ok=:
3270 break
3272 rm -f conftest.err conftest.$ac_ext
3274 done
3275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276 rm -f conftest.err conftest.$ac_ext
3277 if $ac_preproc_ok; then
3278 break
3281 done
3282 ac_cv_prog_CPP=$CPP
3285 CPP=$ac_cv_prog_CPP
3286 else
3287 ac_cv_prog_CPP=$CPP
3289 echo "$as_me:$LINENO: result: $CPP" >&5
3290 echo "${ECHO_T}$CPP" >&6
3291 ac_preproc_ok=false
3292 for ac_c_preproc_warn_flag in '' yes
3294 # Use a header file that comes with gcc, so configuring glibc
3295 # with a fresh cross-compiler works.
3296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3297 # <limits.h> exists even on freestanding compilers.
3298 # On the NeXT, cc -E runs the code through the compiler's parser,
3299 # not just through cpp. "Syntax error" is here to catch this case.
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #ifdef __STDC__
3307 # include <limits.h>
3308 #else
3309 # include <assert.h>
3310 #endif
3311 Syntax error
3312 _ACEOF
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 else
3325 ac_cpp_err=
3327 else
3328 ac_cpp_err=yes
3330 if test -z "$ac_cpp_err"; then
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 # Broken: fails on valid input.
3337 continue
3339 rm -f conftest.err conftest.$ac_ext
3341 # OK, works on sane cases. Now check whether non-existent headers
3342 # can be detected and how.
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <ac_nonexistent.h>
3350 _ACEOF
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3365 else
3366 ac_cpp_err=yes
3368 if test -z "$ac_cpp_err"; then
3369 # Broken: success on invalid input.
3370 continue
3371 else
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 # Passes both tests.
3376 ac_preproc_ok=:
3377 break
3379 rm -f conftest.err conftest.$ac_ext
3381 done
3382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3383 rm -f conftest.err conftest.$ac_ext
3384 if $ac_preproc_ok; then
3386 else
3387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3388 See \`config.log' for more details." >&5
3389 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3390 See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3394 ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 echo "$as_me:$LINENO: checking for X" >&5
3402 echo $ECHO_N "checking for X... $ECHO_C" >&6
3405 # Check whether --with-x or --without-x was given.
3406 if test "${with_x+set}" = set; then
3407 withval="$with_x"
3410 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3411 if test "x$with_x" = xno; then
3412 # The user explicitly disabled X.
3413 have_x=disabled
3414 else
3415 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3416 # Both variables are already set.
3417 have_x=yes
3418 else
3419 if test "${ac_cv_have_x+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422 # One or both of the vars are not set, and there is no cached value.
3423 ac_x_includes=no ac_x_libraries=no
3424 rm -fr conftest.dir
3425 if mkdir conftest.dir; then
3426 cd conftest.dir
3427 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3428 cat >Imakefile <<'_ACEOF'
3429 acfindx:
3430 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3431 _ACEOF
3432 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3433 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3434 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3435 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3436 for ac_extension in a so sl; do
3437 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3438 test -f $ac_im_libdir/libX11.$ac_extension; then
3439 ac_im_usrlibdir=$ac_im_libdir; break
3441 done
3442 # Screen out bogus values from the imake configuration. They are
3443 # bogus both because they are the default anyway, and because
3444 # using them would break gcc on systems where it needs fixed includes.
3445 case $ac_im_incroot in
3446 /usr/include) ;;
3447 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3448 esac
3449 case $ac_im_usrlibdir in
3450 /usr/lib | /lib) ;;
3451 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3452 esac
3454 cd ..
3455 rm -fr conftest.dir
3458 # Standard set of common directories for X headers.
3459 # Check X11 before X11Rn because it is often a symlink to the current release.
3460 ac_x_header_dirs='
3461 /usr/X11/include
3462 /usr/X11R6/include
3463 /usr/X11R5/include
3464 /usr/X11R4/include
3466 /usr/include/X11
3467 /usr/include/X11R6
3468 /usr/include/X11R5
3469 /usr/include/X11R4
3471 /usr/local/X11/include
3472 /usr/local/X11R6/include
3473 /usr/local/X11R5/include
3474 /usr/local/X11R4/include
3476 /usr/local/include/X11
3477 /usr/local/include/X11R6
3478 /usr/local/include/X11R5
3479 /usr/local/include/X11R4
3481 /usr/X386/include
3482 /usr/x386/include
3483 /usr/XFree86/include/X11
3485 /usr/include
3486 /usr/local/include
3487 /usr/unsupported/include
3488 /usr/athena/include
3489 /usr/local/x11r5/include
3490 /usr/lpp/Xamples/include
3492 /usr/openwin/include
3493 /usr/openwin/share/include'
3495 if test "$ac_x_includes" = no; then
3496 # Guess where to find include files, by looking for Intrinsic.h.
3497 # First, try using that file with no special directory specified.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 #include <X11/Intrinsic.h>
3505 _ACEOF
3506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3517 else
3518 ac_cpp_err=
3520 else
3521 ac_cpp_err=yes
3523 if test -z "$ac_cpp_err"; then
3524 # We can compile using X headers with no special include directory.
3525 ac_x_includes=
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 for ac_dir in $ac_x_header_dirs; do
3531 if test -r "$ac_dir/X11/Intrinsic.h"; then
3532 ac_x_includes=$ac_dir
3533 break
3535 done
3537 rm -f conftest.err conftest.$ac_ext
3538 fi # $ac_x_includes = no
3540 if test "$ac_x_libraries" = no; then
3541 # Check for the libraries.
3542 # See if we find them without any special options.
3543 # Don't add to $LIBS permanently.
3544 ac_save_LIBS=$LIBS
3545 LIBS="-lXt $LIBS"
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 #include <X11/Intrinsic.h>
3554 main ()
3556 XtMalloc (0)
3558 return 0;
3560 _ACEOF
3561 rm -f conftest.$ac_objext conftest$ac_exeext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3563 (eval $ac_link) 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try='test -s conftest$ac_exeext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 LIBS=$ac_save_LIBS
3584 # We can link X programs with no special library path.
3585 ac_x_libraries=
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 LIBS=$ac_save_LIBS
3591 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3593 # Don't even attempt the hair of trying to link an X program!
3594 for ac_extension in a so sl; do
3595 if test -r $ac_dir/libXt.$ac_extension; then
3596 ac_x_libraries=$ac_dir
3597 break 2
3599 done
3600 done
3602 rm -f conftest.err conftest.$ac_objext \
3603 conftest$ac_exeext conftest.$ac_ext
3604 fi # $ac_x_libraries = no
3606 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3607 # Didn't find X anywhere. Cache the known absence of X.
3608 ac_cv_have_x="have_x=no"
3609 else
3610 # Record where we found X for the cache.
3611 ac_cv_have_x="have_x=yes \
3612 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3617 eval "$ac_cv_have_x"
3618 fi # $with_x != no
3620 if test "$have_x" != yes; then
3621 echo "$as_me:$LINENO: result: $have_x" >&5
3622 echo "${ECHO_T}$have_x" >&6
3623 no_x=yes
3624 else
3625 # If each of the values was on the command line, it overrides each guess.
3626 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3627 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3628 # Update the cache value to reflect the command line values.
3629 ac_cv_have_x="have_x=yes \
3630 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3631 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3632 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3635 if test "$no_x" = yes; then
3636 # Not all programs may use this symbol, but it does not hurt to define it.
3638 cat >>confdefs.h <<\_ACEOF
3639 #define X_DISPLAY_MISSING 1
3640 _ACEOF
3642 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3643 else
3644 if test -n "$x_includes"; then
3645 X_CFLAGS="$X_CFLAGS -I$x_includes"
3648 # It would also be nice to do this for all -L options, not just this one.
3649 if test -n "$x_libraries"; then
3650 X_LIBS="$X_LIBS -L$x_libraries"
3651 # For Solaris; some versions of Sun CC require a space after -R and
3652 # others require no space. Words are not sufficient . . . .
3653 case `(uname -sr) 2>/dev/null` in
3654 "SunOS 5"*)
3655 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3656 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3657 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3658 cat >conftest.$ac_ext <<_ACEOF
3659 /* confdefs.h. */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3666 main ()
3670 return 0;
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_R_nospace=yes
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_R_nospace=no
3702 rm -f conftest.err conftest.$ac_objext \
3703 conftest$ac_exeext conftest.$ac_ext
3704 if test $ac_R_nospace = yes; then
3705 echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707 X_LIBS="$X_LIBS -R$x_libraries"
3708 else
3709 LIBS="$ac_xsave_LIBS -R $x_libraries"
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3718 main ()
3722 return 0;
3724 _ACEOF
3725 rm -f conftest.$ac_objext conftest$ac_exeext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727 (eval $ac_link) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try='test -z "$ac_c_werror_flag"
3735 || test ! -s conftest.err'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; } &&
3741 { ac_try='test -s conftest$ac_exeext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3747 ac_R_space=yes
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 ac_R_space=no
3754 rm -f conftest.err conftest.$ac_objext \
3755 conftest$ac_exeext conftest.$ac_ext
3756 if test $ac_R_space = yes; then
3757 echo "$as_me:$LINENO: result: yes" >&5
3758 echo "${ECHO_T}yes" >&6
3759 X_LIBS="$X_LIBS -R $x_libraries"
3760 else
3761 echo "$as_me:$LINENO: result: neither works" >&5
3762 echo "${ECHO_T}neither works" >&6
3765 LIBS=$ac_xsave_LIBS
3766 esac
3769 # Check for system-dependent libraries X programs must link with.
3770 # Do this before checking for the system-independent R6 libraries
3771 # (-lICE), since we may need -lsocket or whatever for X linking.
3773 if test "$ISC" = yes; then
3774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3775 else
3776 # Martyn Johnson says this is needed for Ultrix, if the X
3777 # libraries were built with DECnet support. And Karl Berry says
3778 # the Alpha needs dnet_stub (dnet does not exist).
3779 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 #ifdef __cplusplus
3789 extern "C"
3790 #endif
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3793 char XOpenDisplay ();
3795 main ()
3797 XOpenDisplay ();
3799 return 0;
3801 _ACEOF
3802 rm -f conftest.$ac_objext conftest$ac_exeext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804 (eval $ac_link) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest$ac_exeext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3830 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3831 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 ac_check_lib_save_LIBS=$LIBS
3835 LIBS="-ldnet $LIBS"
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 #ifdef __cplusplus
3845 extern "C"
3846 #endif
3847 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */
3849 char dnet_ntoa ();
3851 main ()
3853 dnet_ntoa ();
3855 return 0;
3857 _ACEOF
3858 rm -f conftest.$ac_objext conftest$ac_exeext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3860 (eval $ac_link) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag"
3868 || test ! -s conftest.err'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; } &&
3874 { ac_try='test -s conftest$ac_exeext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_lib_dnet_dnet_ntoa=yes
3881 else
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3885 ac_cv_lib_dnet_dnet_ntoa=no
3887 rm -f conftest.err conftest.$ac_objext \
3888 conftest$ac_exeext conftest.$ac_ext
3889 LIBS=$ac_check_lib_save_LIBS
3891 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3892 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3893 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3897 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3898 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3899 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3900 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 ac_check_lib_save_LIBS=$LIBS
3904 LIBS="-ldnet_stub $LIBS"
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3912 /* Override any gcc2 internal prototype to avoid an error. */
3913 #ifdef __cplusplus
3914 extern "C"
3915 #endif
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3918 char dnet_ntoa ();
3920 main ()
3922 dnet_ntoa ();
3924 return 0;
3926 _ACEOF
3927 rm -f conftest.$ac_objext conftest$ac_exeext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929 (eval $ac_link) 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } &&
3936 { ac_try='test -z "$ac_c_werror_flag"
3937 || test ! -s conftest.err'
3938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 (eval $ac_try) 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; } &&
3943 { ac_try='test -s conftest$ac_exeext'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 (eval $ac_try) 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_cv_lib_dnet_stub_dnet_ntoa=no
3956 rm -f conftest.err conftest.$ac_objext \
3957 conftest$ac_exeext conftest.$ac_ext
3958 LIBS=$ac_check_lib_save_LIBS
3960 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3961 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3962 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3963 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3968 rm -f conftest.err conftest.$ac_objext \
3969 conftest$ac_exeext conftest.$ac_ext
3970 LIBS="$ac_xsave_LIBS"
3972 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3973 # to get the SysV transport functions.
3974 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3975 # needs -lnsl.
3976 # The nsl library prevents programs from opening the X display
3977 # on Irix 5.2, according to T.E. Dickey.
3978 # The functions gethostbyname, getservbyname, and inet_addr are
3979 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3980 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3981 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3982 if test "${ac_cv_func_gethostbyname+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h. */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3993 #define gethostbyname innocuous_gethostbyname
3995 /* System header to define __stub macros and hopefully few prototypes,
3996 which can conflict with char gethostbyname (); below.
3997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 <limits.h> exists even on freestanding compilers. */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4006 #undef gethostbyname
4008 /* Override any gcc2 internal prototype to avoid an error. */
4009 #ifdef __cplusplus
4010 extern "C"
4012 #endif
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4015 char gethostbyname ();
4016 /* The GNU C library defines this for functions which it implements
4017 to always fail with ENOSYS. Some functions are actually named
4018 something starting with __ and the normal name is an alias. */
4019 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4020 choke me
4021 #else
4022 char (*f) () = gethostbyname;
4023 #endif
4024 #ifdef __cplusplus
4026 #endif
4029 main ()
4031 return f != gethostbyname;
4033 return 0;
4035 _ACEOF
4036 rm -f conftest.$ac_objext conftest$ac_exeext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038 (eval $ac_link) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest$ac_exeext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 ac_cv_func_gethostbyname=yes
4059 else
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 ac_cv_func_gethostbyname=no
4065 rm -f conftest.err conftest.$ac_objext \
4066 conftest$ac_exeext conftest.$ac_ext
4068 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4069 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4071 if test $ac_cv_func_gethostbyname = no; then
4072 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4073 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4074 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 ac_check_lib_save_LIBS=$LIBS
4078 LIBS="-lnsl $LIBS"
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 #ifdef __cplusplus
4088 extern "C"
4089 #endif
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4092 char gethostbyname ();
4094 main ()
4096 gethostbyname ();
4098 return 0;
4100 _ACEOF
4101 rm -f conftest.$ac_objext conftest$ac_exeext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4103 (eval $ac_link) 2>conftest.er1
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag"
4111 || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_lib_nsl_gethostbyname=yes
4124 else
4125 echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 ac_cv_lib_nsl_gethostbyname=no
4130 rm -f conftest.err conftest.$ac_objext \
4131 conftest$ac_exeext conftest.$ac_ext
4132 LIBS=$ac_check_lib_save_LIBS
4134 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4135 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4136 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4137 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4140 if test $ac_cv_lib_nsl_gethostbyname = no; then
4141 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4142 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4143 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 ac_check_lib_save_LIBS=$LIBS
4147 LIBS="-lbsd $LIBS"
4148 cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h. */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4155 /* Override any gcc2 internal prototype to avoid an error. */
4156 #ifdef __cplusplus
4157 extern "C"
4158 #endif
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4161 char gethostbyname ();
4163 main ()
4165 gethostbyname ();
4167 return 0;
4169 _ACEOF
4170 rm -f conftest.$ac_objext conftest$ac_exeext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_cv_lib_bsd_gethostbyname=yes
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 ac_cv_lib_bsd_gethostbyname=no
4199 rm -f conftest.err conftest.$ac_objext \
4200 conftest$ac_exeext conftest.$ac_ext
4201 LIBS=$ac_check_lib_save_LIBS
4203 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4204 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4205 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4212 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4213 # socket/setsockopt and other routines are undefined under SCO ODT
4214 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4215 # on later versions), says Simon Leinen: it contains gethostby*
4216 # variants that don't use the name server (or something). -lsocket
4217 # must be given before -lnsl if both are needed. We assume that
4218 # if connect needs -lnsl, so does gethostbyname.
4219 echo "$as_me:$LINENO: checking for connect" >&5
4220 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4221 if test "${ac_cv_func_connect+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4232 #define connect innocuous_connect
4234 /* System header to define __stub macros and hopefully few prototypes,
4235 which can conflict with char connect (); below.
4236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237 <limits.h> exists even on freestanding compilers. */
4239 #ifdef __STDC__
4240 # include <limits.h>
4241 #else
4242 # include <assert.h>
4243 #endif
4245 #undef connect
4247 /* Override any gcc2 internal prototype to avoid an error. */
4248 #ifdef __cplusplus
4249 extern "C"
4251 #endif
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4254 char connect ();
4255 /* The GNU C library defines this for functions which it implements
4256 to always fail with ENOSYS. Some functions are actually named
4257 something starting with __ and the normal name is an alias. */
4258 #if defined (__stub_connect) || defined (__stub___connect)
4259 choke me
4260 #else
4261 char (*f) () = connect;
4262 #endif
4263 #ifdef __cplusplus
4265 #endif
4268 main ()
4270 return f != connect;
4272 return 0;
4274 _ACEOF
4275 rm -f conftest.$ac_objext conftest$ac_exeext
4276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277 (eval $ac_link) 2>conftest.er1
4278 ac_status=$?
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } &&
4284 { ac_try='test -z "$ac_c_werror_flag"
4285 || test ! -s conftest.err'
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest$ac_exeext'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; }; then
4297 ac_cv_func_connect=yes
4298 else
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 ac_cv_func_connect=no
4304 rm -f conftest.err conftest.$ac_objext \
4305 conftest$ac_exeext conftest.$ac_ext
4307 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4308 echo "${ECHO_T}$ac_cv_func_connect" >&6
4310 if test $ac_cv_func_connect = no; then
4311 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4312 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4313 if test "${ac_cv_lib_socket_connect+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316 ac_check_lib_save_LIBS=$LIBS
4317 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 #ifdef __cplusplus
4327 extern "C"
4328 #endif
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4331 char connect ();
4333 main ()
4335 connect ();
4337 return 0;
4339 _ACEOF
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342 (eval $ac_link) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest$ac_exeext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_lib_socket_connect=yes
4363 else
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 ac_cv_lib_socket_connect=no
4369 rm -f conftest.err conftest.$ac_objext \
4370 conftest$ac_exeext conftest.$ac_ext
4371 LIBS=$ac_check_lib_save_LIBS
4373 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4374 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4375 if test $ac_cv_lib_socket_connect = yes; then
4376 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4381 # Guillermo Gomez says -lposix is necessary on A/UX.
4382 echo "$as_me:$LINENO: checking for remove" >&5
4383 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4384 if test "${ac_cv_func_remove+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4395 #define remove innocuous_remove
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char remove (); below.
4399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4400 <limits.h> exists even on freestanding compilers. */
4402 #ifdef __STDC__
4403 # include <limits.h>
4404 #else
4405 # include <assert.h>
4406 #endif
4408 #undef remove
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 #ifdef __cplusplus
4412 extern "C"
4414 #endif
4415 /* We use char because int might match the return type of a gcc2
4416 builtin and then its argument prototype would still apply. */
4417 char remove ();
4418 /* The GNU C library defines this for functions which it implements
4419 to always fail with ENOSYS. Some functions are actually named
4420 something starting with __ and the normal name is an alias. */
4421 #if defined (__stub_remove) || defined (__stub___remove)
4422 choke me
4423 #else
4424 char (*f) () = remove;
4425 #endif
4426 #ifdef __cplusplus
4428 #endif
4431 main ()
4433 return f != remove;
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext conftest$ac_exeext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4440 (eval $ac_link) 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest$ac_exeext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_func_remove=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ac_cv_func_remove=no
4467 rm -f conftest.err conftest.$ac_objext \
4468 conftest$ac_exeext conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4471 echo "${ECHO_T}$ac_cv_func_remove" >&6
4473 if test $ac_cv_func_remove = no; then
4474 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4475 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4476 if test "${ac_cv_lib_posix_remove+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 ac_check_lib_save_LIBS=$LIBS
4480 LIBS="-lposix $LIBS"
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 #ifdef __cplusplus
4490 extern "C"
4491 #endif
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4494 char remove ();
4496 main ()
4498 remove ();
4500 return 0;
4502 _ACEOF
4503 rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4505 (eval $ac_link) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest$ac_exeext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_cv_lib_posix_remove=yes
4526 else
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4530 ac_cv_lib_posix_remove=no
4532 rm -f conftest.err conftest.$ac_objext \
4533 conftest$ac_exeext conftest.$ac_ext
4534 LIBS=$ac_check_lib_save_LIBS
4536 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4537 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4538 if test $ac_cv_lib_posix_remove = yes; then
4539 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4544 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4545 echo "$as_me:$LINENO: checking for shmat" >&5
4546 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4547 if test "${ac_cv_func_shmat+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4558 #define shmat innocuous_shmat
4560 /* System header to define __stub macros and hopefully few prototypes,
4561 which can conflict with char shmat (); below.
4562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563 <limits.h> exists even on freestanding compilers. */
4565 #ifdef __STDC__
4566 # include <limits.h>
4567 #else
4568 # include <assert.h>
4569 #endif
4571 #undef shmat
4573 /* Override any gcc2 internal prototype to avoid an error. */
4574 #ifdef __cplusplus
4575 extern "C"
4577 #endif
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
4580 char shmat ();
4581 /* The GNU C library defines this for functions which it implements
4582 to always fail with ENOSYS. Some functions are actually named
4583 something starting with __ and the normal name is an alias. */
4584 #if defined (__stub_shmat) || defined (__stub___shmat)
4585 choke me
4586 #else
4587 char (*f) () = shmat;
4588 #endif
4589 #ifdef __cplusplus
4591 #endif
4594 main ()
4596 return f != shmat;
4598 return 0;
4600 _ACEOF
4601 rm -f conftest.$ac_objext conftest$ac_exeext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4603 (eval $ac_link) 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest$ac_exeext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_func_shmat=yes
4624 else
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_cv_func_shmat=no
4630 rm -f conftest.err conftest.$ac_objext \
4631 conftest$ac_exeext conftest.$ac_ext
4633 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4634 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4636 if test $ac_cv_func_shmat = no; then
4637 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4638 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4639 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642 ac_check_lib_save_LIBS=$LIBS
4643 LIBS="-lipc $LIBS"
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 #ifdef __cplusplus
4653 extern "C"
4654 #endif
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4657 char shmat ();
4659 main ()
4661 shmat ();
4663 return 0;
4665 _ACEOF
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668 (eval $ac_link) 2>conftest.er1
4669 ac_status=$?
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -z "$ac_c_werror_flag"
4676 || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest$ac_exeext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 ac_cv_lib_ipc_shmat=yes
4689 else
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 ac_cv_lib_ipc_shmat=no
4695 rm -f conftest.err conftest.$ac_objext \
4696 conftest$ac_exeext conftest.$ac_ext
4697 LIBS=$ac_check_lib_save_LIBS
4699 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4700 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4701 if test $ac_cv_lib_ipc_shmat = yes; then
4702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4708 # Check for libraries that X11R6 Xt/Xaw programs need.
4709 ac_save_LDFLAGS=$LDFLAGS
4710 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4711 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4712 # check for ICE first), but we must link in the order -lSM -lICE or
4713 # we get undefined symbols. So assume we have SM if we have ICE.
4714 # These have to be linked with before -lX11, unlike the other
4715 # libraries we check for below, so use a different variable.
4716 # John Interrante, Karl Berry
4717 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4718 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4719 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 ac_check_lib_save_LIBS=$LIBS
4723 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 #ifdef __cplusplus
4733 extern "C"
4734 #endif
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4737 char IceConnectionNumber ();
4739 main ()
4741 IceConnectionNumber ();
4743 return 0;
4745 _ACEOF
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748 (eval $ac_link) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_c_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest$ac_exeext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_cv_lib_ICE_IceConnectionNumber=yes
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 ac_cv_lib_ICE_IceConnectionNumber=no
4775 rm -f conftest.err conftest.$ac_objext \
4776 conftest$ac_exeext conftest.$ac_ext
4777 LIBS=$ac_check_lib_save_LIBS
4779 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4780 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4781 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4782 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4785 LDFLAGS=$ac_save_LDFLAGS
4794 ac_header_dirent=no
4795 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4796 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4797 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4798 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 cat >conftest.$ac_ext <<_ACEOF
4803 /* confdefs.h. */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h. */
4808 #include <sys/types.h>
4809 #include <$ac_hdr>
4812 main ()
4814 if ((DIR *) 0)
4815 return 0;
4817 return 0;
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 eval "$as_ac_Header=yes"
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 eval "$as_ac_Header=no"
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4854 cat >>confdefs.h <<_ACEOF
4855 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4856 _ACEOF
4858 ac_header_dirent=$ac_hdr; break
4861 done
4862 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4863 if test $ac_header_dirent = dirent.h; then
4864 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4866 if test "${ac_cv_search_opendir+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 ac_func_search_save_LIBS=$LIBS
4870 ac_cv_search_opendir=no
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 /* Override any gcc2 internal prototype to avoid an error. */
4879 #ifdef __cplusplus
4880 extern "C"
4881 #endif
4882 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */
4884 char opendir ();
4886 main ()
4888 opendir ();
4890 return 0;
4892 _ACEOF
4893 rm -f conftest.$ac_objext conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_search_opendir="none required"
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4921 rm -f conftest.err conftest.$ac_objext \
4922 conftest$ac_exeext conftest.$ac_ext
4923 if test "$ac_cv_search_opendir" = no; then
4924 for ac_lib in dir; do
4925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 #ifdef __cplusplus
4935 extern "C"
4936 #endif
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4939 char opendir ();
4941 main ()
4943 opendir ();
4945 return 0;
4947 _ACEOF
4948 rm -f conftest.$ac_objext conftest$ac_exeext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4950 (eval $ac_link) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest$ac_exeext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_search_opendir="-l$ac_lib"
4971 break
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 rm -f conftest.err conftest.$ac_objext \
4978 conftest$ac_exeext conftest.$ac_ext
4979 done
4981 LIBS=$ac_func_search_save_LIBS
4983 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4984 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4985 if test "$ac_cv_search_opendir" != no; then
4986 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4990 else
4991 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4992 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4993 if test "${ac_cv_search_opendir+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 ac_func_search_save_LIBS=$LIBS
4997 ac_cv_search_opendir=no
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 #ifdef __cplusplus
5007 extern "C"
5008 #endif
5009 /* We use char because int might match the return type of a gcc2
5010 builtin and then its argument prototype would still apply. */
5011 char opendir ();
5013 main ()
5015 opendir ();
5017 return 0;
5019 _ACEOF
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_search_opendir="none required"
5043 else
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5048 rm -f conftest.err conftest.$ac_objext \
5049 conftest$ac_exeext conftest.$ac_ext
5050 if test "$ac_cv_search_opendir" = no; then
5051 for ac_lib in x; do
5052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5060 /* Override any gcc2 internal prototype to avoid an error. */
5061 #ifdef __cplusplus
5062 extern "C"
5063 #endif
5064 /* We use char because int might match the return type of a gcc2
5065 builtin and then its argument prototype would still apply. */
5066 char opendir ();
5068 main ()
5070 opendir ();
5072 return 0;
5074 _ACEOF
5075 rm -f conftest.$ac_objext conftest$ac_exeext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5077 (eval $ac_link) 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest$ac_exeext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_cv_search_opendir="-l$ac_lib"
5098 break
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5104 rm -f conftest.err conftest.$ac_objext \
5105 conftest$ac_exeext conftest.$ac_ext
5106 done
5108 LIBS=$ac_func_search_save_LIBS
5110 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5111 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5112 if test "$ac_cv_search_opendir" != no; then
5113 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5120 ac_ext=cc
5121 ac_cpp='$CXXCPP $CPPFLAGS'
5122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5128 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5129 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5130 if test "${ac_cv_func_gethostbyname+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h. */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5141 #define gethostbyname innocuous_gethostbyname
5143 /* System header to define __stub macros and hopefully few prototypes,
5144 which can conflict with char gethostbyname (); below.
5145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5146 <limits.h> exists even on freestanding compilers. */
5148 #ifdef __STDC__
5149 # include <limits.h>
5150 #else
5151 # include <assert.h>
5152 #endif
5154 #undef gethostbyname
5156 /* Override any gcc2 internal prototype to avoid an error. */
5157 #ifdef __cplusplus
5158 extern "C"
5160 #endif
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5163 char gethostbyname ();
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5168 choke me
5169 #else
5170 char (*f) () = gethostbyname;
5171 #endif
5172 #ifdef __cplusplus
5174 #endif
5177 main ()
5179 return f != gethostbyname;
5181 return 0;
5183 _ACEOF
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_cxx_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest$ac_exeext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_func_gethostbyname=yes
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 ac_cv_func_gethostbyname=no
5213 rm -f conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5217 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5219 if test $ac_cv_func_gethostbyname = no; then
5220 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5221 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5222 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-lbsd $LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 #ifdef __cplusplus
5236 extern "C"
5237 #endif
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5240 char gethostbyname ();
5242 main ()
5244 gethostbyname ();
5246 return 0;
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251 (eval $ac_link) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_cxx_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest$ac_exeext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_lib_bsd_gethostbyname=yes
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 ac_cv_lib_bsd_gethostbyname=no
5278 rm -f conftest.err conftest.$ac_objext \
5279 conftest$ac_exeext conftest.$ac_ext
5280 LIBS=$ac_check_lib_save_LIBS
5282 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5283 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5284 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5290 echo "$as_me:$LINENO: checking select() and fd_set in sys/select.h and sys/bsdtypes.h" >&5
5291 echo $ECHO_N "checking select() and fd_set in sys/select.h and sys/bsdtypes.h... $ECHO_C" >&6
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <stdlib.h>
5299 #include <stddef.h>
5300 #include <unistd.h>
5301 #include <sys/types.h>
5303 main ()
5305 fd_set fds;
5306 select(0, NULL, NULL, NULL, NULL);
5308 return 0;
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } &&
5320 { ac_try='test -z "$ac_cxx_werror_flag"
5321 || test ! -s conftest.err'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 (eval $ac_try) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; } &&
5327 { ac_try='test -s conftest.$ac_objext'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5333 xpdf_ok=yes
5334 else
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5338 xpdf_ok=no
5340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5341 if test $xpdf_ok = yes; then
5342 echo "$as_me:$LINENO: result: not needed" >&5
5343 echo "${ECHO_T}not needed" >&6
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <stdlib.h>
5352 #include <stddef.h>
5353 #include <unistd.h>
5354 #include <sys/types.h>
5355 #include <sys/select.h>
5357 main ()
5359 fd_set fds;
5360 select(0, NULL, NULL, NULL, NULL);
5362 return 0;
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_cxx_werror_flag"
5375 || test ! -s conftest.err'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 xpdf_ok=yes
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 xpdf_ok=no
5394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395 if test $xpdf_ok = yes; then
5396 cat >>confdefs.h <<\_ACEOF
5397 #define HAVE_SYS_SELECT_H 1
5398 _ACEOF
5400 echo "$as_me:$LINENO: result: need sys/select.h" >&5
5401 echo "${ECHO_T}need sys/select.h" >&6
5402 else
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #include <stdlib.h>
5410 #include <stddef.h>
5411 #include <unistd.h>
5412 #include <sys/types.h>
5413 #include <sys/bsdtypes.h>
5415 main ()
5417 fd_set fds;
5418 select(0, NULL, NULL, NULL, NULL);
5420 return 0;
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_cxx_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 xpdf_ok=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 xpdf_ok=no
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453 if test $xpdf_ok = yes; then
5454 cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_SYS_BSDTYPES_H 1
5456 _ACEOF
5458 echo "$as_me:$LINENO: result: need sys/bsdtypes.h" >&5
5459 echo "${ECHO_T}need sys/bsdtypes.h" >&6
5460 else
5461 echo "$as_me:$LINENO: result: problem" >&5
5462 echo "${ECHO_T}problem" >&6
5467 echo "$as_me:$LINENO: checking FD_ZERO and strings.h or bstring.h" >&5
5468 echo $ECHO_N "checking FD_ZERO and strings.h or bstring.h... $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <stdlib.h>
5476 #include <sys/types.h>
5477 #ifdef HAVE_SYS_SELECT_H
5478 #include <sys/select.h>
5479 #endif
5481 main ()
5483 fd_set fds; FD_ZERO(&fds);
5485 return 0;
5487 _ACEOF
5488 rm -f conftest.$ac_objext
5489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try='test -z "$ac_cxx_werror_flag"
5498 || test ! -s conftest.err'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 (eval $ac_try) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; } &&
5504 { ac_try='test -s conftest.$ac_objext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 xpdf_ok=yes
5511 else
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 xpdf_ok=no
5517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518 if test $xpdf_ok = yes; then
5519 echo "$as_me:$LINENO: result: not needed" >&5
5520 echo "${ECHO_T}not needed" >&6
5521 else
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #include <stdlib.h>
5529 #include <sys/types.h>
5530 #include <strings.h>
5531 #ifdef HAVE_SYS_SELECT_H
5532 #include <sys/select.h>
5533 #endif
5535 main ()
5537 fd_set fds; FD_ZERO(&fds);
5539 return 0;
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5544 (eval $ac_compile) 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -z "$ac_cxx_werror_flag"
5552 || test ! -s conftest.err'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try='test -s conftest.$ac_objext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 (eval $ac_try) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 xpdf_ok=yes
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5569 xpdf_ok=no
5571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5572 if test $xpdf_ok = yes; then
5573 cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_STRINGS_H 1
5575 _ACEOF
5577 echo "$as_me:$LINENO: result: need strings.h" >&5
5578 echo "${ECHO_T}need strings.h" >&6
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <stdlib.h>
5587 #include <sys/types.h>
5588 #include <bstring.h>
5589 #ifdef HAVE_SYS_SELECT_H
5590 #include <sys/select.h>
5591 #endif
5593 main ()
5595 fd_set fds; FD_ZERO(&fds);
5597 return 0;
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_cxx_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 xpdf_ok=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 xpdf_ok=no
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 if test $xpdf_ok = yes; then
5631 cat >>confdefs.h <<\_ACEOF
5632 #define HAVE_BSTRING_H 1
5633 _ACEOF
5635 echo "$as_me:$LINENO: result: need bstring.h" >&5
5636 echo "${ECHO_T}need bstring.h" >&6
5637 else
5638 echo "$as_me:$LINENO: result: problem" >&5
5639 echo "${ECHO_T}problem" >&6
5645 for ac_func in rewinddir
5647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5648 echo "$as_me:$LINENO: checking for $ac_func" >&5
5649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5650 if eval "test \"\${$as_ac_var+set}\" = set"; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5661 #define $ac_func innocuous_$ac_func
5663 /* System header to define __stub macros and hopefully few prototypes,
5664 which can conflict with char $ac_func (); below.
5665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666 <limits.h> exists even on freestanding compilers. */
5668 #ifdef __STDC__
5669 # include <limits.h>
5670 #else
5671 # include <assert.h>
5672 #endif
5674 #undef $ac_func
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 #ifdef __cplusplus
5678 extern "C"
5680 #endif
5681 /* We use char because int might match the return type of a gcc2
5682 builtin and then its argument prototype would still apply. */
5683 char $ac_func ();
5684 /* The GNU C library defines this for functions which it implements
5685 to always fail with ENOSYS. Some functions are actually named
5686 something starting with __ and the normal name is an alias. */
5687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5688 choke me
5689 #else
5690 char (*f) () = $ac_func;
5691 #endif
5692 #ifdef __cplusplus
5694 #endif
5697 main ()
5699 return f != $ac_func;
5701 return 0;
5703 _ACEOF
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706 (eval $ac_link) 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_cxx_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 eval "$as_ac_var=yes"
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 eval "$as_ac_var=no"
5733 rm -f conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
5736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5738 if test `eval echo '${'$as_ac_var'}'` = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5741 _ACEOF
5744 done
5746 if test $ac_cv_func_rewinddir = no; then
5748 echo "$as_me:$LINENO: checking for rewinddir in -lcposix" >&5
5749 echo $ECHO_N "checking for rewinddir in -lcposix... $ECHO_C" >&6
5750 if test "${ac_cv_lib_cposix_rewinddir+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 ac_check_lib_save_LIBS=$LIBS
5754 LIBS="-lcposix $LIBS"
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5762 /* Override any gcc2 internal prototype to avoid an error. */
5763 #ifdef __cplusplus
5764 extern "C"
5765 #endif
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5768 char rewinddir ();
5770 main ()
5772 rewinddir ();
5774 return 0;
5776 _ACEOF
5777 rm -f conftest.$ac_objext conftest$ac_exeext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_cxx_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest$ac_exeext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_lib_cposix_rewinddir=yes
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 ac_cv_lib_cposix_rewinddir=no
5806 rm -f conftest.err conftest.$ac_objext \
5807 conftest$ac_exeext conftest.$ac_ext
5808 LIBS=$ac_check_lib_save_LIBS
5810 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_rewinddir" >&5
5811 echo "${ECHO_T}$ac_cv_lib_cposix_rewinddir" >&6
5812 if test $ac_cv_lib_cposix_rewinddir = yes; then
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_LIBCPOSIX 1
5815 _ACEOF
5817 LIBS="-lcposix $LIBS"
5824 for ac_func in popen
5826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5827 echo "$as_me:$LINENO: checking for $ac_func" >&5
5828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5829 if eval "test \"\${$as_ac_var+set}\" = set"; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5840 #define $ac_func innocuous_$ac_func
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func (); below.
5844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 <limits.h> exists even on freestanding compilers. */
5847 #ifdef __STDC__
5848 # include <limits.h>
5849 #else
5850 # include <assert.h>
5851 #endif
5853 #undef $ac_func
5855 /* Override any gcc2 internal prototype to avoid an error. */
5856 #ifdef __cplusplus
5857 extern "C"
5859 #endif
5860 /* We use char because int might match the return type of a gcc2
5861 builtin and then its argument prototype would still apply. */
5862 char $ac_func ();
5863 /* The GNU C library defines this for functions which it implements
5864 to always fail with ENOSYS. Some functions are actually named
5865 something starting with __ and the normal name is an alias. */
5866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5867 choke me
5868 #else
5869 char (*f) () = $ac_func;
5870 #endif
5871 #ifdef __cplusplus
5873 #endif
5876 main ()
5878 return f != $ac_func;
5880 return 0;
5882 _ACEOF
5883 rm -f conftest.$ac_objext conftest$ac_exeext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885 (eval $ac_link) 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_cxx_werror_flag"
5893 || test ! -s conftest.err'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; } &&
5899 { ac_try='test -s conftest$ac_exeext'
5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 (eval $ac_try) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5905 eval "$as_ac_var=yes"
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 eval "$as_ac_var=no"
5912 rm -f conftest.err conftest.$ac_objext \
5913 conftest$ac_exeext conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5917 if test `eval echo '${'$as_ac_var'}'` = yes; then
5918 cat >>confdefs.h <<_ACEOF
5919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5920 _ACEOF
5923 done
5925 echo "$as_me:$LINENO: checking for mkstemp" >&5
5926 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
5927 if test "${xpdf_cv_func_mkstemp+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5936 #include <stdlib.h>
5937 #include <unistd.h>
5939 main ()
5941 mkstemp("foo");
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_cxx_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 xpdf_cv_func_mkstemp=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 xpdf_cv_func_mkstemp=no
5975 rm -f conftest.err conftest.$ac_objext \
5976 conftest$ac_exeext conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $xpdf_cv_func_mkstemp" >&5
5979 echo "${ECHO_T}$xpdf_cv_func_mkstemp" >&6
5980 if test "$xpdf_cv_func_mkstemp" = yes; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define HAVE_MKSTEMP 1
5983 _ACEOF
5986 echo "$as_me:$LINENO: checking for mkstemps" >&5
5987 echo $ECHO_N "checking for mkstemps... $ECHO_C" >&6
5988 if test "${xpdf_cv_func_mkstemps+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 #include <stdlib.h>
5998 #include <unistd.h>
6000 main ()
6002 mkstemps("foo", 0);
6004 return 0;
6006 _ACEOF
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009 (eval $ac_link) 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_cxx_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 xpdf_cv_func_mkstemps=yes
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 xpdf_cv_func_mkstemps=no
6036 rm -f conftest.err conftest.$ac_objext \
6037 conftest$ac_exeext conftest.$ac_ext
6039 echo "$as_me:$LINENO: result: $xpdf_cv_func_mkstemps" >&5
6040 echo "${ECHO_T}$xpdf_cv_func_mkstemps" >&6
6041 if test "$xpdf_cv_func_mkstemps" = yes; then
6042 cat >>confdefs.h <<\_ACEOF
6043 #define HAVE_MKSTEMPS 1
6044 _ACEOF
6048 echo "$as_me:$LINENO: checking whether select takes fd_set arguments" >&5
6049 echo $ECHO_N "checking whether select takes fd_set arguments... $ECHO_C" >&6
6050 if test "${xpdf_cv_func_select_arg+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <sys/types.h>
6060 #include <sys/time.h>
6061 #include <unistd.h>
6062 #ifdef HAVE_SYS_SELECT_H
6063 #include <sys/select.h>
6064 #endif
6066 main ()
6068 fd_set fds;
6069 select(1, &fds, &fds, &fds, 0);
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_cxx_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 xpdf_cv_func_select_arg=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 xpdf_cv_func_select_arg=no
6103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $xpdf_cv_func_select_arg" >&5
6106 echo "${ECHO_T}$xpdf_cv_func_select_arg" >&6
6107 if test "$xpdf_cv_func_select_arg" != yes; then
6108 cat >>confdefs.h <<\_ACEOF
6109 #define SELECT_TAKES_INT 1
6110 _ACEOF
6114 ac_ext=c
6115 ac_cpp='$CPP $CPPFLAGS'
6116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6121 # Check whether --enable-largefile or --disable-largefile was given.
6122 if test "${enable_largefile+set}" = set; then
6123 enableval="$enable_largefile"
6126 if test "$enable_largefile" != no; then
6128 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6129 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
6130 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 ac_cv_sys_largefile_CC=no
6134 if test "$GCC" != yes; then
6135 ac_save_CC=$CC
6136 while :; do
6137 # IRIX 6.2 and later do not support large files by default,
6138 # so use the C compiler's -n32 option if that helps.
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <sys/types.h>
6146 /* Check that off_t can represent 2**63 - 1 correctly.
6147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6148 since some C++ compilers masquerading as C compilers
6149 incorrectly reject 9223372036854775807. */
6150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6152 && LARGE_OFF_T % 2147483647 == 1)
6153 ? 1 : -1];
6155 main ()
6159 return 0;
6161 _ACEOF
6162 rm -f conftest.$ac_objext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6164 (eval $ac_compile) 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest.$ac_objext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 break
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6190 rm -f conftest.err conftest.$ac_objext
6191 CC="$CC -n32"
6192 rm -f conftest.$ac_objext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194 (eval $ac_compile) 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try='test -z "$ac_c_werror_flag"
6202 || test ! -s conftest.err'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; } &&
6208 { ac_try='test -s conftest.$ac_objext'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
6214 ac_cv_sys_largefile_CC=' -n32'; break
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6220 rm -f conftest.err conftest.$ac_objext
6221 break
6222 done
6223 CC=$ac_save_CC
6224 rm -f conftest.$ac_ext
6227 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6228 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
6229 if test "$ac_cv_sys_largefile_CC" != no; then
6230 CC=$CC$ac_cv_sys_largefile_CC
6233 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6234 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
6235 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238 while :; do
6239 ac_cv_sys_file_offset_bits=no
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h. */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #include <sys/types.h>
6247 /* Check that off_t can represent 2**63 - 1 correctly.
6248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6249 since some C++ compilers masquerading as C compilers
6250 incorrectly reject 9223372036854775807. */
6251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6253 && LARGE_OFF_T % 2147483647 == 1)
6254 ? 1 : -1];
6256 main ()
6260 return 0;
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 break
6286 else
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #define _FILE_OFFSET_BITS 64
6299 #include <sys/types.h>
6300 /* Check that off_t can represent 2**63 - 1 correctly.
6301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6302 since some C++ compilers masquerading as C compilers
6303 incorrectly reject 9223372036854775807. */
6304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6306 && LARGE_OFF_T % 2147483647 == 1)
6307 ? 1 : -1];
6309 main ()
6313 return 0;
6315 _ACEOF
6316 rm -f conftest.$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_cv_sys_file_offset_bits=64; break
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 break
6346 done
6348 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6349 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
6350 if test "$ac_cv_sys_file_offset_bits" != no; then
6352 cat >>confdefs.h <<_ACEOF
6353 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6354 _ACEOF
6357 rm -f conftest*
6358 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6359 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
6360 if test "${ac_cv_sys_large_files+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 while :; do
6364 ac_cv_sys_large_files=no
6365 cat >conftest.$ac_ext <<_ACEOF
6366 /* confdefs.h. */
6367 _ACEOF
6368 cat confdefs.h >>conftest.$ac_ext
6369 cat >>conftest.$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <sys/types.h>
6372 /* Check that off_t can represent 2**63 - 1 correctly.
6373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6374 since some C++ compilers masquerading as C compilers
6375 incorrectly reject 9223372036854775807. */
6376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6378 && LARGE_OFF_T % 2147483647 == 1)
6379 ? 1 : -1];
6381 main ()
6385 return 0;
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390 (eval $ac_compile) 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -z "$ac_c_werror_flag"
6398 || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 break
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #define _LARGE_FILES 1
6424 #include <sys/types.h>
6425 /* Check that off_t can represent 2**63 - 1 correctly.
6426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6427 since some C++ compilers masquerading as C compilers
6428 incorrectly reject 9223372036854775807. */
6429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6431 && LARGE_OFF_T % 2147483647 == 1)
6432 ? 1 : -1];
6434 main ()
6438 return 0;
6440 _ACEOF
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_cv_sys_large_files=1; break
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6470 break
6471 done
6473 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6474 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
6475 if test "$ac_cv_sys_large_files" != no; then
6477 cat >>confdefs.h <<_ACEOF
6478 #define _LARGE_FILES $ac_cv_sys_large_files
6479 _ACEOF
6482 rm -f conftest*
6485 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6486 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
6487 if test "${ac_cv_sys_largefile_source+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 while :; do
6491 ac_cv_sys_largefile_source=no
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <stdio.h>
6500 main ()
6502 return !fseeko;
6504 return 0;
6506 _ACEOF
6507 rm -f conftest.$ac_objext
6508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6509 (eval $ac_compile) 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -z "$ac_c_werror_flag"
6517 || test ! -s conftest.err'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 (eval $ac_try) 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; } &&
6523 { ac_try='test -s conftest.$ac_objext'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 break
6530 else
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #define _LARGEFILE_SOURCE 1
6543 #include <stdio.h>
6545 main ()
6547 return !fseeko;
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_sys_largefile_source=1; break
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581 break
6582 done
6584 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
6585 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
6586 if test "$ac_cv_sys_largefile_source" != no; then
6588 cat >>confdefs.h <<_ACEOF
6589 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6590 _ACEOF
6593 rm -f conftest*
6595 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6596 # in glibc 2.1.3, but that breaks too many other things.
6597 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6598 echo "$as_me:$LINENO: checking for fseeko" >&5
6599 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
6600 if test "${ac_cv_func_fseeko+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h. */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <stdio.h>
6611 main ()
6613 return fseeko && fseeko (stdin, 0, 0);
6615 return 0;
6617 _ACEOF
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6620 (eval $ac_link) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest$ac_exeext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_func_fseeko=yes
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_cv_func_fseeko=no
6647 rm -f conftest.err conftest.$ac_objext \
6648 conftest$ac_exeext conftest.$ac_ext
6650 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
6651 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
6652 if test $ac_cv_func_fseeko = yes; then
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_FSEEKO 1
6656 _ACEOF
6661 for ac_func in fseek64
6663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6664 echo "$as_me:$LINENO: checking for $ac_func" >&5
6665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6666 if eval "test \"\${$as_ac_var+set}\" = set"; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6677 #define $ac_func innocuous_$ac_func
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char $ac_func (); below.
6681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6682 <limits.h> exists even on freestanding compilers. */
6684 #ifdef __STDC__
6685 # include <limits.h>
6686 #else
6687 # include <assert.h>
6688 #endif
6690 #undef $ac_func
6692 /* Override any gcc2 internal prototype to avoid an error. */
6693 #ifdef __cplusplus
6694 extern "C"
6696 #endif
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6699 char $ac_func ();
6700 /* The GNU C library defines this for functions which it implements
6701 to always fail with ENOSYS. Some functions are actually named
6702 something starting with __ and the normal name is an alias. */
6703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6704 choke me
6705 #else
6706 char (*f) () = $ac_func;
6707 #endif
6708 #ifdef __cplusplus
6710 #endif
6713 main ()
6715 return f != $ac_func;
6717 return 0;
6719 _ACEOF
6720 rm -f conftest.$ac_objext conftest$ac_exeext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try='test -z "$ac_c_werror_flag"
6730 || test ! -s conftest.err'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6732 (eval $ac_try) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; } &&
6736 { ac_try='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 eval "$as_ac_var=yes"
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6747 eval "$as_ac_var=no"
6749 rm -f conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6754 if test `eval echo '${'$as_ac_var'}'` = yes; then
6755 cat >>confdefs.h <<_ACEOF
6756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6757 _ACEOF
6758 xpdf_cv_func_fseek64=yes
6759 else
6760 xpdf_cv_func_fseek64=no
6762 done
6765 for ac_func in ftell64
6767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6768 echo "$as_me:$LINENO: checking for $ac_func" >&5
6769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_var+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6781 #define $ac_func innocuous_$ac_func
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. */
6788 #ifdef __STDC__
6789 # include <limits.h>
6790 #else
6791 # include <assert.h>
6792 #endif
6794 #undef $ac_func
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 #ifdef __cplusplus
6798 extern "C"
6800 #endif
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6803 char $ac_func ();
6804 /* The GNU C library defines this for functions which it implements
6805 to always fail with ENOSYS. Some functions are actually named
6806 something starting with __ and the normal name is an alias. */
6807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808 choke me
6809 #else
6810 char (*f) () = $ac_func;
6811 #endif
6812 #ifdef __cplusplus
6814 #endif
6817 main ()
6819 return f != $ac_func;
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_c_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest$ac_exeext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 eval "$as_ac_var=yes"
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 eval "$as_ac_var=no"
6853 rm -f conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6858 if test `eval echo '${'$as_ac_var'}'` = yes; then
6859 cat >>confdefs.h <<_ACEOF
6860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6861 _ACEOF
6862 xpdf_cv_func_ftell64=yes
6863 else
6864 xpdf_cv_func_ftell64=no
6866 done
6868 if test "$xpdf_cv_func_fseek64" = yes -a "$xpdf_cv_func_ftell64" = yes; then
6869 cat >>confdefs.h <<\_ACEOF
6870 #define HAVE_FSEEK64 1
6871 _ACEOF
6875 if test -z "$no_x"; then
6876 echo "$as_me:$LINENO: checking for egrep" >&5
6877 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6878 if test "${ac_cv_prog_egrep+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6882 then ac_cv_prog_egrep='grep -E'
6883 else ac_cv_prog_egrep='egrep'
6886 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6887 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6888 EGREP=$ac_cv_prog_egrep
6891 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6892 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6893 if test "${ac_cv_header_stdc+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <stdlib.h>
6903 #include <stdarg.h>
6904 #include <string.h>
6905 #include <float.h>
6908 main ()
6912 return 0;
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try='test -z "$ac_c_werror_flag"
6925 || test ! -s conftest.err'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927 (eval $ac_try) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; } &&
6931 { ac_try='test -s conftest.$ac_objext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_header_stdc=yes
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ac_cv_header_stdc=no
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 if test $ac_cv_header_stdc = yes; then
6947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h. */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 #include <string.h>
6956 _ACEOF
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "memchr" >/dev/null 2>&1; then
6960 else
6961 ac_cv_header_stdc=no
6963 rm -f conftest*
6967 if test $ac_cv_header_stdc = yes; then
6968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <stdlib.h>
6977 _ACEOF
6978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6979 $EGREP "free" >/dev/null 2>&1; then
6981 else
6982 ac_cv_header_stdc=no
6984 rm -f conftest*
6988 if test $ac_cv_header_stdc = yes; then
6989 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6990 if test "$cross_compiling" = yes; then
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <ctype.h>
7000 #if ((' ' & 0x0FF) == 0x020)
7001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7003 #else
7004 # define ISLOWER(c) \
7005 (('a' <= (c) && (c) <= 'i') \
7006 || ('j' <= (c) && (c) <= 'r') \
7007 || ('s' <= (c) && (c) <= 'z'))
7008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7009 #endif
7011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7013 main ()
7015 int i;
7016 for (i = 0; i < 256; i++)
7017 if (XOR (islower (i), ISLOWER (i))
7018 || toupper (i) != TOUPPER (i))
7019 exit(2);
7020 exit (0);
7022 _ACEOF
7023 rm -f conftest$ac_exeext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025 (eval $ac_link) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7035 else
7036 echo "$as_me: program exited with status $ac_status" >&5
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7040 ( exit $ac_status )
7041 ac_cv_header_stdc=no
7043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7047 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7048 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7049 if test $ac_cv_header_stdc = yes; then
7051 cat >>confdefs.h <<\_ACEOF
7052 #define STDC_HEADERS 1
7053 _ACEOF
7057 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7067 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7068 inttypes.h stdint.h unistd.h
7070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071 echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7084 #include <$ac_header>
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088 (eval $ac_compile) 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -z "$ac_c_werror_flag"
7096 || test ! -s conftest.err'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } &&
7102 { ac_try='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 eval "$as_ac_Header=yes"
7109 else
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 eval "$as_ac_Header=no"
7115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7120 cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122 _ACEOF
7126 done
7147 # Check whether --with-Xpm-library or --without-Xpm-library was given.
7148 if test "${with_Xpm_library+set}" = set; then
7149 withval="$with_Xpm_library"
7150 smr_cv_with_Xpm_library=$withval
7153 echo "$as_me:$LINENO: checking whether to use Xpm library" >&5
7154 echo $ECHO_N "checking whether to use Xpm library... $ECHO_C" >&6
7155 if test "${smr_cv_with_Xpm_library+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158 smr_cv_with_Xpm_library=maybe
7160 echo "$as_me:$LINENO: result: $smr_cv_with_Xpm_library" >&5
7161 echo "${ECHO_T}$smr_cv_with_Xpm_library" >&6
7164 case x"$smr_cv_with_Xpm_library" in
7165 xyes | xmaybe)
7166 Xpm_LIBS="-lXpm"
7167 with_Xpm=$smr_cv_with_Xpm_library
7169 xno)
7170 Xpm_LIBS=
7171 with_Xpm=no
7174 if test -f "$smr_cv_with_Xpm_library"; then
7175 Xpm_LIBS=$smr_cv_with_Xpm_library
7176 elif test -d "$smr_cv_with_Xpm_library"; then
7177 Xpm_LIBS="-L$smr_cv_with_Xpm_library -lXpm"
7178 else
7179 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
7180 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
7181 { (exit 1); exit 1; }; }
7183 with_Xpm=yes
7185 esac
7193 if test ! x"$with_Xpm" = xno; then
7195 # If we got this far, then the user didn't explicitly ask not to use
7196 # the library.
7205 # Check whether --with-Xpm-includes or --without-Xpm-includes was given.
7206 if test "${with_Xpm_includes+set}" = set; then
7207 withval="$with_Xpm_includes"
7208 smr_cv_with_Xpm_includes=$withval
7211 echo "$as_me:$LINENO: checking where to find the Xpm header files" >&5
7212 echo $ECHO_N "checking where to find the Xpm header files... $ECHO_C" >&6
7213 if test "${smr_cv_with_Xpm_includes+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 smr_cv_with_Xpm_includes=
7218 echo "$as_me:$LINENO: result: $smr_cv_with_Xpm_includes" >&5
7219 echo "${ECHO_T}$smr_cv_with_Xpm_includes" >&6
7221 if test ! x"$smr_cv_with_Xpm_includes" = x; then
7222 if test -d "$smr_cv_with_Xpm_includes"; then
7223 Xpm_CFLAGS="-I$smr_cv_with_Xpm_includes"
7224 else
7225 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
7226 echo "$as_me: error: argument must be a directory" >&2;}
7227 { (exit 1); exit 1; }; }
7229 else
7230 Xpm_CFLAGS=
7233 smr_test_CPPFLAGS="${CPPFLAGS+set}"
7234 smr_save_CPPFLAGS="$CPPFLAGS"
7235 CPPFLAGS="$CPPFLAGS $Xpm_CFLAGS $X_CFLAGS"
7238 for ac_header in X11/xpm.h
7240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242 echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7249 else
7250 # Is the header compilable?
7251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7260 #include <$ac_header>
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_header_compiler=yes
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7289 ac_header_compiler=no
7291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7293 echo "${ECHO_T}$ac_header_compiler" >&6
7295 # Is the header present?
7296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <$ac_header>
7305 _ACEOF
7306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } >/dev/null; then
7314 if test -s conftest.err; then
7315 ac_cpp_err=$ac_c_preproc_warn_flag
7316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7317 else
7318 ac_cpp_err=
7320 else
7321 ac_cpp_err=yes
7323 if test -z "$ac_cpp_err"; then
7324 ac_header_preproc=yes
7325 else
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 ac_header_preproc=no
7331 rm -f conftest.err conftest.$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7333 echo "${ECHO_T}$ac_header_preproc" >&6
7335 # So? What about this header?
7336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7337 yes:no: )
7338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7342 ac_header_preproc=yes
7344 no:yes:* )
7345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7358 cat <<\_ASBOX
7359 ## ------------------------------------------ ##
7360 ## Report this to the AC_PACKAGE_NAME lists. ##
7361 ## ------------------------------------------ ##
7362 _ASBOX
7364 sed "s/^/$as_me: WARNING: /" >&2
7366 esac
7367 echo "$as_me:$LINENO: checking for $ac_header" >&5
7368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372 eval "$as_ac_Header=\$ac_header_preproc"
7374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7379 cat >>confdefs.h <<_ACEOF
7380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7381 _ACEOF
7382 smr_have_Xpm_header=yes
7383 else
7384 smr_have_Xpm_header=no
7387 done
7390 if test x"$smr_test_CPPFLAGS" = xset; then
7391 CPPFLAGS=$smr_save_CPPFLAGS
7392 else
7393 unset CPPFLAGS
7402 # We need only look for the library if the header has been found
7403 # (or no header is needed).
7404 if test $smr_have_Xpm_header != no; then
7406 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7407 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
7408 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411 ac_check_lib_save_LIBS=$LIBS
7412 LIBS="-lXpm $Xpm_CFLAGS $X_CFLAGS $Xpm_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7420 /* Override any gcc2 internal prototype to avoid an error. */
7421 #ifdef __cplusplus
7422 extern "C"
7423 #endif
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7426 char XpmCreatePixmapFromData ();
7428 main ()
7430 XpmCreatePixmapFromData ();
7432 return 0;
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7464 rm -f conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 LIBS=$ac_check_lib_save_LIBS
7468 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7469 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
7470 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7471 smr_have_Xpm_library=yes
7472 else
7473 smr_have_Xpm_library=no
7478 if test x"$smr_have_Xpm_library" = xyes; then
7479 echo "$as_me:$LINENO: result: using Xpm library" >&5
7480 echo "${ECHO_T}using Xpm library" >&6
7481 else
7482 Xpm_LIBS=
7483 Xpm_CFLAGS=
7485 if test x"$with_Xpm" = xmaybe; then
7486 echo "$as_me:$LINENO: result: not using Xpm library" >&5
7487 echo "${ECHO_T}not using Xpm library" >&6
7488 else
7489 { echo "$as_me:$LINENO: WARNING: requested Xpm library not found!" >&5
7490 echo "$as_me: WARNING: requested Xpm library not found!" >&2;}
7509 if test -z "$no_x"; then
7528 # Check whether --with-Xext-library or --without-Xext-library was given.
7529 if test "${with_Xext_library+set}" = set; then
7530 withval="$with_Xext_library"
7531 smr_cv_with_Xext_library=$withval
7534 echo "$as_me:$LINENO: checking whether to use Xext library" >&5
7535 echo $ECHO_N "checking whether to use Xext library... $ECHO_C" >&6
7536 if test "${smr_cv_with_Xext_library+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 smr_cv_with_Xext_library=maybe
7541 echo "$as_me:$LINENO: result: $smr_cv_with_Xext_library" >&5
7542 echo "${ECHO_T}$smr_cv_with_Xext_library" >&6
7545 case x"$smr_cv_with_Xext_library" in
7546 xyes | xmaybe)
7547 Xext_LIBS="-lXext"
7548 with_Xext=$smr_cv_with_Xext_library
7550 xno)
7551 Xext_LIBS=
7552 with_Xext=no
7555 if test -f "$smr_cv_with_Xext_library"; then
7556 Xext_LIBS=$smr_cv_with_Xext_library
7557 elif test -d "$smr_cv_with_Xext_library"; then
7558 Xext_LIBS="-L$smr_cv_with_Xext_library -lXext"
7559 else
7560 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
7561 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
7562 { (exit 1); exit 1; }; }
7564 with_Xext=yes
7566 esac
7574 if test ! x"$with_Xext" = xno; then
7576 # If we got this far, then the user didn't explicitly ask not to use
7577 # the library.
7586 # Check whether --with-Xext-includes or --without-Xext-includes was given.
7587 if test "${with_Xext_includes+set}" = set; then
7588 withval="$with_Xext_includes"
7589 smr_cv_with_Xext_includes=$withval
7592 echo "$as_me:$LINENO: checking where to find the Xext header files" >&5
7593 echo $ECHO_N "checking where to find the Xext header files... $ECHO_C" >&6
7594 if test "${smr_cv_with_Xext_includes+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597 smr_cv_with_Xext_includes=
7599 echo "$as_me:$LINENO: result: $smr_cv_with_Xext_includes" >&5
7600 echo "${ECHO_T}$smr_cv_with_Xext_includes" >&6
7602 if test ! x"$smr_cv_with_Xext_includes" = x; then
7603 if test -d "$smr_cv_with_Xext_includes"; then
7604 Xext_CFLAGS="-I$smr_cv_with_Xext_includes"
7605 else
7606 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
7607 echo "$as_me: error: argument must be a directory" >&2;}
7608 { (exit 1); exit 1; }; }
7610 else
7611 Xext_CFLAGS=
7614 smr_test_CPPFLAGS="${CPPFLAGS+set}"
7615 smr_save_CPPFLAGS="$CPPFLAGS"
7616 CPPFLAGS="$CPPFLAGS $Xext_CFLAGS $X_CFLAGS"
7619 for ac_header in X11/Xlib.h
7621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7623 echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7630 else
7631 # Is the header compilable?
7632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 $ac_includes_default
7641 #include <$ac_header>
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 ac_header_compiler=yes
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_header_compiler=no
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7674 echo "${ECHO_T}$ac_header_compiler" >&6
7676 # Is the header present?
7677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <$ac_header>
7686 _ACEOF
7687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } >/dev/null; then
7695 if test -s conftest.err; then
7696 ac_cpp_err=$ac_c_preproc_warn_flag
7697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7698 else
7699 ac_cpp_err=
7701 else
7702 ac_cpp_err=yes
7704 if test -z "$ac_cpp_err"; then
7705 ac_header_preproc=yes
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_header_preproc=no
7712 rm -f conftest.err conftest.$ac_ext
7713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7714 echo "${ECHO_T}$ac_header_preproc" >&6
7716 # So? What about this header?
7717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7718 yes:no: )
7719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7723 ac_header_preproc=yes
7725 no:yes:* )
7726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7739 cat <<\_ASBOX
7740 ## ------------------------------------------ ##
7741 ## Report this to the AC_PACKAGE_NAME lists. ##
7742 ## ------------------------------------------ ##
7743 _ASBOX
7745 sed "s/^/$as_me: WARNING: /" >&2
7747 esac
7748 echo "$as_me:$LINENO: checking for $ac_header" >&5
7749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 eval "$as_ac_Header=\$ac_header_preproc"
7755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7760 cat >>confdefs.h <<_ACEOF
7761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7762 _ACEOF
7763 smr_have_Xext_header=yes
7764 else
7765 smr_have_Xext_header=no
7768 done
7771 if test x"$smr_test_CPPFLAGS" = xset; then
7772 CPPFLAGS=$smr_save_CPPFLAGS
7773 else
7774 unset CPPFLAGS
7783 # We need only look for the library if the header has been found
7784 # (or no header is needed).
7785 if test $smr_have_Xext_header != no; then
7787 echo "$as_me:$LINENO: checking for XextAddDisplay in -lXext" >&5
7788 echo $ECHO_N "checking for XextAddDisplay in -lXext... $ECHO_C" >&6
7789 if test "${ac_cv_lib_Xext_XextAddDisplay+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 ac_check_lib_save_LIBS=$LIBS
7793 LIBS="-lXext $Xext_CFLAGS $X_CFLAGS $Xext_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h. */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7801 /* Override any gcc2 internal prototype to avoid an error. */
7802 #ifdef __cplusplus
7803 extern "C"
7804 #endif
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7807 char XextAddDisplay ();
7809 main ()
7811 XextAddDisplay ();
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_Xext_XextAddDisplay=yes
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_lib_Xext_XextAddDisplay=no
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
7850 echo "${ECHO_T}$ac_cv_lib_Xext_XextAddDisplay" >&6
7851 if test $ac_cv_lib_Xext_XextAddDisplay = yes; then
7852 smr_have_Xext_library=yes
7853 else
7854 smr_have_Xext_library=no
7859 if test x"$smr_have_Xext_library" = xyes; then
7860 echo "$as_me:$LINENO: result: using Xext library" >&5
7861 echo "${ECHO_T}using Xext library" >&6
7862 else
7863 Xext_LIBS=
7864 Xext_CFLAGS=
7866 if test x"$with_Xext" = xmaybe; then
7867 echo "$as_me:$LINENO: result: not using Xext library" >&5
7868 echo "${ECHO_T}not using Xext library" >&6
7869 else
7870 { echo "$as_me:$LINENO: WARNING: requested Xext library not found!" >&5
7871 echo "$as_me: WARNING: requested Xext library not found!" >&2;}
7906 # Check whether --with-Xp-library or --without-Xp-library was given.
7907 if test "${with_Xp_library+set}" = set; then
7908 withval="$with_Xp_library"
7909 smr_cv_with_Xp_library=$withval
7912 echo "$as_me:$LINENO: checking whether to use Xp library" >&5
7913 echo $ECHO_N "checking whether to use Xp library... $ECHO_C" >&6
7914 if test "${smr_cv_with_Xp_library+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 smr_cv_with_Xp_library=maybe
7919 echo "$as_me:$LINENO: result: $smr_cv_with_Xp_library" >&5
7920 echo "${ECHO_T}$smr_cv_with_Xp_library" >&6
7923 case x"$smr_cv_with_Xp_library" in
7924 xyes | xmaybe)
7925 Xp_LIBS="-lXp"
7926 with_Xp=$smr_cv_with_Xp_library
7928 xno)
7929 Xp_LIBS=
7930 with_Xp=no
7933 if test -f "$smr_cv_with_Xp_library"; then
7934 Xp_LIBS=$smr_cv_with_Xp_library
7935 elif test -d "$smr_cv_with_Xp_library"; then
7936 Xp_LIBS="-L$smr_cv_with_Xp_library -lXp"
7937 else
7938 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
7939 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
7940 { (exit 1); exit 1; }; }
7942 with_Xp=yes
7944 esac
7952 if test ! x"$with_Xp" = xno; then
7954 # If we got this far, then the user didn't explicitly ask not to use
7955 # the library.
7964 # Check whether --with-Xp-includes or --without-Xp-includes was given.
7965 if test "${with_Xp_includes+set}" = set; then
7966 withval="$with_Xp_includes"
7967 smr_cv_with_Xp_includes=$withval
7970 echo "$as_me:$LINENO: checking where to find the Xp header files" >&5
7971 echo $ECHO_N "checking where to find the Xp header files... $ECHO_C" >&6
7972 if test "${smr_cv_with_Xp_includes+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975 smr_cv_with_Xp_includes=
7977 echo "$as_me:$LINENO: result: $smr_cv_with_Xp_includes" >&5
7978 echo "${ECHO_T}$smr_cv_with_Xp_includes" >&6
7980 if test ! x"$smr_cv_with_Xp_includes" = x; then
7981 if test -d "$smr_cv_with_Xp_includes"; then
7982 Xp_CFLAGS="-I$smr_cv_with_Xp_includes"
7983 else
7984 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
7985 echo "$as_me: error: argument must be a directory" >&2;}
7986 { (exit 1); exit 1; }; }
7988 else
7989 Xp_CFLAGS=
7992 smr_test_CPPFLAGS="${CPPFLAGS+set}"
7993 smr_save_CPPFLAGS="$CPPFLAGS"
7994 CPPFLAGS="$CPPFLAGS $Xp_CFLAGS $X_CFLAGS"
7997 for ac_header in X11/extensions/Print.h
7999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8001 echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8008 else
8009 # Is the header compilable?
8010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #include <$ac_header>
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8023 (eval $ac_compile) 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -z "$ac_c_werror_flag"
8031 || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest.$ac_objext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 (eval $ac_try) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 ac_header_compiler=yes
8044 else
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_header_compiler=no
8050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8052 echo "${ECHO_T}$ac_header_compiler" >&6
8054 # Is the header present?
8055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <$ac_header>
8064 _ACEOF
8065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } >/dev/null; then
8073 if test -s conftest.err; then
8074 ac_cpp_err=$ac_c_preproc_warn_flag
8075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8076 else
8077 ac_cpp_err=
8079 else
8080 ac_cpp_err=yes
8082 if test -z "$ac_cpp_err"; then
8083 ac_header_preproc=yes
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_header_preproc=no
8090 rm -f conftest.err conftest.$ac_ext
8091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8092 echo "${ECHO_T}$ac_header_preproc" >&6
8094 # So? What about this header?
8095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8096 yes:no: )
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8101 ac_header_preproc=yes
8103 no:yes:* )
8104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8117 cat <<\_ASBOX
8118 ## ------------------------------------------ ##
8119 ## Report this to the AC_PACKAGE_NAME lists. ##
8120 ## ------------------------------------------ ##
8121 _ASBOX
8123 sed "s/^/$as_me: WARNING: /" >&2
8125 esac
8126 echo "$as_me:$LINENO: checking for $ac_header" >&5
8127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131 eval "$as_ac_Header=\$ac_header_preproc"
8133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8138 cat >>confdefs.h <<_ACEOF
8139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8140 _ACEOF
8141 smr_have_Xp_header=yes
8142 else
8143 smr_have_Xp_header=no
8146 done
8149 if test x"$smr_test_CPPFLAGS" = xset; then
8150 CPPFLAGS=$smr_save_CPPFLAGS
8151 else
8152 unset CPPFLAGS
8161 # We need only look for the library if the header has been found
8162 # (or no header is needed).
8163 if test $smr_have_Xp_header != no; then
8165 echo "$as_me:$LINENO: checking for XpStartPage in -lXp" >&5
8166 echo $ECHO_N "checking for XpStartPage in -lXp... $ECHO_C" >&6
8167 if test "${ac_cv_lib_Xp_XpStartPage+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170 ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-lXp $Xp_CFLAGS $X_CFLAGS $Xp_LIBS $X_LIBS $X_PRE_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h. */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 #ifdef __cplusplus
8181 extern "C"
8182 #endif
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8185 char XpStartPage ();
8187 main ()
8189 XpStartPage ();
8191 return 0;
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8196 (eval $ac_link) 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -z "$ac_c_werror_flag"
8204 || test ! -s conftest.err'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; } &&
8210 { ac_try='test -s conftest$ac_exeext'
8211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 (eval $ac_try) 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
8216 ac_cv_lib_Xp_XpStartPage=yes
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 ac_cv_lib_Xp_XpStartPage=no
8223 rm -f conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
8225 LIBS=$ac_check_lib_save_LIBS
8227 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpStartPage" >&5
8228 echo "${ECHO_T}$ac_cv_lib_Xp_XpStartPage" >&6
8229 if test $ac_cv_lib_Xp_XpStartPage = yes; then
8230 smr_have_Xp_library=yes
8231 else
8232 smr_have_Xp_library=no
8237 if test x"$smr_have_Xp_library" = xyes; then
8238 echo "$as_me:$LINENO: result: using Xp library" >&5
8239 echo "${ECHO_T}using Xp library" >&6
8240 else
8241 Xp_LIBS=
8242 Xp_CFLAGS=
8244 if test x"$with_Xp" = xmaybe; then
8245 echo "$as_me:$LINENO: result: not using Xp library" >&5
8246 echo "${ECHO_T}not using Xp library" >&6
8247 else
8248 { echo "$as_me:$LINENO: WARNING: requested Xp library not found!" >&5
8249 echo "$as_me: WARNING: requested Xp library not found!" >&2;}
8284 # Check whether --with-Xt-library or --without-Xt-library was given.
8285 if test "${with_Xt_library+set}" = set; then
8286 withval="$with_Xt_library"
8287 smr_cv_with_Xt_library=$withval
8290 echo "$as_me:$LINENO: checking whether to use Xt library" >&5
8291 echo $ECHO_N "checking whether to use Xt library... $ECHO_C" >&6
8292 if test "${smr_cv_with_Xt_library+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 smr_cv_with_Xt_library=maybe
8297 echo "$as_me:$LINENO: result: $smr_cv_with_Xt_library" >&5
8298 echo "${ECHO_T}$smr_cv_with_Xt_library" >&6
8301 case x"$smr_cv_with_Xt_library" in
8302 xyes | xmaybe)
8303 Xt_LIBS="-lXt"
8304 with_Xt=$smr_cv_with_Xt_library
8306 xno)
8307 Xt_LIBS=
8308 with_Xt=no
8311 if test -f "$smr_cv_with_Xt_library"; then
8312 Xt_LIBS=$smr_cv_with_Xt_library
8313 elif test -d "$smr_cv_with_Xt_library"; then
8314 Xt_LIBS="-L$smr_cv_with_Xt_library -lXt"
8315 else
8316 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
8317 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
8318 { (exit 1); exit 1; }; }
8320 with_Xt=yes
8322 esac
8330 if test ! x"$with_Xt" = xno; then
8332 # If we got this far, then the user didn't explicitly ask not to use
8333 # the library.
8342 # Check whether --with-Xt-includes or --without-Xt-includes was given.
8343 if test "${with_Xt_includes+set}" = set; then
8344 withval="$with_Xt_includes"
8345 smr_cv_with_Xt_includes=$withval
8348 echo "$as_me:$LINENO: checking where to find the Xt header files" >&5
8349 echo $ECHO_N "checking where to find the Xt header files... $ECHO_C" >&6
8350 if test "${smr_cv_with_Xt_includes+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 smr_cv_with_Xt_includes=
8355 echo "$as_me:$LINENO: result: $smr_cv_with_Xt_includes" >&5
8356 echo "${ECHO_T}$smr_cv_with_Xt_includes" >&6
8358 if test ! x"$smr_cv_with_Xt_includes" = x; then
8359 if test -d "$smr_cv_with_Xt_includes"; then
8360 Xt_CFLAGS="-I$smr_cv_with_Xt_includes"
8361 else
8362 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
8363 echo "$as_me: error: argument must be a directory" >&2;}
8364 { (exit 1); exit 1; }; }
8366 else
8367 Xt_CFLAGS=
8370 smr_test_CPPFLAGS="${CPPFLAGS+set}"
8371 smr_save_CPPFLAGS="$CPPFLAGS"
8372 CPPFLAGS="$CPPFLAGS $Xt_CFLAGS $X_CFLAGS"
8375 for ac_header in X11/Intrinsic.h
8377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8379 echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8386 else
8387 # Is the header compilable?
8388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #include <$ac_header>
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_header_compiler=yes
8422 else
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_header_compiler=no
8428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8430 echo "${ECHO_T}$ac_header_compiler" >&6
8432 # Is the header present?
8433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h. */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 #include <$ac_header>
8442 _ACEOF
8443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } >/dev/null; then
8451 if test -s conftest.err; then
8452 ac_cpp_err=$ac_c_preproc_warn_flag
8453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8454 else
8455 ac_cpp_err=
8457 else
8458 ac_cpp_err=yes
8460 if test -z "$ac_cpp_err"; then
8461 ac_header_preproc=yes
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_header_preproc=no
8468 rm -f conftest.err conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8470 echo "${ECHO_T}$ac_header_preproc" >&6
8472 # So? What about this header?
8473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8474 yes:no: )
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8479 ac_header_preproc=yes
8481 no:yes:* )
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8495 cat <<\_ASBOX
8496 ## ------------------------------------------ ##
8497 ## Report this to the AC_PACKAGE_NAME lists. ##
8498 ## ------------------------------------------ ##
8499 _ASBOX
8501 sed "s/^/$as_me: WARNING: /" >&2
8503 esac
8504 echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 eval "$as_ac_Header=\$ac_header_preproc"
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8516 cat >>confdefs.h <<_ACEOF
8517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8518 _ACEOF
8519 smr_have_Xt_header=yes
8520 else
8521 smr_have_Xt_header=no
8524 done
8527 if test x"$smr_test_CPPFLAGS" = xset; then
8528 CPPFLAGS=$smr_save_CPPFLAGS
8529 else
8530 unset CPPFLAGS
8539 # We need only look for the library if the header has been found
8540 # (or no header is needed).
8541 if test $smr_have_Xt_header != no; then
8543 echo "$as_me:$LINENO: checking for XtAppInitialize in -lXt" >&5
8544 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
8545 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 ac_check_lib_save_LIBS=$LIBS
8549 LIBS="-lXt $Xt_CFLAGS $X_CFLAGS $Xt_LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8557 /* Override any gcc2 internal prototype to avoid an error. */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8563 char XtAppInitialize ();
8565 main ()
8567 XtAppInitialize ();
8569 return 0;
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_lib_Xt_XtAppInitialize=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_cv_lib_Xt_XtAppInitialize=no
8601 rm -f conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603 LIBS=$ac_check_lib_save_LIBS
8605 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
8606 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
8607 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
8608 smr_have_Xt_library=yes
8609 else
8610 smr_have_Xt_library=no
8615 if test x"$smr_have_Xt_library" = xyes; then
8616 echo "$as_me:$LINENO: result: using Xt library" >&5
8617 echo "${ECHO_T}using Xt library" >&6
8618 else
8619 Xt_LIBS=
8620 Xt_CFLAGS=
8622 if test x"$with_Xt" = xmaybe; then
8623 echo "$as_me:$LINENO: result: not using Xt library" >&5
8624 echo "${ECHO_T}not using Xt library" >&6
8625 else
8626 { echo "$as_me:$LINENO: WARNING: requested Xt library not found!" >&5
8627 echo "$as_me: WARNING: requested Xt library not found!" >&2;}
8662 # Check whether --with-Xm-library or --without-Xm-library was given.
8663 if test "${with_Xm_library+set}" = set; then
8664 withval="$with_Xm_library"
8665 smr_cv_with_Xm_library=$withval
8668 echo "$as_me:$LINENO: checking whether to use Xm library" >&5
8669 echo $ECHO_N "checking whether to use Xm library... $ECHO_C" >&6
8670 if test "${smr_cv_with_Xm_library+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673 smr_cv_with_Xm_library=maybe
8675 echo "$as_me:$LINENO: result: $smr_cv_with_Xm_library" >&5
8676 echo "${ECHO_T}$smr_cv_with_Xm_library" >&6
8679 case x"$smr_cv_with_Xm_library" in
8680 xyes | xmaybe)
8681 Xm_LIBS="-lXm"
8682 with_Xm=$smr_cv_with_Xm_library
8684 xno)
8685 Xm_LIBS=
8686 with_Xm=no
8689 if test -f "$smr_cv_with_Xm_library"; then
8690 Xm_LIBS=$smr_cv_with_Xm_library
8691 elif test -d "$smr_cv_with_Xm_library"; then
8692 Xm_LIBS="-L$smr_cv_with_Xm_library -lXm"
8693 else
8694 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
8695 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
8696 { (exit 1); exit 1; }; }
8698 with_Xm=yes
8700 esac
8708 if test ! x"$with_Xm" = xno; then
8710 # If we got this far, then the user didn't explicitly ask not to use
8711 # the library.
8720 # Check whether --with-Xm-includes or --without-Xm-includes was given.
8721 if test "${with_Xm_includes+set}" = set; then
8722 withval="$with_Xm_includes"
8723 smr_cv_with_Xm_includes=$withval
8726 echo "$as_me:$LINENO: checking where to find the Xm header files" >&5
8727 echo $ECHO_N "checking where to find the Xm header files... $ECHO_C" >&6
8728 if test "${smr_cv_with_Xm_includes+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731 smr_cv_with_Xm_includes=
8733 echo "$as_me:$LINENO: result: $smr_cv_with_Xm_includes" >&5
8734 echo "${ECHO_T}$smr_cv_with_Xm_includes" >&6
8736 if test ! x"$smr_cv_with_Xm_includes" = x; then
8737 if test -d "$smr_cv_with_Xm_includes"; then
8738 Xm_CFLAGS="-I$smr_cv_with_Xm_includes"
8739 else
8740 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
8741 echo "$as_me: error: argument must be a directory" >&2;}
8742 { (exit 1); exit 1; }; }
8744 else
8745 Xm_CFLAGS=
8748 smr_test_CPPFLAGS="${CPPFLAGS+set}"
8749 smr_save_CPPFLAGS="$CPPFLAGS"
8750 CPPFLAGS="$CPPFLAGS $Xm_CFLAGS $X_CFLAGS"
8753 for ac_header in Xm/XmAll.h
8755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757 echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8764 else
8765 # Is the header compilable?
8766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #include <$ac_header>
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_header_compiler=yes
8800 else
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_header_compiler=no
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8808 echo "${ECHO_T}$ac_header_compiler" >&6
8810 # Is the header present?
8811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 #include <$ac_header>
8820 _ACEOF
8821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } >/dev/null; then
8829 if test -s conftest.err; then
8830 ac_cpp_err=$ac_c_preproc_warn_flag
8831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8832 else
8833 ac_cpp_err=
8835 else
8836 ac_cpp_err=yes
8838 if test -z "$ac_cpp_err"; then
8839 ac_header_preproc=yes
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_header_preproc=no
8846 rm -f conftest.err conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8848 echo "${ECHO_T}$ac_header_preproc" >&6
8850 # So? What about this header?
8851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8852 yes:no: )
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8857 ac_header_preproc=yes
8859 no:yes:* )
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8873 cat <<\_ASBOX
8874 ## ------------------------------------------ ##
8875 ## Report this to the AC_PACKAGE_NAME lists. ##
8876 ## ------------------------------------------ ##
8877 _ASBOX
8879 sed "s/^/$as_me: WARNING: /" >&2
8881 esac
8882 echo "$as_me:$LINENO: checking for $ac_header" >&5
8883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 eval "$as_ac_Header=\$ac_header_preproc"
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8897 smr_have_Xm_header=yes
8898 else
8899 smr_have_Xm_header=no
8902 done
8905 if test x"$smr_test_CPPFLAGS" = xset; then
8906 CPPFLAGS=$smr_save_CPPFLAGS
8907 else
8908 unset CPPFLAGS
8917 # We need only look for the library if the header has been found
8918 # (or no header is needed).
8919 if test $smr_have_Xm_header != no; then
8921 echo "$as_me:$LINENO: checking for XmCreateForm in -lXm" >&5
8922 echo $ECHO_N "checking for XmCreateForm in -lXm... $ECHO_C" >&6
8923 if test "${ac_cv_lib_Xm_XmCreateForm+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lXm $Xm_CFLAGS $X_CFLAGS $Xm_LIBS $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 /* Override any gcc2 internal prototype to avoid an error. */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 /* We use char because int might match the return type of a gcc2
8940 builtin and then its argument prototype would still apply. */
8941 char XmCreateForm ();
8943 main ()
8945 XmCreateForm ();
8947 return 0;
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 (eval $ac_try) 2>&5
8969 ac_status=$?
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_lib_Xm_XmCreateForm=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_lib_Xm_XmCreateForm=no
8979 rm -f conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8981 LIBS=$ac_check_lib_save_LIBS
8983 echo "$as_me:$LINENO: result: $ac_cv_lib_Xm_XmCreateForm" >&5
8984 echo "${ECHO_T}$ac_cv_lib_Xm_XmCreateForm" >&6
8985 if test $ac_cv_lib_Xm_XmCreateForm = yes; then
8986 smr_have_Xm_library=yes
8987 else
8988 smr_have_Xm_library=no
8993 if test x"$smr_have_Xm_library" = xyes; then
8994 echo "$as_me:$LINENO: result: using Xm library" >&5
8995 echo "${ECHO_T}using Xm library" >&6
8996 else
8997 Xm_LIBS=
8998 Xm_CFLAGS=
9000 if test x"$with_Xm" = xmaybe; then
9001 echo "$as_me:$LINENO: result: not using Xm library" >&5
9002 echo "${ECHO_T}not using Xm library" >&6
9003 else
9004 { echo "$as_me:$LINENO: WARNING: requested Xm library not found!" >&5
9005 echo "$as_me: WARNING: requested Xm library not found!" >&2;}
9040 # Check whether --with-Sgm-library or --without-Sgm-library was given.
9041 if test "${with_Sgm_library+set}" = set; then
9042 withval="$with_Sgm_library"
9043 smr_cv_with_Sgm_library=$withval
9046 echo "$as_me:$LINENO: checking whether to use Sgm library" >&5
9047 echo $ECHO_N "checking whether to use Sgm library... $ECHO_C" >&6
9048 if test "${smr_cv_with_Sgm_library+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 smr_cv_with_Sgm_library=maybe
9053 echo "$as_me:$LINENO: result: $smr_cv_with_Sgm_library" >&5
9054 echo "${ECHO_T}$smr_cv_with_Sgm_library" >&6
9057 case x"$smr_cv_with_Sgm_library" in
9058 xyes | xmaybe)
9059 Sgm_LIBS="-lSgm"
9060 with_Sgm=$smr_cv_with_Sgm_library
9062 xno)
9063 Sgm_LIBS=
9064 with_Sgm=no
9067 if test -f "$smr_cv_with_Sgm_library"; then
9068 Sgm_LIBS=$smr_cv_with_Sgm_library
9069 elif test -d "$smr_cv_with_Sgm_library"; then
9070 Sgm_LIBS="-L$smr_cv_with_Sgm_library -lSgm"
9071 else
9072 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
9073 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
9074 { (exit 1); exit 1; }; }
9076 with_Sgm=yes
9078 esac
9086 if test ! x"$with_Sgm" = xno; then
9088 # If we got this far, then the user didn't explicitly ask not to use
9089 # the library.
9098 # Check whether --with-Sgm-includes or --without-Sgm-includes was given.
9099 if test "${with_Sgm_includes+set}" = set; then
9100 withval="$with_Sgm_includes"
9101 smr_cv_with_Sgm_includes=$withval
9104 echo "$as_me:$LINENO: checking where to find the Sgm header files" >&5
9105 echo $ECHO_N "checking where to find the Sgm header files... $ECHO_C" >&6
9106 if test "${smr_cv_with_Sgm_includes+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 smr_cv_with_Sgm_includes=
9111 echo "$as_me:$LINENO: result: $smr_cv_with_Sgm_includes" >&5
9112 echo "${ECHO_T}$smr_cv_with_Sgm_includes" >&6
9114 if test ! x"$smr_cv_with_Sgm_includes" = x; then
9115 if test -d "$smr_cv_with_Sgm_includes"; then
9116 Sgm_CFLAGS="-I$smr_cv_with_Sgm_includes"
9117 else
9118 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
9119 echo "$as_me: error: argument must be a directory" >&2;}
9120 { (exit 1); exit 1; }; }
9122 else
9123 Sgm_CFLAGS=
9126 smr_test_CPPFLAGS="${CPPFLAGS+set}"
9127 smr_save_CPPFLAGS="$CPPFLAGS"
9128 CPPFLAGS="$CPPFLAGS $Sgm_CFLAGS $X_CFLAGS"
9131 for ac_header in Sgm/HPanedW.h
9133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135 echo "$as_me:$LINENO: checking for $ac_header" >&5
9136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9142 else
9143 # Is the header compilable?
9144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #include <$ac_header>
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler=yes
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_compiler=no
9184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186 echo "${ECHO_T}$ac_header_compiler" >&6
9188 # Is the header present?
9189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h. */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 #include <$ac_header>
9198 _ACEOF
9199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev/null; then
9207 if test -s conftest.err; then
9208 ac_cpp_err=$ac_c_preproc_warn_flag
9209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9210 else
9211 ac_cpp_err=
9213 else
9214 ac_cpp_err=yes
9216 if test -z "$ac_cpp_err"; then
9217 ac_header_preproc=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_header_preproc=no
9224 rm -f conftest.err conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226 echo "${ECHO_T}$ac_header_preproc" >&6
9228 # So? What about this header?
9229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230 yes:no: )
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc=yes
9237 no:yes:* )
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9251 cat <<\_ASBOX
9252 ## ------------------------------------------ ##
9253 ## Report this to the AC_PACKAGE_NAME lists. ##
9254 ## ------------------------------------------ ##
9255 _ASBOX
9257 sed "s/^/$as_me: WARNING: /" >&2
9259 esac
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265 eval "$as_ac_Header=\$ac_header_preproc"
9267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274 _ACEOF
9275 smr_have_Sgm_header=yes
9276 else
9277 smr_have_Sgm_header=no
9280 done
9283 if test x"$smr_test_CPPFLAGS" = xset; then
9284 CPPFLAGS=$smr_save_CPPFLAGS
9285 else
9286 unset CPPFLAGS
9295 # We need only look for the library if the header has been found
9296 # (or no header is needed).
9297 if test $smr_have_Sgm_header != no; then
9299 echo "$as_me:$LINENO: checking for SgCreateHorzPanedWindow in -lSgm" >&5
9300 echo $ECHO_N "checking for SgCreateHorzPanedWindow in -lSgm... $ECHO_C" >&6
9301 if test "${ac_cv_lib_Sgm_SgCreateHorzPanedWindow+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304 ac_check_lib_save_LIBS=$LIBS
9305 LIBS="-lSgm $Sgm_CFLAGS $X_CFLAGS $Sgm_LIBS $Xm_LIBS $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9313 /* Override any gcc2 internal prototype to avoid an error. */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9319 char SgCreateHorzPanedWindow ();
9321 main ()
9323 SgCreateHorzPanedWindow ();
9325 return 0;
9327 _ACEOF
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_lib_Sgm_SgCreateHorzPanedWindow=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_cv_lib_Sgm_SgCreateHorzPanedWindow=no
9357 rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9361 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateHorzPanedWindow" >&5
9362 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateHorzPanedWindow" >&6
9363 if test $ac_cv_lib_Sgm_SgCreateHorzPanedWindow = yes; then
9364 smr_have_Sgm_library=yes
9365 else
9366 smr_have_Sgm_library=no
9371 if test x"$smr_have_Sgm_library" = xyes; then
9372 echo "$as_me:$LINENO: result: using Sgm library" >&5
9373 echo "${ECHO_T}using Sgm library" >&6
9374 else
9375 Sgm_LIBS=
9376 Sgm_CFLAGS=
9378 if test x"$with_Sgm" = xmaybe; then
9379 echo "$as_me:$LINENO: result: not using Sgm library" >&5
9380 echo "${ECHO_T}not using Sgm library" >&6
9381 else
9382 { echo "$as_me:$LINENO: WARNING: requested Sgm library not found!" >&5
9383 echo "$as_me: WARNING: requested Sgm library not found!" >&2;}
9401 if test "x$smr_have_Xt_library" = xyes; then
9402 echo "$as_me:$LINENO: checking for XtAppSetExitFlag in -lXt" >&5
9403 echo $ECHO_N "checking for XtAppSetExitFlag in -lXt... $ECHO_C" >&6
9404 if test "${ac_cv_lib_Xt_XtAppSetExitFlag+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407 ac_check_lib_save_LIBS=$LIBS
9408 LIBS="-lXt $Xt_LIBS $X_LIBS $X_PRE_LIBS $Xp_LIBS $Xext_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */
9422 char XtAppSetExitFlag ();
9424 main ()
9426 XtAppSetExitFlag ();
9428 return 0;
9430 _ACEOF
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 (eval $ac_try) 2>&5
9444 ac_status=$?
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_lib_Xt_XtAppSetExitFlag=yes
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_lib_Xt_XtAppSetExitFlag=no
9460 rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 LIBS=$ac_check_lib_save_LIBS
9464 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtAppSetExitFlag" >&5
9465 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppSetExitFlag" >&6
9466 if test $ac_cv_lib_Xt_XtAppSetExitFlag = yes; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_XTAPPSETEXITFLAG 1
9469 _ACEOF
9494 # Check whether --with-t1-library or --without-t1-library was given.
9495 if test "${with_t1_library+set}" = set; then
9496 withval="$with_t1_library"
9497 smr_cv_with_t1_library=$withval
9500 echo "$as_me:$LINENO: checking whether to use t1 library" >&5
9501 echo $ECHO_N "checking whether to use t1 library... $ECHO_C" >&6
9502 if test "${smr_cv_with_t1_library+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 smr_cv_with_t1_library=maybe
9507 echo "$as_me:$LINENO: result: $smr_cv_with_t1_library" >&5
9508 echo "${ECHO_T}$smr_cv_with_t1_library" >&6
9511 case x"$smr_cv_with_t1_library" in
9512 xyes | xmaybe)
9513 t1_LIBS="-lt1"
9514 with_t1=$smr_cv_with_t1_library
9516 xno)
9517 t1_LIBS=
9518 with_t1=no
9521 if test -f "$smr_cv_with_t1_library"; then
9522 t1_LIBS=$smr_cv_with_t1_library
9523 elif test -d "$smr_cv_with_t1_library"; then
9524 t1_LIBS="-L$smr_cv_with_t1_library -lt1"
9525 else
9526 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
9527 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
9528 { (exit 1); exit 1; }; }
9530 with_t1=yes
9532 esac
9540 if test ! x"$with_t1" = xno; then
9542 # If we got this far, then the user didn't explicitly ask not to use
9543 # the library.
9552 # Check whether --with-t1-includes or --without-t1-includes was given.
9553 if test "${with_t1_includes+set}" = set; then
9554 withval="$with_t1_includes"
9555 smr_cv_with_t1_includes=$withval
9558 echo "$as_me:$LINENO: checking where to find the t1 header files" >&5
9559 echo $ECHO_N "checking where to find the t1 header files... $ECHO_C" >&6
9560 if test "${smr_cv_with_t1_includes+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 smr_cv_with_t1_includes=
9565 echo "$as_me:$LINENO: result: $smr_cv_with_t1_includes" >&5
9566 echo "${ECHO_T}$smr_cv_with_t1_includes" >&6
9568 if test ! x"$smr_cv_with_t1_includes" = x; then
9569 if test -d "$smr_cv_with_t1_includes"; then
9570 t1_CFLAGS="-I$smr_cv_with_t1_includes"
9571 else
9572 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
9573 echo "$as_me: error: argument must be a directory" >&2;}
9574 { (exit 1); exit 1; }; }
9576 else
9577 t1_CFLAGS=
9580 smr_test_CPPFLAGS="${CPPFLAGS+set}"
9581 smr_save_CPPFLAGS="$CPPFLAGS"
9582 CPPFLAGS="$CPPFLAGS $t1_CFLAGS $X_CFLAGS"
9585 for ac_header in t1lib.h
9587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9589 echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9596 else
9597 # Is the header compilable?
9598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $ac_includes_default
9607 #include <$ac_header>
9608 _ACEOF
9609 rm -f conftest.$ac_objext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>conftest.er1
9612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_compiler=no
9638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6
9642 # Is the header present?
9643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9652 _ACEOF
9653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } >/dev/null; then
9661 if test -s conftest.err; then
9662 ac_cpp_err=$ac_c_preproc_warn_flag
9663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9664 else
9665 ac_cpp_err=
9667 else
9668 ac_cpp_err=yes
9670 if test -z "$ac_cpp_err"; then
9671 ac_header_preproc=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_header_preproc=no
9678 rm -f conftest.err conftest.$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9682 # So? What about this header?
9683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9684 yes:no: )
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9689 ac_header_preproc=yes
9691 no:yes:* )
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9705 cat <<\_ASBOX
9706 ## ------------------------------------------ ##
9707 ## Report this to the AC_PACKAGE_NAME lists. ##
9708 ## ------------------------------------------ ##
9709 _ASBOX
9711 sed "s/^/$as_me: WARNING: /" >&2
9713 esac
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 eval "$as_ac_Header=\$ac_header_preproc"
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726 cat >>confdefs.h <<_ACEOF
9727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9728 _ACEOF
9729 smr_have_t1_header=yes
9730 else
9731 smr_have_t1_header=no
9734 done
9737 if test x"$smr_test_CPPFLAGS" = xset; then
9738 CPPFLAGS=$smr_save_CPPFLAGS
9739 else
9740 unset CPPFLAGS
9749 # We need only look for the library if the header has been found
9750 # (or no header is needed).
9751 if test $smr_have_t1_header != no; then
9753 echo "$as_me:$LINENO: checking for T1_InitLib in -lt1" >&5
9754 echo $ECHO_N "checking for T1_InitLib in -lt1... $ECHO_C" >&6
9755 if test "${ac_cv_lib_t1_T1_InitLib+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758 ac_check_lib_save_LIBS=$LIBS
9759 LIBS="-lt1 $t1_CFLAGS $X_CFLAGS $t1_LIBS -lm $LIBS"
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h. */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9767 /* Override any gcc2 internal prototype to avoid an error. */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 /* We use char because int might match the return type of a gcc2
9772 builtin and then its argument prototype would still apply. */
9773 char T1_InitLib ();
9775 main ()
9777 T1_InitLib ();
9779 return 0;
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784 (eval $ac_link) 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -z "$ac_c_werror_flag"
9792 || test ! -s conftest.err'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9804 ac_cv_lib_t1_T1_InitLib=yes
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_cv_lib_t1_T1_InitLib=no
9811 rm -f conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9815 echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_InitLib" >&5
9816 echo "${ECHO_T}$ac_cv_lib_t1_T1_InitLib" >&6
9817 if test $ac_cv_lib_t1_T1_InitLib = yes; then
9818 smr_have_t1_library=yes
9819 else
9820 smr_have_t1_library=no
9825 if test x"$smr_have_t1_library" = xyes; then
9826 echo "$as_me:$LINENO: result: using t1 library" >&5
9827 echo "${ECHO_T}using t1 library" >&6
9828 else
9829 t1_LIBS=
9830 t1_CFLAGS=
9832 if test x"$with_t1" = xmaybe; then
9833 echo "$as_me:$LINENO: result: not using t1 library" >&5
9834 echo "${ECHO_T}not using t1 library" >&6
9835 else
9836 { echo "$as_me:$LINENO: WARNING: requested t1 library not found!" >&5
9837 echo "$as_me: WARNING: requested t1 library not found!" >&2;}
9873 # Check whether --with-freetype2-library or --without-freetype2-library was given.
9874 if test "${with_freetype2_library+set}" = set; then
9875 withval="$with_freetype2_library"
9876 smr_cv_with_freetype2_library=$withval
9879 echo "$as_me:$LINENO: checking whether to use freetype2 library" >&5
9880 echo $ECHO_N "checking whether to use freetype2 library... $ECHO_C" >&6
9881 if test "${smr_cv_with_freetype2_library+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 smr_cv_with_freetype2_library=maybe
9886 echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_library" >&5
9887 echo "${ECHO_T}$smr_cv_with_freetype2_library" >&6
9890 case x"$smr_cv_with_freetype2_library" in
9891 xyes | xmaybe)
9892 freetype2_LIBS="-lfreetype"
9893 with_freetype2=$smr_cv_with_freetype2_library
9895 xno)
9896 freetype2_LIBS=
9897 with_freetype2=no
9900 if test -f "$smr_cv_with_freetype2_library"; then
9901 freetype2_LIBS=$smr_cv_with_freetype2_library
9902 elif test -d "$smr_cv_with_freetype2_library"; then
9903 freetype2_LIBS="-L$smr_cv_with_freetype2_library -lfreetype"
9904 else
9905 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
9906 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
9907 { (exit 1); exit 1; }; }
9909 with_freetype2=yes
9911 esac
9919 if test ! x"$with_freetype2" = xno; then
9921 # If we got this far, then the user didn't explicitly ask not to use
9922 # the library.
9931 # Check whether --with-freetype2-includes or --without-freetype2-includes was given.
9932 if test "${with_freetype2_includes+set}" = set; then
9933 withval="$with_freetype2_includes"
9934 smr_cv_with_freetype2_includes=$withval
9937 echo "$as_me:$LINENO: checking where to find the freetype2 header files" >&5
9938 echo $ECHO_N "checking where to find the freetype2 header files... $ECHO_C" >&6
9939 if test "${smr_cv_with_freetype2_includes+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 smr_cv_with_freetype2_includes=
9944 echo "$as_me:$LINENO: result: $smr_cv_with_freetype2_includes" >&5
9945 echo "${ECHO_T}$smr_cv_with_freetype2_includes" >&6
9947 if test ! x"$smr_cv_with_freetype2_includes" = x; then
9948 if test -d "$smr_cv_with_freetype2_includes"; then
9949 freetype2_CFLAGS="-I$smr_cv_with_freetype2_includes"
9950 else
9951 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
9952 echo "$as_me: error: argument must be a directory" >&2;}
9953 { (exit 1); exit 1; }; }
9955 else
9956 freetype2_CFLAGS=
9959 smr_test_CPPFLAGS="${CPPFLAGS+set}"
9960 smr_save_CPPFLAGS="$CPPFLAGS"
9961 CPPFLAGS="$CPPFLAGS $freetype2_CFLAGS "
9964 for ac_header in ft2build.h
9966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968 echo "$as_me:$LINENO: checking for $ac_header" >&5
9969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9975 else
9976 # Is the header compilable?
9977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 $ac_includes_default
9986 #include <$ac_header>
9987 _ACEOF
9988 rm -f conftest.$ac_objext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9990 (eval $ac_compile) 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag"
9998 || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_header_compiler=yes
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_header_compiler=no
10017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10019 echo "${ECHO_T}$ac_header_compiler" >&6
10021 # Is the header present?
10022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h. */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 #include <$ac_header>
10031 _ACEOF
10032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } >/dev/null; then
10040 if test -s conftest.err; then
10041 ac_cpp_err=$ac_c_preproc_warn_flag
10042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10043 else
10044 ac_cpp_err=
10046 else
10047 ac_cpp_err=yes
10049 if test -z "$ac_cpp_err"; then
10050 ac_header_preproc=yes
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_header_preproc=no
10057 rm -f conftest.err conftest.$ac_ext
10058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10059 echo "${ECHO_T}$ac_header_preproc" >&6
10061 # So? What about this header?
10062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063 yes:no: )
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10068 ac_header_preproc=yes
10070 no:yes:* )
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10084 cat <<\_ASBOX
10085 ## ------------------------------------------ ##
10086 ## Report this to the AC_PACKAGE_NAME lists. ##
10087 ## ------------------------------------------ ##
10088 _ASBOX
10090 sed "s/^/$as_me: WARNING: /" >&2
10092 esac
10093 echo "$as_me:$LINENO: checking for $ac_header" >&5
10094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098 eval "$as_ac_Header=\$ac_header_preproc"
10100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10105 cat >>confdefs.h <<_ACEOF
10106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10107 _ACEOF
10108 smr_have_freetype2_header=yes
10109 else
10110 smr_have_freetype2_header=no
10113 done
10116 if test x"$smr_test_CPPFLAGS" = xset; then
10117 CPPFLAGS=$smr_save_CPPFLAGS
10118 else
10119 unset CPPFLAGS
10128 # We need only look for the library if the header has been found
10129 # (or no header is needed).
10130 if test $smr_have_freetype2_header != no; then
10132 echo "$as_me:$LINENO: checking for FT_Get_Name_Index in -lfreetype" >&5
10133 echo $ECHO_N "checking for FT_Get_Name_Index in -lfreetype... $ECHO_C" >&6
10134 if test "${ac_cv_lib_freetype_FT_Get_Name_Index+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137 ac_check_lib_save_LIBS=$LIBS
10138 LIBS="-lfreetype $freetype2_CFLAGS $freetype2_LIBS -lm $LIBS"
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10146 /* Override any gcc2 internal prototype to avoid an error. */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 /* We use char because int might match the return type of a gcc2
10151 builtin and then its argument prototype would still apply. */
10152 char FT_Get_Name_Index ();
10154 main ()
10156 FT_Get_Name_Index ();
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>conftest.er1
10164 ac_status=$?
10165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -z "$ac_c_werror_flag"
10171 || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_lib_freetype_FT_Get_Name_Index=yes
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_cv_lib_freetype_FT_Get_Name_Index=no
10190 rm -f conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10194 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Get_Name_Index" >&5
10195 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Get_Name_Index" >&6
10196 if test $ac_cv_lib_freetype_FT_Get_Name_Index = yes; then
10197 smr_have_freetype2_library=yes
10198 else
10199 smr_have_freetype2_library=no
10204 if test x"$smr_have_freetype2_library" = xyes; then
10205 echo "$as_me:$LINENO: result: using freetype2 library" >&5
10206 echo "${ECHO_T}using freetype2 library" >&6
10207 else
10208 freetype2_LIBS=
10209 freetype2_CFLAGS=
10211 if test x"$with_freetype2" = xmaybe; then
10212 echo "$as_me:$LINENO: result: not using freetype2 library" >&5
10213 echo "${ECHO_T}not using freetype2 library" >&6
10214 else
10215 { echo "$as_me:$LINENO: WARNING: requested freetype2 library not found!" >&5
10216 echo "$as_me: WARNING: requested freetype2 library not found!" >&2;}
10233 if test "x$smr_have_freetype2_library" = xyes; then
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_FREETYPE_FREETYPE_H 1
10236 _ACEOF
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_SPLASH 1
10240 _ACEOF
10262 # Check whether --with-libpaper-library or --without-libpaper-library was given.
10263 if test "${with_libpaper_library+set}" = set; then
10264 withval="$with_libpaper_library"
10265 smr_cv_with_libpaper_library=$withval
10268 echo "$as_me:$LINENO: checking whether to use libpaper library" >&5
10269 echo $ECHO_N "checking whether to use libpaper library... $ECHO_C" >&6
10270 if test "${smr_cv_with_libpaper_library+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273 smr_cv_with_libpaper_library=maybe
10275 echo "$as_me:$LINENO: result: $smr_cv_with_libpaper_library" >&5
10276 echo "${ECHO_T}$smr_cv_with_libpaper_library" >&6
10279 case x"$smr_cv_with_libpaper_library" in
10280 xyes | xmaybe)
10281 libpaper_LIBS="-lpaper"
10282 with_libpaper=$smr_cv_with_libpaper_library
10284 xno)
10285 libpaper_LIBS=
10286 with_libpaper=no
10289 if test -f "$smr_cv_with_libpaper_library"; then
10290 libpaper_LIBS=$smr_cv_with_libpaper_library
10291 elif test -d "$smr_cv_with_libpaper_library"; then
10292 libpaper_LIBS="-L$smr_cv_with_libpaper_library -lpaper"
10293 else
10294 { { echo "$as_me:$LINENO: error: argument must be boolean, file, or directory" >&5
10295 echo "$as_me: error: argument must be boolean, file, or directory" >&2;}
10296 { (exit 1); exit 1; }; }
10298 with_libpaper=yes
10300 esac
10308 if test ! x"$with_libpaper" = xno; then
10310 # If we got this far, then the user didn't explicitly ask not to use
10311 # the library.
10320 # Check whether --with-libpaper-includes or --without-libpaper-includes was given.
10321 if test "${with_libpaper_includes+set}" = set; then
10322 withval="$with_libpaper_includes"
10323 smr_cv_with_libpaper_includes=$withval
10326 echo "$as_me:$LINENO: checking where to find the libpaper header files" >&5
10327 echo $ECHO_N "checking where to find the libpaper header files... $ECHO_C" >&6
10328 if test "${smr_cv_with_libpaper_includes+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 smr_cv_with_libpaper_includes=
10333 echo "$as_me:$LINENO: result: $smr_cv_with_libpaper_includes" >&5
10334 echo "${ECHO_T}$smr_cv_with_libpaper_includes" >&6
10336 if test ! x"$smr_cv_with_libpaper_includes" = x; then
10337 if test -d "$smr_cv_with_libpaper_includes"; then
10338 libpaper_CFLAGS="-I$smr_cv_with_libpaper_includes"
10339 else
10340 { { echo "$as_me:$LINENO: error: argument must be a directory" >&5
10341 echo "$as_me: error: argument must be a directory" >&2;}
10342 { (exit 1); exit 1; }; }
10344 else
10345 libpaper_CFLAGS=
10348 smr_test_CPPFLAGS="${CPPFLAGS+set}"
10349 smr_save_CPPFLAGS="$CPPFLAGS"
10350 CPPFLAGS="$CPPFLAGS $libpaper_CFLAGS "
10353 for ac_header in paper.h
10355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10357 echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10364 else
10365 # Is the header compilable?
10366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 #include <$ac_header>
10376 _ACEOF
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -z "$ac_c_werror_flag"
10387 || test ! -s conftest.err'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest.$ac_objext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 ac_header_compiler=yes
10400 else
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_header_compiler=no
10406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10408 echo "${ECHO_T}$ac_header_compiler" >&6
10410 # Is the header present?
10411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #include <$ac_header>
10420 _ACEOF
10421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } >/dev/null; then
10429 if test -s conftest.err; then
10430 ac_cpp_err=$ac_c_preproc_warn_flag
10431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10432 else
10433 ac_cpp_err=
10435 else
10436 ac_cpp_err=yes
10438 if test -z "$ac_cpp_err"; then
10439 ac_header_preproc=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_header_preproc=no
10446 rm -f conftest.err conftest.$ac_ext
10447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10448 echo "${ECHO_T}$ac_header_preproc" >&6
10450 # So? What about this header?
10451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10452 yes:no: )
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10457 ac_header_preproc=yes
10459 no:yes:* )
10460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10473 cat <<\_ASBOX
10474 ## ------------------------------------------ ##
10475 ## Report this to the AC_PACKAGE_NAME lists. ##
10476 ## ------------------------------------------ ##
10477 _ASBOX
10479 sed "s/^/$as_me: WARNING: /" >&2
10481 esac
10482 echo "$as_me:$LINENO: checking for $ac_header" >&5
10483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487 eval "$as_ac_Header=\$ac_header_preproc"
10489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10494 cat >>confdefs.h <<_ACEOF
10495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10496 _ACEOF
10497 smr_have_libpaper_header=yes
10498 else
10499 smr_have_libpaper_header=no
10502 done
10505 if test x"$smr_test_CPPFLAGS" = xset; then
10506 CPPFLAGS=$smr_save_CPPFLAGS
10507 else
10508 unset CPPFLAGS
10517 # We need only look for the library if the header has been found
10518 # (or no header is needed).
10519 if test $smr_have_libpaper_header != no; then
10521 echo "$as_me:$LINENO: checking for paperinit in -lpaper" >&5
10522 echo $ECHO_N "checking for paperinit in -lpaper... $ECHO_C" >&6
10523 if test "${ac_cv_lib_paper_paperinit+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 ac_check_lib_save_LIBS=$LIBS
10527 LIBS="-lpaper $libpaper_CFLAGS $libpaper_LIBS $LIBS"
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10535 /* Override any gcc2 internal prototype to avoid an error. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10541 char paperinit ();
10543 main ()
10545 paperinit ();
10547 return 0;
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_lib_paper_paperinit=yes
10573 else
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ac_cv_lib_paper_paperinit=no
10579 rm -f conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 echo "$as_me:$LINENO: result: $ac_cv_lib_paper_paperinit" >&5
10584 echo "${ECHO_T}$ac_cv_lib_paper_paperinit" >&6
10585 if test $ac_cv_lib_paper_paperinit = yes; then
10586 smr_have_libpaper_library=yes
10587 else
10588 smr_have_libpaper_library=no
10593 if test x"$smr_have_libpaper_library" = xyes; then
10594 echo "$as_me:$LINENO: result: using libpaper library" >&5
10595 echo "${ECHO_T}using libpaper library" >&6
10596 else
10597 libpaper_LIBS=
10598 libpaper_CFLAGS=
10600 if test x"$with_libpaper" = xmaybe; then
10601 echo "$as_me:$LINENO: result: not using libpaper library" >&5
10602 echo "${ECHO_T}not using libpaper library" >&6
10603 else
10604 { echo "$as_me:$LINENO: WARNING: requested libpaper library not found!" >&5
10605 echo "$as_me: WARNING: requested libpaper library not found!" >&2;}
10623 if test -n "$no_x" -o "x$smr_have_Xm_library" != xyes -o "x$smr_have_freetype2_library" != xyes; then
10624 X="#"
10625 XPDF_TARGET="all-no-x"
10626 else
10627 X=""
10628 XPDF_TARGET="all"
10633 ac_config_files="$ac_config_files Makefile goo/Makefile fofi/Makefile splash/Makefile xpdf/Makefile"
10634 cat >confcache <<\_ACEOF
10635 # This file is a shell script that caches the results of configure
10636 # tests run on this system so they can be shared between configure
10637 # scripts and configure runs, see configure's option --config-cache.
10638 # It is not useful on other systems. If it contains results you don't
10639 # want to keep, you may remove or edit it.
10641 # config.status only pays attention to the cache file if you give it
10642 # the --recheck option to rerun configure.
10644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10646 # following values.
10648 _ACEOF
10650 # The following way of writing the cache mishandles newlines in values,
10651 # but we know of no workaround that is simple, portable, and efficient.
10652 # So, don't put newlines in cache variables' values.
10653 # Ultrix sh set writes to stderr and can't be redirected directly,
10654 # and sets the high bit in the cache file unless we assign to the vars.
10656 (set) 2>&1 |
10657 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10658 *ac_space=\ *)
10659 # `set' does not quote correctly, so add quotes (double-quote
10660 # substitution turns \\\\ into \\, and sed turns \\ into \).
10661 sed -n \
10662 "s/'/'\\\\''/g;
10663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10666 # `set' quotes correctly as required by POSIX, so do not add quotes.
10667 sed -n \
10668 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10670 esac;
10672 sed '
10673 t clear
10674 : clear
10675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10676 t end
10677 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10678 : end' >>confcache
10679 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10680 if test -w $cache_file; then
10681 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10682 cat confcache >$cache_file
10683 else
10684 echo "not updating unwritable cache $cache_file"
10687 rm -f confcache
10689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10690 # Let make expand exec_prefix.
10691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10693 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10694 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10695 # trailing colons and then remove the whole line if VPATH becomes empty
10696 # (actually we leave an empty line to preserve line numbers).
10697 if test "x$srcdir" = x.; then
10698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10699 s/:*\$(srcdir):*/:/;
10700 s/:*\${srcdir}:*/:/;
10701 s/:*@srcdir@:*/:/;
10702 s/^\([^=]*=[ ]*\):*/\1/;
10703 s/:*$//;
10704 s/^[^=]*=[ ]*$//;
10708 DEFS=-DHAVE_CONFIG_H
10710 ac_libobjs=
10711 ac_ltlibobjs=
10712 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10713 # 1. Remove the extension, and $U if already installed.
10714 ac_i=`echo "$ac_i" |
10715 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10716 # 2. Add them.
10717 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10718 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10719 done
10720 LIBOBJS=$ac_libobjs
10722 LTLIBOBJS=$ac_ltlibobjs
10726 : ${CONFIG_STATUS=./config.status}
10727 ac_clean_files_save=$ac_clean_files
10728 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10729 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10730 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10731 cat >$CONFIG_STATUS <<_ACEOF
10732 #! $SHELL
10733 # Generated by $as_me.
10734 # Run this file to recreate the current configuration.
10735 # Compiler output produced by configure, useful for debugging
10736 # configure, is in config.log if it exists.
10738 debug=false
10739 ac_cs_recheck=false
10740 ac_cs_silent=false
10741 SHELL=\${CONFIG_SHELL-$SHELL}
10742 _ACEOF
10744 cat >>$CONFIG_STATUS <<\_ACEOF
10745 ## --------------------- ##
10746 ## M4sh Initialization. ##
10747 ## --------------------- ##
10749 # Be Bourne compatible
10750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10751 emulate sh
10752 NULLCMD=:
10753 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10754 # is contrary to our usage. Disable this feature.
10755 alias -g '${1+"$@"}'='"$@"'
10756 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10757 set -o posix
10759 DUALCASE=1; export DUALCASE # for MKS sh
10761 # Support unset when possible.
10762 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10763 as_unset=unset
10764 else
10765 as_unset=false
10769 # Work around bugs in pre-3.0 UWIN ksh.
10770 $as_unset ENV MAIL MAILPATH
10771 PS1='$ '
10772 PS2='> '
10773 PS4='+ '
10775 # NLS nuisances.
10776 for as_var in \
10777 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10778 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10779 LC_TELEPHONE LC_TIME
10781 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10782 eval $as_var=C; export $as_var
10783 else
10784 $as_unset $as_var
10786 done
10788 # Required to use basename.
10789 if expr a : '\(a\)' >/dev/null 2>&1; then
10790 as_expr=expr
10791 else
10792 as_expr=false
10795 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10796 as_basename=basename
10797 else
10798 as_basename=false
10802 # Name of the executable.
10803 as_me=`$as_basename "$0" ||
10804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10805 X"$0" : 'X\(//\)$' \| \
10806 X"$0" : 'X\(/\)$' \| \
10807 . : '\(.\)' 2>/dev/null ||
10808 echo X/"$0" |
10809 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10810 /^X\/\(\/\/\)$/{ s//\1/; q; }
10811 /^X\/\(\/\).*/{ s//\1/; q; }
10812 s/.*/./; q'`
10815 # PATH needs CR, and LINENO needs CR and PATH.
10816 # Avoid depending upon Character Ranges.
10817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10820 as_cr_digits='0123456789'
10821 as_cr_alnum=$as_cr_Letters$as_cr_digits
10823 # The user is always right.
10824 if test "${PATH_SEPARATOR+set}" != set; then
10825 echo "#! /bin/sh" >conf$$.sh
10826 echo "exit 0" >>conf$$.sh
10827 chmod +x conf$$.sh
10828 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10829 PATH_SEPARATOR=';'
10830 else
10831 PATH_SEPARATOR=:
10833 rm -f conf$$.sh
10837 as_lineno_1=$LINENO
10838 as_lineno_2=$LINENO
10839 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10840 test "x$as_lineno_1" != "x$as_lineno_2" &&
10841 test "x$as_lineno_3" = "x$as_lineno_2" || {
10842 # Find who we are. Look in the path if we contain no path at all
10843 # relative or not.
10844 case $0 in
10845 *[\\/]* ) as_myself=$0 ;;
10846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in $PATH
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10852 done
10855 esac
10856 # We did not find ourselves, most probably we were run as `sh COMMAND'
10857 # in which case we are not to be found in the path.
10858 if test "x$as_myself" = x; then
10859 as_myself=$0
10861 if test ! -f "$as_myself"; then
10862 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10863 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10864 { (exit 1); exit 1; }; }
10866 case $CONFIG_SHELL in
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for as_base in sh bash ksh sh5; do
10874 case $as_dir in
10876 if ("$as_dir/$as_base" -c '
10877 as_lineno_1=$LINENO
10878 as_lineno_2=$LINENO
10879 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10880 test "x$as_lineno_1" != "x$as_lineno_2" &&
10881 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10882 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10883 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10884 CONFIG_SHELL=$as_dir/$as_base
10885 export CONFIG_SHELL
10886 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10887 fi;;
10888 esac
10889 done
10890 done
10892 esac
10894 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10895 # uniformly replaced by the line number. The first 'sed' inserts a
10896 # line-number line before each line; the second 'sed' does the real
10897 # work. The second script uses 'N' to pair each line-number line
10898 # with the numbered line, and appends trailing '-' during
10899 # substitution so that $LINENO is not a special case at line end.
10900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10901 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10902 sed '=' <$as_myself |
10903 sed '
10905 s,$,-,
10906 : loop
10907 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10908 t loop
10909 s,-$,,
10910 s,^['$as_cr_digits']*\n,,
10911 ' >$as_me.lineno &&
10912 chmod +x $as_me.lineno ||
10913 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10914 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10915 { (exit 1); exit 1; }; }
10917 # Don't try to exec as it changes $[0], causing all sort of problems
10918 # (the dirname of $[0] is not the place where we might find the
10919 # original and so on. Autoconf is especially sensible to this).
10920 . ./$as_me.lineno
10921 # Exit status is that of the last command.
10922 exit
10926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10927 *c*,-n*) ECHO_N= ECHO_C='
10928 ' ECHO_T=' ' ;;
10929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10931 esac
10933 if expr a : '\(a\)' >/dev/null 2>&1; then
10934 as_expr=expr
10935 else
10936 as_expr=false
10939 rm -f conf$$ conf$$.exe conf$$.file
10940 echo >conf$$.file
10941 if ln -s conf$$.file conf$$ 2>/dev/null; then
10942 # We could just check for DJGPP; but this test a) works b) is more generic
10943 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10944 if test -f conf$$.exe; then
10945 # Don't use ln at all; we don't have any links
10946 as_ln_s='cp -p'
10947 else
10948 as_ln_s='ln -s'
10950 elif ln conf$$.file conf$$ 2>/dev/null; then
10951 as_ln_s=ln
10952 else
10953 as_ln_s='cp -p'
10955 rm -f conf$$ conf$$.exe conf$$.file
10957 if mkdir -p . 2>/dev/null; then
10958 as_mkdir_p=:
10959 else
10960 test -d ./-p && rmdir ./-p
10961 as_mkdir_p=false
10964 as_executable_p="test -f"
10966 # Sed expression to map a string onto a valid CPP name.
10967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10969 # Sed expression to map a string onto a valid variable name.
10970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10973 # IFS
10974 # We need space, tab and new line, in precisely that order.
10975 as_nl='
10977 IFS=" $as_nl"
10979 # CDPATH.
10980 $as_unset CDPATH
10982 exec 6>&1
10984 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10985 # report actual input values of CONFIG_FILES etc. instead of their
10986 # values after options handling. Logging --version etc. is OK.
10987 exec 5>>config.log
10989 echo
10990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10991 ## Running $as_me. ##
10992 _ASBOX
10993 } >&5
10994 cat >&5 <<_CSEOF
10996 This file was extended by $as_me, which was
10997 generated by GNU Autoconf 2.59. Invocation command line was
10999 CONFIG_FILES = $CONFIG_FILES
11000 CONFIG_HEADERS = $CONFIG_HEADERS
11001 CONFIG_LINKS = $CONFIG_LINKS
11002 CONFIG_COMMANDS = $CONFIG_COMMANDS
11003 $ $0 $@
11005 _CSEOF
11006 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11007 echo >&5
11008 _ACEOF
11010 # Files that config.status was made for.
11011 if test -n "$ac_config_files"; then
11012 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11015 if test -n "$ac_config_headers"; then
11016 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11019 if test -n "$ac_config_links"; then
11020 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11023 if test -n "$ac_config_commands"; then
11024 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11027 cat >>$CONFIG_STATUS <<\_ACEOF
11029 ac_cs_usage="\
11030 \`$as_me' instantiates files from templates according to the
11031 current configuration.
11033 Usage: $0 [OPTIONS] [FILE]...
11035 -h, --help print this help, then exit
11036 -V, --version print version number, then exit
11037 -q, --quiet do not print progress messages
11038 -d, --debug don't remove temporary files
11039 --recheck update $as_me by reconfiguring in the same conditions
11040 --file=FILE[:TEMPLATE]
11041 instantiate the configuration file FILE
11042 --header=FILE[:TEMPLATE]
11043 instantiate the configuration header FILE
11045 Configuration files:
11046 $config_files
11048 Configuration headers:
11049 $config_headers
11051 Report bugs to <bug-autoconf@gnu.org>."
11052 _ACEOF
11054 cat >>$CONFIG_STATUS <<_ACEOF
11055 ac_cs_version="\\
11056 config.status
11057 configured by $0, generated by GNU Autoconf 2.59,
11058 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11060 Copyright (C) 2003 Free Software Foundation, Inc.
11061 This config.status script is free software; the Free Software Foundation
11062 gives unlimited permission to copy, distribute and modify it."
11063 srcdir=$srcdir
11064 INSTALL="$INSTALL"
11065 _ACEOF
11067 cat >>$CONFIG_STATUS <<\_ACEOF
11068 # If no file are specified by the user, then we need to provide default
11069 # value. By we need to know if files were specified by the user.
11070 ac_need_defaults=:
11071 while test $# != 0
11073 case $1 in
11074 --*=*)
11075 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11076 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11077 ac_shift=:
11080 ac_option=$1
11081 ac_optarg=$2
11082 ac_shift=shift
11084 *) # This is not an option, so the user has probably given explicit
11085 # arguments.
11086 ac_option=$1
11087 ac_need_defaults=false;;
11088 esac
11090 case $ac_option in
11091 # Handling of the options.
11092 _ACEOF
11093 cat >>$CONFIG_STATUS <<\_ACEOF
11094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11095 ac_cs_recheck=: ;;
11096 --version | --vers* | -V )
11097 echo "$ac_cs_version"; exit 0 ;;
11098 --he | --h)
11099 # Conflict between --help and --header
11100 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11101 Try \`$0 --help' for more information." >&5
11102 echo "$as_me: error: ambiguous option: $1
11103 Try \`$0 --help' for more information." >&2;}
11104 { (exit 1); exit 1; }; };;
11105 --help | --hel | -h )
11106 echo "$ac_cs_usage"; exit 0 ;;
11107 --debug | --d* | -d )
11108 debug=: ;;
11109 --file | --fil | --fi | --f )
11110 $ac_shift
11111 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11112 ac_need_defaults=false;;
11113 --header | --heade | --head | --hea )
11114 $ac_shift
11115 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11116 ac_need_defaults=false;;
11117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11118 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11119 ac_cs_silent=: ;;
11121 # This is an error.
11122 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11123 Try \`$0 --help' for more information." >&5
11124 echo "$as_me: error: unrecognized option: $1
11125 Try \`$0 --help' for more information." >&2;}
11126 { (exit 1); exit 1; }; } ;;
11128 *) ac_config_targets="$ac_config_targets $1" ;;
11130 esac
11131 shift
11132 done
11134 ac_configure_extra_args=
11136 if $ac_cs_silent; then
11137 exec 6>/dev/null
11138 ac_configure_extra_args="$ac_configure_extra_args --silent"
11141 _ACEOF
11142 cat >>$CONFIG_STATUS <<_ACEOF
11143 if \$ac_cs_recheck; then
11144 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11145 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11148 _ACEOF
11154 cat >>$CONFIG_STATUS <<\_ACEOF
11155 for ac_config_target in $ac_config_targets
11157 case "$ac_config_target" in
11158 # Handling of arguments.
11159 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11160 "goo/Makefile" ) CONFIG_FILES="$CONFIG_FILES goo/Makefile" ;;
11161 "fofi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fofi/Makefile" ;;
11162 "splash/Makefile" ) CONFIG_FILES="$CONFIG_FILES splash/Makefile" ;;
11163 "xpdf/Makefile" ) CONFIG_FILES="$CONFIG_FILES xpdf/Makefile" ;;
11164 "aconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS aconf.h" ;;
11165 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11166 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11167 { (exit 1); exit 1; }; };;
11168 esac
11169 done
11171 # If the user did not use the arguments to specify the items to instantiate,
11172 # then the envvar interface is used. Set only those that are not.
11173 # We use the long form for the default assignment because of an extremely
11174 # bizarre bug on SunOS 4.1.3.
11175 if $ac_need_defaults; then
11176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11180 # Have a temporary directory for convenience. Make it in the build tree
11181 # simply because there is no reason to put it here, and in addition,
11182 # creating and moving files from /tmp can sometimes cause problems.
11183 # Create a temporary directory, and hook for its removal unless debugging.
11184 $debug ||
11186 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11187 trap '{ (exit 1); exit 1; }' 1 2 13 15
11190 # Create a (secure) tmp directory for tmp files.
11193 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11194 test -n "$tmp" && test -d "$tmp"
11195 } ||
11197 tmp=./confstat$$-$RANDOM
11198 (umask 077 && mkdir $tmp)
11199 } ||
11201 echo "$me: cannot create a temporary directory in ." >&2
11202 { (exit 1); exit 1; }
11205 _ACEOF
11207 cat >>$CONFIG_STATUS <<_ACEOF
11210 # CONFIG_FILES section.
11213 # No need to generate the scripts if there are no CONFIG_FILES.
11214 # This happens for instance when ./config.status config.h
11215 if test -n "\$CONFIG_FILES"; then
11216 # Protect against being on the right side of a sed subst in config.status.
11217 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11218 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11219 s,@SHELL@,$SHELL,;t t
11220 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11221 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11222 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11223 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11224 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11225 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11226 s,@exec_prefix@,$exec_prefix,;t t
11227 s,@prefix@,$prefix,;t t
11228 s,@program_transform_name@,$program_transform_name,;t t
11229 s,@bindir@,$bindir,;t t
11230 s,@sbindir@,$sbindir,;t t
11231 s,@libexecdir@,$libexecdir,;t t
11232 s,@datadir@,$datadir,;t t
11233 s,@sysconfdir@,$sysconfdir,;t t
11234 s,@sharedstatedir@,$sharedstatedir,;t t
11235 s,@localstatedir@,$localstatedir,;t t
11236 s,@libdir@,$libdir,;t t
11237 s,@includedir@,$includedir,;t t
11238 s,@oldincludedir@,$oldincludedir,;t t
11239 s,@infodir@,$infodir,;t t
11240 s,@mandir@,$mandir,;t t
11241 s,@build_alias@,$build_alias,;t t
11242 s,@host_alias@,$host_alias,;t t
11243 s,@target_alias@,$target_alias,;t t
11244 s,@DEFS@,$DEFS,;t t
11245 s,@ECHO_C@,$ECHO_C,;t t
11246 s,@ECHO_N@,$ECHO_N,;t t
11247 s,@ECHO_T@,$ECHO_T,;t t
11248 s,@LIBS@,$LIBS,;t t
11249 s,@CC@,$CC,;t t
11250 s,@CFLAGS@,$CFLAGS,;t t
11251 s,@LDFLAGS@,$LDFLAGS,;t t
11252 s,@CPPFLAGS@,$CPPFLAGS,;t t
11253 s,@ac_ct_CC@,$ac_ct_CC,;t t
11254 s,@EXEEXT@,$EXEEXT,;t t
11255 s,@OBJEXT@,$OBJEXT,;t t
11256 s,@CXX@,$CXX,;t t
11257 s,@CXXFLAGS@,$CXXFLAGS,;t t
11258 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11259 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11260 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11261 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11262 s,@RANLIB@,$RANLIB,;t t
11263 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11264 s,@EXE@,$EXE,;t t
11265 s,@LIBPREFIX@,$LIBPREFIX,;t t
11266 s,@AR@,$AR,;t t
11267 s,@UP_DIR@,$UP_DIR,;t t
11268 s,@CPP@,$CPP,;t t
11269 s,@X_CFLAGS@,$X_CFLAGS,;t t
11270 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11271 s,@X_LIBS@,$X_LIBS,;t t
11272 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11273 s,@EGREP@,$EGREP,;t t
11274 s,@Xpm_LIBS@,$Xpm_LIBS,;t t
11275 s,@Xpm_CFLAGS@,$Xpm_CFLAGS,;t t
11276 s,@Xext_LIBS@,$Xext_LIBS,;t t
11277 s,@Xext_CFLAGS@,$Xext_CFLAGS,;t t
11278 s,@Xp_LIBS@,$Xp_LIBS,;t t
11279 s,@Xp_CFLAGS@,$Xp_CFLAGS,;t t
11280 s,@Xt_LIBS@,$Xt_LIBS,;t t
11281 s,@Xt_CFLAGS@,$Xt_CFLAGS,;t t
11282 s,@Xm_LIBS@,$Xm_LIBS,;t t
11283 s,@Xm_CFLAGS@,$Xm_CFLAGS,;t t
11284 s,@Sgm_LIBS@,$Sgm_LIBS,;t t
11285 s,@Sgm_CFLAGS@,$Sgm_CFLAGS,;t t
11286 s,@t1_LIBS@,$t1_LIBS,;t t
11287 s,@t1_CFLAGS@,$t1_CFLAGS,;t t
11288 s,@freetype2_LIBS@,$freetype2_LIBS,;t t
11289 s,@freetype2_CFLAGS@,$freetype2_CFLAGS,;t t
11290 s,@libpaper_LIBS@,$libpaper_LIBS,;t t
11291 s,@libpaper_CFLAGS@,$libpaper_CFLAGS,;t t
11292 s,@X@,$X,;t t
11293 s,@XPDF_TARGET@,$XPDF_TARGET,;t t
11294 s,@LIBOBJS@,$LIBOBJS,;t t
11295 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11296 CEOF
11298 _ACEOF
11300 cat >>$CONFIG_STATUS <<\_ACEOF
11301 # Split the substitutions into bite-sized pieces for seds with
11302 # small command number limits, like on Digital OSF/1 and HP-UX.
11303 ac_max_sed_lines=48
11304 ac_sed_frag=1 # Number of current file.
11305 ac_beg=1 # First line for current file.
11306 ac_end=$ac_max_sed_lines # Line after last line for current file.
11307 ac_more_lines=:
11308 ac_sed_cmds=
11309 while $ac_more_lines; do
11310 if test $ac_beg -gt 1; then
11311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11312 else
11313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11315 if test ! -s $tmp/subs.frag; then
11316 ac_more_lines=false
11317 else
11318 # The purpose of the label and of the branching condition is to
11319 # speed up the sed processing (if there are no `@' at all, there
11320 # is no need to browse any of the substitutions).
11321 # These are the two extra sed commands mentioned above.
11322 (echo ':t
11323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11324 if test -z "$ac_sed_cmds"; then
11325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11326 else
11327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11329 ac_sed_frag=`expr $ac_sed_frag + 1`
11330 ac_beg=$ac_end
11331 ac_end=`expr $ac_end + $ac_max_sed_lines`
11333 done
11334 if test -z "$ac_sed_cmds"; then
11335 ac_sed_cmds=cat
11337 fi # test -n "$CONFIG_FILES"
11339 _ACEOF
11340 cat >>$CONFIG_STATUS <<\_ACEOF
11341 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11343 case $ac_file in
11344 - | *:- | *:-:* ) # input from stdin
11345 cat >$tmp/stdin
11346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11350 * ) ac_file_in=$ac_file.in ;;
11351 esac
11353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11356 X"$ac_file" : 'X\(//\)[^/]' \| \
11357 X"$ac_file" : 'X\(//\)$' \| \
11358 X"$ac_file" : 'X\(/\)' \| \
11359 . : '\(.\)' 2>/dev/null ||
11360 echo X"$ac_file" |
11361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11363 /^X\(\/\/\)$/{ s//\1/; q; }
11364 /^X\(\/\).*/{ s//\1/; q; }
11365 s/.*/./; q'`
11366 { if $as_mkdir_p; then
11367 mkdir -p "$ac_dir"
11368 else
11369 as_dir="$ac_dir"
11370 as_dirs=
11371 while test ! -d "$as_dir"; do
11372 as_dirs="$as_dir $as_dirs"
11373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11375 X"$as_dir" : 'X\(//\)[^/]' \| \
11376 X"$as_dir" : 'X\(//\)$' \| \
11377 X"$as_dir" : 'X\(/\)' \| \
11378 . : '\(.\)' 2>/dev/null ||
11379 echo X"$as_dir" |
11380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11382 /^X\(\/\/\)$/{ s//\1/; q; }
11383 /^X\(\/\).*/{ s//\1/; q; }
11384 s/.*/./; q'`
11385 done
11386 test ! -n "$as_dirs" || mkdir $as_dirs
11387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11389 { (exit 1); exit 1; }; }; }
11391 ac_builddir=.
11393 if test "$ac_dir" != .; then
11394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11395 # A "../" for each directory in $ac_dir_suffix.
11396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11397 else
11398 ac_dir_suffix= ac_top_builddir=
11401 case $srcdir in
11402 .) # No --srcdir option. We are building in place.
11403 ac_srcdir=.
11404 if test -z "$ac_top_builddir"; then
11405 ac_top_srcdir=.
11406 else
11407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11408 fi ;;
11409 [\\/]* | ?:[\\/]* ) # Absolute path.
11410 ac_srcdir=$srcdir$ac_dir_suffix;
11411 ac_top_srcdir=$srcdir ;;
11412 *) # Relative path.
11413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11415 esac
11417 # Do not use `cd foo && pwd` to compute absolute paths, because
11418 # the directories may not exist.
11419 case `pwd` in
11420 .) ac_abs_builddir="$ac_dir";;
11422 case "$ac_dir" in
11423 .) ac_abs_builddir=`pwd`;;
11424 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11425 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11426 esac;;
11427 esac
11428 case $ac_abs_builddir in
11429 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11431 case ${ac_top_builddir}. in
11432 .) ac_abs_top_builddir=$ac_abs_builddir;;
11433 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11434 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11435 esac;;
11436 esac
11437 case $ac_abs_builddir in
11438 .) ac_abs_srcdir=$ac_srcdir;;
11440 case $ac_srcdir in
11441 .) ac_abs_srcdir=$ac_abs_builddir;;
11442 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11443 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11444 esac;;
11445 esac
11446 case $ac_abs_builddir in
11447 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11449 case $ac_top_srcdir in
11450 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11451 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11452 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11453 esac;;
11454 esac
11457 case $INSTALL in
11458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11459 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11460 esac
11462 if test x"$ac_file" != x-; then
11463 { echo "$as_me:$LINENO: creating $ac_file" >&5
11464 echo "$as_me: creating $ac_file" >&6;}
11465 rm -f "$ac_file"
11467 # Let's still pretend it is `configure' which instantiates (i.e., don't
11468 # use $as_me), people would be surprised to read:
11469 # /* config.h. Generated by config.status. */
11470 if test x"$ac_file" = x-; then
11471 configure_input=
11472 else
11473 configure_input="$ac_file. "
11475 configure_input=$configure_input"Generated from `echo $ac_file_in |
11476 sed 's,.*/,,'` by configure."
11478 # First look for the input files in the build tree, otherwise in the
11479 # src tree.
11480 ac_file_inputs=`IFS=:
11481 for f in $ac_file_in; do
11482 case $f in
11483 -) echo $tmp/stdin ;;
11484 [\\/$]*)
11485 # Absolute (can't be DOS-style, as IFS=:)
11486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11487 echo "$as_me: error: cannot find input file: $f" >&2;}
11488 { (exit 1); exit 1; }; }
11489 echo "$f";;
11490 *) # Relative
11491 if test -f "$f"; then
11492 # Build tree
11493 echo "$f"
11494 elif test -f "$srcdir/$f"; then
11495 # Source tree
11496 echo "$srcdir/$f"
11497 else
11498 # /dev/null tree
11499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11500 echo "$as_me: error: cannot find input file: $f" >&2;}
11501 { (exit 1); exit 1; }; }
11502 fi;;
11503 esac
11504 done` || { (exit 1); exit 1; }
11505 _ACEOF
11506 cat >>$CONFIG_STATUS <<_ACEOF
11507 sed "$ac_vpsub
11508 $extrasub
11509 _ACEOF
11510 cat >>$CONFIG_STATUS <<\_ACEOF
11512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11513 s,@configure_input@,$configure_input,;t t
11514 s,@srcdir@,$ac_srcdir,;t t
11515 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11516 s,@top_srcdir@,$ac_top_srcdir,;t t
11517 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11518 s,@builddir@,$ac_builddir,;t t
11519 s,@abs_builddir@,$ac_abs_builddir,;t t
11520 s,@top_builddir@,$ac_top_builddir,;t t
11521 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11522 s,@INSTALL@,$ac_INSTALL,;t t
11523 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11524 rm -f $tmp/stdin
11525 if test x"$ac_file" != x-; then
11526 mv $tmp/out $ac_file
11527 else
11528 cat $tmp/out
11529 rm -f $tmp/out
11532 done
11533 _ACEOF
11534 cat >>$CONFIG_STATUS <<\_ACEOF
11537 # CONFIG_HEADER section.
11540 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11541 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11543 # ac_d sets the value in "#define NAME VALUE" lines.
11544 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11545 ac_dB='[ ].*$,\1#\2'
11546 ac_dC=' '
11547 ac_dD=',;t'
11548 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11549 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11550 ac_uB='$,\1#\2define\3'
11551 ac_uC=' '
11552 ac_uD=',;t'
11554 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11555 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11556 case $ac_file in
11557 - | *:- | *:-:* ) # input from stdin
11558 cat >$tmp/stdin
11559 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11561 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11563 * ) ac_file_in=$ac_file.in ;;
11564 esac
11566 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11567 echo "$as_me: creating $ac_file" >&6;}
11569 # First look for the input files in the build tree, otherwise in the
11570 # src tree.
11571 ac_file_inputs=`IFS=:
11572 for f in $ac_file_in; do
11573 case $f in
11574 -) echo $tmp/stdin ;;
11575 [\\/$]*)
11576 # Absolute (can't be DOS-style, as IFS=:)
11577 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11578 echo "$as_me: error: cannot find input file: $f" >&2;}
11579 { (exit 1); exit 1; }; }
11580 # Do quote $f, to prevent DOS paths from being IFS'd.
11581 echo "$f";;
11582 *) # Relative
11583 if test -f "$f"; then
11584 # Build tree
11585 echo "$f"
11586 elif test -f "$srcdir/$f"; then
11587 # Source tree
11588 echo "$srcdir/$f"
11589 else
11590 # /dev/null tree
11591 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11592 echo "$as_me: error: cannot find input file: $f" >&2;}
11593 { (exit 1); exit 1; }; }
11594 fi;;
11595 esac
11596 done` || { (exit 1); exit 1; }
11597 # Remove the trailing spaces.
11598 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11600 _ACEOF
11602 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11603 # `conftest.undefs', that substitutes the proper values into
11604 # config.h.in to produce config.h. The first handles `#define'
11605 # templates, and the second `#undef' templates.
11606 # And first: Protect against being on the right side of a sed subst in
11607 # config.status. Protect against being in an unquoted here document
11608 # in config.status.
11609 rm -f conftest.defines conftest.undefs
11610 # Using a here document instead of a string reduces the quoting nightmare.
11611 # Putting comments in sed scripts is not portable.
11613 # `end' is used to avoid that the second main sed command (meant for
11614 # 0-ary CPP macros) applies to n-ary macro definitions.
11615 # See the Autoconf documentation for `clear'.
11616 cat >confdef2sed.sed <<\_ACEOF
11617 s/[\\&,]/\\&/g
11618 s,[\\$`],\\&,g
11619 t clear
11620 : clear
11621 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11622 t end
11623 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11624 : end
11625 _ACEOF
11626 # If some macros were called several times there might be several times
11627 # the same #defines, which is useless. Nevertheless, we may not want to
11628 # sort them, since we want the *last* AC-DEFINE to be honored.
11629 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11630 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11631 rm -f confdef2sed.sed
11633 # This sed command replaces #undef with comments. This is necessary, for
11634 # example, in the case of _POSIX_SOURCE, which is predefined and required
11635 # on some systems where configure will not decide to define it.
11636 cat >>conftest.undefs <<\_ACEOF
11637 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11638 _ACEOF
11640 # Break up conftest.defines because some shells have a limit on the size
11641 # of here documents, and old seds have small limits too (100 cmds).
11642 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11643 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11644 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11645 echo ' :' >>$CONFIG_STATUS
11646 rm -f conftest.tail
11647 while grep . conftest.defines >/dev/null
11649 # Write a limited-size here document to $tmp/defines.sed.
11650 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11651 # Speed up: don't consider the non `#define' lines.
11652 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11653 # Work around the forget-to-reset-the-flag bug.
11654 echo 't clr' >>$CONFIG_STATUS
11655 echo ': clr' >>$CONFIG_STATUS
11656 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11657 echo 'CEOF
11658 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11659 rm -f $tmp/in
11660 mv $tmp/out $tmp/in
11661 ' >>$CONFIG_STATUS
11662 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11663 rm -f conftest.defines
11664 mv conftest.tail conftest.defines
11665 done
11666 rm -f conftest.defines
11667 echo ' fi # grep' >>$CONFIG_STATUS
11668 echo >>$CONFIG_STATUS
11670 # Break up conftest.undefs because some shells have a limit on the size
11671 # of here documents, and old seds have small limits too (100 cmds).
11672 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11673 rm -f conftest.tail
11674 while grep . conftest.undefs >/dev/null
11676 # Write a limited-size here document to $tmp/undefs.sed.
11677 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11678 # Speed up: don't consider the non `#undef'
11679 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11680 # Work around the forget-to-reset-the-flag bug.
11681 echo 't clr' >>$CONFIG_STATUS
11682 echo ': clr' >>$CONFIG_STATUS
11683 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11684 echo 'CEOF
11685 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11686 rm -f $tmp/in
11687 mv $tmp/out $tmp/in
11688 ' >>$CONFIG_STATUS
11689 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11690 rm -f conftest.undefs
11691 mv conftest.tail conftest.undefs
11692 done
11693 rm -f conftest.undefs
11695 cat >>$CONFIG_STATUS <<\_ACEOF
11696 # Let's still pretend it is `configure' which instantiates (i.e., don't
11697 # use $as_me), people would be surprised to read:
11698 # /* config.h. Generated by config.status. */
11699 if test x"$ac_file" = x-; then
11700 echo "/* Generated by configure. */" >$tmp/config.h
11701 else
11702 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11704 cat $tmp/in >>$tmp/config.h
11705 rm -f $tmp/in
11706 if test x"$ac_file" != x-; then
11707 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11708 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11709 echo "$as_me: $ac_file is unchanged" >&6;}
11710 else
11711 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11713 X"$ac_file" : 'X\(//\)[^/]' \| \
11714 X"$ac_file" : 'X\(//\)$' \| \
11715 X"$ac_file" : 'X\(/\)' \| \
11716 . : '\(.\)' 2>/dev/null ||
11717 echo X"$ac_file" |
11718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11720 /^X\(\/\/\)$/{ s//\1/; q; }
11721 /^X\(\/\).*/{ s//\1/; q; }
11722 s/.*/./; q'`
11723 { if $as_mkdir_p; then
11724 mkdir -p "$ac_dir"
11725 else
11726 as_dir="$ac_dir"
11727 as_dirs=
11728 while test ! -d "$as_dir"; do
11729 as_dirs="$as_dir $as_dirs"
11730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11732 X"$as_dir" : 'X\(//\)[^/]' \| \
11733 X"$as_dir" : 'X\(//\)$' \| \
11734 X"$as_dir" : 'X\(/\)' \| \
11735 . : '\(.\)' 2>/dev/null ||
11736 echo X"$as_dir" |
11737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11739 /^X\(\/\/\)$/{ s//\1/; q; }
11740 /^X\(\/\).*/{ s//\1/; q; }
11741 s/.*/./; q'`
11742 done
11743 test ! -n "$as_dirs" || mkdir $as_dirs
11744 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11746 { (exit 1); exit 1; }; }; }
11748 rm -f $ac_file
11749 mv $tmp/config.h $ac_file
11751 else
11752 cat $tmp/config.h
11753 rm -f $tmp/config.h
11755 done
11756 _ACEOF
11758 cat >>$CONFIG_STATUS <<\_ACEOF
11760 { (exit 0); exit 0; }
11761 _ACEOF
11762 chmod +x $CONFIG_STATUS
11763 ac_clean_files=$ac_clean_files_save
11766 # configure is writing to config.log, and then calls config.status.
11767 # config.status does its own redirection, appending to config.log.
11768 # Unfortunately, on DOS this fails, as config.log is still kept open
11769 # by configure, so config.status won't be able to write to it; its
11770 # output is simply discarded. So we exec the FD to /dev/null,
11771 # effectively closing config.log, so it can be properly (re)opened and
11772 # appended to by config.status. When coming back to configure, we
11773 # need to make the FD available again.
11774 if test "$no_create" != yes; then
11775 ac_cs_success=:
11776 ac_config_status_args=
11777 test "$silent" = yes &&
11778 ac_config_status_args="$ac_config_status_args --quiet"
11779 exec 5>/dev/null
11780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11781 exec 5>>config.log
11782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11783 # would make configure fail if this is the last instruction.
11784 $ac_cs_success || { (exit 1); exit 1; }
11788 if test -n "$no_x" -o "x$smr_have_Xm_library" != xyes -o "x$smr_have_freetype2_library" != xyes; then
11789 if test -n "$no_x"; then
11790 { echo "$as_me:$LINENO: WARNING: Couldn't find X" >&5
11791 echo "$as_me: WARNING: Couldn't find X" >&2;};
11793 if test "x$smr_have_Xm_library" != xyes; then
11794 { echo "$as_me:$LINENO: WARNING: Couldn't find Motif" >&5
11795 echo "$as_me: WARNING: Couldn't find Motif" >&2;};
11797 if test "x$smr_have_freetype2_library" != xyes; then
11798 { echo "$as_me:$LINENO: WARNING: Couldn't find FreeType" >&5
11799 echo "$as_me: WARNING: Couldn't find FreeType" >&2;};
11801 { echo "$as_me:$LINENO: WARNING: -- You will be able to compile pdftops, pdftotext,
11802 pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm" >&5
11803 echo "$as_me: WARNING: -- You will be able to compile pdftops, pdftotext,
11804 pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm" >&2;}