3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 # Find the correct PATH separator. Usually this is `:', but
24 # DJGPP uses `;' like DOS.
25 if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`}
28 *-DOS) lt_cv_sys_path_separator=';' ;;
29 *) lt_cv_sys_path_separator=':' ;;
34 # Check that we are running under the correct shell.
35 SHELL=${CONFIG_SHELL-/bin/sh}
39 # Remove one level of quotation (which was required for Make).
40 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
45 if test "X$1" = X--no-reexec; then
46 # Discard the --no-reexec flag, and continue.
48 elif test "X$1" = X--fallback-echo; then
49 # Avoid inline document here, it may be left over
51 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
52 # Yippee, $echo works!
55 # Restart under the correct shell.
56 exec $SHELL "$0" --no-reexec ${1+"$@"}
59 if test "X$1" = X--fallback-echo; then
60 # used as fallback echo
68 # The HP-UX ksh and POSIX shell print the target directory to stdout
70 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
72 if test -z "$ECHO"; then
73 if test "X${echo_test_string+set}" != Xset; then
74 # find a string as large as possible, as long as the shell can cope with it
75 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
76 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
77 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
78 echo_test_string="`eval $cmd`" &&
79 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
86 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
91 # The Solaris, AIX, and Digital Unix default echo programs unquote
92 # backslashes. This makes it impossible to quote backslashes using
93 # echo "$something" | sed 's/\\/\\\\/g'
95 # So, first we look for a working echo in the user's PATH.
97 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
98 for dir in $PATH /usr/ucb; do
99 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
100 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
101 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
102 test "X$echo_testing_string" = "X$echo_test_string"; then
109 if test "X$echo" = Xecho; then
110 # We didn't find a better echo, so look for alternatives.
111 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
112 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
114 # This shell has a builtin print -r that does the trick.
116 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
117 test "X$CONFIG_SHELL" != X/bin/ksh; then
118 # If we have ksh, try running ltconfig again with it.
119 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
120 export ORIGINAL_CONFIG_SHELL
121 CONFIG_SHELL=/bin/ksh
123 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
127 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
128 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
129 test "X$echo_testing_string" = "X$echo_test_string"; then
132 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133 test "X$echo_testing_string" = 'X\t' &&
134 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135 test "X$echo_testing_string" = "X$echo_test_string"; then
136 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
138 SHELL="$CONFIG_SHELL"
140 echo="$CONFIG_SHELL $0 --fallback-echo"
141 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 echo="$CONFIG_SHELL $0 --fallback-echo"
147 # maybe with a smaller string...
150 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
151 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
158 if test "$prev" != 'sed 50q "$0"'; then
159 echo_test_string=`eval $prev`
160 export echo_test_string
161 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
163 # Oops. We lost completely, so just stick with echo.
172 # Copy echo and quote the copy suitably for passing to libtool from
173 # the Makefile, instead of quoting the original, which is used later.
175 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
181 --disable-libtool-lock avoid locking (might break parallel builds)"
184 --with-pic try to use only PIC/non-PIC objects [default=use both]"
186 --enable-everything enable standard non-multichoice features: marked *
187 NOTE: this option is order dependent
188 NOTE: automatically enabled with --enable-shared"
190 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters"
192 --enable-xft enable xft support on systems that have it"
194 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)"
196 --with-encoding=NAME set language default encoding to NAME (default: sjis)
197 (eucj|sjis|big5|gb|kr|noenc)"
199 --enable-utmp enable utmp (utmpx) support *"
201 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*"
203 --enable-lastlog enable lastlog support (requires --enable-utmp) *"
205 --enable-xpm-background enable XPM background pixmaps *"
207 --enable-transparency enable transparent backgrounds *"
209 --enable-menubar enable menubar *"
211 --enable-graphics enable rxvt own graphics mode (see src/graphics) *"
213 --enable-rxvt-scroll enable rxvt style scrollbar *"
215 --enable-next-scroll enable NeXT style scrollbar *"
217 --enable-xterm-scroll enable Xterm style scrollbar *"
219 --enable-half-shadow use half width/height shadow on rxvt scrollbar"
221 --enable-xim XIM (X Input Method) protocol support *"
223 --enable-greek enable greek keyboard support"
225 --enable-ttygid enable tty setting to group named "tty""
227 --disable-backspace-key disable handling of the backspace key"
229 --disable-delete-key disable handling of the delete key"
231 --disable-resources disable all resource checking"
233 --enable-xgetdefault enable resources via X instead of our small version"
235 --enable-strings enable some replacement system functions"
237 --disable-swapscreen disable swap screen support"
239 --enable-frills enable support for rarely used features *"
241 --enable-linespace enable support for linespace *"
243 --enable-24bit enable support for using 24bit visuals if available *"
245 --enable-keepscrolling enable continual scrolling on scrollbar arrow press *"
247 --enable-selectionscrolling enable scrolling during selections *"
249 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *"
251 --enable-slipwheeling enable slip wheel scrolling (requires previous) *"
253 --enable-old-selection enable v2.20 (& prior) mouse selection style support*"
255 --disable-new-selection disable new mouse (xterm) selection style support"
257 --enable-dmalloc enable Gray Watson's malloc - for debugging use"
259 --enable-dlmalloc enable Doug Lea's malloc - for production use
260 NOTE: enable only one malloc package"
262 --enable-smart-resize enable smart growth/shrink behaviour"
264 --enable-256-color enable 256-color support"
266 --enable-cursor-blink enable blinking cursor *"
268 --enable-pointer-blank enable pointer blank when typing or inactive pointer*"
270 --with-term=NAME set the terminal to NAME (default \"xterm\")"
272 --with-terminfo=PATH set the path to the terminfo tree to PATH"
274 --with-x use the X Window System"
276 --with-xpm-includes=DIR use XPM includes in DIR"
278 --with-xpm-library=DIR use XPM library in DIR"
282 # Initialize some variables set by options.
283 # The variables have the same names as the options, with
284 # dashes changed to underlines.
286 cache_file=./config.cache
295 program_transform_name=s,x,x,
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 # Initialize some other variables.
319 SHELL=${CONFIG_SHELL-/bin/sh}
320 # Maximum number of lines to put in a shell here document.
327 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option"
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
339 # Accept the important Cygnus configure options, so we can diagnose typos.
343 -bindir | --bindir | --bindi | --bind | --bin | --bi)
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;;
348 -build | --build | --buil | --bui | --bu)
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;;
353 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;;
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
364 datadir="$ac_optarg" ;;
366 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;;
375 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 eval "enable_${ac_feature}='$ac_optarg'" ;;
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;;
397 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas.
401 -help | --help | --hel | --he)
402 # Omit some internal or obsolete options to make the list less imposing.
403 # This message is too long to be a string in the A/UX 3.1 sh.
405 Usage: configure [options] [host]
406 Options: [defaults in brackets after descriptions]
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413 Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443 Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
456 -host | --host | --hos | --ho)
458 -host=* | --host=* | --hos=* | --ho=*)
461 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;;
468 -infodir | --infodir | --infodi | --infod | --info | --inf)
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;;
473 -libdir | --libdir | --libdi | --libd)
475 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;;
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;;
485 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;;
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;;
500 # Obsolete; use --without-fp.
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
511 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
512 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
513 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;;
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;;
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;;
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;;
539 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \
543 | --program-transfo | --program-transf \
544 | --program-trans | --program-tran \
545 | --progr-tra | --program-tr | --program-t)
546 ac_prev=program_transform_name ;;
547 -program-transform-name=* | --program-transform-name=* \
548 | --program-transform-nam=* | --program-transform-na=* \
549 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;;
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil)
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
564 sbindir="$ac_optarg" ;;
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \
570 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
575 sharedstatedir="$ac_optarg" ;;
577 -site | --site | --sit)
579 -site=* | --site=* | --sit=*)
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;;
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;;
594 -target | --target | --targe | --targ | --tar | --ta | --t)
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;;
599 -v | -verbose | --verbose | --verbos | --verbo | --verb)
602 -version | --version | --versio | --versi | --vers)
603 echo "configure generated by autoconf version 2.13"
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
608 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
612 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 eval "with_${ac_package}='$ac_optarg'" ;;
619 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
621 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
625 ac_package=`echo $ac_package| sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;;
629 # Obsolete; use --with-x.
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;;
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;;
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
651 echo "configure: warning: $ac_option: invalid host type" 1>&2
653 if test "x$nonopt" != xNONE; then
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
662 if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
666 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
668 # File descriptor usage:
671 # 2 errors and warnings
672 # 3 some systems may open it to /dev/tty
673 # 4 used on the Kubota Titan
674 # 6 checking for... messages and results
675 # 5 compiler messages saved in config.log
676 if test "$silent" = yes; then
684 This file contains any messages produced by compilers while
685 running configure, to aid debugging if configure makes a mistake.
688 # Strip out --no-create and --no-recursion so they do not pile up.
689 # Also quote any args containing shell metacharacters.
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
695 | --no-cr | --no-c) ;;
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 # Only set these to C if already set. These must not be set unconditionally
706 # because not all systems understand e.g. LANG=C (notably SCO).
707 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
708 # Non-C LC_CTYPE values break the ctype check.
709 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
710 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
711 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
712 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
715 rm -rf conftest* confdefs.h
716 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
719 # A filename unique to this package, relative to the directory that
720 # configure is in, which we can look for to find out if srcdir is correct.
721 ac_unique_file=src/feature.h
723 # Find the source files, if location was not specified.
724 if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent.
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
731 if test ! -r $srcdir/$ac_unique_file; then
735 ac_srcdir_defaulted=no
737 if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
744 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
746 # Prefer explicitly selected file to automatically selected ones.
747 if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
754 for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then
756 echo "loading site script $ac_site_file"
761 if test -r "$cache_file"; then
762 echo "loading cache $cache_file"
765 echo "creating cache $cache_file"
770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771 ac_cpp='$CPP $CPPFLAGS'
772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774 cross_compiling=$ac_cv_prog_cc_cross
778 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
787 ac_n= ac_c='\c' ac_t=
792 for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then
795 ac_install_sh="$ac_aux_dir/install-sh -c"
797 elif test -f $ac_dir/install.sh; then
799 ac_install_sh="$ac_aux_dir/install.sh -c"
803 if test -z "$ac_aux_dir"; then
804 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
806 ac_config_guess=$ac_aux_dir/config.guess
807 ac_config_sub=$ac_aux_dir/config.sub
808 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
812 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
813 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
814 LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
815 LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
817 echo "configuring for rxvt $VERSION"
821 # Extract the first word of "gcc", so it can be a program name with args.
822 set dummy gcc; ac_word=$2
823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824 echo "configure:825: checking for $ac_word" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test.
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 for ac_dir in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
844 if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6
847 echo "$ac_t""no" 1>&6
850 if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args.
852 set dummy cc; ac_word=$2
853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
854 echo "configure:855: checking for $ac_word" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test.
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
864 for ac_dir in $ac_dummy; do
865 test -z "$ac_dir" && ac_dir=.
866 if test -f $ac_dir/$ac_word; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
876 if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC
880 if test $# -gt 0; then
881 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen
883 # first if we set CC to just the basename; use the full file name.
885 set dummy "$ac_dir/$ac_word" "$@"
893 if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6
896 echo "$ac_t""no" 1>&6
899 if test -z "$CC"; then
902 # Extract the first word of "cl", so it can be a program name with args.
903 set dummy cl; ac_word=$2
904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
905 echo "configure:906: checking for $ac_word" >&5
906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test.
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
914 for ac_dir in $ac_dummy; do
915 test -z "$ac_dir" && ac_dir=.
916 if test -f $ac_dir/$ac_word; then
925 if test -n "$CC"; then
926 echo "$ac_t""$CC" 1>&6
928 echo "$ac_t""no" 1>&6
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
936 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
937 echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling=$ac_cv_prog_cc_cross
946 cat > conftest.$ac_ext << EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
954 ac_cv_prog_cc_works=yes
955 # If we can't run a trivial program, we are probably using a cross compiler.
956 if (./conftest; exit) 2>/dev/null; then
957 ac_cv_prog_cc_cross=no
959 ac_cv_prog_cc_cross=yes
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 ac_cv_prog_cc_works=no
968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
969 ac_cpp='$CPP $CPPFLAGS'
970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
972 cross_compiling=$ac_cv_prog_cc_cross
974 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
975 if test $ac_cv_prog_cc_works = no; then
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
978 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
979 echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
980 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
981 cross_compiling=$ac_cv_prog_cc_cross
983 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
984 echo "configure:985: checking whether we are using GNU C" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 cat > conftest.c <<EOF
993 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1002 if test $ac_cv_prog_gcc = yes; then
1008 ac_test_CFLAGS="${CFLAGS+set}"
1009 ac_save_CFLAGS="$CFLAGS"
1011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1012 echo "configure:1013: checking whether ${CC-cc} accepts -g" >&5
1013 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 echo 'void f(){}' > conftest.c
1017 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1026 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1027 if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS"
1029 elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then
1036 if test "$GCC" = yes; then
1043 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1045 # Extract the first word of "$ac_prog", so it can be a program name with args.
1046 set dummy $ac_prog; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1057 for ac_dir in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir=.
1059 if test -f $ac_dir/$ac_word; then
1060 ac_cv_prog_CXX="$ac_prog"
1067 CXX="$ac_cv_prog_CXX"
1068 if test -n "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6
1071 echo "$ac_t""no" 1>&6
1074 test -n "$CXX" && break
1076 test -n "$CXX" || CXX="gcc"
1079 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1084 ac_cpp='$CXXCPP $CPPFLAGS'
1085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1087 cross_compiling=$ac_cv_prog_cxx_cross
1089 cat > conftest.$ac_ext << EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1094 int main(){return(0);}
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 ac_cv_prog_cxx_works=yes
1098 # If we can't run a trivial program, we are probably using a cross compiler.
1099 if (./conftest; exit) 2>/dev/null; then
1100 ac_cv_prog_cxx_cross=no
1102 ac_cv_prog_cxx_cross=yes
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 ac_cv_prog_cxx_works=no
1111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp='$CPP $CPPFLAGS'
1113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling=$ac_cv_prog_cc_cross
1117 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1118 if test $ac_cv_prog_cxx_works = no; then
1119 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1123 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1124 cross_compiling=$ac_cv_prog_cxx_cross
1126 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether we are using GNU C++" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 cat > conftest.C <<EOF
1136 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1143 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1145 if test $ac_cv_prog_gxx = yes; then
1151 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1152 ac_save_CXXFLAGS="$CXXFLAGS"
1154 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CXX-g++} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 echo 'void f(){}' > conftest.cc
1160 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1161 ac_cv_prog_cxx_g=yes
1169 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1170 if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS"
1172 elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then
1179 if test "$GXX" = yes; then
1186 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1187 echo "configure:1188: checking how to run the C preprocessor" >&5
1188 # On Suns, sometimes $CPP names a directory.
1189 if test -n "$CPP" && test -d "$CPP"; then
1192 if test -z "$CPP"; then
1193 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 # This must be in double quotes, not single quotes, because CPP may get
1197 # substituted into the Makefile and "${CC-cc}" will confuse make.
1199 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp.
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1210 if test -z "$ac_err"; then
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1217 CPP="${CC-cc} -E -traditional-cpp"
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1225 { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227 if test -z "$ac_err"; then
1231 echo "configure: failed program was:" >&5
1232 cat conftest.$ac_ext >&5
1234 CPP="${CC-cc} -nologo -E"
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1242 { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1244 if test -z "$ac_err"; then
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1258 ac_cv_prog_CPP="$CPP"
1260 CPP="$ac_cv_prog_CPP"
1262 ac_cv_prog_CPP="$CPP"
1264 echo "$ac_t""$CPP" 1>&6
1266 # Find a good install program. We prefer a C program (faster),
1267 # so one script is as good as another. But avoid the broken or
1268 # incompatible versions:
1269 # SysV /etc/install, /usr/sbin/install
1270 # SunOS /usr/etc/install
1271 # IRIX /sbin/install
1273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1276 # ./install, which can be erroneously created by make from ./install.sh.
1277 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1278 echo "configure:1279: checking for a BSD compatible install" >&5
1279 if test -z "$INSTALL"; then
1280 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1284 for ac_dir in $PATH; do
1285 # Account for people who put trailing slashes in PATH elements.
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1289 # OSF1 and SCO ODT 3.0 have their own names for install.
1290 # Don't use installbsd from OSF since it installs stuff as root
1292 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then
1294 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention.
1299 ac_cv_path_install="$ac_dir/$ac_prog -c"
1310 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install"
1313 # As a last resort, use the slow shell script. We don't cache a
1314 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh"
1320 echo "$ac_t""$INSTALL" 1>&6
1322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323 # It thinks the first close brace ends the variable substitution.
1324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1330 for ac_prog in mawk gawk nawk awk
1332 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333 set dummy $ac_prog; ac_word=$2
1334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1335 echo "configure:1336: checking for $ac_word" >&5
1336 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1344 for ac_dir in $ac_dummy; do
1345 test -z "$ac_dir" && ac_dir=.
1346 if test -f $ac_dir/$ac_word; then
1347 ac_cv_prog_AWK="$ac_prog"
1354 AWK="$ac_cv_prog_AWK"
1355 if test -n "$AWK"; then
1356 echo "$ac_t""$AWK" 1>&6
1358 echo "$ac_t""no" 1>&6
1361 test -n "$AWK" && break
1365 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1366 echo "configure:1367: checking for AIX" >&5
1367 cat > conftest.$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1379 #define _ALL_SOURCE 1
1384 echo "$ac_t""no" 1>&6
1389 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1390 echo "configure:1391: checking for POSIXized ISC" >&5
1391 if test -d /etc/conf/kconfig.d &&
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1394 echo "$ac_t""yes" 1>&6
1395 ISC=yes # If later tests want to check for ISC.
1396 cat >> confdefs.h <<\EOF
1397 #define _POSIX_SOURCE 1
1400 if test "$GCC" = yes; then
1406 echo "$ac_t""no" 1>&6
1411 # Check whether --enable-shared or --disable-shared was given.
1412 if test "${enable_shared+set}" = set; then
1413 enableval="$enable_shared"
1414 p=${PACKAGE-default}
1415 case "$enableval" in
1416 yes) enable_shared=yes ;;
1417 no) enable_shared=no ;;
1420 # Look at the argument we got. We use all the common list separators.
1421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1422 for pkg in $enableval; do
1423 if test "X$pkg" = "X$p"; then
1433 # Check whether --enable-static or --disable-static was given.
1434 if test "${enable_static+set}" = set; then
1435 enableval="$enable_static"
1436 p=${PACKAGE-default}
1437 case "$enableval" in
1438 yes) enable_static=yes ;;
1439 no) enable_static=no ;;
1442 # Look at the argument we got. We use all the common list separators.
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1444 for pkg in $enableval; do
1445 if test "X$pkg" = "X$p"; then
1455 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1456 echo "configure:1457: checking for Cygwin environment" >&5
1457 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1467 #define __CYGWIN__ __CYGWIN32__
1472 if { (eval echo configure:1473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1485 echo "$ac_t""$ac_cv_cygwin" 1>&6
1487 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1488 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1489 echo "configure:1490: checking for mingw32 environment" >&5
1490 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1501 if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1514 echo "$ac_t""$ac_cv_mingw32" 1>&6
1516 test "$ac_cv_mingw32" = yes && MINGW32=yes
1517 # Check whether --enable-fast-install or --disable-fast-install was given.
1518 if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install"
1520 p=${PACKAGE-default}
1521 case "$enableval" in
1522 yes) enable_fast_install=yes ;;
1523 no) enable_fast_install=no ;;
1525 enable_fast_install=no
1526 # Look at the argument we got. We use all the common list separators.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1528 for pkg in $enableval; do
1529 if test "X$pkg" = "X$p"; then
1530 enable_fast_install=yes
1537 enable_fast_install=yes
1541 # Make sure we can run config.sub.
1542 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1543 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1546 echo $ac_n "checking host system type""... $ac_c" 1>&6
1547 echo "configure:1548: checking host system type" >&5
1550 case "$host_alias" in
1554 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1555 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1557 *) host_alias=$nonopt ;;
1561 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1562 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 echo "$ac_t""$host" 1>&6
1567 echo $ac_n "checking build system type""... $ac_c" 1>&6
1568 echo "configure:1569: checking build system type" >&5
1571 case "$build_alias" in
1574 NONE) build_alias=$host_alias ;;
1575 *) build_alias=$nonopt ;;
1579 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1580 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583 echo "$ac_t""$build" 1>&6
1585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1586 if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes
1594 if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path.
1596 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1597 echo "configure:1598: checking for ld used by GCC" >&5
1600 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1606 # Accept absolute paths.
1607 [\\/]* | [A-Za-z]:[\\/]*)
1608 re_direlt='/[^/][^/]*/\.\./'
1609 # Canonicalize the path of ld
1610 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1611 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1612 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1614 test -z "$LD" && LD="$ac_prog"
1617 # If it fails, then pretend we aren't using GCC.
1621 # If it is relative, then search for the first ld in PATH.
1625 elif test "$with_gnu_ld" = yes; then
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1627 echo "configure:1628: checking for GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1630 echo "configure:1631: checking for non-GNU ld" >&5
1632 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1640 lt_cv_path_LD="$ac_dir/$ac_prog"
1641 # Check to see if the program is GNU ld. I'd rather use --version,
1642 # but apparently some GNU ld's only accept -v.
1643 # Break only if it was the GNU/non-GNU ld that we prefer.
1644 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1645 test "$with_gnu_ld" != no && break
1647 test "$with_gnu_ld" != yes && break
1653 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1658 if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6
1661 echo "$ac_t""no" 1>&6
1663 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1664 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1665 echo "configure:1666: checking if the linker ($LD) is GNU ld" >&5
1666 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1670 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes
1673 lt_cv_prog_gnu_ld=no
1677 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1678 with_gnu_ld=$lt_cv_prog_gnu_ld
1681 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $LD option to reload object files" >&5
1683 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 lt_cv_ld_reload_flag='-r'
1689 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1690 reload_flag=$lt_cv_ld_reload_flag
1691 test -n "$reload_flag" && reload_flag=" $reload_flag"
1693 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1694 echo "configure:1695: checking for BSD-compatible nm" >&5
1695 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 if test -n "$NM"; then
1699 # Let the user override the test.
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1703 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1704 test -z "$ac_dir" && ac_dir=.
1705 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1706 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1707 # Check to see if the nm accepts a BSD-compat flag.
1708 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1709 # nm: unknown option "B" ignored
1710 # Tru64's nm complains that /dev/null is an invalid object file
1711 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1712 lt_cv_path_NM="$tmp_nm -B"
1714 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1715 lt_cv_path_NM="$tmp_nm -p"
1718 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1719 continue # so that we can try to find one that supports BSD flags
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1729 echo "$ac_t""$NM" 1>&6
1731 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether ln -s works" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1737 if ln -s X conftestdata 2>/dev/null
1740 ac_cv_prog_LN_S="ln -s"
1745 LN_S="$ac_cv_prog_LN_S"
1746 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6
1749 echo "$ac_t""no" 1>&6
1752 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1753 echo "configure:1754: checking how to recognise dependant libraries" >&5
1754 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758 lt_cv_file_magic_test_file=
1759 lt_cv_deplibs_check_method='unknown'
1760 # Need to set the preceding variable on all platforms that support
1761 # interlibrary dependencies.
1762 # 'none' -- dependencies not supported.
1763 # `unknown' -- same as none, but documents that we really don't know.
1764 # 'pass_all' -- all dependencies passed with no checks.
1765 # 'test_compile' -- check by making test program.
1766 # ['file_magic [regex]'] -- check by looking for files in library path
1767 # which responds to the $file_magic_cmd with a given egrep regex.
1768 # If you have `file' or equivalent on your system and you're not sure
1769 # whether `pass_all' will *always* work, you probably want this one.
1773 lt_cv_deplibs_check_method=pass_all
1777 lt_cv_deplibs_check_method=pass_all
1781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1782 lt_cv_file_magic_cmd='/usr/bin/file -L'
1783 lt_cv_file_magic_test_file=/shlib/libc.so
1786 cygwin* | mingw* | pw32*)
1787 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1788 lt_cv_file_magic_cmd='$OBJDUMP -f'
1792 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1793 lt_cv_file_magiic_cmd=/usr/bin/file
1794 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1798 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1801 # Not sure whether the presence of OpenBSD here was a mistake.
1802 # Let's accept both of them until this is cleared up.
1803 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1804 lt_cv_file_magic_cmd=/usr/bin/file
1805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1809 lt_cv_deplibs_check_method=pass_all
1814 lt_cv_deplibs_check_method=pass_all
1818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1819 lt_cv_file_magic_cmd=/usr/bin/file
1820 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1826 # this will be overridden with pass_all, but let us keep it just in case
1827 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1831 *-32|*"-32 ") libmagic=32-bit;;
1832 *-n32|*"-n32 ") libmagic=N32;;
1833 *-64|*"-64 ") libmagic=64-bit;;
1834 *) libmagic=never-match;;
1836 # this will be overridden with pass_all, but let us keep it just in case
1837 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1840 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1841 lt_cv_deplibs_check_method=pass_all
1844 # This must be Linux ELF.
1847 alpha* | i*86 | powerpc* | sparc* | ia64* )
1848 lt_cv_deplibs_check_method=pass_all ;;
1850 # glibc up to 2.1.1 does not perform some relocations on ARM
1851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1853 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1857 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1858 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
1860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1862 lt_cv_file_magic_cmd='/usr/bin/file -L'
1863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1868 lt_cv_file_magic_cmd=/usr/bin/file
1869 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1872 osf3* | osf4* | osf5*)
1873 # this will be overridden with pass_all, but let us keep it just in case
1874 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1875 lt_cv_file_magic_test_file=/shlib/libc.so
1876 lt_cv_deplibs_check_method=pass_all
1880 lt_cv_deplibs_check_method=pass_all
1884 lt_cv_deplibs_check_method=pass_all
1885 lt_cv_file_magic_test_file=/lib/libc.so
1888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1889 case "$host_vendor" in
1891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1895 lt_cv_deplibs_check_method=pass_all
1898 lt_cv_file_magic_cmd='/bin/file'
1899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1902 lt_cv_file_magic_cmd='/bin/file'
1903 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1904 lt_cv_file_magic_test_file=/lib/libc.so
1912 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1913 file_magic_cmd=$lt_cv_file_magic_cmd
1914 deplibs_check_method=$lt_cv_deplibs_check_method
1916 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1917 echo "configure:1918: checking for object suffix" >&5
1918 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1922 echo 'int i = 1;' > conftest.$ac_ext
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 for ac_file in conftest.*; do
1927 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1931 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1936 echo "$ac_t""$ac_cv_objext" 1>&6
1937 OBJEXT=$ac_cv_objext
1938 ac_objext=$ac_cv_objext
1942 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1943 echo "configure:1944: checking for executable suffix" >&5
1944 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1951 echo 'int main () { return 0; }' > conftest.$ac_ext
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1954 for file in conftest.*; do
1956 *.$ac_ext | *.c | *.o | *.obj) ;;
1957 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1961 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1964 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1969 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1970 echo "$ac_t""${ac_cv_exeext}" 1>&6
1973 if test $host != $build; then
1974 ac_tool_prefix=${host_alias}-
1982 # Check for command to grab the raw symbol name followed by C symbol from nm.
1983 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1984 echo "configure:1985: checking command to parse $NM output" >&5
1985 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1989 # These are sane defaults that work on at least a few old systems.
1990 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1992 # Character class describing NM global symbol codes.
1993 symcode='[BCDEGRST]'
1995 # Regexp to match symbols that can be accessed directly from C.
1996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1998 # Transform the above into a raw symbol and a C symbol.
1999 symxfrm='\1 \2\3 \3'
2001 # Transform an extracted symbol line into a proper C declaration
2002 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2004 # Define system-specific variables.
2009 cygwin* | mingw* | pw32*)
2010 symcode='[ABCDGISTW]'
2012 hpux*) # Its linker distinguishes data from code symbols
2013 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2016 symcode='[BCDEGRST]'
2026 # Handle CRLF in mingw tool chain
2030 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2034 # If we're using GNU nm, then use its standard symbol codes.
2035 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2036 symcode='[ABCDGISTW]'
2039 # Try without a prefix undercore, then with it.
2040 for ac_symprfx in "" "_"; do
2042 # Write the raw and C identifiers.
2043 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2045 # Check to see that the pipe works correctly.
2048 cat > conftest.$ac_ext <<EOF
2053 void nm_test_func(){}
2057 main(){nm_test_var='a';nm_test_func();return(0);}
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2061 # Now try to grab the symbols.
2063 if { (eval echo configure:2064: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist"
2071 # Make sure that we snagged all the symbols we need.
2072 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2073 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2074 cat <<EOF > conftest.$ac_ext
2080 # Now generate the symbol file.
2081 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2083 cat <<EOF >> conftest.$ac_ext
2084 #if defined (__STDC__) && __STDC__
2085 # define lt_ptr_t void *
2087 # define lt_ptr_t char *
2091 /* The mapping between symbol names and symbols. */
2096 lt_preloaded_symbols[] =
2099 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
2100 cat <<\EOF >> conftest.$ac_ext
2108 # Now try linking the two files.
2109 mv conftest.$ac_objext conftstm.$ac_objext
2111 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2118 CFLAGS="$save_CFLAGS"
2120 echo "cannot find nm_test_func in $nlist" >&5
2123 echo "cannot find nm_test_var in $nlist" >&5
2126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2129 echo "$progname: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 rm -f conftest* conftst*
2134 # Do not use the global_symbol_pipe unless it works.
2135 if test "$pipe_works" = yes; then
2138 lt_cv_sys_global_symbol_pipe=
2144 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2145 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2146 global_symbol_to_cdecl=
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2150 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6
2153 echo "$ac_t""ok" 1>&6
2156 for ac_hdr in dlfcn.h
2158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_hdr" >&5
2161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172 if test -z "$ac_err"; then
2174 eval "ac_cv_header_$ac_safe=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 eval "ac_cv_header_$ac_safe=no"
2184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2187 cat >> confdefs.h <<EOF
2188 #define $ac_tr_hdr 1
2192 echo "$ac_t""no" 1>&6
2200 # Only perform the check for file, if the check method requires it
2201 case "$deplibs_check_method" in
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2204 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2205 echo "configure:2206: checking for ${ac_tool_prefix}file" >&5
2206 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 case "$MAGIC_CMD" in
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2217 ac_save_MAGIC_CMD="$MAGIC_CMD"
2218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2219 ac_dummy="/usr/bin:$PATH"
2220 for ac_dir in $ac_dummy; do
2221 test -z "$ac_dir" && ac_dir=.
2222 if test -f $ac_dir/${ac_tool_prefix}file; then
2223 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2224 if test -n "$file_magic_test_file"; then
2225 case "$deplibs_check_method" in
2227 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2230 egrep "$file_magic_regex" > /dev/null; then
2235 *** Warning: the command libtool uses to detect shared libraries,
2236 *** $file_magic_cmd, produces output that libtool cannot recognize.
2237 *** The result is that libtool may fail to recognize shared libraries
2238 *** as such. This will affect the creation of libtool libraries that
2239 *** depend on shared libraries, but programs linked with such libtool
2240 *** libraries will work regardless of this problem. Nevertheless, you
2241 *** may want to report the problem to your system manager and/or to
2242 *** bug-libtool@gnu.org
2252 MAGIC_CMD="$ac_save_MAGIC_CMD"
2257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258 if test -n "$MAGIC_CMD"; then
2259 echo "$ac_t""$MAGIC_CMD" 1>&6
2261 echo "$ac_t""no" 1>&6
2264 if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then
2266 echo $ac_n "checking for file""... $ac_c" 1>&6
2267 echo "configure:2268: checking for file" >&5
2268 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 case "$MAGIC_CMD" in
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2279 ac_save_MAGIC_CMD="$MAGIC_CMD"
2280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2281 ac_dummy="/usr/bin:$PATH"
2282 for ac_dir in $ac_dummy; do
2283 test -z "$ac_dir" && ac_dir=.
2284 if test -f $ac_dir/file; then
2285 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2286 if test -n "$file_magic_test_file"; then
2287 case "$deplibs_check_method" in
2289 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2292 egrep "$file_magic_regex" > /dev/null; then
2297 *** Warning: the command libtool uses to detect shared libraries,
2298 *** $file_magic_cmd, produces output that libtool cannot recognize.
2299 *** The result is that libtool may fail to recognize shared libraries
2300 *** as such. This will affect the creation of libtool libraries that
2301 *** depend on shared libraries, but programs linked with such libtool
2302 *** libraries will work regardless of this problem. Nevertheless, you
2303 *** may want to report the problem to your system manager and/or to
2304 *** bug-libtool@gnu.org
2314 MAGIC_CMD="$ac_save_MAGIC_CMD"
2319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320 if test -n "$MAGIC_CMD"; then
2321 echo "$ac_t""$MAGIC_CMD" 1>&6
2323 echo "$ac_t""no" 1>&6
2335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_word" >&5
2339 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2347 for ac_dir in $ac_dummy; do
2348 test -z "$ac_dir" && ac_dir=.
2349 if test -f $ac_dir/$ac_word; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2357 RANLIB="$ac_cv_prog_RANLIB"
2358 if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6
2361 echo "$ac_t""no" 1>&6
2365 if test -z "$ac_cv_prog_RANLIB"; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "ranlib", so it can be a program name with args.
2368 set dummy ranlib; ac_word=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 if test -n "$RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2379 for ac_dir in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir=.
2381 if test -f $ac_dir/$ac_word; then
2382 ac_cv_prog_RANLIB="ranlib"
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2390 RANLIB="$ac_cv_prog_RANLIB"
2391 if test -n "$RANLIB"; then
2392 echo "$ac_t""$RANLIB" 1>&6
2394 echo "$ac_t""no" 1>&6
2402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}strip; ac_word=$2
2404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_word" >&5
2406 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2414 for ac_dir in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir=.
2416 if test -f $ac_dir/$ac_word; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2424 STRIP="$ac_cv_prog_STRIP"
2425 if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6
2428 echo "$ac_t""no" 1>&6
2432 if test -z "$ac_cv_prog_STRIP"; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "strip", so it can be a program name with args.
2435 set dummy strip; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 if test -n "$STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2446 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 ac_cv_prog_STRIP="strip"
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2457 STRIP="$ac_cv_prog_STRIP"
2458 if test -n "$STRIP"; then
2459 echo "$ac_t""$STRIP" 1>&6
2461 echo "$ac_t""no" 1>&6
2473 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474 if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock"
2479 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2481 # Some flags need to be propagated to the compiler or linker for good
2485 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf"
2507 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether the C compiler needs -belf" >&5
2509 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 lt_cv_cc_needs_belf=yes
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2535 lt_cv_cc_needs_belf=no
2539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2543 cross_compiling=$ac_cv_prog_cc_cross
2547 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2549 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS"
2557 # Sed substitution that helps us do robust quoting. It backslashifies
2558 # metacharacters that are still active within double-quoted strings.
2559 Xsed='sed -e s/^X//'
2560 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2562 # Same as above, but do not quote variable references.
2563 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2565 # Sed substitution to delay expansion of an escaped shell variable in a
2566 # double_quote_subst'ed string.
2567 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2573 default_ofile=libtool
2574 can_build_shared=yes
2576 # All known linkers require a `.a' archive for static linking (except M$VC,
2577 # which needs '.lib').
2579 ltmain="$ac_aux_dir/ltmain.sh"
2580 ofile="$default_ofile"
2581 with_gnu_ld="$lt_cv_prog_gnu_ld"
2582 need_locks="$enable_libtool_lock"
2585 old_CFLAGS="$CFLAGS"
2587 # Set sane defaults for various variables
2588 test -z "$AR" && AR=ar
2589 test -z "$AR_FLAGS" && AR_FLAGS=cru
2590 test -z "$AS" && AS=as
2591 test -z "$CC" && CC=cc
2592 test -z "$DLLTOOL" && DLLTOOL=dlltool
2593 test -z "$LD" && LD=ld
2594 test -z "$LN_S" && LN_S="ln -s"
2595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2596 test -z "$NM" && NM=nm
2597 test -z "$OBJDUMP" && OBJDUMP=objdump
2598 test -z "$RANLIB" && RANLIB=:
2599 test -z "$STRIP" && STRIP=:
2600 test -z "$ac_objext" && ac_objext=o
2602 if test x"$host" != x"$build"; then
2603 ac_tool_prefix=${host_alias}-
2608 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2611 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2616 # AIX sometimes has problems with the GCC collect2 program. For some
2617 # reason, if we set the COLLECT_NAMES environment variable, the problems
2618 # vanish in a puff of smoke.
2619 if test "X${COLLECT_NAMES+set}" != Xset; then
2621 export COLLECT_NAMES
2626 # Determine commands to create old-style static archives.
2627 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2628 old_postinstall_cmds='chmod 644 $oldlib'
2629 old_postuninstall_cmds=
2631 if test -n "$RANLIB"; then
2632 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2633 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2636 # Allow CC to be a program name with arguments.
2640 ## FIXME: this should be a separate macro
2642 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2643 echo "configure:2644: checking for objdir" >&5
2644 rm -f .libs 2>/dev/null
2645 mkdir .libs 2>/dev/null
2646 if test -d .libs; then
2649 # MS-DOS does not allow filenames that begin with a dot.
2652 rmdir .libs 2>/dev/null
2653 echo "$ac_t""$objdir" 1>&6
2658 ## FIXME: this should be a separate macro
2660 # Check whether --with-pic or --without-pic was given.
2661 if test "${with_pic+set}" = set; then
2668 test -z "$pic_mode" && pic_mode=default
2670 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671 # in isolation, and that seeing it set (from the cache) indicates that
2672 # the associated values are set (in the cache) correctly too.
2673 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2679 lt_cv_prog_cc_shlib=
2681 lt_cv_prog_cc_static=
2682 lt_cv_prog_cc_no_builtin=
2683 lt_cv_prog_cc_can_build_shared=$can_build_shared
2685 if test "$GCC" = yes; then
2686 lt_cv_prog_cc_wl='-Wl,'
2687 lt_cv_prog_cc_static='-static'
2690 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2691 # PIC is the default for these OSes.
2694 # Below there is a dirty hack to force normal static linking with -ldl
2695 # The problem is because libdl dynamically linked with both libc and
2696 # libC (AIX C++ library), which obviously doesn't included in libraries
2697 # list by gcc. This cause undefined symbols with -static flags.
2698 # This hack allows C programs to be linked with "-static -ldl", but
2699 # we not sure about C++ programs.
2700 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2702 cygwin* | mingw* | pw32* | os2*)
2703 # This hack is so that the source file can tell whether it is being
2704 # built for inclusion in a dll (and should export symbols for example).
2705 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2708 # FIXME: we need at least 68020 code to build shared libraries, but
2709 # adding the `-m68020' flag to GCC prevents building anything better,
2711 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2714 if test -d /usr/nec; then
2715 lt_cv_prog_cc_pic=-Kconform_pic
2719 lt_cv_prog_cc_pic='-fPIC'
2723 # PORTME Check for PIC flags for the system compiler.
2726 # All AIX code is PIC.
2727 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2730 hpux9* | hpux10* | hpux11*)
2731 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2732 lt_cv_prog_cc_wl='-Wl,'
2733 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2734 lt_cv_prog_cc_pic='+Z'
2738 lt_cv_prog_cc_wl='-Wl,'
2739 lt_cv_prog_cc_static='-non_shared'
2740 # PIC (with -KPIC) is the default.
2743 cygwin* | mingw* | pw32* | os2*)
2744 # This hack is so that the source file can tell whether it is being
2745 # built for inclusion in a dll (and should export symbols for example).
2746 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2750 lt_cv_prog_cc_pic='-KPIC'
2751 lt_cv_prog_cc_static='-Bstatic'
2754 osf3* | osf4* | osf5*)
2755 # All OSF/1 code is PIC.
2756 lt_cv_prog_cc_wl='-Wl,'
2757 lt_cv_prog_cc_static='-non_shared'
2761 lt_cv_prog_cc_pic='-Kpic'
2762 lt_cv_prog_cc_static='-dn'
2763 lt_cv_prog_cc_shlib='-belf'
2767 lt_cv_prog_cc_pic='-KPIC'
2768 lt_cv_prog_cc_static='-Bstatic'
2769 lt_cv_prog_cc_wl='-Wl,'
2773 lt_cv_prog_cc_pic='-PIC'
2774 lt_cv_prog_cc_static='-Bstatic'
2775 lt_cv_prog_cc_wl='-Qoption ld '
2778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2779 lt_cv_prog_cc_pic='-KPIC'
2780 lt_cv_prog_cc_static='-Bstatic'
2781 if test "x$host_vendor" = xsni; then
2782 lt_cv_prog_cc_wl='-LD'
2784 lt_cv_prog_cc_wl='-Wl,'
2789 lt_cv_prog_cc_pic='-pic'
2790 lt_cv_prog_cc_static='-Bstatic'
2794 if test -d /usr/nec ;then
2795 lt_cv_prog_cc_pic='-Kconform_pic'
2796 lt_cv_prog_cc_static='-Bstatic'
2801 lt_cv_prog_cc_can_build_shared=no
2808 if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2813 # Check to make sure the pic_flag actually works.
2814 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2815 echo "configure:2816: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2816 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2834 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported.
2836 if test -s conftest.err; then
2837 lt_cv_prog_cc_pic_works=no
2839 lt_cv_prog_cc_pic_works=yes
2843 lt_cv_prog_cc_pic_works=yes
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 lt_cv_prog_cc_pic_works=no
2855 CFLAGS="$save_CFLAGS"
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2862 lt_cv_prog_cc_can_build_shared=no
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2872 # Check for any special shared library compilation flags.
2873 if test -n "$lt_cv_prog_cc_shlib"; then
2874 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2875 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2877 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2878 lt_cv_prog_cc_can_build_shared=no
2882 ## FIXME: this should be a separate macro
2884 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2885 echo "configure:2886: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2886 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2902 lt_cv_prog_cc_static_works=yes
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2908 LDFLAGS="$save_LDFLAGS"
2913 # Belt *and* braces to stop my trousers falling down:
2914 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2915 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2917 pic_flag="$lt_cv_prog_cc_pic"
2918 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919 wl="$lt_cv_prog_cc_wl"
2920 link_static_flag="$lt_cv_prog_cc_static"
2921 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2922 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2927 ## FIXME: this should be a separate macro
2929 # Check to see if options -o and -c are simultaneously supported by compiler
2930 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2931 echo "configure:2932: checking if $compiler supports -c -o file.$ac_objext" >&5
2932 $rm -r conftest 2>/dev/null
2935 echo "int some_variable = 0;" > conftest.$ac_ext
2937 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2938 # that will create temporary files in the current directory regardless of
2939 # the output directory. Thus, making CWD read-only will cause this test
2940 # to fail, enabling locking or at least warning the user not to do parallel
2943 save_CFLAGS="$CFLAGS"
2944 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2947 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings
2949 if test -s out/conftest.err; then
2955 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5
2959 echo "$ac_t""$compiler_c_o" 1>&6
2960 CFLAGS="$save_CFLAGS"
2966 $rm -r conftest 2>/dev/null
2968 if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo
2970 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2971 echo "configure:2972: checking if $compiler supports -c -o file.lo" >&5
2973 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 int some_variable = 0;
2983 if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings
2987 if test -s conftest.err; then
2994 echo "configure: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6
2999 CFLAGS="$save_CFLAGS"
3006 ## FIXME: this should be a separate macro
3008 # Check to see if we can do hard links to lock some files if needed
3009 hard_links="nottested"
3010 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user
3012 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3013 echo "configure:3014: checking if we can lock with hard links" >&5
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3018 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3020 echo "$ac_t""$hard_links" 1>&6
3021 if test "$hard_links" = no; then
3022 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3031 ## FIXME: this should be a separate macro
3033 if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3035 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3036 echo "configure:3037: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3037 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3046 int some_variable = 0;
3049 if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3051 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings
3053 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no
3056 compiler_rtti_exceptions=yes
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3064 CFLAGS="$save_CFLAGS"
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3067 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3070 no_builtin_flag=' -fno-builtin'
3076 ## FIXME: this should be a separate macro
3078 # See if the linker supports building shared libraries.
3079 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether the linker ($LD) supports shared libraries" >&5
3082 allow_undefined_flag=
3084 need_lib_prefix=unknown
3085 need_version=unknown
3086 # when you set need_version to no, make sure it does not cause -set_version
3087 # flags to be left without arguments
3089 archive_expsym_cmds=
3090 old_archive_from_new_cmds=
3091 old_archive_from_expsyms_cmds=
3092 export_dynamic_flag_spec=
3093 whole_archive_flag_spec=
3094 thread_safe_flag_spec=
3095 hardcode_into_libs=no
3096 hardcode_libdir_flag_spec=
3097 hardcode_libdir_separator=
3100 hardcode_shlibpath_var=unsupported
3102 link_all_deplibs=unknown
3103 always_export_symbols=no
3104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3105 # include_expsyms should be a list of space-separated symbols to be *always*
3106 # included in the symbol list
3108 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3109 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3110 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3111 # as well as any symbol that contains `d'.
3112 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3113 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3114 # platforms (ab)use it in PIC code, but their linkers get confused if
3115 # the symbol is explicitly referenced. Since portable code cannot
3116 # rely on this symbol name, it's probably fine to never include it in
3117 # preloaded symbol tables.
3118 extract_expsyms_cmds=
3121 cygwin* | mingw* | pw32* )
3122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3123 # When not using gcc, we currently assume that we are using
3124 # Microsoft Visual C++.
3125 if test "$GCC" != yes; then
3133 if test "$with_gnu_ld" = yes; then
3134 # If archive_cmds runs LD, not CC, wlarc should be empty
3137 # See if GNU ld supports shared libraries.
3140 # On AIX, the GNU linker is very broken
3144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3145 *** to be unable to reliably create shared libraries on AIX.
3146 *** Therefore, libtool is disabling shared libraries support. If you
3147 *** really care for shared libraries, you may want to modify your PATH
3148 *** so that a non-GNU linker is found, and then restart.
3154 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3155 hardcode_libdir_flag_spec='-L$libdir'
3156 hardcode_minus_L=yes
3158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3159 # that the semantics of dynamic libraries on AmigaOS, at least up
3160 # to version 4, is to share data among multiple programs linked
3161 # with the same dynamic library. Since this doesn't match the
3162 # behavior of shared libraries on other platforms, we can use
3168 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3169 allow_undefined_flag=unsupported
3170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3171 # support --undefined. This deserves some investigation. FIXME
3172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3178 cygwin* | mingw* | pw32*)
3179 # hardcode_libdir_flag_spec is actually meaningless, as there is
3180 # no search path for DLLs.
3181 hardcode_libdir_flag_spec='-L$libdir'
3182 allow_undefined_flag=unsupported
3183 always_export_symbols=yes
3185 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3186 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3187 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3188 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3189 else $CC -o impgen impgen.c ; fi)~
3190 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
3192 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3194 # cygwin and mingw dlls have different entry points and sets of symbols
3196 # FIXME: what about values for MSVC?
3197 dll_entry=__cygwin_dll_entry@12
3198 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3202 dll_entry=_DllMainCRTStartup@12
3203 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3207 # mingw and cygwin differ, and it's simplest to just exclude the union
3208 # of the two symbol sets.
3209 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3211 # recent cygwin and mingw systems supply a stub DllMain which the user
3212 # can override, but on older systems we have to supply one (in ltdll.c)
3213 if test "x$lt_cv_need_dllmain" = "xyes"; then
3214 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3215 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
3216 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3222 # Extract the symbol export list from an `--export-all' def file,
3223 # then regenerate the def file from the symbol export list, so that
3224 # the compiled dll only exports the symbol export list.
3225 # Be careful not to strip the DATA tag left be newer dlltools.
3226 export_symbols_cmds="$ltdll_cmds"'
3227 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3228 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3230 # If DATA tags from a recent dlltool are present, honour them!
3231 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
3233 cat $export_symbols | while read symbol; do
3236 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3237 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3239 _lt_hint=`expr 1 + \$_lt_hint`;
3242 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3243 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3244 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3245 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3246 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3251 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3260 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3265 *** create shared libraries on Solaris systems. Therefore, libtool
3266 *** is disabling shared libraries support. We urge you to upgrade GNU
3267 *** binutils to release 2.9.1 or newer. Another option is to modify
3268 *** your PATH or compiler configuration so that the native linker is
3269 *** used, and then restart.
3272 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3281 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3284 hardcode_shlibpath_var=no
3288 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3297 if test "$ld_shlibs" = yes; then
3298 runpath_var=LD_RUN_PATH
3299 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3300 export_dynamic_flag_spec='${wl}--export-dynamic'
3302 cygwin* | mingw* | pw32*)
3303 # dlltool doesn't understand --whole-archive et. al.
3304 whole_archive_flag_spec=
3307 # ancient GNU ld didn't support --whole-archive et. al.
3308 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3311 whole_archive_flag_spec=
3317 # PORTME fill in a description of your system's linker (not GNU ld)
3320 allow_undefined_flag=unsupported
3321 always_export_symbols=yes
3322 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3323 # Note: this linker hardcodes the directories in LIBPATH if there
3324 # are no directories specified by -L.
3325 hardcode_minus_L=yes
3326 if test "$GCC" = yes && test -z "$link_static_flag"; then
3327 # Neither direct hardcoding nor static linking is supported with a
3329 hardcode_direct=unsupported
3334 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
3335 hardcode_libdir_separator=':'
3336 if test "$GCC" = yes; then
3337 collect2name=`${CC} -print-prog-name=collect2`
3338 if test -f "$collect2name" && \
3339 strings "$collect2name" | grep resolve_lib_name >/dev/null
3341 # We have reworked collect2
3344 # We have old collect2
3345 hardcode_direct=unsupported
3346 # It fails to find uninstalled libraries when the uninstalled
3347 # path is not listed in the libpath. Setting hardcode_minus_L
3348 # to unsupported forces relinking
3349 hardcode_minus_L=yes
3350 hardcode_libdir_flag_spec='-L$libdir'
3351 hardcode_libdir_separator=
3353 shared_flag='-shared'
3355 shared_flag='${wl}-bM:SRE'
3358 allow_undefined_flag=' ${wl}-berok'
3359 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
3360 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
3361 case "$host_os" in aix4.[01]|aix4.[01].*)
3362 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
3363 always_export_symbols=yes ;;
3366 # We don't want to build shared libraries on unknown CPU types.
3368 powerpc | rs6000) ;;
3374 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3375 hardcode_libdir_flag_spec='-L$libdir'
3376 hardcode_minus_L=yes
3377 # see comment about different semantics on the GNU ld section
3381 cygwin* | mingw* | pw32*)
3382 # When not using gcc, we currently assume that we are using
3383 # Microsoft Visual C++.
3384 # hardcode_libdir_flag_spec is actually meaningless, as there is
3385 # no search path for DLLs.
3386 hardcode_libdir_flag_spec=' '
3387 allow_undefined_flag=unsupported
3388 # Tell ltmain to make .lib files, not .a files.
3390 # FIXME: Setting linknames here is a bad hack.
3391 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3392 # The linker will automatically build a .lib file if we build a DLL.
3393 old_archive_from_new_cmds='true'
3394 # FIXME: Should let the user specify the lib program.
3395 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3396 fix_srcfile_path='`cygpath -w "$srcfile"`'
3399 darwin* | rhapsody*)
3400 allow_undefined_flag='-undefined warning'
3401 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
3402 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
3403 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3404 ## What we need is to hardcode the path to the library, not the search path
3405 #hardcode_direct=yes
3406 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
3407 hardcode_shlibpath_var=no
3408 whole_archive_flag_spec='-all_load'
3415 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3416 # support. Future versions do this automatically, but an explicit c++rt0.o
3417 # does not break anything, and helps significantly (at the cost of a little
3420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3421 hardcode_libdir_flag_spec='-R$libdir'
3423 hardcode_shlibpath_var=no
3426 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3430 hardcode_minus_L=yes
3431 hardcode_shlibpath_var=no
3434 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3436 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3437 hardcode_libdir_flag_spec='-R$libdir'
3439 hardcode_shlibpath_var=no
3442 hpux9* | hpux10* | hpux11*)
3444 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
3445 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3448 hardcode_libdir_separator=:
3450 hardcode_minus_L=yes # Not in the search PATH, but as the default
3451 # location of the library.
3452 export_dynamic_flag_spec='${wl}-E'
3456 if test "$GCC" = yes; then
3457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3459 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3462 hardcode_libdir_separator=:
3463 link_all_deplibs=yes
3467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3470 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3472 hardcode_libdir_flag_spec='-R$libdir'
3474 hardcode_shlibpath_var=no
3478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3481 hardcode_libdir_separator=:
3482 hardcode_shlibpath_var=no
3486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3487 hardcode_libdir_flag_spec='-R$libdir'
3489 hardcode_shlibpath_var=no
3493 hardcode_libdir_flag_spec='-L$libdir'
3494 hardcode_minus_L=yes
3495 allow_undefined_flag=unsupported
3496 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
3497 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3501 if test "$GCC" = yes; then
3502 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3503 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3505 allow_undefined_flag=' -expect_unresolved \*'
3506 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3509 hardcode_libdir_separator=:
3512 osf4* | osf5*) # as osf3* with the addition of -msym flag
3513 if test "$GCC" = yes; then
3514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3515 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3517 allow_undefined_flag=' -expect_unresolved \*'
3518 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3519 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3520 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3522 #Both c and cxx compiler support -rpath directly
3523 hardcode_libdir_flag_spec='-rpath $libdir'
3524 hardcode_libdir_separator=:
3528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3529 hardcode_shlibpath_var=no
3530 runpath_var=LD_RUN_PATH
3531 hardcode_runpath_var=yes
3535 no_undefined_flag=' -z text'
3536 # $CC -shared without GNU ld will not create a library from C++
3537 # object files and a static libstdc++, better avoid it by now
3538 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3539 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3541 hardcode_libdir_flag_spec='-R$libdir'
3542 hardcode_shlibpath_var=no
3544 solaris2.[0-5] | solaris2.[0-5].*) ;;
3545 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3546 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3548 link_all_deplibs=yes
3552 if test "x$host_vendor" = xsequent; then
3553 # Use $CC to link under sequent, because it throws in some extra .o
3554 # files that make .init and .fini sections work.
3555 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3557 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3559 hardcode_libdir_flag_spec='-L$libdir'
3561 hardcode_minus_L=yes
3562 hardcode_shlibpath_var=no
3566 if test "x$host_vendor" = xsno; then
3567 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3568 hardcode_direct=yes # is this really true???
3570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3571 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3573 runpath_var='LD_RUN_PATH'
3574 hardcode_shlibpath_var=no
3578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3579 hardcode_shlibpath_var=no
3580 export_dynamic_flag_spec='-Bexport'
3584 no_undefined_flag=' -z text'
3585 # $CC -shared without GNU ld will not create a library from C++
3586 # object files and a static libstdc++, better avoid it by now
3587 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3588 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3590 hardcode_libdir_flag_spec=
3591 hardcode_shlibpath_var=no
3592 runpath_var='LD_RUN_PATH'
3596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3597 hardcode_libdir_flag_spec='-L$libdir'
3598 hardcode_shlibpath_var=no
3602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3603 hardcode_libdir_flag_spec='-L$libdir'
3604 hardcode_shlibpath_var=no
3608 if test -d /usr/nec; then
3609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3610 hardcode_shlibpath_var=no
3611 runpath_var=LD_RUN_PATH
3612 hardcode_runpath_var=yes
3618 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3621 hardcode_shlibpath_var=no
3622 hardcode_runpath_var=yes
3623 runpath_var=LD_RUN_PATH
3627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3628 runpath_var='LD_RUN_PATH'
3629 hardcode_shlibpath_var=no
3637 echo "$ac_t""$ld_shlibs" 1>&6
3638 test "$ld_shlibs" = no && can_build_shared=no
3642 ## FIXME: this should be a separate macro
3644 # Check hardcoding attributes.
3645 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3646 echo "configure:3647: checking how to hardcode library paths into programs" >&5
3648 if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then
3651 # We can hardcode non-existant directories.
3652 if test "$hardcode_direct" != no &&
3653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3654 # have to relink, otherwise we might link with an installed library
3655 # when we should be linking with a yet-to-be-installed one
3656 ## test "$hardcode_shlibpath_var" != no &&
3657 test "$hardcode_minus_L" != no; then
3658 # Linking always hardcodes the temporary library directory.
3659 hardcode_action=relink
3661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3662 hardcode_action=immediate
3665 # We cannot hardcode anything, or else we can only hardcode existing
3667 hardcode_action=unsupported
3669 echo "$ac_t""$hardcode_action" 1>&6
3673 ## FIXME: this should be a separate macro
3677 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3678 echo "configure:3679: checking whether stripping libraries is possible" >&5
3679 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6
3684 echo "$ac_t""no" 1>&6
3689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3692 ## FIXME: this should be a separate macro
3694 # PORTME Fill in your ld.so characteristics
3695 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3696 echo "configure:3697: checking dynamic linker characteristics" >&5
3698 libname_spec='lib$name'
3705 shlibpath_overrides_runpath=unknown
3707 dynamic_linker="$host_os ld.so"
3708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3714 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3715 shlibpath_var=LIBPATH
3717 # AIX has no versioning support, so we append a major version to the name.
3718 soname_spec='${libname}${release}.so$major'
3723 # AIX has no versioning support, so currently we can not hardcode correct
3724 # soname into executable. Probably we can add versioning support to
3725 # collect2, so additional links can be useful in future.
3726 # We preserve .a as extension for shared libraries though AIX4.2
3727 # and later linker supports .so
3728 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
3729 shlibpath_var=LIBPATH
3733 library_names_spec='$libname.ixlibrary $libname.a'
3734 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3735 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
3739 library_names_spec='${libname}.so'
3740 dynamic_linker="$host_os ld.so"
3741 shlibpath_var=LIBRARY_PATH
3747 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3748 soname_spec='${libname}${release}.so$major'
3749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3750 shlibpath_var=LD_LIBRARY_PATH
3751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3753 export_dynamic_flag_spec=-rdynamic
3754 # the default ld.so.conf also contains /usr/contrib/lib and
3755 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3756 # libtool to hard-code these into programs
3759 cygwin* | mingw* | pw32*)
3760 version_type=windows
3763 if test "$GCC" = yes; then
3764 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3766 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3768 dynamic_linker='Win32 ld.exe'
3769 # FIXME: first we should search . and the directory the executable is in
3773 darwin* | rhapsody*)
3776 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
3777 shlibpath_overrides_runpath=yes
3778 shlibpath_var=DYLD_LIBRARY_PATH
3779 postinstall_cmds='chmod +x $lib'
3787 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3788 version_type=freebsd-$objformat
3789 case "$version_type" in
3791 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3796 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3800 shlibpath_var=LD_LIBRARY_PATH
3803 shlibpath_overrides_runpath=yes
3806 shlibpath_overrides_runpath=no
3807 hardcode_into_libs=yes
3816 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3817 soname_spec='${libname}${release}.so$major'
3818 shlibpath_var=LD_LIBRARY_PATH
3819 hardcode_into_libs=yes
3822 hpux9* | hpux10* | hpux11*)
3823 # Give a soname corresponding to the major version so that dld.sl refuses to
3824 # link against other versions.
3825 dynamic_linker="$host_os dld.sl"
3829 shlibpath_var=SHLIB_PATH
3830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3831 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3832 soname_spec='${libname}${release}.sl$major'
3833 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3834 postinstall_cmds='chmod 555 $lib'
3841 soname_spec='${libname}${release}.so$major'
3842 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3848 case "$LD" in # libtool.m4 will add one of these switches to LD
3849 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3850 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3851 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3852 *) libsuff= shlibsuff= libmagic=never-match;;
3856 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3857 shlibpath_overrides_runpath=no
3858 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3859 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3862 # No shared lib support for Linux oldld, aout, or coff.
3863 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3867 # This must be Linux ELF.
3872 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3873 soname_spec='${libname}${release}.so$major'
3874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3875 shlibpath_var=LD_LIBRARY_PATH
3876 shlibpath_overrides_runpath=no
3877 # This implies no fast_install, which is unacceptable.
3878 # Some rework will be needed to allow for fast_install
3879 # before this can be enabled.
3880 hardcode_into_libs=yes
3882 # We used to test for /lib/ld.so.1 and disable shared libraries on
3883 # powerpc, because MkLinux only supported shared libraries with the
3884 # GNU dynamic linker. Since this was broken with cross compilers,
3885 # most powerpc-linux boxes support dynamic linking these days and
3886 # people can always --disable-shared, the test was removed, and we
3887 # assume the GNU/Linux dynamic linker is in use.
3888 dynamic_linker='GNU/Linux ld.so'
3893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3894 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3896 dynamic_linker='NetBSD (a.out) ld.so'
3898 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3899 soname_spec='${libname}${release}.so$major'
3900 dynamic_linker='NetBSD ld.elf_so'
3902 shlibpath_var=LD_LIBRARY_PATH
3903 shlibpath_overrides_runpath=yes
3904 hardcode_into_libs=yes
3909 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3910 shlibpath_var=LD_LIBRARY_PATH
3911 shlibpath_overrides_runpath=yes
3916 if test "$with_gnu_ld" = yes; then
3920 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3922 shlibpath_var=LD_LIBRARY_PATH
3926 libname_spec='$name'
3928 library_names_spec='$libname.dll $libname.a'
3929 dynamic_linker='OS/2 ld.exe'
3930 shlibpath_var=LIBPATH
3933 osf3* | osf4* | osf5*)
3936 soname_spec='${libname}${release}.so'
3937 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3938 shlibpath_var=LD_LIBRARY_PATH
3939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3945 soname_spec='${libname}${release}.so$major'
3946 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3947 shlibpath_var=LD_LIBRARY_PATH
3954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3955 soname_spec='${libname}${release}.so$major'
3956 shlibpath_var=LD_LIBRARY_PATH
3957 shlibpath_overrides_runpath=yes
3958 hardcode_into_libs=yes
3959 # ldd complains unless libraries are executable
3960 postinstall_cmds='chmod +x $lib'
3965 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3967 shlibpath_var=LD_LIBRARY_PATH
3968 shlibpath_overrides_runpath=yes
3969 if test "$with_gnu_ld" = yes; then
3975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3977 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3978 soname_spec='${libname}${release}.so$major'
3979 shlibpath_var=LD_LIBRARY_PATH
3980 case "$host_vendor" in
3982 shlibpath_overrides_runpath=no
3987 shlibpath_overrides_runpath=no
3988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3995 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3996 soname_spec='${libname}${release}.so$major'
3997 shlibpath_var=LD_LIBRARY_PATH
4004 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4005 soname_spec='${libname}${release}.so$major'
4006 shlibpath_var=LD_LIBRARY_PATH
4010 if test -d /usr/nec ;then
4012 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4013 soname_spec='$libname.so.$major'
4014 shlibpath_var=LD_LIBRARY_PATH
4022 echo "$ac_t""$dynamic_linker" 1>&6
4023 test "$dynamic_linker" = no && can_build_shared=no
4027 ## FIXME: this should be a separate macro
4029 # Report the final consequences.
4030 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4031 echo "configure:4032: checking if libtool supports shared libraries" >&5
4032 echo "$ac_t""$can_build_shared" 1>&6
4036 if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported
4038 enable_fast_install=no
4039 elif test "$shlibpath_overrides_runpath" = yes ||
4040 test "$enable_shared" = no; then
4041 # Fast installation is not necessary
4042 enable_fast_install=needless
4045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4046 if test "$GCC" = yes; then
4047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4050 if test "x$enable_dlopen" != xyes; then
4051 enable_dlopen=unknown
4052 enable_dlopen_self=unknown
4053 enable_dlopen_self_static=unknown
4060 lt_cv_dlopen="load_add_on"
4062 lt_cv_dlopen_self=yes
4065 cygwin* | mingw* | pw32*)
4066 lt_cv_dlopen="LoadLibrary"
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4072 echo "configure:4073: checking for dlopen in -ldl" >&5
4073 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 ac_save_LIBS="$LIBS"
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 eval "ac_cv_lib_$ac_lib_var=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_lib_$ac_lib_var=no"
4101 LIBS="$ac_save_LIBS"
4104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4108 echo "$ac_t""no" 1>&6
4109 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4110 echo "configure:4111: checking for dlopen" >&5
4111 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4140 eval "ac_cv_func_dlopen=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 eval "ac_cv_func_dlopen=no"
4150 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen"
4154 echo "$ac_t""no" 1>&6
4155 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4156 echo "configure:4157: checking for shl_load" >&5
4157 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 /* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4173 /* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */
4176 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 eval "ac_cv_func_shl_load=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_func_shl_load=no"
4196 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load"
4200 echo "$ac_t""no" 1>&6
4201 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4202 echo "configure:4203: checking for dlopen in -lsvld" >&5
4203 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 ac_save_LIBS="$LIBS"
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4223 eval "ac_cv_lib_$ac_lib_var=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 eval "ac_cv_lib_$ac_lib_var=no"
4231 LIBS="$ac_save_LIBS"
4234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4235 echo "$ac_t""yes" 1>&6
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4238 echo "$ac_t""no" 1>&6
4239 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4240 echo "configure:4241: checking for shl_load in -ldld" >&5
4241 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 ac_save_LIBS="$LIBS"
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4259 if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4261 eval "ac_cv_lib_$ac_lib_var=yes"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4266 eval "ac_cv_lib_$ac_lib_var=no"
4269 LIBS="$ac_save_LIBS"
4272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4276 echo "$ac_t""no" 1>&6
4294 if test "x$lt_cv_dlopen" != xno; then
4300 case "$lt_cv_dlopen" in
4302 save_CPPFLAGS="$CPP_FLAGS"
4303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4305 save_LDFLAGS="$LDFLAGS"
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4309 LIBS="$lt_cv_dlopen_libs $LIBS"
4311 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4312 echo "configure:4313: checking whether a program can dlopen itself" >&5
4313 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4332 # define LT_DLGLOBAL RTLD_GLOBAL
4335 # define LT_DLGLOBAL DL_GLOBAL
4337 # define LT_DLGLOBAL 0
4341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4342 find out it does not work in some platform. */
4343 #ifndef LT_DLLAZY_OR_NOW
4345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4348 # define LT_DLLAZY_OR_NOW DL_LAZY
4351 # define LT_DLLAZY_OR_NOW RTLD_NOW
4354 # define LT_DLLAZY_OR_NOW DL_NOW
4356 # define LT_DLLAZY_OR_NOW 0
4364 extern "C" void exit (int);
4367 fnord() { int i=42;}
4370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4371 int status = $lt_dlunknown;
4375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4377 /* dlclose (self); */
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4389 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4392 # compilation failed
4393 lt_cv_dlopen_self=no
4401 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4403 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag"
4405 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4406 echo "configure:4407: checking whether a statically linked program can dlopen itself" >&5
4407 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4426 # define LT_DLGLOBAL RTLD_GLOBAL
4429 # define LT_DLGLOBAL DL_GLOBAL
4431 # define LT_DLGLOBAL 0
4435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4436 find out it does not work in some platform. */
4437 #ifndef LT_DLLAZY_OR_NOW
4439 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4442 # define LT_DLLAZY_OR_NOW DL_LAZY
4445 # define LT_DLLAZY_OR_NOW RTLD_NOW
4448 # define LT_DLLAZY_OR_NOW DL_NOW
4450 # define LT_DLLAZY_OR_NOW 0
4458 extern "C" void exit (int);
4461 fnord() { int i=42;}
4464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4465 int status = $lt_dlunknown;
4469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4470 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4471 /* dlclose (self); */
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4483 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4486 # compilation failed
4487 lt_cv_dlopen_self_static=no
4495 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4498 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS"
4504 case "$lt_cv_dlopen_self" in
4505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4506 *) enable_dlopen_self=unknown ;;
4509 case "$lt_cv_dlopen_self_static" in
4510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4511 *) enable_dlopen_self_static=unknown ;;
4516 ## FIXME: this should be a separate macro
4518 if test "$enable_shared" = yes && test "$GCC" = yes; then
4519 case "$archive_cmds" in
4521 # FIXME: we may have to deal with multi-command sequences.
4524 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc.
4527 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4528 echo "configure:4529: checking whether -lc should be explicitly linked in" >&5
4529 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4533 echo 'static int dummy;' > conftest.$ac_ext
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4538 libobjs=conftest.$ac_objext
4540 wl=$lt_cv_prog_cc_wl
4546 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag=
4548 if { (eval echo configure:4549: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4550 lt_cv_archive_cmds_need_lc=no
4552 lt_cv_archive_cmds_need_lc=yes
4554 allow_undefined_flag=$save_allow_undefined_flag
4556 cat conftest.err 1>&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4564 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4568 ## FIXME: this should be a separate macro
4570 # The second clause should only fire when bootstrapping the
4571 # libtool distribution, otherwise you forgot to ship ltmain.sh
4572 # with your package, and you will get complaints that there are
4573 # no rules to generate ltmain.sh.
4574 if test -f "$ltmain"; then
4577 # If there is no Makefile yet, we rely on a make rule to execute
4578 # `config.status --recheck' to rerun these tests and create the
4579 # libtool script then.
4580 test -f Makefile && make "$ltmain"
4583 if test -f "$ltmain"; then
4584 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4587 echo creating $ofile
4589 # Now quote all the things that may contain metacharacters while being
4590 # careful not to overquote the AC_SUBSTed values. We take copies of the
4591 # variables and quote the copies for generation of the libtool script.
4592 for var in echo old_CC old_CFLAGS \
4593 AR AR_FLAGS CC LD LN_S NM SHELL \
4594 reload_flag reload_cmds wl \
4595 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4596 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4597 library_names_spec soname_spec \
4598 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4599 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4600 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4601 old_striplib striplib file_magic_cmd export_symbols_cmds \
4602 deplibs_check_method allow_undefined_flag no_undefined_flag \
4603 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4604 hardcode_libdir_flag_spec hardcode_libdir_separator \
4605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4606 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4609 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4610 old_postinstall_cmds | old_postuninstall_cmds | \
4611 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4612 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4613 postinstall_cmds | postuninstall_cmds | \
4614 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4615 # Double-quote double-evaled strings.
4616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4624 cat <<__EOF__ > "${ofile}T"
4627 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4628 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4629 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4631 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4632 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4634 # This program is free software; you can redistribute it and/or modify
4635 # it under the terms of the GNU General Public License as published by
4636 # the Free Software Foundation; either version 2 of the License, or
4637 # (at your option) any later version.
4639 # This program is distributed in the hope that it will be useful, but
4640 # WITHOUT ANY WARRANTY; without even the implied warranty of
4641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4642 # General Public License for more details.
4644 # You should have received a copy of the GNU General Public License
4645 # along with this program; if not, write to the Free Software
4646 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4648 # As a special exception to the GNU General Public License, if you
4649 # distribute this file as part of a program that contains a
4650 # configuration script generated by Autoconf, you may include it under
4651 # the same distribution terms that you use for the rest of that program.
4653 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4654 Xsed="sed -e s/^X//"
4656 # The HP-UX ksh and POSIX shell print the target directory to stdout
4658 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4660 # ### BEGIN LIBTOOL CONFIG
4662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4664 # Shell to use when invoking shell scripts.
4667 # Whether or not to build shared libraries.
4668 build_libtool_libs=$enable_shared
4670 # Whether or not to add -lc for building shared libraries.
4671 build_libtool_need_lc=$need_lc
4673 # Whether or not to build static libraries.
4674 build_old_libs=$enable_static
4676 # Whether or not to optimize for fast installation.
4677 fast_install=$enable_fast_install
4680 host_alias=$host_alias
4683 # An echo program that does not interpret backslashes.
4688 AR_FLAGS=$lt_AR_FLAGS
4690 # The default C compiler.
4693 # Is the compiler the GNU C compiler?
4696 # The linker used to build libraries.
4699 # Whether we need hard or soft links.
4702 # A BSD-compatible nm program.
4705 # A symbol stripping program
4708 # Used to examine libraries when file_magic_cmd begins "file"
4709 MAGIC_CMD=$MAGIC_CMD
4711 # Used on cygwin: DLL creation program.
4714 # Used on cygwin: object dumper.
4717 # Used on cygwin: assembler.
4720 # The name of the directory that contains temporary libtool files.
4723 # How to create reloadable object files.
4724 reload_flag=$lt_reload_flag
4725 reload_cmds=$lt_reload_cmds
4727 # How to pass a linker flag through the compiler.
4730 # Object file suffix (normally "o").
4733 # Old archive suffix (normally "a").
4736 # Executable file suffix (normally "").
4739 # Additional compiler flags for building library objects.
4740 pic_flag=$lt_pic_flag
4743 # Does compiler simultaneously support -c and -o options?
4744 compiler_c_o=$lt_compiler_c_o
4746 # Can we write directly to a .lo ?
4747 compiler_o_lo=$lt_compiler_o_lo
4749 # Must we lock files when doing compilation ?
4750 need_locks=$lt_need_locks
4752 # Do we need the lib prefix for modules?
4753 need_lib_prefix=$need_lib_prefix
4755 # Do we need a version for libraries?
4756 need_version=$need_version
4758 # Whether dlopen is supported.
4759 dlopen_support=$enable_dlopen
4761 # Whether dlopen of programs is supported.
4762 dlopen_self=$enable_dlopen_self
4764 # Whether dlopen of statically linked programs is supported.
4765 dlopen_self_static=$enable_dlopen_self_static
4767 # Compiler flag to prevent dynamic linking.
4768 link_static_flag=$lt_link_static_flag
4770 # Compiler flag to turn off builtin functions.
4771 no_builtin_flag=$lt_no_builtin_flag
4773 # Compiler flag to allow reflexive dlopens.
4774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4776 # Compiler flag to generate shared objects directly from archives.
4777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4779 # Compiler flag to generate thread-safe objects.
4780 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4782 # Library versioning type.
4783 version_type=$version_type
4785 # Format of library name prefix.
4786 libname_spec=$lt_libname_spec
4788 # List of archive names. First name is the real one, the rest are links.
4789 # The last name is the one that the linker finds with -lNAME.
4790 library_names_spec=$lt_library_names_spec
4792 # The coded name of the library, if different from the real name.
4793 soname_spec=$lt_soname_spec
4795 # Commands used to build and install an old-style archive.
4797 old_archive_cmds=$lt_old_archive_cmds
4798 old_postinstall_cmds=$lt_old_postinstall_cmds
4799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4801 # Create an old-style archive from a shared archive.
4802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4804 # Create a temporary old-style archive to link instead of a shared archive.
4805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4807 # Commands used to build and install a shared archive.
4808 archive_cmds=$lt_archive_cmds
4809 archive_expsym_cmds=$lt_archive_expsym_cmds
4810 postinstall_cmds=$lt_postinstall_cmds
4811 postuninstall_cmds=$lt_postuninstall_cmds
4813 # Commands to strip libraries.
4814 old_striplib=$lt_old_striplib
4815 striplib=$lt_striplib
4817 # Method to check whether dependent libraries are shared objects.
4818 deplibs_check_method=$lt_deplibs_check_method
4820 # Command to use when deplibs_check_method == file_magic.
4821 file_magic_cmd=$lt_file_magic_cmd
4823 # Flag that allows shared libraries with undefined symbols to be built.
4824 allow_undefined_flag=$lt_allow_undefined_flag
4826 # Flag that forces no undefined symbols.
4827 no_undefined_flag=$lt_no_undefined_flag
4829 # Commands used to finish a libtool library installation in a directory.
4830 finish_cmds=$lt_finish_cmds
4832 # Same as above, but a single script fragment to be evaled but not shown.
4833 finish_eval=$lt_finish_eval
4835 # Take the output of nm and produce a listing of raw symbols and C names.
4836 global_symbol_pipe=$lt_global_symbol_pipe
4838 # Transform the output of nm in a proper C declaration
4839 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
4841 # This is the shared library runtime path variable.
4842 runpath_var=$runpath_var
4844 # This is the shared library path variable.
4845 shlibpath_var=$shlibpath_var
4847 # Is shlibpath searched before the hard-coded library search path?
4848 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4850 # How to hardcode a shared library path into an executable.
4851 hardcode_action=$hardcode_action
4853 # Whether we should hardcode library paths into libraries.
4854 hardcode_into_libs=$hardcode_into_libs
4856 # Flag to hardcode \$libdir into a binary during linking.
4857 # This must work even if \$libdir does not exist.
4858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
4860 # Whether we need a single -rpath flag with a separated argument.
4861 hardcode_libdir_separator=$lt_hardcode_libdir_separator
4863 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
4865 hardcode_direct=$hardcode_direct
4867 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4869 hardcode_minus_L=$hardcode_minus_L
4871 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4872 # the resulting binary.
4873 hardcode_shlibpath_var=$hardcode_shlibpath_var
4875 # Variables whose values should be saved in libtool wrapper scripts and
4876 # restored at relink time.
4877 variables_saved_for_relink="$variables_saved_for_relink"
4879 # Whether libtool must link a program against all its dependency libraries.
4880 link_all_deplibs=$link_all_deplibs
4882 # Compile-time system search path for libraries
4883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4885 # Run-time system search path for libraries
4886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4888 # Fix the shell variable \$srcfile for the compiler.
4889 fix_srcfile_path="$fix_srcfile_path"
4891 # Set to yes if exported symbols are required.
4892 always_export_symbols=$always_export_symbols
4894 # The commands to list exported symbols.
4895 export_symbols_cmds=$lt_export_symbols_cmds
4897 # The commands to extract the exported symbol list from a shared archive.
4898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4900 # Symbols that should not be listed in the preloaded symbols.
4901 exclude_expsyms=$lt_exclude_expsyms
4903 # Symbols that must always be exported.
4904 include_expsyms=$lt_include_expsyms
4906 # ### END LIBTOOL CONFIG
4912 cat <<\EOF >> "${ofile}T"
4914 # AIX sometimes has problems with the GCC collect2 program. For some
4915 # reason, if we set the COLLECT_NAMES environment variable, the problems
4916 # vanish in a puff of smoke.
4917 if test "X${COLLECT_NAMES+set}" != Xset; then
4919 export COLLECT_NAMES
4926 cygwin* | mingw* | pw32* | os2*)
4927 cat <<'EOF' >> "${ofile}T"
4928 # This is a source program that is used to create dlls on Windows
4929 # Don't remove nor modify the starting and closing comments
4930 # /* ltdll.c starts here */
4931 # #define WIN32_LEAN_AND_MEAN
4932 # #include <windows.h>
4933 # #undef WIN32_LEAN_AND_MEAN
4934 # #include <stdio.h>
4936 # #ifndef __CYGWIN__
4937 # # ifdef __CYGWIN32__
4938 # # define __CYGWIN__ __CYGWIN32__
4942 # #ifdef __cplusplus
4945 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
4946 # #ifdef __cplusplus
4951 # #include <cygwin/cygwin_dll.h>
4952 # DECLARE_CYGWIN_DLL( DllMain );
4954 # HINSTANCE __hDllInstance_base;
4957 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
4959 # __hDllInstance_base = hInst;
4962 # /* ltdll.c ends here */
4963 # This is a source program that is used to create import libraries
4964 # on Windows for dlls which lack them. Don't remove nor modify the
4965 # starting and closing comments
4966 # /* impgen.c starts here */
4967 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
4969 # This file is part of GNU libtool.
4971 # This program is free software; you can redistribute it and/or modify
4972 # it under the terms of the GNU General Public License as published by
4973 # the Free Software Foundation; either version 2 of the License, or
4974 # (at your option) any later version.
4976 # This program is distributed in the hope that it will be useful,
4977 # but WITHOUT ANY WARRANTY; without even the implied warranty of
4978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4979 # GNU General Public License for more details.
4981 # You should have received a copy of the GNU General Public License
4982 # along with this program; if not, write to the Free Software
4983 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4986 # #include <stdio.h> /* for printf() */
4987 # #include <unistd.h> /* for open(), lseek(), read() */
4988 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
4989 # #include <string.h> /* for strdup() */
4991 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
4993 # #define O_BINARY 0
4996 # static unsigned int
4997 # pe_get16 (fd, offset)
5001 # unsigned char b[2];
5002 # lseek (fd, offset, SEEK_SET);
5004 # return b[0] + (b[1]<<8);
5007 # static unsigned int
5008 # pe_get32 (fd, offset)
5012 # unsigned char b[4];
5013 # lseek (fd, offset, SEEK_SET);
5015 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5018 # static unsigned int
5022 # unsigned char *b = ptr;
5023 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5032 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5033 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5034 # unsigned long name_rvas, nexp;
5035 # unsigned char *expdata, *erva;
5036 # char *filename, *dll_name;
5038 # filename = argv[1];
5040 # dll = open(filename, O_RDONLY|O_BINARY);
5044 # dll_name = filename;
5046 # for (i=0; filename[i]; i++)
5047 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5048 # dll_name = filename + i +1;
5050 # pe_header_offset = pe_get32 (dll, 0x3c);
5051 # opthdr_ofs = pe_header_offset + 4 + 20;
5052 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5054 # if (num_entries < 1) /* no exports */
5057 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5058 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5059 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5060 # secptr = (pe_header_offset + 4 + 20 +
5061 # pe_get16 (dll, pe_header_offset + 4 + 16));
5064 # for (i = 0; i < nsections; i++)
5067 # unsigned long secptr1 = secptr + 40 * i;
5068 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5069 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5070 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5071 # lseek(dll, secptr1, SEEK_SET);
5072 # read(dll, sname, 8);
5073 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5075 # expptr = fptr + (export_rva - vaddr);
5076 # if (export_rva + export_size > vaddr + vsize)
5077 # export_size = vsize - (export_rva - vaddr);
5082 # expdata = (unsigned char*)malloc(export_size);
5083 # lseek (dll, expptr, SEEK_SET);
5084 # read (dll, expdata, export_size);
5085 # erva = expdata - export_rva;
5087 # nexp = pe_as32 (expdata+24);
5088 # name_rvas = pe_as32 (expdata+32);
5090 # printf ("EXPORTS\n");
5091 # for (i = 0; i<nexp; i++)
5093 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5094 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5099 # /* impgen.c ends here */
5105 # We use sed instead of cat because bash on DJGPP gets confused if
5106 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5107 # text mode, it properly converts lines to CR/LF. This bash problem
5108 # is reportedly fixed, but why not run on old versions too?
5109 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5111 mv -f "${ofile}T" "$ofile" || \
5112 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5122 # This can be used to rebuild libtool when needed
5123 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5125 # Always use our own libtool.
5126 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5128 # Prevent multiple expansion
5132 support_addstrings=no
5134 support_linespace=no
5136 support_inheritpixmap=no
5137 support_keepscrolling=no
5138 support_selectionscrolling=no
5140 support_mousewheel=no
5141 support_mouseslipwheel=no
5142 support_oldselection=no
5146 support_cursor_blink=no
5147 support_pointer_blank=no
5148 support_scroll_rxvt=no
5149 support_scroll_next=no
5150 support_scroll_xterm=no
5158 if test "x$enable_shared" = xyes; then
5159 cat >> confdefs.h <<\EOF
5167 # Check whether --enable-everything or --disable-everything was given.
5168 if test "${enable_everything+set}" = set; then
5169 enableval="$enable_everything"
5170 if test x$enableval = xyes; then
5173 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes
5176 support_keepscrolling=yes
5177 support_selectionscrolling=yes
5180 support_mousewheel=yes
5181 support_mouseslipwheel=yes
5182 support_oldselection=yes
5183 support_cursor_blink=yes
5184 support_pointer_blank=yes
5185 support_scroll_rxvt=yes
5186 support_scroll_next=yes
5187 support_scroll_xterm=yes
5193 support_unicode3=yes
5199 # Check whether --enable-unicode3 or --disable-unicode3 was given.
5200 if test "${enable_unicode3+set}" = set; then
5201 enableval="$enable_unicode3"
5202 if test x$enableval = xyes; then
5203 support_unicode3=yes
5208 # Check whether --enable-xft or --disable-xft was given.
5209 if test "${enable_xft+set}" = set; then
5210 enableval="$enable_xft"
5211 if test x$enableval = xyes; then
5217 # Check whether --with-codesets or --without-codesets was given.
5218 if test "${with_codesets+set}" = set; then
5219 withval="$with_codesets"
5220 if test x$enableval = xyes; then
5226 # Check whether --with-encoding or --without-encoding was given.
5227 if test "${with_encoding+set}" = set; then
5228 withval="$with_encoding"
5229 if test x$enableval = xyes; then
5230 withval=`echo $withval | tr 'a-z' 'A-Z'`
5231 cat >> confdefs.h <<EOF
5232 #define MULTICHAR_ENCODING $withval
5239 # Check whether --enable-utmp or --disable-utmp was given.
5240 if test "${enable_utmp+set}" = set; then
5241 enableval="$enable_utmp"
5242 if test x$enableval = xyes -o x$enableval = xno; then
5243 support_utmp=$enableval
5248 # Check whether --enable-wtmp or --disable-wtmp was given.
5249 if test "${enable_wtmp+set}" = set; then
5250 enableval="$enable_wtmp"
5251 if test x$enableval = xyes -o x$enableval = xno; then
5252 support_wtmp=$enableval
5257 # Check whether --enable-lastlog or --disable-lastlog was given.
5258 if test "${enable_lastlog+set}" = set; then
5259 enableval="$enable_lastlog"
5260 if test x$enableval = xyes -o x$enableval = xno; then
5261 support_lastlog=$enableval
5266 # Check whether --enable-xpm-background or --disable-xpm-background was given.
5267 if test "${enable_xpm_background+set}" = set; then
5268 enableval="$enable_xpm_background"
5269 if test x$enableval = xyes -o x$enableval = xno; then
5270 support_xpm=$enableval
5275 # Check whether --enable-transparency or --disable-transparency was given.
5276 if test "${enable_transparency+set}" = set; then
5277 enableval="$enable_transparency"
5278 if test x$enableval = xyes -o x$enableval = xno; then
5279 support_inheritpixmap=$enableval
5284 # Check whether --enable-menubar or --disable-menubar was given.
5285 if test "${enable_menubar+set}" = set; then
5286 enableval="$enable_menubar"
5287 if test x$enableval = xyes -o x$enableval = xno; then
5288 support_menubar=$enableval
5293 # Check whether --enable-graphics or --disable-graphics was given.
5294 if test "${enable_graphics+set}" = set; then
5295 enableval="$enable_graphics"
5296 if test x$enableval = xyes -o x$enableval = xno; then
5297 support_graphics=$enableval
5302 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5303 if test "${enable_rxvt_scroll+set}" = set; then
5304 enableval="$enable_rxvt_scroll"
5305 if test x$enableval = xyes -o x$enableval = xno; then
5306 support_scroll_rxvt=$enableval
5311 # Check whether --enable-next-scroll or --disable-next-scroll was given.
5312 if test "${enable_next_scroll+set}" = set; then
5313 enableval="$enable_next_scroll"
5314 if test x$enableval = xyes -o x$enableval = xno; then
5315 support_scroll_next=$enableval
5320 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5321 if test "${enable_xterm_scroll+set}" = set; then
5322 enableval="$enable_xterm_scroll"
5323 if test x$enableval = xyes -o x$enableval = xno; then
5324 support_scroll_xterm=$enableval
5329 # Check whether --enable-half-shadow or --disable-half-shadow was given.
5330 if test "${enable_half_shadow+set}" = set; then
5331 enableval="$enable_half_shadow"
5332 if test x$enableval = xyes; then
5333 cat >> confdefs.h <<\EOF
5334 #define HALFSHADOW 1
5341 # Check whether --enable-xim or --disable-xim was given.
5342 if test "${enable_xim+set}" = set; then
5343 enableval="$enable_xim"
5344 if test x$enableval = xyes -o x$enableval = xno; then
5345 support_xim=$enableval
5350 # Check whether --enable-greek or --disable-greek was given.
5351 if test "${enable_greek+set}" = set; then
5352 enableval="$enable_greek"
5353 if test x$enableval = xyes; then
5354 cat >> confdefs.h <<\EOF
5355 #define GREEK_SUPPORT 1
5362 # Check whether --enable-ttygid or --disable-ttygid was given.
5363 if test "${enable_ttygid+set}" = set; then
5364 enableval="$enable_ttygid"
5365 if test x$enableval = xyes; then
5366 cat >> confdefs.h <<\EOF
5367 #define TTY_GID_SUPPORT 1
5374 # Check whether --enable-backspace-key or --disable-backspace-key was given.
5375 if test "${enable_backspace_key+set}" = set; then
5376 enableval="$enable_backspace_key"
5377 if test x$enableval = xno; then
5378 cat >> confdefs.h <<\EOF
5379 #define NO_BACKSPACE_KEY 1
5386 # Check whether --enable-delete-key or --disable-delete-key was given.
5387 if test "${enable_delete_key+set}" = set; then
5388 enableval="$enable_delete_key"
5389 if test x$enableval = xno; then
5390 cat >> confdefs.h <<\EOF
5391 #define NO_DELETE_KEY 1
5398 # Check whether --enable-resources or --disable-resources was given.
5399 if test "${enable_resources+set}" = set; then
5400 enableval="$enable_resources"
5401 if test x$enableval = xno; then
5402 cat >> confdefs.h <<\EOF
5403 #define NO_RESOURCES 1
5410 # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5411 if test "${enable_xgetdefault+set}" = set; then
5412 enableval="$enable_xgetdefault"
5413 if test x$enableval = xyes; then
5414 cat >> confdefs.h <<\EOF
5415 #define USE_XGETDEFAULT 1
5422 # Check whether --enable-strings or --disable-strings was given.
5423 if test "${enable_strings+set}" = set; then
5424 enableval="$enable_strings"
5425 if test x$enableval = xyes -o x$enableval = xno; then
5426 support_addstrings=$enableval
5431 # Check whether --enable-swapscreen or --disable-swapscreen was given.
5432 if test "${enable_swapscreen+set}" = set; then
5433 enableval="$enable_swapscreen"
5434 if test x$enableval = xno; then
5435 cat >> confdefs.h <<\EOF
5436 #define NO_SECONDARY_SCREEN 1
5443 # Check whether --enable-frills or --disable-frills was given.
5444 if test "${enable_frills+set}" = set; then
5445 enableval="$enable_frills"
5446 if test x$enableval = xyes -o x$enableval = xno; then
5447 support_frills=$enableval
5452 # Check whether --enable-linespace or --disable-linespace was given.
5453 if test "${enable_linespace+set}" = set; then
5454 enableval="$enable_linespace"
5455 if test x$enableval = xyes -o x$enableval = xno; then
5456 support_linespace=$enableval
5461 # Check whether --enable-24bit or --disable-24bit was given.
5462 if test "${enable_24bit+set}" = set; then
5463 enableval="$enable_24bit"
5464 if test x$enableval = xyes -o x$enableval = xno; then
5465 support_24bit=$enableval
5470 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5471 if test "${enable_keepscrolling+set}" = set; then
5472 enableval="$enable_keepscrolling"
5473 if test x$enableval = xyes -o x$enableval = xno; then
5474 support_keepscrolling=$enableval
5479 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5480 if test "${enable_selectionscrolling+set}" = set; then
5481 enableval="$enable_selectionscrolling"
5482 if test x$enableval = xyes -o x$enableval = xno; then
5483 support_selectionscrolling=$enableval
5488 # Check whether --enable-mousewheel or --disable-mousewheel was given.
5489 if test "${enable_mousewheel+set}" = set; then
5490 enableval="$enable_mousewheel"
5491 if test x$enableval = xyes -o x$enableval = xno; then
5492 support_mousewheel=$enableval
5497 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5498 if test "${enable_slipwheeling+set}" = set; then
5499 enableval="$enable_slipwheeling"
5500 if test x$enableval = xyes -o x$enableval = xno; then
5501 support_mouseslipwheel=$enableval
5506 # Check whether --enable-old-selection or --disable-old-selection was given.
5507 if test "${enable_old_selection+set}" = set; then
5508 enableval="$enable_old_selection"
5509 if test x$enableval = xyes -o x$enableval = xno; then
5510 support_oldselection=$enableval
5515 # Check whether --enable-new-selection or --disable-new-selection was given.
5516 if test "${enable_new_selection+set}" = set; then
5517 enableval="$enable_new_selection"
5518 if test x$enableval = xno; then
5519 cat >> confdefs.h <<\EOF
5520 #define NO_NEW_SELECTION 1
5527 # Check whether --enable-dmalloc or --disable-dmalloc was given.
5528 if test "${enable_dmalloc+set}" = set; then
5529 enableval="$enable_dmalloc"
5530 if test x$enableval = xyes; then
5532 DEBUG=-DDEBUG_MALLOC
5533 DLIB="-L/usr/local/lib -ldmalloc"
5534 DINCLUDE=-I/usr/local/include
5539 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5540 if test "${enable_dlmalloc+set}" = set; then
5541 enableval="$enable_dlmalloc"
5542 if test x$enableval = xyes; then
5545 DLIB="-L/usr/local/lib -ldlmalloc"
5551 # Check whether --enable-smart-resize or --disable-smart-resize was given.
5552 if test "${enable_smart_resize+set}" = set; then
5553 enableval="$enable_smart_resize"
5554 if test x$enableval = xyes; then
5555 cat >> confdefs.h <<\EOF
5556 #define SMART_RESIZE 1
5563 # Check whether --enable-256-color or --disable-256-color was given.
5564 if test "${enable_256_color+set}" = set; then
5565 enableval="$enable_256_color"
5566 if test x$enableval = xyes; then
5567 cat >> confdefs.h <<\EOF
5568 #define TTY_256COLOR 1
5575 # Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5576 if test "${enable_cursor_blink+set}" = set; then
5577 enableval="$enable_cursor_blink"
5578 if test x$enableval = xyes -o x$enableval = xno; then
5579 support_cursor_blink=$enableval
5584 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5585 if test "${enable_pointer_blank+set}" = set; then
5586 enableval="$enable_pointer_blank"
5587 if test x$enableval = xyes -o x$enableval = xno; then
5588 support_pointer_blank=$enableval
5593 # Check whether --with-term or --without-term was given.
5594 if test "${with_term+set}" = set; then
5595 withval="$with_term"
5596 if test x$withval != x; then
5597 cat >> confdefs.h <<EOF
5598 #define TERMENV "$withval"
5605 # Check whether --with-terminfo or --without-terminfo was given.
5606 if test "${with_terminfo+set}" = set; then
5607 withval="$with_terminfo"
5608 if test x$withval != x; then
5609 cat >> confdefs.h <<EOF
5610 #define RXVT_TERMINFO "$withval"
5618 cat >> confdefs.h <<\EOF
5619 #define PROTOTYPES 1
5623 if test -z "$CFLAGS"; then
5624 if test -z "$CCOPTS"; then
5630 # Extract the first word of "mv", so it can be a program name with args.
5631 set dummy mv; ac_word=$2
5632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5633 echo "configure:5634: checking for $ac_word" >&5
5634 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5639 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5642 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5647 for ac_dir in $ac_dummy; do
5648 test -z "$ac_dir" && ac_dir=.
5649 if test -f $ac_dir/$ac_word; then
5650 ac_cv_path_MV="$ac_dir/$ac_word"
5655 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5660 if test -n "$MV"; then
5661 echo "$ac_t""$MV" 1>&6
5663 echo "$ac_t""no" 1>&6
5666 # Extract the first word of "rm", so it can be a program name with args.
5667 set dummy rm; ac_word=$2
5668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_word" >&5
5670 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5675 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5678 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5683 for ac_dir in $ac_dummy; do
5684 test -z "$ac_dir" && ac_dir=.
5685 if test -f $ac_dir/$ac_word; then
5686 ac_cv_path_RM="$ac_dir/$ac_word"
5691 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5696 if test -n "$RM"; then
5697 echo "$ac_t""$RM" 1>&6
5699 echo "$ac_t""no" 1>&6
5702 # Extract the first word of "cp", so it can be a program name with args.
5703 set dummy cp; ac_word=$2
5704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5705 echo "configure:5706: checking for $ac_word" >&5
5706 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5711 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5714 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5719 for ac_dir in $ac_dummy; do
5720 test -z "$ac_dir" && ac_dir=.
5721 if test -f $ac_dir/$ac_word; then
5722 ac_cv_path_CP="$ac_dir/$ac_word"
5727 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5732 if test -n "$CP"; then
5733 echo "$ac_t""$CP" 1>&6
5735 echo "$ac_t""no" 1>&6
5738 # Extract the first word of "ln", so it can be a program name with args.
5739 set dummy ln; ac_word=$2
5740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5741 echo "configure:5742: checking for $ac_word" >&5
5742 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5747 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5750 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5755 for ac_dir in $ac_dummy; do
5756 test -z "$ac_dir" && ac_dir=.
5757 if test -f $ac_dir/$ac_word; then
5758 ac_cv_path_LN="$ac_dir/$ac_word"
5763 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5768 if test -n "$LN"; then
5769 echo "$ac_t""$LN" 1>&6
5771 echo "$ac_t""no" 1>&6
5774 # Extract the first word of "sed", so it can be a program name with args.
5775 set dummy sed; ac_word=$2
5776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5777 echo "configure:5778: checking for $ac_word" >&5
5778 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5783 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5786 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5791 for ac_dir in $ac_dummy; do
5792 test -z "$ac_dir" && ac_dir=.
5793 if test -f $ac_dir/$ac_word; then
5794 ac_cv_path_SED="$ac_dir/$ac_word"
5799 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5803 SED="$ac_cv_path_SED"
5804 if test -n "$SED"; then
5805 echo "$ac_t""$SED" 1>&6
5807 echo "$ac_t""no" 1>&6
5810 # Extract the first word of "echo", so it can be a program name with args.
5811 set dummy echo; ac_word=$2
5812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_word" >&5
5814 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5819 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5822 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5827 for ac_dir in $ac_dummy; do
5828 test -z "$ac_dir" && ac_dir=.
5829 if test -f $ac_dir/$ac_word; then
5830 ac_cv_path_ECHO="$ac_dir/$ac_word"
5835 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5839 ECHO="$ac_cv_path_ECHO"
5840 if test -n "$ECHO"; then
5841 echo "$ac_t""$ECHO" 1>&6
5843 echo "$ac_t""no" 1>&6
5846 # Extract the first word of "cmp", so it can be a program name with args.
5847 set dummy cmp; ac_word=$2
5848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5849 echo "configure:5850: checking for $ac_word" >&5
5850 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5855 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5858 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5863 for ac_dir in $ac_dummy; do
5864 test -z "$ac_dir" && ac_dir=.
5865 if test -f $ac_dir/$ac_word; then
5866 ac_cv_path_CMP="$ac_dir/$ac_word"
5871 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5875 CMP="$ac_cv_path_CMP"
5876 if test -n "$CMP"; then
5877 echo "$ac_t""$CMP" 1>&6
5879 echo "$ac_t""no" 1>&6
5882 # Extract the first word of "tbl", so it can be a program name with args.
5883 set dummy tbl; ac_word=$2
5884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5885 echo "configure:5886: checking for $ac_word" >&5
5886 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5891 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5894 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5899 for ac_dir in $ac_dummy; do
5900 test -z "$ac_dir" && ac_dir=.
5901 if test -f $ac_dir/$ac_word; then
5902 ac_cv_path_TBL="$ac_dir/$ac_word"
5910 TBL="$ac_cv_path_TBL"
5911 if test -n "$TBL"; then
5912 echo "$ac_t""$TBL" 1>&6
5914 echo "$ac_t""no" 1>&6
5920 # If we find X, set shell vars x_includes and x_libraries to the
5921 # paths, otherwise set no_x=yes.
5922 # Uses ac_ vars as temps to allow command line to override cache and checks.
5923 # --without-x overrides everything else, but does not touch the cache.
5924 echo $ac_n "checking for X""... $ac_c" 1>&6
5925 echo "configure:5926: checking for X" >&5
5927 # Check whether --with-x or --without-x was given.
5928 if test "${with_x+set}" = set; then
5933 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5934 if test "x$with_x" = xno; then
5935 # The user explicitly disabled X.
5938 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5939 # Both variables are already set.
5942 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 # One or both of the vars are not set, and there is no cached value.
5946 ac_x_includes=NO ac_x_libraries=NO
5948 if mkdir conftestdir; then
5950 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5951 cat > Imakefile <<'EOF'
5953 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5955 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5957 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5958 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5959 for ac_extension in a so sl; do
5960 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5961 test -f $ac_im_libdir/libX11.$ac_extension; then
5962 ac_im_usrlibdir=$ac_im_libdir; break
5965 # Screen out bogus values from the imake configuration. They are
5966 # bogus both because they are the default anyway, and because
5967 # using them would break gcc on systems where it needs fixed includes.
5968 case "$ac_im_incroot" in
5970 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5972 case "$ac_im_usrlibdir" in
5974 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5981 if test "$ac_x_includes" = NO; then
5982 # Guess where to find include files, by looking for this one X11 .h file.
5983 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5985 # First, try using that file with no special directory specified.
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5989 #include <$x_direct_test_include>
5991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5992 { (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5994 if test -z "$ac_err"; then
5996 # We can compile using X headers with no special include directory.
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 # Look for the header file in a standard set of common directories.
6004 # Check X11 before X11Rn because it is often a symlink to the current release.
6007 /usr/X11R6/include \
6008 /usr/X11R5/include \
6009 /usr/X11R4/include \
6012 /usr/include/X11R6 \
6013 /usr/include/X11R5 \
6014 /usr/include/X11R4 \
6016 /usr/local/X11/include \
6017 /usr/local/X11R6/include \
6018 /usr/local/X11R5/include \
6019 /usr/local/X11R4/include \
6021 /usr/local/include/X11 \
6022 /usr/local/include/X11R6 \
6023 /usr/local/include/X11R5 \
6024 /usr/local/include/X11R4 \
6028 /usr/XFree86/include/X11 \
6031 /usr/local/include \
6032 /usr/unsupported/include \
6033 /usr/athena/include \
6034 /usr/local/x11r5/include \
6035 /usr/lpp/Xamples/include \
6037 /usr/openwin/include \
6038 /usr/openwin/share/include \
6041 if test -r "$ac_dir/$x_direct_test_include"; then
6042 ac_x_includes=$ac_dir
6048 fi # $ac_x_includes = NO
6050 if test "$ac_x_libraries" = NO; then
6051 # Check for the libraries.
6053 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6054 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6056 # See if we find them without any special options.
6057 # Don't add to $LIBS permanently.
6058 ac_save_LIBS="$LIBS"
6059 LIBS="-l$x_direct_test_library $LIBS"
6060 cat > conftest.$ac_ext <<EOF
6061 #line 6062 "configure"
6062 #include "confdefs.h"
6065 ${x_direct_test_function}()
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 LIBS="$ac_save_LIBS"
6071 # We can link X programs with no special library path.
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6077 LIBS="$ac_save_LIBS"
6078 # First see if replacing the include by lib works.
6079 # Check X11 before X11Rn because it is often a symlink to the current release.
6080 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6091 /usr/local/X11/lib \
6092 /usr/local/X11R6/lib \
6093 /usr/local/X11R5/lib \
6094 /usr/local/X11R4/lib \
6096 /usr/local/lib/X11 \
6097 /usr/local/lib/X11R6 \
6098 /usr/local/lib/X11R5 \
6099 /usr/local/lib/X11R4 \
6103 /usr/XFree86/lib/X11 \
6107 /usr/unsupported/lib \
6109 /usr/local/x11r5/lib \
6110 /usr/lpp/Xamples/lib \
6114 /usr/openwin/share/lib \
6117 for ac_extension in a so sl; do
6118 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6119 ac_x_libraries=$ac_dir
6126 fi # $ac_x_libraries = NO
6128 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6129 # Didn't find X anywhere. Cache the known absence of X.
6130 ac_cv_have_x="have_x=no"
6132 # Record where we found X for the cache.
6133 ac_cv_have_x="have_x=yes \
6134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6138 eval "$ac_cv_have_x"
6141 if test "$have_x" != yes; then
6142 echo "$ac_t""$have_x" 1>&6
6145 # If each of the values was on the command line, it overrides each guess.
6146 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6148 # Update the cache value to reflect the command line values.
6149 ac_cv_have_x="have_x=yes \
6150 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6151 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6154 if test "$no_x" = yes; then
6155 # Not all programs may use this symbol, but it does not hurt to define it.
6156 cat >> confdefs.h <<\EOF
6157 #define X_DISPLAY_MISSING 1
6160 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6162 if test -n "$x_includes"; then
6163 X_CFLAGS="$X_CFLAGS -I$x_includes"
6166 # It would also be nice to do this for all -L options, not just this one.
6167 if test -n "$x_libraries"; then
6168 X_LIBS="$X_LIBS -L$x_libraries"
6169 # For Solaris; some versions of Sun CC require a space after -R and
6170 # others require no space. Words are not sufficient . . . .
6171 case "`(uname -sr) 2>/dev/null`" in
6173 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6174 echo "configure:6175: checking whether -R must be followed by a space" >&5
6175 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6194 if test $ac_R_nospace = yes; then
6195 echo "$ac_t""no" 1>&6
6196 X_LIBS="$X_LIBS -R$x_libraries"
6198 LIBS="$ac_xsave_LIBS -R $x_libraries"
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6217 if test $ac_R_space = yes; then
6218 echo "$ac_t""yes" 1>&6
6219 X_LIBS="$X_LIBS -R $x_libraries"
6221 echo "$ac_t""neither works" 1>&6
6224 LIBS="$ac_xsave_LIBS"
6228 # Check for system-dependent libraries X programs must link with.
6229 # Do this before checking for the system-independent R6 libraries
6230 # (-lICE), since we may need -lsocket or whatever for X linking.
6232 if test "$ISC" = yes; then
6233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6235 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6236 # libraries were built with DECnet support. And karl@cs.umb.edu says
6237 # the Alpha needs dnet_stub (dnet does not exist).
6238 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6239 echo "configure:6240: checking for dnet_ntoa in -ldnet" >&5
6240 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6244 ac_save_LIBS="$LIBS"
6246 cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure"
6248 #include "confdefs.h"
6249 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6260 eval "ac_cv_lib_$ac_lib_var=yes"
6262 echo "configure: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6265 eval "ac_cv_lib_$ac_lib_var=no"
6268 LIBS="$ac_save_LIBS"
6271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6272 echo "$ac_t""yes" 1>&6
6273 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6275 echo "$ac_t""no" 1>&6
6278 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6279 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6280 echo "configure:6281: checking for dnet_ntoa in -ldnet_stub" >&5
6281 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6285 ac_save_LIBS="$LIBS"
6286 LIBS="-ldnet_stub $LIBS"
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301 eval "ac_cv_lib_$ac_lib_var=yes"
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6306 eval "ac_cv_lib_$ac_lib_var=no"
6309 LIBS="$ac_save_LIBS"
6312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6316 echo "$ac_t""no" 1>&6
6321 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6322 # to get the SysV transport functions.
6323 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6325 # The nsl library prevents programs from opening the X display
6326 # on Irix 5.2, according to dickey@clark.net.
6327 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6328 echo "configure:6329: checking for gethostbyname" >&5
6329 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 /* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char gethostbyname(); below. */
6338 /* Override any gcc2 internal prototype to avoid an error. */
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char gethostbyname();
6345 /* The GNU C library defines this for functions which it implements
6346 to always fail with ENOSYS. Some functions are actually named
6347 something starting with __ and the normal name is an alias. */
6348 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6358 eval "ac_cv_func_gethostbyname=yes"
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6363 eval "ac_cv_func_gethostbyname=no"
6368 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6369 echo "$ac_t""yes" 1>&6
6372 echo "$ac_t""no" 1>&6
6375 if test $ac_cv_func_gethostbyname = no; then
6376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6377 echo "configure:6378: checking for gethostbyname in -lnsl" >&5
6378 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 ac_save_LIBS="$LIBS"
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6390 char gethostbyname();
6396 if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6398 eval "ac_cv_lib_$ac_lib_var=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 eval "ac_cv_lib_$ac_lib_var=no"
6406 LIBS="$ac_save_LIBS"
6409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6410 echo "$ac_t""yes" 1>&6
6411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6413 echo "$ac_t""no" 1>&6
6418 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6419 # socket/setsockopt and other routines are undefined under SCO ODT
6420 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6421 # on later versions), says simon@lia.di.epfl.ch: it contains
6422 # gethostby* variants that don't use the nameserver (or something).
6423 # -lsocket must be given before -lnsl if both are needed.
6424 # We assume that if connect needs -lnsl, so does gethostbyname.
6425 echo $ac_n "checking for connect""... $ac_c" 1>&6
6426 echo "configure:6427: checking for connect" >&5
6427 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 /* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char connect(); below. */
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6443 /* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */
6446 #if defined (__stub_connect) || defined (__stub___connect)
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456 eval "ac_cv_func_connect=yes"
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 eval "ac_cv_func_connect=no"
6466 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6470 echo "$ac_t""no" 1>&6
6473 if test $ac_cv_func_connect = no; then
6474 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6475 echo "configure:6476: checking for connect in -lsocket" >&5
6476 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 ac_save_LIBS="$LIBS"
6481 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 eval "ac_cv_lib_$ac_lib_var=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_lib_$ac_lib_var=no"
6504 LIBS="$ac_save_LIBS"
6507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6508 echo "$ac_t""yes" 1>&6
6509 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6511 echo "$ac_t""no" 1>&6
6516 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6517 echo $ac_n "checking for remove""... $ac_c" 1>&6
6518 echo "configure:6519: checking for remove" >&5
6519 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6520 echo $ac_n "(cached) $ac_c" 1>&6
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char remove(); below. */
6528 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6535 /* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */
6538 #if defined (__stub_remove) || defined (__stub___remove)
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6548 eval "ac_cv_func_remove=yes"
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 eval "ac_cv_func_remove=no"
6558 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6559 echo "$ac_t""yes" 1>&6
6562 echo "$ac_t""no" 1>&6
6565 if test $ac_cv_func_remove = no; then
6566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6567 echo "configure:6568: checking for remove in -lposix" >&5
6568 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 ac_save_LIBS="$LIBS"
6573 LIBS="-lposix $LIBS"
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6578 /* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6588 eval "ac_cv_lib_$ac_lib_var=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_lib_$ac_lib_var=no"
6596 LIBS="$ac_save_LIBS"
6599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6600 echo "$ac_t""yes" 1>&6
6601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6603 echo "$ac_t""no" 1>&6
6608 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6609 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6610 echo "configure:6611: checking for shmat" >&5
6611 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char shmat(); below. */
6620 /* Override any gcc2 internal prototype to avoid an error. */
6621 /* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */
6627 /* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */
6630 #if defined (__stub_shmat) || defined (__stub___shmat)
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6640 eval "ac_cv_func_shmat=yes"
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 eval "ac_cv_func_shmat=no"
6650 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6651 echo "$ac_t""yes" 1>&6
6654 echo "$ac_t""no" 1>&6
6657 if test $ac_cv_func_shmat = no; then
6658 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6659 echo "configure:6660: checking for shmat in -lipc" >&5
6660 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 ac_save_LIBS="$LIBS"
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6680 eval "ac_cv_lib_$ac_lib_var=yes"
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 eval "ac_cv_lib_$ac_lib_var=no"
6688 LIBS="$ac_save_LIBS"
6691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6695 echo "$ac_t""no" 1>&6
6701 # Check for libraries that X11R6 Xt/Xaw programs need.
6702 ac_save_LDFLAGS="$LDFLAGS"
6703 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6704 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6705 # check for ICE first), but we must link in the order -lSM -lICE or
6706 # we get undefined symbols. So assume we have SM if we have ICE.
6707 # These have to be linked with before -lX11, unlike the other
6708 # libraries we check for below, so use a different variable.
6709 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6710 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6711 echo "configure:6712: checking for IceConnectionNumber in -lICE" >&5
6712 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 ac_save_LIBS="$LIBS"
6717 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6724 char IceConnectionNumber();
6727 IceConnectionNumber()
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6732 eval "ac_cv_lib_$ac_lib_var=yes"
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 eval "ac_cv_lib_$ac_lib_var=no"
6740 LIBS="$ac_save_LIBS"
6743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6745 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6747 echo "$ac_t""no" 1>&6
6750 LDFLAGS="$ac_save_LDFLAGS"
6756 if test x$support_xpm = xyes; then
6760 # Initialize some more variables set by options.
6761 # The variables have the same names as the options, with
6762 # dashes changed to underlines.
6764 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6765 # paths, otherwise set no_xpm=yes.
6766 # Uses ac_ vars as temps to allow command line to override cache and checks.
6767 echo $ac_n "checking for libXpm""... $ac_c" 1>&6
6768 echo "configure:6769: checking for libXpm" >&5
6770 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6771 if test "${with_xpm_includes+set}" = set; then
6772 withval="$with_xpm_includes"
6773 xpm_includes="$withval"
6778 # Check whether --with-xpm_library or --without-xpm_library was given.
6779 if test "${with_xpm_library+set}" = set; then
6780 withval="$with_xpm_library"
6781 xpm_libraries="$withval"
6787 # --without-xpm overrides everything else, but does not touch the cache.
6788 # Check whether --with-xpm or --without-xpm was given.
6789 if test "${with_xpm+set}" = set; then
6794 if test "$with_xpm" = no; then
6797 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6801 vt_xpm_include_X11=no
6802 if test -n "$xpm_includes"; then
6803 vt_xpm_includes=$xpm_includes
6807 if test -n "$xpm_libraries"; then
6808 vt_xpm_libraries=$xpm_libraries
6813 if test "$vt_xpm_includes" = NO; then
6814 # Guess where to find xpm.h
6816 ac_save_CPPFLAGS="$CPPFLAGS"
6817 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6819 # First, try using that file with no special directory specified.
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6823 #include <X11/xpm.h>
6825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6826 { (eval echo configure:6827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6828 if test -z "$ac_err"; then
6830 # We can compile using X headers with no special include directory.
6832 vt_xpm_include_X11=yes
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 CPPFLAGS="$ac_save_CPPFLAGS"
6839 # Look for the header file in a standard set of common directories.
6842 /usr/X11R6/include \
6843 /usr/X11R5/include \
6844 /usr/X11R4/include \
6847 /usr/include/X11R6 \
6848 /usr/include/X11R5 \
6849 /usr/include/X11R4 \
6851 /usr/local/X11/include \
6852 /usr/local/X11R6/include \
6853 /usr/local/X11R5/include \
6854 /usr/local/X11R4/include \
6856 /usr/local/include/X11 \
6857 /usr/local/include/X11R6 \
6858 /usr/local/include/X11R5 \
6859 /usr/local/include/X11R4 \
6863 /usr/XFree86/include/X11 \
6866 /usr/local/include \
6867 /usr/unsupported/include \
6868 /usr/athena/include \
6869 /usr/local/x11r5/include \
6870 /usr/lpp/Xamples/include \
6872 /usr/openwin/include \
6873 /usr/openwin/share/include \
6876 if test -r "$ac_dir/X11/xpm.h"; then
6877 vt_xpm_includes="$ac_dir"
6878 vt_xpm_include_X11=yes
6881 if test -r "$ac_dir/xpm.h"; then
6882 vt_xpm_includes=$ac_dir
6891 if test "$vt_xpm_libraries" = NO; then
6892 # Check for the libraries.
6894 # See if we find them without any special options.
6895 # Don't add to $LIBS permanently.
6896 ac_save_LIBS="$LIBS"
6897 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6903 XpmReadFileToPixmap()
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6908 LIBS="$ac_save_LIBS"
6909 # We can link libXpm with no special library path.
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6915 LIBS="$ac_save_LIBS"
6916 # First see if replacing the include by lib works.
6918 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6929 /usr/local/X11/lib \
6930 /usr/local/X11R6/lib \
6931 /usr/local/X11R5/lib \
6932 /usr/local/X11R4/lib \
6934 /usr/local/lib/X11 \
6935 /usr/local/lib/X11R6 \
6936 /usr/local/lib/X11R5 \
6937 /usr/local/lib/X11R4 \
6941 /usr/XFree86/lib/X11 \
6945 /usr/unsupported/lib \
6947 /usr/local/x11r5/lib \
6948 /usr/lpp/Xamples/lib \
6951 /usr/openwin/share/lib \
6954 for ac_extension in a so sl; do
6955 if test -r $ac_dir/libXpm.$ac_extension; then
6956 vt_xpm_libraries=$ac_dir
6966 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6967 ac_cv_have_xpm="have_xpm=no"
6969 ac_cv_have_xpm="have_xpm=yes \
6970 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6971 vt_xpm_include_X11=$vt_xpm_include_X11"
6974 eval "$ac_cv_have_xpm"
6977 if test "$have_xpm" != yes; then
6978 echo "$ac_t""$have_xpm" 1>&6
6981 if test "$xpm_includes" != NO; then
6982 if test "$xpm_includes" = "$vt_xpm_includes"; then
6983 if test -r "$xpm_includes/X11/xpm.h"; then
6984 vt_xpm_include_X11=yes
6987 vt_xpm_include_X11=no
6988 if test -z "$xpm_includes"; then
6989 cat > conftest.$ac_ext <<EOF
6990 #line 6991 "configure"
6991 #include "confdefs.h"
6992 #include <X11/xpm.h>
6994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6995 { (eval echo configure:6996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6997 if test -z "$ac_err"; then
6999 vt_xpm_include_X11=yes
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7007 if test -r "$xpm_includes/X11/xpm.h"; then
7008 vt_xpm_include_X11=yes
7012 vt_xpm_includes=$xpm_includes
7014 if test "x$xpm_libraries" != xNO; then
7015 vt_xpm_libraries=$xpm_libraries
7017 # Update the cache value to reflect the command line values.
7018 ac_cv_have_xpm="have_xpm=yes \
7019 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7020 vt_xpm_include_X11=$vt_xpm_include_X11"
7021 eval "$ac_cv_have_xpm"
7022 echo "$ac_t""-I$vt_xpm_includes, -L$vt_xpm_libraries" 1>&6
7023 if test -n "$vt_xpm_includes"; then
7024 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7026 if test -n "$vt_xpm_includes"; then
7027 XPM_CFLAGS="-I$vt_xpm_includes"
7030 if test -n "$vt_xpm_libraries"; then
7031 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7033 if test "x$vt_xpm_include_X11" = xyes; then
7034 cat >> confdefs.h <<\EOF
7035 #define XPM_INC_X11 1
7045 if test x$no_xpm = xyes; then
7046 support_xpm=needsmanualspecification
7050 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7051 echo "configure:7052: checking for sys/wait.h that is POSIX.1 compatible" >&5
7052 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7055 cat > conftest.$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 #include <sys/types.h>
7059 #include <sys/wait.h>
7061 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7064 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7069 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7072 if { (eval echo configure:7073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7074 ac_cv_header_sys_wait_h=yes
7076 echo "configure: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7079 ac_cv_header_sys_wait_h=no
7084 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7085 if test $ac_cv_header_sys_wait_h = yes; then
7086 cat >> confdefs.h <<\EOF
7087 #define HAVE_SYS_WAIT_H 1
7114 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7115 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7116 echo "configure:7117: checking for $ac_hdr" >&5
7117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7126 { (eval echo configure:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7128 if test -z "$ac_err"; then
7130 eval "ac_cv_header_$ac_safe=yes"
7133 echo "configure: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7136 eval "ac_cv_header_$ac_safe=no"
7140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7143 cat >> confdefs.h <<EOF
7144 #define $ac_tr_hdr 1
7148 echo "$ac_t""no" 1>&6
7153 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7154 echo "configure:7155: checking whether time.h and sys/time.h may both be included" >&5
7155 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 #include <sys/types.h>
7162 #include <sys/time.h>
7168 if { (eval echo configure:7169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7170 ac_cv_header_time=yes
7172 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7175 ac_cv_header_time=no
7180 echo "$ac_t""$ac_cv_header_time" 1>&6
7181 if test $ac_cv_header_time = yes; then
7182 cat >> confdefs.h <<\EOF
7183 #define TIME_WITH_SYS_TIME 1
7189 echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6
7190 echo "configure:7191: checking whether termios.h and sys/ioctl.h may both be included" >&5
7191 if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7198 #include <sys/ioctl.h>
7199 #ifdef HAVE_TERMIOS_H
7200 #include <termios.h>
7206 if { (eval echo configure:7207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7208 rxvt_cv_header_sysioctl=yes
7210 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7213 rxvt_cv_header_sysioctl=no
7218 echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6
7220 if test -n "$GCC"; then
7225 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7227 ac_save_CFLAGS=$CFLAGS
7229 CFLAGS="$CFLAGS $X_CFLAGS"
7230 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7231 echo $ac_n "checking for -rpath dynamic library path recording""... $ac_c" 1>&6
7232 echo "configure:7233: checking for -rpath dynamic library path recording" >&5
7233 if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 if test "$cross_compiling" = yes; then
7237 echo "configure: warning: You may need to check the LIBS line" 1>&2
7239 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7246 (void) XOpenDisplay("foobar");
7249 if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7263 echo "$ac_t""$rxvt_cv_rpath" 1>&6
7264 if test x$rxvt_cv_rpath != xyes; then
7265 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7266 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7267 echo $ac_n "checking for -R dynamic library path recording""... $ac_c" 1>&6
7268 echo "configure:7269: checking for -R dynamic library path recording" >&5
7269 if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7272 if test "$cross_compiling" = yes; then
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7282 (void) XOpenDisplay("foobar");
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7299 echo "$ac_t""$rxvt_cv_R" 1>&6
7300 if test x$rxvt_cv_R != xyes; then
7301 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7305 echo $ac_n "checking for XPointer""... $ac_c" 1>&6
7306 echo "configure:7307: checking for XPointer" >&5
7307 if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 #include <X11/Xlib.h>
7318 if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7320 rxvt_cv_xpointer=yes
7322 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7330 echo "$ac_t""$rxvt_cv_xpointer" 1>&6
7331 if test x$rxvt_cv_xpointer = xyes; then
7332 cat >> confdefs.h <<\EOF
7333 #define HAVE_XPOINTER 1
7338 CFLAGS=$ac_save_CFLAGS
7341 echo $ac_n "checking for working const""... $ac_c" 1>&6
7342 echo "configure:7343: checking for working const" >&5
7343 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7344 echo $ac_n "(cached) $ac_c" 1>&6
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7352 /* Ultrix mips cc rejects this. */
7353 typedef int charset[2]; const charset x;
7354 /* SunOS 4.1.1 cc rejects this. */
7355 char const *const *ccp;
7357 /* NEC SVR4.0.2 mips cc rejects this. */
7358 struct point {int x, y;};
7359 static struct point const zero = {0,0};
7360 /* AIX XL C 1.02.0.0 rejects this.
7361 It does not let you subtract one const X* pointer from another in an arm
7362 of an if-expression whose if-part is not a constant expression */
7363 const char *g = "string";
7364 ccp = &g + (g ? g-g : 0);
7365 /* HPUX 7.0 cc rejects these. */
7368 ccp = (char const *const *) p;
7369 { /* SCO 3.2v4 cc rejects this. */
7371 char const *s = 0 ? (char *) 0 : (char const *) 0;
7375 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7377 const int *foo = &x[0];
7380 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7381 typedef const int *iptr;
7385 { /* AIX XL C 1.02.0.0 rejects this saying
7386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7387 struct s { int j; const int *ap[3]; };
7388 struct s *b; b->j = 5;
7390 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7396 if { (eval echo configure:7397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7400 echo "configure: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7408 echo "$ac_t""$ac_cv_c_const" 1>&6
7409 if test $ac_cv_c_const = no; then
7410 cat >> confdefs.h <<\EOF
7416 echo $ac_n "checking for inline""... $ac_c" 1>&6
7417 echo "configure:7418: checking for inline" >&5
7418 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7422 for ac_kw in inline __inline__ __inline; do
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7431 if { (eval echo configure:7432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7433 ac_cv_c_inline=$ac_kw; break
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7443 echo "$ac_t""$ac_cv_c_inline" 1>&6
7444 case "$ac_cv_c_inline" in
7446 no) cat >> confdefs.h <<\EOF
7450 *) cat >> confdefs.h <<EOF
7451 #define inline $ac_cv_c_inline
7458 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7459 echo "configure:7460: checking for ANSI C header files" >&5
7460 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7472 { (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7474 if test -z "$ac_err"; then
7476 ac_cv_header_stdc=yes
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7482 ac_cv_header_stdc=no
7486 if test $ac_cv_header_stdc = yes; then
7487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7488 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure"
7490 #include "confdefs.h"
7493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7494 egrep "memchr" >/dev/null 2>&1; then
7498 ac_cv_header_stdc=no
7504 if test $ac_cv_header_stdc = yes; then
7505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7506 cat > conftest.$ac_ext <<EOF
7507 #line 7508 "configure"
7508 #include "confdefs.h"
7511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7512 egrep "free" >/dev/null 2>&1; then
7516 ac_cv_header_stdc=no
7522 if test $ac_cv_header_stdc = yes; then
7523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7524 if test "$cross_compiling" = yes; then
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7531 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7532 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7534 int main () { int i; for (i = 0; i < 256; i++)
7535 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 ac_cv_header_stdc=no
7554 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7555 if test $ac_cv_header_stdc = yes; then
7556 cat >> confdefs.h <<\EOF
7557 #define STDC_HEADERS 1
7562 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7563 echo "configure:7564: checking for mode_t" >&5
7564 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 #include <sys/types.h>
7576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7577 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7579 ac_cv_type_mode_t=yes
7582 ac_cv_type_mode_t=no
7587 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7588 if test $ac_cv_type_mode_t = no; then
7589 cat >> confdefs.h <<\EOF
7595 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7596 echo "configure:7597: checking for pid_t" >&5
7597 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 #include <sys/types.h>
7609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7610 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7612 ac_cv_type_pid_t=yes
7620 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7621 if test $ac_cv_type_pid_t = no; then
7622 cat >> confdefs.h <<\EOF
7628 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7629 echo "configure:7630: checking for uid_t in sys/types.h" >&5
7630 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 #include <sys/types.h>
7638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 egrep "uid_t" >/dev/null 2>&1; then
7641 ac_cv_type_uid_t=yes
7650 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7651 if test $ac_cv_type_uid_t = no; then
7652 cat >> confdefs.h <<\EOF
7656 cat >> confdefs.h <<\EOF
7664 echo $ac_n "checking size of char""... $ac_c" 1>&6
7665 echo "configure:7666: checking size of char" >&5
7666 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6
7669 if test "$cross_compiling" = yes; then
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7676 #include <sys/types.h>
7679 FILE *f=fopen("conftestval", "w");
7681 fprintf(f, "%d\n", sizeof(char));
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7687 ac_cv_sizeof_char=`cat conftestval`
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7698 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7699 cat >> confdefs.h <<EOF
7700 #define SIZEOF_CHAR $ac_cv_sizeof_char
7704 echo $ac_n "checking size of short""... $ac_c" 1>&6
7705 echo "configure:7706: checking size of short" >&5
7706 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6
7709 if test "$cross_compiling" = yes; then
7710 ac_cv_sizeof_short=2
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7716 #include <sys/types.h>
7719 FILE *f=fopen("conftestval", "w");
7721 fprintf(f, "%d\n", sizeof(short));
7725 if { (eval echo configure:7726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7727 ac_cv_sizeof_short=`cat conftestval`
7729 echo "configure: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7732 ac_cv_sizeof_short=0
7738 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7739 cat >> confdefs.h <<EOF
7740 #define SIZEOF_SHORT $ac_cv_sizeof_short
7744 echo $ac_n "checking size of int""... $ac_c" 1>&6
7745 echo "configure:7746: checking size of int" >&5
7746 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7749 if test "$cross_compiling" = yes; then
7752 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7756 #include <sys/types.h>
7759 FILE *f=fopen("conftestval", "w");
7761 fprintf(f, "%d\n", sizeof(int));
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7767 ac_cv_sizeof_int=`cat conftestval`
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7778 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7779 cat >> confdefs.h <<EOF
7780 #define SIZEOF_INT $ac_cv_sizeof_int
7784 echo $ac_n "checking size of long""... $ac_c" 1>&6
7785 echo "configure:7786: checking size of long" >&5
7786 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 if test "$cross_compiling" = yes; then
7792 cat > conftest.$ac_ext <<EOF
7793 #line 7794 "configure"
7794 #include "confdefs.h"
7796 #include <sys/types.h>
7799 FILE *f=fopen("conftestval", "w");
7801 fprintf(f, "%d\n", sizeof(long));
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7807 ac_cv_sizeof_long=`cat conftestval`
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7818 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7819 cat >> confdefs.h <<EOF
7820 #define SIZEOF_LONG $ac_cv_sizeof_long
7824 echo $ac_n "checking size of long long""... $ac_c" 1>&6
7825 echo "configure:7826: checking size of long long" >&5
7826 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6
7829 if test "$cross_compiling" = yes; then
7830 ac_cv_sizeof_long_long=8
7832 cat > conftest.$ac_ext <<EOF
7833 #line 7834 "configure"
7834 #include "confdefs.h"
7836 #include <sys/types.h>
7839 FILE *f=fopen("conftestval", "w");
7841 fprintf(f, "%d\n", sizeof(long long));
7845 if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7847 ac_cv_sizeof_long_long=`cat conftestval`
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7852 ac_cv_sizeof_long_long=0
7858 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
7859 cat >> confdefs.h <<EOF
7860 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7864 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7865 echo "configure:7866: checking size of int *" >&5
7866 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7869 if test "$cross_compiling" = yes; then
7870 ac_cv_sizeof_int_p=4
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7876 #include <sys/types.h>
7879 FILE *f=fopen("conftestval", "w");
7881 fprintf(f, "%d\n", sizeof(int *));
7885 if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7887 ac_cv_sizeof_int_p=`cat conftestval`
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7892 ac_cv_sizeof_int_p=0
7898 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7899 cat >> confdefs.h <<EOF
7900 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7906 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
7907 echo "configure:7908: checking for int16_t" >&5
7908 if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7911 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7919 if { (eval echo configure:7920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 if test $ac_cv_sizeof_char -ge 2; then
7927 rxvt_cv_int16_t=" char"
7929 if test $ac_cv_sizeof_short -ge 2; then
7930 rxvt_cv_int16_t=" short"
7932 if test $ac_cv_sizeof_int -ge 2; then
7933 rxvt_cv_int16_t=" int"
7935 if test $ac_cv_sizeof_long -ge 2; then
7936 rxvt_cv_int16_t=" long"
7938 if test $ac_cv_sizeof_long_long -ge 2; then
7939 rxvt_cv_int16_t=" long long"
7941 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
7951 echo "$ac_t""$rxvt_cv_int16_t" 1>&6
7952 if test x"$rxvt_cv_int16_t" != xyes; then
7953 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7955 if test x"" = x; then
7956 rxvt_int16_typedef="/* typedef short int16_t; */"
7958 rxvt_int16_typedef="/* typedef short int16_t; */"
7962 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
7963 echo "configure:7964: checking for uint16_t" >&5
7964 if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7967 cat > conftest.$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7975 if { (eval echo configure:7976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7977 rxvt_cv_uint16_t=yes
7979 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7982 if test $ac_cv_sizeof_char -ge 2; then
7983 rxvt_cv_uint16_t="unsigned char"
7985 if test $ac_cv_sizeof_short -ge 2; then
7986 rxvt_cv_uint16_t="unsigned short"
7988 if test $ac_cv_sizeof_int -ge 2; then
7989 rxvt_cv_uint16_t="unsigned int"
7991 if test $ac_cv_sizeof_long -ge 2; then
7992 rxvt_cv_uint16_t="unsigned long"
7994 if test $ac_cv_sizeof_long_long -ge 2; then
7995 rxvt_cv_uint16_t="unsigned long long"
7997 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
8007 echo "$ac_t""$rxvt_cv_uint16_t" 1>&6
8008 if test x"$rxvt_cv_uint16_t" != xyes; then
8009 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8011 if test x"unsigned" = x; then
8012 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8014 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8018 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
8019 echo "configure:8020: checking for int32_t" >&5
8020 if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8031 if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8038 if test $ac_cv_sizeof_char -ge 4; then
8039 rxvt_cv_int32_t=" char"
8041 if test $ac_cv_sizeof_short -ge 4; then
8042 rxvt_cv_int32_t=" short"
8044 if test $ac_cv_sizeof_int -ge 4; then
8045 rxvt_cv_int32_t=" int"
8047 if test $ac_cv_sizeof_long -ge 4; then
8048 rxvt_cv_int32_t=" long"
8050 if test $ac_cv_sizeof_long_long -ge 4; then
8051 rxvt_cv_int32_t=" long long"
8053 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
8063 echo "$ac_t""$rxvt_cv_int32_t" 1>&6
8064 if test x"$rxvt_cv_int32_t" != xyes; then
8065 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8067 if test x"" = x; then
8068 rxvt_int32_typedef="/* typedef int int32_t; */"
8070 rxvt_int32_typedef="/* typedef int int32_t; */"
8074 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
8075 echo "configure:8076: checking for uint32_t" >&5
8076 if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8087 if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8089 rxvt_cv_uint32_t=yes
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8094 if test $ac_cv_sizeof_char -ge 4; then
8095 rxvt_cv_uint32_t="unsigned char"
8097 if test $ac_cv_sizeof_short -ge 4; then
8098 rxvt_cv_uint32_t="unsigned short"
8100 if test $ac_cv_sizeof_int -ge 4; then
8101 rxvt_cv_uint32_t="unsigned int"
8103 if test $ac_cv_sizeof_long -ge 4; then
8104 rxvt_cv_uint32_t="unsigned long"
8106 if test $ac_cv_sizeof_long_long -ge 4; then
8107 rxvt_cv_uint32_t="unsigned long long"
8109 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
8119 echo "$ac_t""$rxvt_cv_uint32_t" 1>&6
8120 if test x"$rxvt_cv_uint32_t" != xyes; then
8121 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8123 if test x"unsigned" = x; then
8124 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8126 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8130 if test $ac_cv_sizeof_int_p -eq 8; then
8131 rxvt_intp_define="#define intp_t int64_t"
8132 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8134 if test $ac_cv_sizeof_int_p -eq 4; then
8135 rxvt_intp_define="#define intp_t int32_t"
8136 rxvt_u_intp_define="#define u_intp_t u_int32_t"
8138 if test $ac_cv_sizeof_int_p -eq 2; then
8139 rxvt_intp_define="#define intp_t int16_t"
8140 rxvt_u_intp_define="#define u_intp_t u_int16_t"
8142 rxvt_intp_define="#error set intp_t"
8143 rxvt_u_intp_define="#error set u_intp_t"
8150 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8151 echo "configure:8152: checking return type of signal handlers" >&5
8152 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8155 cat > conftest.$ac_ext <<EOF
8156 #line 8157 "configure"
8157 #include "confdefs.h"
8158 #include <sys/types.h>
8164 extern "C" void (*signal (int, void (*)(int)))(int);
8166 void (*signal ()) ();
8173 if { (eval echo configure:8174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8175 ac_cv_type_signal=void
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8180 ac_cv_type_signal=int
8185 echo "$ac_t""$ac_cv_type_signal" 1>&6
8186 cat >> confdefs.h <<EOF
8187 #define RETSIGTYPE $ac_cv_type_signal
8192 case "$host_alias" in
8193 *ultrix) ac_cv_func_setsid='no' ;;
8218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8219 echo "configure:8220: checking for $ac_func" >&5
8220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8221 echo $ac_n "(cached) $ac_c" 1>&6
8223 cat > conftest.$ac_ext <<EOF
8224 #line 8225 "configure"
8225 #include "confdefs.h"
8226 /* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8236 /* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8247 if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8249 eval "ac_cv_func_$ac_func=yes"
8251 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8254 eval "ac_cv_func_$ac_func=no"
8259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8262 cat >> confdefs.h <<EOF
8263 #define $ac_tr_func 1
8267 echo "$ac_t""no" 1>&6
8273 ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
8274 echo $ac_n "checking for utmp.h""... $ac_c" 1>&6
8275 echo "configure:8276: checking for utmp.h" >&5
8276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8285 { (eval echo configure:8286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8287 if test -z "$ac_err"; then
8289 eval "ac_cv_header_$ac_safe=yes"
8292 echo "configure: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8295 eval "ac_cv_header_$ac_safe=no"
8299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8300 echo "$ac_t""yes" 1>&6
8301 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6
8302 echo "configure:8303: checking for struct utmp" >&5
8303 if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8306 cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 #include <sys/types.h>
8316 if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8318 rxvt_cv_struct_utmp=yes
8320 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8323 rxvt_cv_struct_utmp=no
8328 echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6
8329 if test x$rxvt_cv_struct_utmp = xyes; then
8330 cat >> confdefs.h <<\EOF
8331 #define HAVE_STRUCT_UTMP 1
8337 echo $ac_n "checking for ut_host in utmp struct""... $ac_c" 1>&6
8338 echo "configure:8339: checking for ut_host in utmp struct" >&5
8339 if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 #include <sys/types.h>
8348 struct utmp ut; ut.ut_host;
8351 if { (eval echo configure:8352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8353 rxvt_cv_struct_utmp_host=yes
8355 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8358 rxvt_cv_struct_utmp_host=no
8363 echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6
8364 if test x$rxvt_cv_struct_utmp_host = xyes; then
8365 cat >> confdefs.h <<\EOF
8366 #define HAVE_UTMP_HOST 1
8371 echo $ac_n "checking for ut_pid in utmp struct""... $ac_c" 1>&6
8372 echo "configure:8373: checking for ut_pid in utmp struct" >&5
8373 if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8376 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure"
8378 #include "confdefs.h"
8379 #include <sys/types.h>
8382 struct utmp ut; ut.ut_pid;
8385 if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8387 rxvt_cv_struct_utmp_pid=yes
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8392 rxvt_cv_struct_utmp_pid=no
8397 echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6
8398 if test x$rxvt_cv_struct_utmp_pid = xyes; then
8399 cat >> confdefs.h <<\EOF
8400 #define HAVE_UTMP_PID 1
8406 echo "$ac_t""no" 1>&6
8410 ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
8411 echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6
8412 echo "configure:8413: checking for utmpx.h" >&5
8413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6
8416 cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8422 { (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8424 if test -z "$ac_err"; then
8426 eval "ac_cv_header_$ac_safe=yes"
8429 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5
8432 eval "ac_cv_header_$ac_safe=no"
8436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8437 echo "$ac_t""yes" 1>&6
8438 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6
8439 echo "configure:8440: checking for struct utmpx" >&5
8440 if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 #include <sys/types.h>
8452 if { (eval echo configure:8453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8454 rxvt_cv_struct_utmpx=yes
8456 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8459 rxvt_cv_struct_utmpx=no
8464 echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6
8465 if test x$rxvt_cv_struct_utmpx = xyes; then
8466 cat >> confdefs.h <<\EOF
8467 #define HAVE_STRUCT_UTMPX 1
8473 echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6
8474 echo "configure:8475: checking for host in utmpx struct" >&5
8475 if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then
8476 echo $ac_n "(cached) $ac_c" 1>&6
8478 cat > conftest.$ac_ext <<EOF
8479 #line 8480 "configure"
8480 #include "confdefs.h"
8481 #include <sys/types.h>
8484 struct utmpx utx; utx.ut_host;
8487 if { (eval echo configure:8488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8489 rxvt_cv_struct_utmpx_host=yes
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8494 rxvt_cv_struct_utmpx_host=no
8499 echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6
8500 if test x$rxvt_cv_struct_utmpx_host = xyes; then
8501 cat >> confdefs.h <<\EOF
8502 #define HAVE_UTMPX_HOST 1
8508 echo "$ac_t""no" 1>&6
8512 echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6
8513 echo "configure:8514: checking for struct lastlog" >&5
8514 if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8520 #include <sys/types.h>
8522 #ifdef HAVE_LASTLOG_H
8523 #include <lastlog.h>
8530 if { (eval echo configure:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8532 rxvt_cv_struct_lastlog=yes
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8537 rxvt_cv_struct_lastlog=no
8542 echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6
8543 if test x$rxvt_cv_struct_lastlog = xyes; then
8544 cat >> confdefs.h <<\EOF
8545 #define HAVE_STRUCT_LASTLOG 1
8550 echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6
8551 echo "configure:8552: checking for struct lastlogx" >&5
8552 if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 #include <sys/types.h>
8560 #ifdef HAVE_LASTLOG_H
8561 #include <lastlog.h>
8568 if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8570 rxvt_cv_struct_lastlogx=yes
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 rxvt_cv_struct_lastlogx=no
8580 echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6
8581 if test x$rxvt_cv_struct_lastlogx = xyes; then
8582 cat >> confdefs.h <<\EOF
8583 #define HAVE_STRUCT_LASTLOGX 1
8589 echo $ac_n "checking where utmp is located""... $ac_c" 1>&6
8590 echo "configure:8591: checking where utmp is located" >&5
8591 if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then
8592 echo $ac_n "(cached) $ac_c" 1>&6
8594 if test "$cross_compiling" = yes; then
8595 echo "configure: warning: Define RXVT_UTMP_FILE in config.h manually" 1>&2
8597 cat > conftest.$ac_ext <<EOF
8598 #line 8599 "configure"
8599 #include "confdefs.h"
8601 #include <sys/types.h>
8606 char **u, *utmplist[] = {
8607 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
8608 FILE *a, *f=fopen("conftestval", "w");
8611 fprintf(f, "%s\n", UTMP_FILE);
8615 fprintf(f, "%s\n", _PATH_UTMP);
8618 for (u = utmplist; *u; u++) {
8619 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
8620 fprintf(f, "%s\n", *u);
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8629 rxvt_cv_path_utmp=`cat conftestval`
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8641 echo "$ac_t""$rxvt_cv_path_utmp" 1>&6
8642 if test x$rxvt_cv_path_utmp != x; then
8643 cat >> confdefs.h <<EOF
8644 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8650 echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6
8651 echo "configure:8652: checking where utmpx is located" >&5
8652 if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
8655 if test "$cross_compiling" = yes; then
8656 echo "configure: warning: Define RXVT_UTMPX_FILE in config.h manually" 1>&2
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8662 #include <sys/types.h>
8665 #include <sys/stat.h>
8666 #ifdef HAVE_STRING_H
8671 char **u, *p, *utmplist[] = {
8678 "/var/adm/utmpx", "/etc/utmpx", NULL };
8679 FILE *a, *f=fopen("conftestval", "w");
8680 struct stat statu, statux;
8682 for (u = utmplist; *u; u++) {
8683 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
8684 if (stat(*u, &statux) < 0)
8687 p[strlen(p) - 1] = '\0';
8688 if (stat(p, &statu) >= 0
8689 && (statu.st_mtime - statux.st_mtime > 86400))
8691 fprintf(f, "%s\n", *u);
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8700 rxvt_cv_path_utmpx=`cat conftestval`
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8712 echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6
8713 if test x$rxvt_cv_path_utmpx != x; then
8714 cat >> confdefs.h <<EOF
8715 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8721 echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6
8722 echo "configure:8723: checking where wtmp is located" >&5
8723 if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6
8726 if test "$cross_compiling" = yes; then
8727 echo "configure: warning: Define RXVT_WTMP_FILE in config.h manually" 1>&2
8729 cat > conftest.$ac_ext <<EOF
8730 #line 8731 "configure"
8731 #include "confdefs.h"
8733 #include <sys/types.h>
8740 char **w, *wtmplist[] = {
8741 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8742 FILE *a, *f=fopen("conftestval", "w");
8745 fprintf(f, "%s\n", WTMP_FILE);
8749 fprintf(f, "%s\n", _PATH_WTMP);
8752 for (w = wtmplist; *w; w++) {
8753 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8754 fprintf(f, "%s\n", *w);
8761 if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8763 rxvt_cv_path_wtmp=`cat conftestval`
8765 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8775 echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6
8776 if test x$rxvt_cv_path_wtmp != x; then
8777 cat >> confdefs.h <<EOF
8778 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8783 echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6
8784 echo "configure:8785: checking where wtmpx is located" >&5
8785 if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8788 if test "$cross_compiling" = yes; then
8789 echo "configure: warning: Define RXVT_WTMPX_FILE in config.h manually" 1>&2
8791 cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8801 char **w, *wtmplist[] = {
8802 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8803 FILE *a, *f=fopen("conftestval", "w");
8806 fprintf(f, "%s\n", WTMPX_FILE);
8810 fprintf(f, "%s\n", _PATH_WTMPX);
8813 for (w = wtmplist; *w; w++) {
8814 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8815 fprintf(f, "%s\n", *w);
8822 if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8824 rxvt_cv_path_wtmpx=`cat conftestval`
8826 echo "configure: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8836 echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6
8837 if test x$rxvt_cv_path_wtmpx != x; then
8838 cat >> confdefs.h <<EOF
8839 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8844 echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6
8845 echo "configure:8846: checking where lastlog is located" >&5
8846 if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8849 if test "$cross_compiling" = yes; then
8850 echo "configure: warning: Define RXVT_LASTLOG_FILE in config.h manually" 1>&2
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8856 #include <sys/types.h>
8859 #elif defined(HAVE_UTMP_H)
8862 #ifdef HAVE_LASTLOG_H
8863 #include <lastlog.h>
8868 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
8869 FILE *a, *f=fopen("conftestval", "w");
8872 fprintf(f, "%s\n", LASTLOG_FILE);
8875 #ifdef _PATH_LASTLOG
8876 fprintf(f, "%s\n", _PATH_LASTLOG);
8879 for (w = lastloglist; *w; w++) {
8880 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8881 fprintf(f, "%s\n", *w);
8888 if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8890 rxvt_cv_path_lastlog=`cat conftestval`
8892 echo "configure: failed program was:" >&5
8893 cat conftest.$ac_ext >&5
8895 rxvt_cv_path_lastlog=
8902 echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6
8903 if test x$rxvt_cv_path_lastlog != x; then
8904 cat >> confdefs.h <<EOF
8905 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8908 if test -d "$rxvt_cv_path_lastlog"; then
8909 cat >> confdefs.h <<\EOF
8910 #define LASTLOG_IS_DIR 1
8916 echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6
8917 echo "configure:8918: checking where lastlogx is located" >&5
8918 if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8921 if test "$cross_compiling" = yes; then
8922 echo "configure: warning: Define RXVT_LASTLOGX_FILE in config.h manually" 1>&2
8924 cat > conftest.$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8934 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
8935 FILE *a, *f=fopen("conftestval", "w");
8937 #ifdef LASTLOGX_FILE
8938 fprintf(f, "%s\n", LASTLOGX_FILE);
8941 #ifdef _PATH_LASTLOGX
8942 fprintf(f, "%s\n", _PATH_LASTLOGX);
8945 for (w = wtmplist; *w; w++) {
8946 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8947 fprintf(f, "%s\n", *w);
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8956 rxvt_cv_path_lastlogx=`cat conftestval`
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 rxvt_cv_path_lastlogx=
8968 echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6
8969 if test x$rxvt_cv_path_lastlogx != x; then
8970 cat >> confdefs.h <<EOF
8971 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8977 echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6
8978 echo "configure:8979: checking where ttys/ttytab is located" >&5
8979 if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8982 for ttys_file in /etc/ttys /etc/ttytab;
8984 if test -f "$ttys_file" ; then
8985 rxvt_cv_path_ttytab=$ttys_file
8992 echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6
8993 if test x$rxvt_cv_path_ttytab != x; then
8994 cat >> confdefs.h <<EOF
8995 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
9002 ac_save_CFLAGS=$CFLAGS
9003 CFLAGS="$CFLAGS $X_CFLAGS"
9004 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9005 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9006 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9008 echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6
9009 echo "configure:9010: checking for working Xlocale" >&5
9010 if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9013 if test "$cross_compiling" = yes; then
9014 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 #include <X11/Xlib.h>
9022 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9023 exit (XSupportsLocale() ? 0 : 1);
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9029 rxvt_cv_func_xlocale=yes
9031 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9034 rxvt_cv_func_xlocale=no
9041 echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6
9042 if test x$rxvt_cv_func_xlocale = xyes; then
9043 cat >> confdefs.h <<\EOF
9044 #define HAVE_XLOCALE 1
9049 echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6
9050 echo "configure:9051: checking for working X setlocale" >&5
9051 if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9058 #include <X11/Xlocale.h>
9060 setlocale(LC_CTYPE, "");
9063 if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9065 rxvt_cv_func_xsetlocale=yes
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9070 rxvt_cv_func_xsetlocale=no
9075 echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6
9076 if test x$rxvt_cv_func_xsetlocale = xyes; then
9077 cat >> confdefs.h <<\EOF
9078 #define HAVE_XSETLOCALE 1
9083 CFLAGS=$ac_save_CFLAGS
9085 echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6
9086 echo "configure:9087: checking for working plain setlocale" >&5
9087 if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9090 cat > conftest.$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9095 setlocale(LC_CTYPE, "");
9098 if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9100 rxvt_cv_func_setlocale=yes
9102 echo "configure: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9105 rxvt_cv_func_setlocale=no
9110 echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6
9111 if test x$rxvt_cv_func_setlocale = xyes; then
9112 cat >> confdefs.h <<\EOF
9113 #define HAVE_SETLOCALE 1
9118 echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6
9119 echo "configure:9120: checking for working nl_langinfo" >&5
9120 if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9123 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9126 #include <langinfo.h>
9128 nl_langinfo(CODESET);
9131 if { (eval echo configure:9132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9133 rxvt_cv_func_nl_langinfo=yes
9135 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 rxvt_cv_func_nl_langinfo=no
9143 echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6
9144 if test x$rxvt_cv_func_nl_langinfo = xyes; then
9145 cat >> confdefs.h <<\EOF
9146 #define HAVE_NL_LANGINFO 1
9151 echo $ac_n "checking for getpt""... $ac_c" 1>&6
9152 echo "configure:9153: checking for getpt" >&5
9153 if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then
9154 echo $ac_n "(cached) $ac_c" 1>&6
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9160 #ifdef HAVE_STDLIB_H
9161 # include <stdlib.h>
9167 if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9169 rxvt_cv_func_getpt=yes
9171 echo "configure: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9174 rxvt_cv_func_getpt=no
9179 echo "$ac_t""$rxvt_cv_func_getpt" 1>&6
9180 if test x$rxvt_cv_func_getpt = xyes; then
9181 cat >> confdefs.h <<\EOF
9182 #define HAVE_GETPT 1
9187 echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6
9188 echo "configure:9189: checking for pty/tty type" >&5
9189 if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then
9190 echo $ac_n "(cached) $ac_c" 1>&6
9192 if test x$ac_cv_func_openpty = xyes; then
9193 rxvt_cv_ptys=OPENPTY
9194 else if test x$ac_cv_func__getpty = xyes; then
9196 else if test -c /dev/ttyp20; then
9198 else if test -c /dev/ptym/clone; then
9200 else if test x$rxvt_cv_func_getpt = xyes; then
9202 else if test -c /dev/ptc -a -c /dev/pts; then
9204 else if test -c /dev/ptc -a -d /dev/pts; then
9206 else if test -c /dev/ptmx -a -c /dev/pts/0; then
9207 rxvt_cv_ptys=STREAMS
9208 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
9209 rxvt_cv_ptys=STREAMS
9224 echo "$ac_t""$rxvt_cv_ptys" 1>&6
9226 if test x$rxvt_cv_ptys = xOPENPTY; then
9227 cat >> confdefs.h <<\EOF
9228 #define PTYS_ARE_OPENPTY 1
9232 if test x$rxvt_cv_ptys = xSCO; then
9233 cat >> confdefs.h <<\EOF
9234 #define PTYS_ARE_NUMERIC 1
9238 if test x$rxvt_cv_ptys = xSTREAMS; then
9239 cat >> confdefs.h <<\EOF
9240 #define PTYS_ARE_PTMX 1
9244 if test x$rxvt_cv_ptys = xPTC; then
9245 cat >> confdefs.h <<\EOF
9246 #define PTYS_ARE_PTC 1
9250 if test x$rxvt_cv_ptys = xSGI4; then
9251 cat >> confdefs.h <<\EOF
9252 #define PTYS_ARE__GETPTY 1
9256 if test x$rxvt_cv_ptys = xCONVEX; then
9257 cat >> confdefs.h <<\EOF
9258 #define PTYS_ARE_GETPTY 1
9262 if test x$rxvt_cv_ptys = xGLIBC; then
9263 cat >> confdefs.h <<\EOF
9264 #define PTYS_ARE_GETPT 1
9268 if test x$rxvt_cv_ptys = xHPUX; then
9269 cat >> confdefs.h <<\EOF
9270 #define PTYS_ARE_CLONE 1
9274 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
9275 cat >> confdefs.h <<\EOF
9276 #define PTYS_ARE_SEARCHED 1
9282 echo "checking for pty ranges" 1>&6
9283 echo "configure:9284: checking for pty ranges" >&5
9284 ptys=`echo /dev/pty??`
9285 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
9286 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9287 if test x$pch1 != x; then
9288 cat >> confdefs.h <<EOF
9289 #define PTYCHAR1 "$pch1"
9293 if test x$pch2 != x; then
9294 cat >> confdefs.h <<EOF
9295 #define PTYCHAR2 "$pch2"
9300 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9301 echo "configure:9302: checking for setlocale in -lxpg4" >&5
9302 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6
9306 ac_save_LIBS="$LIBS"
9308 cat > conftest.$ac_ext <<EOF
9309 #line 9310 "configure"
9310 #include "confdefs.h"
9311 /* Override any gcc2 internal prototype to avoid an error. */
9312 /* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */
9320 if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9322 eval "ac_cv_lib_$ac_lib_var=yes"
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9327 eval "ac_cv_lib_$ac_lib_var=no"
9330 LIBS="$ac_save_LIBS"
9333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9334 echo "$ac_t""yes" 1>&6
9337 echo "$ac_t""no" 1>&6
9341 if test x$support_graphics = xyes; then
9342 cat >> confdefs.h <<\EOF
9343 #define RXVT_GRAPHICS 1
9347 if test x$support_inheritpixmap = xyes; then
9348 cat >> confdefs.h <<\EOF
9349 #define TRANSPARENT 1
9353 if test x$support_keepscrolling = xno; then
9354 cat >> confdefs.h <<\EOF
9355 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9359 if test x$support_selectionscrolling = xyes; then
9360 cat >> confdefs.h <<\EOF
9361 #define SELECTION_SCROLLING 1
9365 if test x$support_menubar = xyes; then
9366 cat >> confdefs.h <<\EOF
9371 if test x$support_frills = xno; then
9372 cat >> confdefs.h <<\EOF
9377 if test x$support_linespace = xno; then
9378 cat >> confdefs.h <<\EOF
9379 #define NO_LINESPACE 1
9383 if test x$support_24bit = xyes; then
9384 cat >> confdefs.h <<\EOF
9385 #define PREFER_24BIT 1
9389 if test x$support_mousewheel = xyes; then
9390 cat >> confdefs.h <<\EOF
9391 #define MOUSE_WHEEL 1
9395 if test x$support_mouseslipwheel = xyes; then
9396 cat >> confdefs.h <<\EOF
9397 #define MOUSE_SLIP_WHEELING 1
9401 if test x$support_oldselection = xno; then
9402 cat >> confdefs.h <<\EOF
9403 #define NO_OLD_SELECTION 1
9407 if test x$support_utmp = xyes; then
9408 cat >> confdefs.h <<\EOF
9409 #define UTMP_SUPPORT 1
9413 if test x$support_wtmp = xyes; then
9414 cat >> confdefs.h <<\EOF
9415 #define WTMP_SUPPORT 1
9419 if test x$support_lastlog = xyes; then
9420 cat >> confdefs.h <<\EOF
9421 #define LASTLOG_SUPPORT 1
9425 if test x$support_xim = xyes -o x$multichar_set = xyes; then
9426 if test x$rxvt_cv_func_xlocale = xyes; then
9427 cat >> confdefs.h <<\EOF
9433 if test x$support_xpm = xyes; then
9434 cat >> confdefs.h <<\EOF
9435 #define XPM_BACKGROUND 1
9439 if test x$support_scroll_rxvt = xyes; then
9440 cat >> confdefs.h <<\EOF
9441 #define RXVT_SCROLLBAR 1
9446 if test x$support_scroll_next = xyes; then
9447 cat >> confdefs.h <<\EOF
9448 #define NEXT_SCROLLBAR 1
9451 scrolltypes="$scrolltypes next"
9453 if test x$support_scroll_xterm = xyes; then
9454 cat >> confdefs.h <<\EOF
9455 #define XTERM_SCROLLBAR 1
9458 scrolltypes="$scrolltypes xterm"
9460 if test x$support_pointer_blank = xyes; then
9461 cat >> confdefs.h <<\EOF
9462 #define POINTER_BLANK 1
9466 if test x$support_cursor_blink = xyes; then
9467 cat >> confdefs.h <<\EOF
9468 #define CURSOR_BLINK 1
9472 if test x$support_unicode3 = xyes; then
9473 cat >> confdefs.h <<\EOF
9478 if test x$codesets = xall; then
9479 codesets=jp,jp-ext,kr,cn,cn-ext,vn
9481 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
9482 cat >> confdefs.h <<\EOF
9483 #define ENCODING_EU 1
9487 VN ) cat >> confdefs.h <<\EOF
9488 #define ENCODING_VN 1
9491 JP ) cat >> confdefs.h <<\EOF
9492 #define ENCODING_JP 1
9495 JP_EXT ) cat >> confdefs.h <<\EOF
9496 #define ENCODING_JP_EXT 1
9499 KR ) cat >> confdefs.h <<\EOF
9500 #define ENCODING_KR 1
9503 CN ) cat >> confdefs.h <<\EOF
9504 #define ENCODING_CN 1
9507 CN_EXT ) cat >> confdefs.h <<\EOF
9508 #define ENCODING_CN_EXT 1
9516 LDFLAGS=${LDFLAGS--O}
9518 CPPFLAGS="$CPPFLAGS"
9526 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9527 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
9528 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9529 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
9530 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
9531 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
9538 if test x$support_addstrings = xno; then
9539 cat >> confdefs.h <<\EOF
9540 #define NO_STRINGS 1
9545 MCOMMON=./autoconf/Make.common
9548 if test "$program_transform_name" = s,x,x,; then
9549 program_transform_name=
9551 # Double any \ or $. echo might interpret backslashes.
9552 cat <<\EOF_SED > conftestsed
9553 s,\\,\\\\,g; s,\$,$$,g
9555 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
9558 test "$program_prefix" != NONE &&
9559 program_transform_name="s,^,${program_prefix},; $program_transform_name"
9560 # Use a double $ so make ignores it.
9561 test "$program_suffix" != NONE &&
9562 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
9564 # sed with no file args requires a program.
9565 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
9568 RXVTNAME=`echo rxvt|sed "$program_transform_name"`
9574 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9575 include_stdint_h="#include <stdint.h>"
9577 include_stdint_h="/* #include <stdint.h> */"
9579 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9580 include_stdarg_h="#include <stdarg.h>"
9582 include_stdarg_h="/* #include <stdarg.h> */"
9584 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9585 include_stdlib_h="#include <stdlib.h>"
9587 include_stdlib_h="/* #include <stdlib.h> */"
9589 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9590 include_unistd_h="#include <unistd.h>"
9592 include_unistd_h="/* #include <unistd.h> */"
9594 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9595 include_string_h="#include <string.h>"
9597 include_string_h="/* #include <string.h> */"
9599 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9600 include_fcntl_h="#include <fcntl.h>"
9602 include_fcntl_h="/* #include <fcntl.h> */"
9604 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9605 include_util_h="#include <util.h>"
9607 include_util_h="/* #include <util.h> */"
9609 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9610 include_assert_h="#include <assert.h>"
9612 include_assert_h="/* #include <assert.h> */"
9614 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9615 include_sys_ioctl_h="#include <sys/ioctl.h>"
9617 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9619 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9620 include_sys_select_h="#include <sys/select.h>"
9622 include_sys_select_h="/* #include <sys/select.h> */"
9624 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9625 include_sys_strredir_h="#include <sys/strredir.h>"
9627 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9629 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9630 include_sys_time_h="#include <sys/time.h>"
9632 include_sys_time_h="/* #include <sys/time.h> */"
9634 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9635 include_time_h="#include <time.h>"
9637 include_time_h="/* #include <time.h> */"
9640 if test x$support_xft = xyes; then
9641 LIBS="$LIBS `pkg-config xft --libs`"
9642 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9643 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9645 for ac_hdr in X11/Xft/Xft.h
9647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9649 echo "configure:9650: checking for $ac_hdr" >&5
9650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9659 { (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9661 if test -z "$ac_err"; then
9663 eval "ac_cv_header_$ac_safe=yes"
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9669 eval "ac_cv_header_$ac_safe=no"
9673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9674 echo "$ac_t""yes" 1>&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9676 cat >> confdefs.h <<EOF
9677 #define $ac_tr_hdr 1
9681 echo "$ac_t""no" 1>&6
9686 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6
9687 echo "configure:9688: checking for XftDrawString32 in -lXft" >&5
9688 ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'`
9689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9692 ac_save_LIBS="$LIBS"
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
9700 char XftDrawString32();
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9708 eval "ac_cv_lib_$ac_lib_var=yes"
9710 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9713 eval "ac_cv_lib_$ac_lib_var=no"
9716 LIBS="$ac_save_LIBS"
9719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9720 echo "$ac_t""yes" 1>&6
9721 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9723 cat >> confdefs.h <<EOF
9724 #define $ac_tr_lib 1
9730 echo "$ac_t""no" 1>&6
9735 if test x$support_xft = xyes; then
9736 cat >> confdefs.h <<\EOF
9744 cat > confcache <<\EOF
9745 # This file is a shell script that caches the results of configure
9746 # tests run on this system so they can be shared between configure
9747 # scripts and configure runs. It is not useful on other systems.
9748 # If it contains results you don't want to keep, you may remove or edit it.
9750 # By default, configure uses ./config.cache as the cache file,
9751 # creating it if it does not exist already. You can give configure
9752 # the --cache-file=FILE option to use a different cache file; that is
9753 # what configure does when it calls configure scripts in
9754 # subdirectories, so they share the cache.
9755 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9756 # config.status only pays attention to the cache file if you give it the
9757 # --recheck option to rerun configure.
9760 # The following way of writing the cache mishandles newlines in values,
9761 # but we know of no workaround that is simple, portable, and efficient.
9762 # So, don't put newlines in cache variables' values.
9763 # Ultrix sh set writes to stderr and can't be redirected directly,
9764 # and sets the high bit in the cache file unless we assign to the vars.
9766 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9768 # `set' does not quote correctly, so add quotes (double-quote substitution
9769 # turns \\\\ into \\, and sed turns \\ into \).
9771 -e "s/'/'\\\\''/g" \
9772 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9775 # `set' quotes correctly as required by POSIX, so do not add quotes.
9776 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9779 if cmp -s $cache_file confcache; then
9782 if test -w $cache_file; then
9783 echo "updating cache $cache_file"
9784 cat confcache > $cache_file
9786 echo "not updating unwritable cache $cache_file"
9791 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9794 # Let make expand exec_prefix.
9795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9797 # Any assignment to VPATH causes Sun make to only execute
9798 # the first set of double-colon rules, so remove it if not needed.
9799 # If there is a colon in the path, we need to keep it.
9800 if test "x$srcdir" = x.; then
9801 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9804 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9806 DEFS=-DHAVE_CONFIG_H
9808 # Without the "./", some shells look in PATH for config.status.
9809 : ${CONFIG_STATUS=./config.status}
9811 echo creating $CONFIG_STATUS
9812 rm -f $CONFIG_STATUS
9813 cat > $CONFIG_STATUS <<EOF
9815 # Generated automatically by configure.
9816 # Run this file to recreate the current configuration.
9817 # This directory was configured as follows,
9818 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9820 # $0 $ac_configure_args
9822 # Compiler output produced by configure, useful for debugging
9823 # configure, is in ./config.log if it exists.
9825 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9828 case "\$ac_option" in
9829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9830 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9831 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9832 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9833 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9835 -help | --help | --hel | --he | --h)
9836 echo "\$ac_cs_usage"; exit 0 ;;
9837 *) echo "\$ac_cs_usage"; exit 1 ;;
9841 ac_given_srcdir=$srcdir
9842 ac_given_INSTALL="$INSTALL"
9844 trap 'rm -fr `echo "autoconf/Make.common \
9848 src/graphics/Makefile \
9852 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9854 cat >> $CONFIG_STATUS <<EOF
9856 # Protect against being on the right side of a sed subst in config.status.
9857 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9858 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9862 s%@CFLAGS@%$CFLAGS%g
9863 s%@CPPFLAGS@%$CPPFLAGS%g
9864 s%@CXXFLAGS@%$CXXFLAGS%g
9865 s%@FFLAGS@%$FFLAGS%g
9867 s%@LDFLAGS@%$LDFLAGS%g
9869 s%@exec_prefix@%$exec_prefix%g
9870 s%@prefix@%$prefix%g
9871 s%@program_transform_name@%$program_transform_name%g
9872 s%@bindir@%$bindir%g
9873 s%@sbindir@%$sbindir%g
9874 s%@libexecdir@%$libexecdir%g
9875 s%@datadir@%$datadir%g
9876 s%@sysconfdir@%$sysconfdir%g
9877 s%@sharedstatedir@%$sharedstatedir%g
9878 s%@localstatedir@%$localstatedir%g
9879 s%@libdir@%$libdir%g
9880 s%@includedir@%$includedir%g
9881 s%@oldincludedir@%$oldincludedir%g
9882 s%@infodir@%$infodir%g
9883 s%@mandir@%$mandir%g
9884 s%@VERSION@%$VERSION%g
9886 s%@LSMDATE@%$LSMDATE%g
9887 s%@LIBVERSION@%$LIBVERSION%g
9891 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9892 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9893 s%@INSTALL_DATA@%$INSTALL_DATA%g
9896 s%@host_alias@%$host_alias%g
9897 s%@host_cpu@%$host_cpu%g
9898 s%@host_vendor@%$host_vendor%g
9899 s%@host_os@%$host_os%g
9901 s%@build_alias@%$build_alias%g
9902 s%@build_cpu@%$build_cpu%g
9903 s%@build_vendor@%$build_vendor%g
9904 s%@build_os@%$build_os%g
9906 s%@OBJEXT@%$OBJEXT%g
9907 s%@EXEEXT@%$EXEEXT%g
9909 s%@RANLIB@%$RANLIB%g
9911 s%@LIBTOOL@%$LIBTOOL%g
9912 s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9920 s%@X_CFLAGS@%$X_CFLAGS%g
9921 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9922 s%@X_LIBS@%$X_LIBS%g
9923 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9924 s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9925 s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9926 s%@XPM_LIBS@%$XPM_LIBS%g
9927 s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9928 s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9929 s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9930 s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9931 s%@rxvt_intp_define@%$rxvt_intp_define%g
9932 s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9934 s%@DINCLUDE@%$DINCLUDE%g
9936 /@MCOMMON@/r $MCOMMON
9938 s%@RXVTNAME@%$RXVTNAME%g
9939 s%@include_stdint_h@%$include_stdint_h%g
9940 s%@include_stdarg_h@%$include_stdarg_h%g
9941 s%@include_stdlib_h@%$include_stdlib_h%g
9942 s%@include_unistd_h@%$include_unistd_h%g
9943 s%@include_string_h@%$include_string_h%g
9944 s%@include_fcntl_h@%$include_fcntl_h%g
9945 s%@include_util_h@%$include_util_h%g
9946 s%@include_assert_h@%$include_assert_h%g
9947 s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9948 s%@include_sys_select_h@%$include_sys_select_h%g
9949 s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9950 s%@include_sys_time_h@%$include_sys_time_h%g
9951 s%@include_time_h@%$include_time_h%g
9956 cat >> $CONFIG_STATUS <<\EOF
9958 # Split the substitutions into bite-sized pieces for seds with
9959 # small command number limits, like on Digital OSF/1 and HP-UX.
9960 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9961 ac_file=1 # Number of current file.
9962 ac_beg=1 # First line for current file.
9963 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9966 while $ac_more_lines; do
9967 if test $ac_beg -gt 1; then
9968 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9970 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9972 if test ! -s conftest.s$ac_file; then
9974 rm -f conftest.s$ac_file
9976 if test -z "$ac_sed_cmds"; then
9977 ac_sed_cmds="sed -f conftest.s$ac_file"
9979 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9981 ac_file=`expr $ac_file + 1`
9983 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9986 if test -z "$ac_sed_cmds"; then
9991 cat >> $CONFIG_STATUS <<EOF
9993 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9997 src/graphics/Makefile \
10003 cat >> $CONFIG_STATUS <<\EOF
10004 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10009 *) ac_file_in="${ac_file}.in" ;;
10012 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10014 # Remove last slash and all that follows it. Not all systems have dirname.
10015 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10016 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10017 # The file is in a subdirectory.
10018 test ! -d "$ac_dir" && mkdir "$ac_dir"
10019 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10020 # A "../" for each directory in $ac_dir_suffix.
10021 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10023 ac_dir_suffix= ac_dots=
10026 case "$ac_given_srcdir" in
10028 if test -z "$ac_dots"; then top_srcdir=.
10029 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10030 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10031 *) # Relative path.
10032 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10033 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10036 case "$ac_given_INSTALL" in
10037 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10038 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10041 echo creating "$ac_file"
10043 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10045 *Makefile*) ac_comsub="1i\\
10046 # $configure_input" ;;
10050 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10052 s%@configure_input@%$configure_input%g
10053 s%@srcdir@%$srcdir%g
10054 s%@top_srcdir@%$top_srcdir%g
10055 s%@INSTALL@%$INSTALL%g
10056 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10060 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10061 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10063 # ac_d sets the value in "#define NAME VALUE" lines.
10064 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10065 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10068 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10069 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10070 ac_uB='\([ ]\)%\1#\2define\3'
10073 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10074 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10075 ac_eB='$%\1#\2define\3'
10079 if test "${CONFIG_HEADERS+set}" != set; then
10081 cat >> $CONFIG_STATUS <<EOF
10082 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10084 cat >> $CONFIG_STATUS <<\EOF
10086 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10089 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10090 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10091 *) ac_file_in="${ac_file}.in" ;;
10094 echo creating $ac_file
10096 rm -f conftest.frag conftest.in conftest.out
10097 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10098 cat $ac_file_inputs > conftest.in
10102 # Transform confdefs.h into a sed script conftest.vals that substitutes
10103 # the proper values into config.h.in to produce config.h. And first:
10104 # Protect against being on the right side of a sed subst in config.status.
10105 # Protect against being in an unquoted here document in config.status.
10106 rm -f conftest.vals
10107 cat > conftest.hdr <<\EOF
10110 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10114 sed -n -f conftest.hdr confdefs.h > conftest.vals
10117 # This sed command replaces #undef with comments. This is necessary, for
10118 # example, in the case of _POSIX_SOURCE, which is predefined and required
10119 # on some systems where configure will not decide to define it.
10120 cat >> conftest.vals <<\EOF
10121 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10124 # Break up conftest.vals because some shells have a limit on
10125 # the size of here documents, and old seds have small limits too.
10127 rm -f conftest.tail
10130 ac_lines=`grep -c . conftest.vals`
10131 # grep -c gives empty output for an empty file on some AIX systems.
10132 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10133 # Write a limited-size here document to conftest.frag.
10134 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10135 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10137 sed -f conftest.frag conftest.in > conftest.out
10139 mv conftest.out conftest.in
10140 ' >> $CONFIG_STATUS
10141 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10142 rm -f conftest.vals
10143 mv conftest.tail conftest.vals
10145 rm -f conftest.vals
10147 cat >> $CONFIG_STATUS <<\EOF
10148 rm -f conftest.frag conftest.h
10149 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10150 cat conftest.in >> conftest.h
10152 if cmp -s $ac_file conftest.h 2>/dev/null; then
10153 echo "$ac_file is unchanged"
10156 # Remove last slash and all that follows it. Not all systems have dirname.
10157 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10158 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10159 # The file is in a subdirectory.
10160 test ! -d "$ac_dir" && mkdir "$ac_dir"
10163 mv conftest.h $ac_file
10168 cat >> $CONFIG_STATUS <<EOF
10171 cat >> $CONFIG_STATUS <<\EOF
10175 chmod +x $CONFIG_STATUS
10176 rm -fr confdefs* $ac_clean_files
10177 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10180 echo "Configuration:
10182 Rxvt version: $VERSION : $DATE
10183 Source code location: $srcdir
10184 Install path: ${prefix}/bin
10186 Compiler flags: $CFLAGS"
10188 if test "$MALLOC_TYPE" = S; then
10189 echo " malloc support: system default"
10191 if test "$MALLOC_TYPE" = G; then
10192 echo " malloc support: Gray Watson's dmalloc"
10194 if test "$MALLOC_TYPE" = D; then
10195 echo " malloc support: Doug Lea's malloc"
10198 if test x$support_xpm = xyes; then
10199 echo " Xpm library: $XPM_LIBS"
10203 The following are set in config.h
10205 echo " pty/tty type: "$rxvt_cv_ptys
10206 if test x$support_utmp != xyes; then
10207 echo " utmp support: disabled
10210 echo " utmp support: enabled
10211 utmp file: $rxvt_cv_path_utmp
10212 utmpx file: $rxvt_cv_path_utmpx
10213 wtmp file: $rxvt_cv_path_wtmp
10214 wtmpx file: $rxvt_cv_path_wtmpx
10215 lastlog file: $rxvt_cv_path_lastlog
10216 ttys/ttytab file: $rxvt_cv_path_ttytab
10219 if test x$term != x; then
10220 echo " set TERM to: $term
10223 if test x$terminfo != x; then
10224 echo " set TERMINFO to: $terminfo
10227 if test x$rxvt_cv_ptys = xUNKNOWN; then
10228 echo ".----------------------------------------------------------------."
10229 echo ". WARNING: could not determine pty/tty type. Do not build until ."
10230 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
10231 echo ".----------------------------------------------------------------."
10233 if test x$support_xpm = xneedsmanualspecification; then
10234 echo ".----------------------------------------------------------------."
10235 echo ". WARNING: --enable-xpm-background was specified however the ."
10236 echo ". XPM includes files and libraries could not be found. ."
10237 echo ". XPM backgrounds are now being DISABLED! If you want ."
10238 echo ". to use them you should rerun configure with the ."
10239 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
10240 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
10241 echo ".----------------------------------------------------------------."
10243 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
10244 echo ".----------------------------------------------------------------."
10245 echo ". WARNING: --enable-xim was specified however the locale support ."
10246 echo ". functions could not be found. ."
10247 echo ". XIM is now being DISABLED! ."
10248 echo ".----------------------------------------------------------------."
10250 echo " *** Please check src/feature.h for further options ***