… | |
… | |
679 | GREP |
679 | GREP |
680 | EGREP |
680 | EGREP |
681 | LINKER |
681 | LINKER |
682 | INSTALL_LIBRXVT |
682 | INSTALL_LIBRXVT |
683 | RXVTNAME |
683 | RXVTNAME |
|
|
684 | CXXCPP |
684 | TIC |
685 | TIC |
685 | XMKMF |
686 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
687 | X_CFLAGS |
688 | X_PRE_LIBS |
688 | X_PRE_LIBS |
689 | X_LIBS |
689 | X_LIBS |
690 | X_EXTRA_LIBS |
690 | X_EXTRA_LIBS |
691 | afterimage_config |
691 | afterimage_config |
692 | XPM_CPPFLAGS |
|
|
693 | XPM_CFLAGS |
|
|
694 | XPM_LIBS |
|
|
695 | rxvt_int16_typedef |
692 | rxvt_int16_typedef |
696 | rxvt_uint16_typedef |
693 | rxvt_uint16_typedef |
697 | rxvt_int32_typedef |
694 | rxvt_int32_typedef |
698 | rxvt_uint32_typedef |
695 | rxvt_uint32_typedef |
699 | rxvt_intp_define |
696 | rxvt_intp_define |
… | |
… | |
734 | CPPFLAGS |
731 | CPPFLAGS |
735 | CXX |
732 | CXX |
736 | CXXFLAGS |
733 | CXXFLAGS |
737 | CCC |
734 | CCC |
738 | CPP |
735 | CPP |
739 | XMKMF |
|
|
740 | CXXCPP' |
736 | CXXCPP |
|
|
737 | XMKMF' |
741 | |
738 | |
742 | |
739 | |
743 | # Initialize some variables set by options. |
740 | # Initialize some variables set by options. |
744 | ac_init_help= |
741 | ac_init_help= |
745 | ac_init_version=false |
742 | ac_init_version=false |
… | |
… | |
1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1322 | --enable-everything enable standard non-multichoice features |
1319 | --enable-everything enable standard non-multichoice features |
1323 | NOTE: this option is order dependent |
1320 | NOTE: this option is order dependent |
1324 | NOTE: automatically enabled with --enable-shared |
1321 | NOTE: automatically enabled with --enable-shared |
|
|
1322 | --enable-warnings turn on g++ warnings |
1325 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1323 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1326 | --enable-combining enable composition of base and combining characters |
1324 | --enable-combining enable composition of base and combining characters |
1327 | --enable-xft enable xft support on systems that have it |
1325 | --enable-xft enable xft support on systems that have it |
1328 | --enable-font-styles enable bold and italic support |
1326 | --enable-font-styles enable bold and italic support |
1329 | --enable-xpm-background enable background pixmaps |
|
|
1330 | --enable-afterimage enable integration with libAfterImage for background images |
1327 | --enable-afterimage enable integration with libAfterImage for background images |
1331 | --enable-transparency enable transparent backgrounds |
1328 | --enable-transparency enable transparent backgrounds |
1332 | --enable-tinting enable tinting of transparent bg |
|
|
1333 | --enable-fading enable colors fading when off focus |
1329 | --enable-fading enable colors fading when off focus |
1334 | --enable-rxvt-scroll enable rxvt style scrollbar |
1330 | --enable-rxvt-scroll enable rxvt style scrollbar |
1335 | --enable-next-scroll enable NeXT style scrollbar |
1331 | --enable-next-scroll enable NeXT style scrollbar |
1336 | --enable-xterm-scroll enable Xterm style scrollbar |
1332 | --enable-xterm-scroll enable Xterm style scrollbar |
1337 | --enable-perl enable embedded perl interpreter |
1333 | --enable-perl enable embedded perl interpreter |
… | |
… | |
1339 | --enable-xim XIM (X Input Method) protocol support |
1335 | --enable-xim XIM (X Input Method) protocol support |
1340 | --disable-backspace-key disable handling of the backspace key |
1336 | --disable-backspace-key disable handling of the backspace key |
1341 | --disable-delete-key disable handling of the delete key |
1337 | --disable-delete-key disable handling of the delete key |
1342 | --disable-resources disable all resource checking |
1338 | --disable-resources disable all resource checking |
1343 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1339 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1344 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1340 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1345 | --disable-swapscreen disable swap screen support |
1341 | --disable-swapscreen disable swap screen support |
1346 | --enable-iso14755 enable support for extended ISO 14755 modes |
1342 | --enable-iso14755 enable support for extended ISO 14755 modes |
1347 | --enable-frills enable support for rarely used features |
1343 | --enable-frills enable support for rarely used features |
1348 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1344 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1349 | --enable-selectionscrolling enable scrolling during selections |
1345 | --enable-selectionscrolling enable scrolling during selections |
1350 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1346 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1351 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1347 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1352 | --enable-smart-resize enable smart growth/shrink behaviour |
1348 | --enable-smart-resize enable smart growth/shrink behaviour |
1353 | --enable-text-blink enable blinking text |
1349 | --enable-text-blink enable blinking text |
1354 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1350 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1355 | --enable-utmp enable utmp (utmpx) support |
1351 | --enable-utmp enable utmp (utmpx) support |
1356 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1352 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1358 | |
1354 | |
1359 | Optional Packages: |
1355 | Optional Packages: |
1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1362 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1358 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1363 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1359 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1364 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1360 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1365 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1361 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1366 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1362 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1367 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1363 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1368 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1364 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1369 | --with-x use the X Window System |
1365 | --with-x use the X Window System |
1370 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1371 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1372 | --with-xpm use XPM |
|
|
1373 | |
1366 | |
1374 | Some influential environment variables: |
1367 | Some influential environment variables: |
1375 | CC C compiler command |
1368 | CC C compiler command |
1376 | CFLAGS C compiler flags |
1369 | CFLAGS C compiler flags |
1377 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1370 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1380 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1381 | you have headers in a nonstandard directory <include dir> |
1374 | you have headers in a nonstandard directory <include dir> |
1382 | CXX C++ compiler command |
1375 | CXX C++ compiler command |
1383 | CXXFLAGS C++ compiler flags |
1376 | CXXFLAGS C++ compiler flags |
1384 | CPP C preprocessor |
1377 | CPP C preprocessor |
|
|
1378 | CXXCPP C++ preprocessor |
1385 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1379 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1386 | CXXCPP C++ preprocessor |
|
|
1387 | |
1380 | |
1388 | Use these variables to override the choices made by `configure' or to help |
1381 | Use these variables to override the choices made by `configure' or to help |
1389 | it to find libraries and programs with nonstandard names/locations. |
1382 | it to find libraries and programs with nonstandard names/locations. |
1390 | |
1383 | |
1391 | _ACEOF |
1384 | _ACEOF |
… | |
… | |
1927 | |
1920 | |
1928 | |
1921 | |
1929 | |
1922 | |
1930 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1923 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1931 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1924 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1925 | |
1932 | echo "" |
1926 | echo "" |
1933 | echo "configuring for rxvt $VERSION" |
1927 | echo "configuring for rxvt $VERSION" |
1934 | echo "" |
1928 | echo "" |
1935 | |
1929 | |
1936 | orig_CXXFLAGS="$CXXFLAGS" |
1930 | orig_CXXFLAGS="$CXXFLAGS" |
… | |
… | |
3877 | LINKER=$LINKER |
3871 | LINKER=$LINKER |
3878 | |
3872 | |
3879 | |
3873 | |
3880 | if test -z "$orig_CXXFLAGS"; then |
3874 | if test -z "$orig_CXXFLAGS"; then |
3881 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3875 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3882 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3876 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3883 | cat >conftest.$ac_ext <<_ACEOF |
3877 | cat >conftest.$ac_ext <<_ACEOF |
3884 | /* confdefs.h. */ |
3878 | /* confdefs.h. */ |
3885 | _ACEOF |
3879 | _ACEOF |
3886 | cat confdefs.h >>conftest.$ac_ext |
3880 | cat confdefs.h >>conftest.$ac_ext |
3887 | cat >>conftest.$ac_ext <<_ACEOF |
3881 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
4400 | |
4394 | |
4401 | |
4395 | |
4402 | |
4396 | |
4403 | support_frills=yes |
4397 | support_frills=yes |
4404 | support_inheritpixmap=yes |
4398 | support_inheritpixmap=yes |
4405 | support_tinting=yes |
|
|
4406 | support_fading=yes |
4399 | support_fading=yes |
4407 | support_keepscrolling=yes |
4400 | support_keepscrolling=yes |
4408 | support_selectionscrolling=yes |
4401 | support_selectionscrolling=yes |
4409 | support_mousewheel=yes |
4402 | support_mousewheel=yes |
4410 | support_mouseslipwheel=yes |
4403 | support_mouseslipwheel=yes |
… | |
… | |
4413 | support_scroll_rxvt=yes |
4406 | support_scroll_rxvt=yes |
4414 | support_scroll_next=yes |
4407 | support_scroll_next=yes |
4415 | support_scroll_xterm=yes |
4408 | support_scroll_xterm=yes |
4416 | support_scroll_plain=yes |
4409 | support_scroll_plain=yes |
4417 | support_xim=yes |
4410 | support_xim=yes |
4418 | support_xpm=yes |
|
|
4419 | support_afterimage=yes |
4411 | support_afterimage=yes |
4420 | support_afterstep=yes |
4412 | support_afterstep=yes |
4421 | support_xft=yes |
4413 | support_xft=yes |
4422 | support_unicode3=no |
4414 | support_unicode3=no |
4423 | support_combining=yes |
4415 | support_combining=yes |
… | |
… | |
4442 | if test "${enable_everything+set}" = set; then |
4434 | if test "${enable_everything+set}" = set; then |
4443 | enableval=$enable_everything; |
4435 | enableval=$enable_everything; |
4444 | if test x$enableval = xno; then |
4436 | if test x$enableval = xno; then |
4445 | support_frills=no |
4437 | support_frills=no |
4446 | support_inheritpixmap=no |
4438 | support_inheritpixmap=no |
4447 | support_tinting=no |
|
|
4448 | support_fading=no |
4439 | support_fading=no |
4449 | support_keepscrolling=no |
4440 | support_keepscrolling=no |
4450 | support_selectionscrolling=no |
4441 | support_selectionscrolling=no |
4451 | support_lastlog=no |
4442 | support_lastlog=no |
4452 | support_mousewheel=no |
4443 | support_mousewheel=no |
… | |
… | |
4458 | support_scroll_xterm=no |
4449 | support_scroll_xterm=no |
4459 | support_scroll_plain=no |
4450 | support_scroll_plain=no |
4460 | support_utmp=no |
4451 | support_utmp=no |
4461 | support_wtmp=no |
4452 | support_wtmp=no |
4462 | support_xim=no |
4453 | support_xim=no |
4463 | support_xpm=no |
|
|
4464 | support_afterimage=no |
4454 | support_afterimage=no |
4465 | support_afterstep=no |
4455 | support_afterstep=no |
4466 | support_xft=no |
4456 | support_xft=no |
4467 | support_unicode3=no |
4457 | support_unicode3=no |
4468 | support_combining=no |
4458 | support_combining=no |
… | |
… | |
4473 | codesets= |
4463 | codesets= |
4474 | fi |
4464 | fi |
4475 | if test x$enableval = xyes; then |
4465 | if test x$enableval = xyes; then |
4476 | support_frills=yes |
4466 | support_frills=yes |
4477 | support_inheritpixmap=yes |
4467 | support_inheritpixmap=yes |
4478 | support_tinting=yes |
|
|
4479 | support_fading=yes |
4468 | support_fading=yes |
4480 | support_keepscrolling=yes |
4469 | support_keepscrolling=yes |
4481 | support_selectionscrolling=yes |
4470 | support_selectionscrolling=yes |
4482 | support_lastlog=yes |
4471 | support_lastlog=yes |
4483 | support_mousewheel=yes |
4472 | support_mousewheel=yes |
… | |
… | |
4489 | support_scroll_xterm=yes |
4478 | support_scroll_xterm=yes |
4490 | support_scroll_plain=yes |
4479 | support_scroll_plain=yes |
4491 | support_utmp=yes |
4480 | support_utmp=yes |
4492 | support_wtmp=yes |
4481 | support_wtmp=yes |
4493 | support_xim=yes |
4482 | support_xim=yes |
4494 | support_xpm=yes |
|
|
4495 | support_afterimage=yes |
4483 | support_afterimage=yes |
4496 | support_afterstep=yes |
4484 | support_afterstep=yes |
4497 | support_xft=yes |
4485 | support_xft=yes |
4498 | support_unicode3=yes |
4486 | support_unicode3=yes |
4499 | support_combining=yes |
4487 | support_combining=yes |
… | |
… | |
4505 | fi |
4493 | fi |
4506 | |
4494 | |
4507 | fi |
4495 | fi |
4508 | |
4496 | |
4509 | |
4497 | |
|
|
4498 | WARNINGS=no |
|
|
4499 | # Check whether --enable-warnings was given. |
|
|
4500 | if test "${enable_warnings+set}" = set; then |
|
|
4501 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4502 | WARNINGS=yes |
|
|
4503 | fi |
|
|
4504 | fi |
|
|
4505 | |
|
|
4506 | if test x$GXX = xyes; then |
|
|
4507 | if test $WARNINGS = yes; then |
|
|
4508 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4509 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4510 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4511 | /* confdefs.h. */ |
|
|
4512 | _ACEOF |
|
|
4513 | cat confdefs.h >>conftest.$ac_ext |
|
|
4514 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4515 | /* end confdefs.h. */ |
|
|
4516 | |
|
|
4517 | int |
|
|
4518 | main () |
|
|
4519 | { |
|
|
4520 | |
|
|
4521 | ; |
|
|
4522 | return 0; |
|
|
4523 | } |
|
|
4524 | _ACEOF |
|
|
4525 | rm -f conftest.$ac_objext |
|
|
4526 | if { (ac_try="$ac_compile" |
|
|
4527 | case "(($ac_try" in |
|
|
4528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4529 | *) ac_try_echo=$ac_try;; |
|
|
4530 | esac |
|
|
4531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4532 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4533 | ac_status=$? |
|
|
4534 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4535 | rm -f conftest.er1 |
|
|
4536 | cat conftest.err >&5 |
|
|
4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4538 | (exit $ac_status); } && { |
|
|
4539 | test -z "$ac_cxx_werror_flag" || |
|
|
4540 | test ! -s conftest.err |
|
|
4541 | } && test -s conftest.$ac_objext; then |
|
|
4542 | : |
|
|
4543 | else |
|
|
4544 | echo "$as_me: failed program was:" >&5 |
|
|
4545 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4546 | |
|
|
4547 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4548 | fi |
|
|
4549 | |
|
|
4550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4551 | else |
|
|
4552 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4553 | fi |
|
|
4554 | fi |
|
|
4555 | |
4510 | # Check whether --enable-unicode3 was given. |
4556 | # Check whether --enable-unicode3 was given. |
4511 | if test "${enable_unicode3+set}" = set; then |
4557 | if test "${enable_unicode3+set}" = set; then |
4512 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4558 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4513 | support_unicode3=$enableval |
4559 | support_unicode3=$enableval |
4514 | fi |
4560 | fi |
… | |
… | |
4537 | support_styles=$enableval |
4583 | support_styles=$enableval |
4538 | fi |
4584 | fi |
4539 | fi |
4585 | fi |
4540 | |
4586 | |
4541 | |
4587 | |
4542 | # Check whether --enable-xpm-background was given. |
|
|
4543 | if test "${enable_xpm_background+set}" = set; then |
|
|
4544 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4545 | support_xpm=$enableval |
|
|
4546 | fi |
|
|
4547 | fi |
|
|
4548 | |
|
|
4549 | |
|
|
4550 | # Check whether --enable-afterimage was given. |
4588 | # Check whether --enable-afterimage was given. |
4551 | if test "${enable_afterimage+set}" = set; then |
4589 | if test "${enable_afterimage+set}" = set; then |
4552 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4590 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_afterimage=$enableval |
4591 | support_afterimage=$enableval |
4554 | fi |
4592 | fi |
… | |
… | |
4567 | |
4605 | |
4568 | # Check whether --enable-transparency was given. |
4606 | # Check whether --enable-transparency was given. |
4569 | if test "${enable_transparency+set}" = set; then |
4607 | if test "${enable_transparency+set}" = set; then |
4570 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4608 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4571 | support_inheritpixmap=$enableval |
4609 | support_inheritpixmap=$enableval |
4572 | fi |
|
|
4573 | fi |
|
|
4574 | |
|
|
4575 | |
|
|
4576 | # Check whether --enable-tinting was given. |
|
|
4577 | if test "${enable_tinting+set}" = set; then |
|
|
4578 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4579 | support_tinting=$enableval |
|
|
4580 | fi |
4610 | fi |
4581 | fi |
4611 | fi |
4582 | |
4612 | |
4583 | |
4613 | |
4584 | # Check whether --enable-fading was given. |
4614 | # Check whether --enable-fading was given. |
… | |
… | |
4859 | #define RXVT_TERMINFO "$withval" |
4889 | #define RXVT_TERMINFO "$withval" |
4860 | _ACEOF |
4890 | _ACEOF |
4861 | terminfo="$withval" |
4891 | terminfo="$withval" |
4862 | fi |
4892 | fi |
4863 | fi |
4893 | fi |
|
|
4894 | |
|
|
4895 | |
|
|
4896 | |
|
|
4897 | |
|
|
4898 | ac_ext=cpp |
|
|
4899 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4900 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4901 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4902 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4903 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4904 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4905 | if test -z "$CXXCPP"; then |
|
|
4906 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4908 | else |
|
|
4909 | # Double quotes because CXXCPP needs to be expanded |
|
|
4910 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4911 | do |
|
|
4912 | ac_preproc_ok=false |
|
|
4913 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4914 | do |
|
|
4915 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4916 | # with a fresh cross-compiler works. |
|
|
4917 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4918 | # <limits.h> exists even on freestanding compilers. |
|
|
4919 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4920 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4921 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4922 | /* confdefs.h. */ |
|
|
4923 | _ACEOF |
|
|
4924 | cat confdefs.h >>conftest.$ac_ext |
|
|
4925 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4926 | /* end confdefs.h. */ |
|
|
4927 | #ifdef __STDC__ |
|
|
4928 | # include <limits.h> |
|
|
4929 | #else |
|
|
4930 | # include <assert.h> |
|
|
4931 | #endif |
|
|
4932 | Syntax error |
|
|
4933 | _ACEOF |
|
|
4934 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4935 | case "(($ac_try" in |
|
|
4936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4937 | *) ac_try_echo=$ac_try;; |
|
|
4938 | esac |
|
|
4939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4940 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4941 | ac_status=$? |
|
|
4942 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4943 | rm -f conftest.er1 |
|
|
4944 | cat conftest.err >&5 |
|
|
4945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4946 | (exit $ac_status); } >/dev/null && { |
|
|
4947 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4948 | test ! -s conftest.err |
|
|
4949 | }; then |
|
|
4950 | : |
|
|
4951 | else |
|
|
4952 | echo "$as_me: failed program was:" >&5 |
|
|
4953 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4954 | |
|
|
4955 | # Broken: fails on valid input. |
|
|
4956 | continue |
|
|
4957 | fi |
|
|
4958 | |
|
|
4959 | rm -f conftest.err conftest.$ac_ext |
|
|
4960 | |
|
|
4961 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4962 | # can be detected and how. |
|
|
4963 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4964 | /* confdefs.h. */ |
|
|
4965 | _ACEOF |
|
|
4966 | cat confdefs.h >>conftest.$ac_ext |
|
|
4967 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4968 | /* end confdefs.h. */ |
|
|
4969 | #include <ac_nonexistent.h> |
|
|
4970 | _ACEOF |
|
|
4971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4972 | case "(($ac_try" in |
|
|
4973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4974 | *) ac_try_echo=$ac_try;; |
|
|
4975 | esac |
|
|
4976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4978 | ac_status=$? |
|
|
4979 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4980 | rm -f conftest.er1 |
|
|
4981 | cat conftest.err >&5 |
|
|
4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4983 | (exit $ac_status); } >/dev/null && { |
|
|
4984 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4985 | test ! -s conftest.err |
|
|
4986 | }; then |
|
|
4987 | # Broken: success on invalid input. |
|
|
4988 | continue |
|
|
4989 | else |
|
|
4990 | echo "$as_me: failed program was:" >&5 |
|
|
4991 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4992 | |
|
|
4993 | # Passes both tests. |
|
|
4994 | ac_preproc_ok=: |
|
|
4995 | break |
|
|
4996 | fi |
|
|
4997 | |
|
|
4998 | rm -f conftest.err conftest.$ac_ext |
|
|
4999 | |
|
|
5000 | done |
|
|
5001 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5002 | rm -f conftest.err conftest.$ac_ext |
|
|
5003 | if $ac_preproc_ok; then |
|
|
5004 | break |
|
|
5005 | fi |
|
|
5006 | |
|
|
5007 | done |
|
|
5008 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5009 | |
|
|
5010 | fi |
|
|
5011 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5012 | else |
|
|
5013 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5014 | fi |
|
|
5015 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5016 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5017 | ac_preproc_ok=false |
|
|
5018 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5019 | do |
|
|
5020 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5021 | # with a fresh cross-compiler works. |
|
|
5022 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5023 | # <limits.h> exists even on freestanding compilers. |
|
|
5024 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5025 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5026 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5027 | /* confdefs.h. */ |
|
|
5028 | _ACEOF |
|
|
5029 | cat confdefs.h >>conftest.$ac_ext |
|
|
5030 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5031 | /* end confdefs.h. */ |
|
|
5032 | #ifdef __STDC__ |
|
|
5033 | # include <limits.h> |
|
|
5034 | #else |
|
|
5035 | # include <assert.h> |
|
|
5036 | #endif |
|
|
5037 | Syntax error |
|
|
5038 | _ACEOF |
|
|
5039 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5040 | case "(($ac_try" in |
|
|
5041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5042 | *) ac_try_echo=$ac_try;; |
|
|
5043 | esac |
|
|
5044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5045 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5046 | ac_status=$? |
|
|
5047 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5048 | rm -f conftest.er1 |
|
|
5049 | cat conftest.err >&5 |
|
|
5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5051 | (exit $ac_status); } >/dev/null && { |
|
|
5052 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5053 | test ! -s conftest.err |
|
|
5054 | }; then |
|
|
5055 | : |
|
|
5056 | else |
|
|
5057 | echo "$as_me: failed program was:" >&5 |
|
|
5058 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5059 | |
|
|
5060 | # Broken: fails on valid input. |
|
|
5061 | continue |
|
|
5062 | fi |
|
|
5063 | |
|
|
5064 | rm -f conftest.err conftest.$ac_ext |
|
|
5065 | |
|
|
5066 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5067 | # can be detected and how. |
|
|
5068 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5069 | /* confdefs.h. */ |
|
|
5070 | _ACEOF |
|
|
5071 | cat confdefs.h >>conftest.$ac_ext |
|
|
5072 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5073 | /* end confdefs.h. */ |
|
|
5074 | #include <ac_nonexistent.h> |
|
|
5075 | _ACEOF |
|
|
5076 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5077 | case "(($ac_try" in |
|
|
5078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5079 | *) ac_try_echo=$ac_try;; |
|
|
5080 | esac |
|
|
5081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5082 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5083 | ac_status=$? |
|
|
5084 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5085 | rm -f conftest.er1 |
|
|
5086 | cat conftest.err >&5 |
|
|
5087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5088 | (exit $ac_status); } >/dev/null && { |
|
|
5089 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5090 | test ! -s conftest.err |
|
|
5091 | }; then |
|
|
5092 | # Broken: success on invalid input. |
|
|
5093 | continue |
|
|
5094 | else |
|
|
5095 | echo "$as_me: failed program was:" >&5 |
|
|
5096 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5097 | |
|
|
5098 | # Passes both tests. |
|
|
5099 | ac_preproc_ok=: |
|
|
5100 | break |
|
|
5101 | fi |
|
|
5102 | |
|
|
5103 | rm -f conftest.err conftest.$ac_ext |
|
|
5104 | |
|
|
5105 | done |
|
|
5106 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5107 | rm -f conftest.err conftest.$ac_ext |
|
|
5108 | if $ac_preproc_ok; then |
|
|
5109 | : |
|
|
5110 | else |
|
|
5111 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5112 | See \`config.log' for more details." >&5 |
|
|
5113 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5114 | See \`config.log' for more details." >&2;} |
|
|
5115 | { (exit 1); exit 1; }; } |
|
|
5116 | fi |
|
|
5117 | |
|
|
5118 | ac_ext=cpp |
|
|
5119 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5123 | |
|
|
5124 | |
|
|
5125 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5126 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5127 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5129 | else |
|
|
5130 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5131 | /* confdefs.h. */ |
|
|
5132 | _ACEOF |
|
|
5133 | cat confdefs.h >>conftest.$ac_ext |
|
|
5134 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5135 | /* end confdefs.h. */ |
|
|
5136 | #include <stdlib.h> |
|
|
5137 | #include <stdarg.h> |
|
|
5138 | #include <string.h> |
|
|
5139 | #include <float.h> |
|
|
5140 | |
|
|
5141 | int |
|
|
5142 | main () |
|
|
5143 | { |
|
|
5144 | |
|
|
5145 | ; |
|
|
5146 | return 0; |
|
|
5147 | } |
|
|
5148 | _ACEOF |
|
|
5149 | rm -f conftest.$ac_objext |
|
|
5150 | if { (ac_try="$ac_compile" |
|
|
5151 | case "(($ac_try" in |
|
|
5152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5153 | *) ac_try_echo=$ac_try;; |
|
|
5154 | esac |
|
|
5155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5156 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5157 | ac_status=$? |
|
|
5158 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5159 | rm -f conftest.er1 |
|
|
5160 | cat conftest.err >&5 |
|
|
5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5162 | (exit $ac_status); } && { |
|
|
5163 | test -z "$ac_cxx_werror_flag" || |
|
|
5164 | test ! -s conftest.err |
|
|
5165 | } && test -s conftest.$ac_objext; then |
|
|
5166 | ac_cv_header_stdc=yes |
|
|
5167 | else |
|
|
5168 | echo "$as_me: failed program was:" >&5 |
|
|
5169 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5170 | |
|
|
5171 | ac_cv_header_stdc=no |
|
|
5172 | fi |
|
|
5173 | |
|
|
5174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5175 | |
|
|
5176 | if test $ac_cv_header_stdc = yes; then |
|
|
5177 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5178 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5179 | /* confdefs.h. */ |
|
|
5180 | _ACEOF |
|
|
5181 | cat confdefs.h >>conftest.$ac_ext |
|
|
5182 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5183 | /* end confdefs.h. */ |
|
|
5184 | #include <string.h> |
|
|
5185 | |
|
|
5186 | _ACEOF |
|
|
5187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5188 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5189 | : |
|
|
5190 | else |
|
|
5191 | ac_cv_header_stdc=no |
|
|
5192 | fi |
|
|
5193 | rm -f conftest* |
|
|
5194 | |
|
|
5195 | fi |
|
|
5196 | |
|
|
5197 | if test $ac_cv_header_stdc = yes; then |
|
|
5198 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5199 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5200 | /* confdefs.h. */ |
|
|
5201 | _ACEOF |
|
|
5202 | cat confdefs.h >>conftest.$ac_ext |
|
|
5203 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5204 | /* end confdefs.h. */ |
|
|
5205 | #include <stdlib.h> |
|
|
5206 | |
|
|
5207 | _ACEOF |
|
|
5208 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5209 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5210 | : |
|
|
5211 | else |
|
|
5212 | ac_cv_header_stdc=no |
|
|
5213 | fi |
|
|
5214 | rm -f conftest* |
|
|
5215 | |
|
|
5216 | fi |
|
|
5217 | |
|
|
5218 | if test $ac_cv_header_stdc = yes; then |
|
|
5219 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5220 | if test "$cross_compiling" = yes; then |
|
|
5221 | : |
|
|
5222 | else |
|
|
5223 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5224 | /* confdefs.h. */ |
|
|
5225 | _ACEOF |
|
|
5226 | cat confdefs.h >>conftest.$ac_ext |
|
|
5227 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5228 | /* end confdefs.h. */ |
|
|
5229 | #include <ctype.h> |
|
|
5230 | #include <stdlib.h> |
|
|
5231 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5232 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5233 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5234 | #else |
|
|
5235 | # define ISLOWER(c) \ |
|
|
5236 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5237 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5238 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5239 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5240 | #endif |
|
|
5241 | |
|
|
5242 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5243 | int |
|
|
5244 | main () |
|
|
5245 | { |
|
|
5246 | int i; |
|
|
5247 | for (i = 0; i < 256; i++) |
|
|
5248 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5249 | || toupper (i) != TOUPPER (i)) |
|
|
5250 | return 2; |
|
|
5251 | return 0; |
|
|
5252 | } |
|
|
5253 | _ACEOF |
|
|
5254 | rm -f conftest$ac_exeext |
|
|
5255 | if { (ac_try="$ac_link" |
|
|
5256 | case "(($ac_try" in |
|
|
5257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5258 | *) ac_try_echo=$ac_try;; |
|
|
5259 | esac |
|
|
5260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5261 | (eval "$ac_link") 2>&5 |
|
|
5262 | ac_status=$? |
|
|
5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5265 | { (case "(($ac_try" in |
|
|
5266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5267 | *) ac_try_echo=$ac_try;; |
|
|
5268 | esac |
|
|
5269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5270 | (eval "$ac_try") 2>&5 |
|
|
5271 | ac_status=$? |
|
|
5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5273 | (exit $ac_status); }; }; then |
|
|
5274 | : |
|
|
5275 | else |
|
|
5276 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5277 | echo "$as_me: failed program was:" >&5 |
|
|
5278 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5279 | |
|
|
5280 | ( exit $ac_status ) |
|
|
5281 | ac_cv_header_stdc=no |
|
|
5282 | fi |
|
|
5283 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5284 | fi |
|
|
5285 | |
|
|
5286 | |
|
|
5287 | fi |
|
|
5288 | fi |
|
|
5289 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5290 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5291 | if test $ac_cv_header_stdc = yes; then |
|
|
5292 | |
|
|
5293 | cat >>confdefs.h <<\_ACEOF |
|
|
5294 | #define STDC_HEADERS 1 |
|
|
5295 | _ACEOF |
|
|
5296 | |
|
|
5297 | fi |
|
|
5298 | |
|
|
5299 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5300 | |
|
|
5301 | |
|
|
5302 | |
|
|
5303 | |
|
|
5304 | |
|
|
5305 | |
|
|
5306 | |
|
|
5307 | |
|
|
5308 | |
|
|
5309 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5310 | inttypes.h stdint.h unistd.h |
|
|
5311 | do |
|
|
5312 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5313 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5314 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5315 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5317 | else |
|
|
5318 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5319 | /* confdefs.h. */ |
|
|
5320 | _ACEOF |
|
|
5321 | cat confdefs.h >>conftest.$ac_ext |
|
|
5322 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5323 | /* end confdefs.h. */ |
|
|
5324 | $ac_includes_default |
|
|
5325 | |
|
|
5326 | #include <$ac_header> |
|
|
5327 | _ACEOF |
|
|
5328 | rm -f conftest.$ac_objext |
|
|
5329 | if { (ac_try="$ac_compile" |
|
|
5330 | case "(($ac_try" in |
|
|
5331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5332 | *) ac_try_echo=$ac_try;; |
|
|
5333 | esac |
|
|
5334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5335 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5336 | ac_status=$? |
|
|
5337 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5338 | rm -f conftest.er1 |
|
|
5339 | cat conftest.err >&5 |
|
|
5340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5341 | (exit $ac_status); } && { |
|
|
5342 | test -z "$ac_cxx_werror_flag" || |
|
|
5343 | test ! -s conftest.err |
|
|
5344 | } && test -s conftest.$ac_objext; then |
|
|
5345 | eval "$as_ac_Header=yes" |
|
|
5346 | else |
|
|
5347 | echo "$as_me: failed program was:" >&5 |
|
|
5348 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5349 | |
|
|
5350 | eval "$as_ac_Header=no" |
|
|
5351 | fi |
|
|
5352 | |
|
|
5353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5354 | fi |
|
|
5355 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5357 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5359 | cat >>confdefs.h <<_ACEOF |
|
|
5360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5361 | _ACEOF |
|
|
5362 | |
|
|
5363 | fi |
|
|
5364 | |
|
|
5365 | done |
|
|
5366 | |
|
|
5367 | |
|
|
5368 | |
|
|
5369 | |
|
|
5370 | |
|
|
5371 | |
|
|
5372 | for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h |
|
|
5373 | do |
|
|
5374 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5375 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5376 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5378 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5380 | fi |
|
|
5381 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5382 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5383 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5384 | else |
|
|
5385 | # Is the header compilable? |
|
|
5386 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5387 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5388 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5389 | /* confdefs.h. */ |
|
|
5390 | _ACEOF |
|
|
5391 | cat confdefs.h >>conftest.$ac_ext |
|
|
5392 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5393 | /* end confdefs.h. */ |
|
|
5394 | $ac_includes_default |
|
|
5395 | #include <$ac_header> |
|
|
5396 | _ACEOF |
|
|
5397 | rm -f conftest.$ac_objext |
|
|
5398 | if { (ac_try="$ac_compile" |
|
|
5399 | case "(($ac_try" in |
|
|
5400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5401 | *) ac_try_echo=$ac_try;; |
|
|
5402 | esac |
|
|
5403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5404 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5405 | ac_status=$? |
|
|
5406 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5407 | rm -f conftest.er1 |
|
|
5408 | cat conftest.err >&5 |
|
|
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5410 | (exit $ac_status); } && { |
|
|
5411 | test -z "$ac_cxx_werror_flag" || |
|
|
5412 | test ! -s conftest.err |
|
|
5413 | } && test -s conftest.$ac_objext; then |
|
|
5414 | ac_header_compiler=yes |
|
|
5415 | else |
|
|
5416 | echo "$as_me: failed program was:" >&5 |
|
|
5417 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5418 | |
|
|
5419 | ac_header_compiler=no |
|
|
5420 | fi |
|
|
5421 | |
|
|
5422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5423 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5424 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5425 | |
|
|
5426 | # Is the header present? |
|
|
5427 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5428 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5429 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5430 | /* confdefs.h. */ |
|
|
5431 | _ACEOF |
|
|
5432 | cat confdefs.h >>conftest.$ac_ext |
|
|
5433 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5434 | /* end confdefs.h. */ |
|
|
5435 | #include <$ac_header> |
|
|
5436 | _ACEOF |
|
|
5437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5438 | case "(($ac_try" in |
|
|
5439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5440 | *) ac_try_echo=$ac_try;; |
|
|
5441 | esac |
|
|
5442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5444 | ac_status=$? |
|
|
5445 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5446 | rm -f conftest.er1 |
|
|
5447 | cat conftest.err >&5 |
|
|
5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5449 | (exit $ac_status); } >/dev/null && { |
|
|
5450 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5451 | test ! -s conftest.err |
|
|
5452 | }; then |
|
|
5453 | ac_header_preproc=yes |
|
|
5454 | else |
|
|
5455 | echo "$as_me: failed program was:" >&5 |
|
|
5456 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5457 | |
|
|
5458 | ac_header_preproc=no |
|
|
5459 | fi |
|
|
5460 | |
|
|
5461 | rm -f conftest.err conftest.$ac_ext |
|
|
5462 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5463 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5464 | |
|
|
5465 | # So? What about this header? |
|
|
5466 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5467 | yes:no: ) |
|
|
5468 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5469 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5471 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5472 | ac_header_preproc=yes |
|
|
5473 | ;; |
|
|
5474 | no:yes:* ) |
|
|
5475 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5476 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5477 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5478 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5479 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5480 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5481 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5482 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5484 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5485 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5486 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5487 | |
|
|
5488 | ;; |
|
|
5489 | esac |
|
|
5490 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5492 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5494 | else |
|
|
5495 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5496 | fi |
|
|
5497 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5498 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5499 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5500 | |
|
|
5501 | fi |
|
|
5502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5503 | cat >>confdefs.h <<_ACEOF |
|
|
5504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5505 | _ACEOF |
|
|
5506 | |
|
|
5507 | fi |
|
|
5508 | |
|
|
5509 | done |
|
|
5510 | |
|
|
5511 | |
|
|
5512 | |
|
|
5513 | |
|
|
5514 | |
|
|
5515 | for ac_func in epoll_ctl kqueue port_create |
|
|
5516 | do |
|
|
5517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5518 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5520 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5522 | else |
|
|
5523 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5524 | /* confdefs.h. */ |
|
|
5525 | _ACEOF |
|
|
5526 | cat confdefs.h >>conftest.$ac_ext |
|
|
5527 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5528 | /* end confdefs.h. */ |
|
|
5529 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5531 | #define $ac_func innocuous_$ac_func |
|
|
5532 | |
|
|
5533 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5534 | which can conflict with char $ac_func (); below. |
|
|
5535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5536 | <limits.h> exists even on freestanding compilers. */ |
|
|
5537 | |
|
|
5538 | #ifdef __STDC__ |
|
|
5539 | # include <limits.h> |
|
|
5540 | #else |
|
|
5541 | # include <assert.h> |
|
|
5542 | #endif |
|
|
5543 | |
|
|
5544 | #undef $ac_func |
|
|
5545 | |
|
|
5546 | /* Override any GCC internal prototype to avoid an error. |
|
|
5547 | Use char because int might match the return type of a GCC |
|
|
5548 | builtin and then its argument prototype would still apply. */ |
|
|
5549 | #ifdef __cplusplus |
|
|
5550 | extern "C" |
|
|
5551 | #endif |
|
|
5552 | char $ac_func (); |
|
|
5553 | /* The GNU C library defines this for functions which it implements |
|
|
5554 | to always fail with ENOSYS. Some functions are actually named |
|
|
5555 | something starting with __ and the normal name is an alias. */ |
|
|
5556 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5557 | choke me |
|
|
5558 | #endif |
|
|
5559 | |
|
|
5560 | int |
|
|
5561 | main () |
|
|
5562 | { |
|
|
5563 | return $ac_func (); |
|
|
5564 | ; |
|
|
5565 | return 0; |
|
|
5566 | } |
|
|
5567 | _ACEOF |
|
|
5568 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5569 | if { (ac_try="$ac_link" |
|
|
5570 | case "(($ac_try" in |
|
|
5571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5572 | *) ac_try_echo=$ac_try;; |
|
|
5573 | esac |
|
|
5574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5575 | (eval "$ac_link") 2>conftest.er1 |
|
|
5576 | ac_status=$? |
|
|
5577 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5578 | rm -f conftest.er1 |
|
|
5579 | cat conftest.err >&5 |
|
|
5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5581 | (exit $ac_status); } && { |
|
|
5582 | test -z "$ac_cxx_werror_flag" || |
|
|
5583 | test ! -s conftest.err |
|
|
5584 | } && test -s conftest$ac_exeext && |
|
|
5585 | $as_test_x conftest$ac_exeext; then |
|
|
5586 | eval "$as_ac_var=yes" |
|
|
5587 | else |
|
|
5588 | echo "$as_me: failed program was:" >&5 |
|
|
5589 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5590 | |
|
|
5591 | eval "$as_ac_var=no" |
|
|
5592 | fi |
|
|
5593 | |
|
|
5594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5595 | conftest$ac_exeext conftest.$ac_ext |
|
|
5596 | fi |
|
|
5597 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5598 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5599 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5600 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5601 | cat >>confdefs.h <<_ACEOF |
|
|
5602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5603 | _ACEOF |
|
|
5604 | |
|
|
5605 | fi |
|
|
5606 | done |
|
|
5607 | |
|
|
5608 | |
|
|
5609 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5610 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5611 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5613 | else |
|
|
5614 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5615 | /* confdefs.h. */ |
|
|
5616 | _ACEOF |
|
|
5617 | cat confdefs.h >>conftest.$ac_ext |
|
|
5618 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5619 | /* end confdefs.h. */ |
|
|
5620 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5621 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5622 | #define clock_gettime innocuous_clock_gettime |
|
|
5623 | |
|
|
5624 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5625 | which can conflict with char clock_gettime (); below. |
|
|
5626 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5627 | <limits.h> exists even on freestanding compilers. */ |
|
|
5628 | |
|
|
5629 | #ifdef __STDC__ |
|
|
5630 | # include <limits.h> |
|
|
5631 | #else |
|
|
5632 | # include <assert.h> |
|
|
5633 | #endif |
|
|
5634 | |
|
|
5635 | #undef clock_gettime |
|
|
5636 | |
|
|
5637 | /* Override any GCC internal prototype to avoid an error. |
|
|
5638 | Use char because int might match the return type of a GCC |
|
|
5639 | builtin and then its argument prototype would still apply. */ |
|
|
5640 | #ifdef __cplusplus |
|
|
5641 | extern "C" |
|
|
5642 | #endif |
|
|
5643 | char clock_gettime (); |
|
|
5644 | /* The GNU C library defines this for functions which it implements |
|
|
5645 | to always fail with ENOSYS. Some functions are actually named |
|
|
5646 | something starting with __ and the normal name is an alias. */ |
|
|
5647 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5648 | choke me |
|
|
5649 | #endif |
|
|
5650 | |
|
|
5651 | int |
|
|
5652 | main () |
|
|
5653 | { |
|
|
5654 | return clock_gettime (); |
|
|
5655 | ; |
|
|
5656 | return 0; |
|
|
5657 | } |
|
|
5658 | _ACEOF |
|
|
5659 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5660 | if { (ac_try="$ac_link" |
|
|
5661 | case "(($ac_try" in |
|
|
5662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5663 | *) ac_try_echo=$ac_try;; |
|
|
5664 | esac |
|
|
5665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5666 | (eval "$ac_link") 2>conftest.er1 |
|
|
5667 | ac_status=$? |
|
|
5668 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5669 | rm -f conftest.er1 |
|
|
5670 | cat conftest.err >&5 |
|
|
5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5672 | (exit $ac_status); } && { |
|
|
5673 | test -z "$ac_cxx_werror_flag" || |
|
|
5674 | test ! -s conftest.err |
|
|
5675 | } && test -s conftest$ac_exeext && |
|
|
5676 | $as_test_x conftest$ac_exeext; then |
|
|
5677 | ac_cv_func_clock_gettime=yes |
|
|
5678 | else |
|
|
5679 | echo "$as_me: failed program was:" >&5 |
|
|
5680 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5681 | |
|
|
5682 | ac_cv_func_clock_gettime=no |
|
|
5683 | fi |
|
|
5684 | |
|
|
5685 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5686 | conftest$ac_exeext conftest.$ac_ext |
|
|
5687 | fi |
|
|
5688 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5689 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5690 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5691 | : |
|
|
5692 | else |
|
|
5693 | |
|
|
5694 | |
|
|
5695 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5696 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5697 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5699 | else |
|
|
5700 | ac_check_lib_save_LIBS=$LIBS |
|
|
5701 | LIBS="-lrt $LIBS" |
|
|
5702 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5703 | /* confdefs.h. */ |
|
|
5704 | _ACEOF |
|
|
5705 | cat confdefs.h >>conftest.$ac_ext |
|
|
5706 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5707 | /* end confdefs.h. */ |
|
|
5708 | |
|
|
5709 | /* Override any GCC internal prototype to avoid an error. |
|
|
5710 | Use char because int might match the return type of a GCC |
|
|
5711 | builtin and then its argument prototype would still apply. */ |
|
|
5712 | #ifdef __cplusplus |
|
|
5713 | extern "C" |
|
|
5714 | #endif |
|
|
5715 | char clock_gettime (); |
|
|
5716 | int |
|
|
5717 | main () |
|
|
5718 | { |
|
|
5719 | return clock_gettime (); |
|
|
5720 | ; |
|
|
5721 | return 0; |
|
|
5722 | } |
|
|
5723 | _ACEOF |
|
|
5724 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5725 | if { (ac_try="$ac_link" |
|
|
5726 | case "(($ac_try" in |
|
|
5727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5728 | *) ac_try_echo=$ac_try;; |
|
|
5729 | esac |
|
|
5730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5731 | (eval "$ac_link") 2>conftest.er1 |
|
|
5732 | ac_status=$? |
|
|
5733 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5734 | rm -f conftest.er1 |
|
|
5735 | cat conftest.err >&5 |
|
|
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5737 | (exit $ac_status); } && { |
|
|
5738 | test -z "$ac_cxx_werror_flag" || |
|
|
5739 | test ! -s conftest.err |
|
|
5740 | } && test -s conftest$ac_exeext && |
|
|
5741 | $as_test_x conftest$ac_exeext; then |
|
|
5742 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5743 | else |
|
|
5744 | echo "$as_me: failed program was:" >&5 |
|
|
5745 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5746 | |
|
|
5747 | ac_cv_lib_rt_clock_gettime=no |
|
|
5748 | fi |
|
|
5749 | |
|
|
5750 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5751 | conftest$ac_exeext conftest.$ac_ext |
|
|
5752 | LIBS=$ac_check_lib_save_LIBS |
|
|
5753 | fi |
|
|
5754 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5755 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5756 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5757 | cat >>confdefs.h <<_ACEOF |
|
|
5758 | #define HAVE_LIBRT 1 |
|
|
5759 | _ACEOF |
|
|
5760 | |
|
|
5761 | LIBS="-lrt $LIBS" |
|
|
5762 | |
|
|
5763 | fi |
|
|
5764 | |
|
|
5765 | |
|
|
5766 | for ac_func in clock_gettime |
|
|
5767 | do |
|
|
5768 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5769 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5770 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5771 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5773 | else |
|
|
5774 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5775 | /* confdefs.h. */ |
|
|
5776 | _ACEOF |
|
|
5777 | cat confdefs.h >>conftest.$ac_ext |
|
|
5778 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5779 | /* end confdefs.h. */ |
|
|
5780 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5781 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5782 | #define $ac_func innocuous_$ac_func |
|
|
5783 | |
|
|
5784 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5785 | which can conflict with char $ac_func (); below. |
|
|
5786 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5787 | <limits.h> exists even on freestanding compilers. */ |
|
|
5788 | |
|
|
5789 | #ifdef __STDC__ |
|
|
5790 | # include <limits.h> |
|
|
5791 | #else |
|
|
5792 | # include <assert.h> |
|
|
5793 | #endif |
|
|
5794 | |
|
|
5795 | #undef $ac_func |
|
|
5796 | |
|
|
5797 | /* Override any GCC internal prototype to avoid an error. |
|
|
5798 | Use char because int might match the return type of a GCC |
|
|
5799 | builtin and then its argument prototype would still apply. */ |
|
|
5800 | #ifdef __cplusplus |
|
|
5801 | extern "C" |
|
|
5802 | #endif |
|
|
5803 | char $ac_func (); |
|
|
5804 | /* The GNU C library defines this for functions which it implements |
|
|
5805 | to always fail with ENOSYS. Some functions are actually named |
|
|
5806 | something starting with __ and the normal name is an alias. */ |
|
|
5807 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5808 | choke me |
|
|
5809 | #endif |
|
|
5810 | |
|
|
5811 | int |
|
|
5812 | main () |
|
|
5813 | { |
|
|
5814 | return $ac_func (); |
|
|
5815 | ; |
|
|
5816 | return 0; |
|
|
5817 | } |
|
|
5818 | _ACEOF |
|
|
5819 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5820 | if { (ac_try="$ac_link" |
|
|
5821 | case "(($ac_try" in |
|
|
5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5823 | *) ac_try_echo=$ac_try;; |
|
|
5824 | esac |
|
|
5825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5826 | (eval "$ac_link") 2>conftest.er1 |
|
|
5827 | ac_status=$? |
|
|
5828 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5829 | rm -f conftest.er1 |
|
|
5830 | cat conftest.err >&5 |
|
|
5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5832 | (exit $ac_status); } && { |
|
|
5833 | test -z "$ac_cxx_werror_flag" || |
|
|
5834 | test ! -s conftest.err |
|
|
5835 | } && test -s conftest$ac_exeext && |
|
|
5836 | $as_test_x conftest$ac_exeext; then |
|
|
5837 | eval "$as_ac_var=yes" |
|
|
5838 | else |
|
|
5839 | echo "$as_me: failed program was:" >&5 |
|
|
5840 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5841 | |
|
|
5842 | eval "$as_ac_var=no" |
|
|
5843 | fi |
|
|
5844 | |
|
|
5845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5846 | conftest$ac_exeext conftest.$ac_ext |
|
|
5847 | fi |
|
|
5848 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5849 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5850 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5851 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5852 | cat >>confdefs.h <<_ACEOF |
|
|
5853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5854 | _ACEOF |
|
|
5855 | |
|
|
5856 | fi |
|
|
5857 | done |
|
|
5858 | |
|
|
5859 | |
|
|
5860 | fi |
|
|
5861 | |
|
|
5862 | |
|
|
5863 | |
|
|
5864 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
5865 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
5866 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
5867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5868 | else |
|
|
5869 | ac_check_lib_save_LIBS=$LIBS |
|
|
5870 | LIBS="-lm $LIBS" |
|
|
5871 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5872 | /* confdefs.h. */ |
|
|
5873 | _ACEOF |
|
|
5874 | cat confdefs.h >>conftest.$ac_ext |
|
|
5875 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5876 | /* end confdefs.h. */ |
|
|
5877 | |
|
|
5878 | /* Override any GCC internal prototype to avoid an error. |
|
|
5879 | Use char because int might match the return type of a GCC |
|
|
5880 | builtin and then its argument prototype would still apply. */ |
|
|
5881 | #ifdef __cplusplus |
|
|
5882 | extern "C" |
|
|
5883 | #endif |
|
|
5884 | char ceil (); |
|
|
5885 | int |
|
|
5886 | main () |
|
|
5887 | { |
|
|
5888 | return ceil (); |
|
|
5889 | ; |
|
|
5890 | return 0; |
|
|
5891 | } |
|
|
5892 | _ACEOF |
|
|
5893 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5894 | if { (ac_try="$ac_link" |
|
|
5895 | case "(($ac_try" in |
|
|
5896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5897 | *) ac_try_echo=$ac_try;; |
|
|
5898 | esac |
|
|
5899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5900 | (eval "$ac_link") 2>conftest.er1 |
|
|
5901 | ac_status=$? |
|
|
5902 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5903 | rm -f conftest.er1 |
|
|
5904 | cat conftest.err >&5 |
|
|
5905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5906 | (exit $ac_status); } && { |
|
|
5907 | test -z "$ac_cxx_werror_flag" || |
|
|
5908 | test ! -s conftest.err |
|
|
5909 | } && test -s conftest$ac_exeext && |
|
|
5910 | $as_test_x conftest$ac_exeext; then |
|
|
5911 | ac_cv_lib_m_ceil=yes |
|
|
5912 | else |
|
|
5913 | echo "$as_me: failed program was:" >&5 |
|
|
5914 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5915 | |
|
|
5916 | ac_cv_lib_m_ceil=no |
|
|
5917 | fi |
|
|
5918 | |
|
|
5919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5920 | conftest$ac_exeext conftest.$ac_ext |
|
|
5921 | LIBS=$ac_check_lib_save_LIBS |
|
|
5922 | fi |
|
|
5923 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
5924 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
5925 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
5926 | cat >>confdefs.h <<_ACEOF |
|
|
5927 | #define HAVE_LIBM 1 |
|
|
5928 | _ACEOF |
|
|
5929 | |
|
|
5930 | LIBS="-lm $LIBS" |
|
|
5931 | |
|
|
5932 | fi |
|
|
5933 | |
|
|
5934 | |
|
|
5935 | |
|
|
5936 | |
4864 | |
5937 | |
4865 | |
5938 | |
4866 | |
5939 | |
4867 | # Extract the first word of "tic", so it can be a program name with args. |
5940 | # Extract the first word of "tic", so it can be a program name with args. |
4868 | set dummy tic; ac_word=$2 |
5941 | set dummy tic; ac_word=$2 |
… | |
… | |
4889 | fi |
5962 | fi |
4890 | done |
5963 | done |
4891 | done |
5964 | done |
4892 | IFS=$as_save_IFS |
5965 | IFS=$as_save_IFS |
4893 | |
5966 | |
|
|
5967 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4894 | ;; |
5968 | ;; |
4895 | esac |
5969 | esac |
4896 | fi |
5970 | fi |
4897 | TIC=$ac_cv_path_TIC |
5971 | TIC=$ac_cv_path_TIC |
4898 | if test -n "$TIC"; then |
5972 | if test -n "$TIC"; then |
… | |
… | |
4903 | echo "${ECHO_T}no" >&6; } |
5977 | echo "${ECHO_T}no" >&6; } |
4904 | fi |
5978 | fi |
4905 | |
5979 | |
4906 | |
5980 | |
4907 | |
5981 | |
4908 | |
|
|
4909 | |
|
|
4910 | ac_ext=cpp |
|
|
4911 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4912 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4913 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4914 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4915 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4916 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4917 | if test -z "$CXXCPP"; then |
|
|
4918 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4920 | else |
|
|
4921 | # Double quotes because CXXCPP needs to be expanded |
|
|
4922 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4923 | do |
|
|
4924 | ac_preproc_ok=false |
|
|
4925 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4926 | do |
|
|
4927 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4928 | # with a fresh cross-compiler works. |
|
|
4929 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4930 | # <limits.h> exists even on freestanding compilers. |
|
|
4931 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4932 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
|
|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
|
|
4939 | #ifdef __STDC__ |
|
|
4940 | # include <limits.h> |
|
|
4941 | #else |
|
|
4942 | # include <assert.h> |
|
|
4943 | #endif |
|
|
4944 | Syntax error |
|
|
4945 | _ACEOF |
|
|
4946 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4947 | case "(($ac_try" in |
|
|
4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4949 | *) ac_try_echo=$ac_try;; |
|
|
4950 | esac |
|
|
4951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4953 | ac_status=$? |
|
|
4954 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4955 | rm -f conftest.er1 |
|
|
4956 | cat conftest.err >&5 |
|
|
4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4958 | (exit $ac_status); } >/dev/null && { |
|
|
4959 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4960 | test ! -s conftest.err |
|
|
4961 | }; then |
|
|
4962 | : |
|
|
4963 | else |
|
|
4964 | echo "$as_me: failed program was:" >&5 |
|
|
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4966 | |
|
|
4967 | # Broken: fails on valid input. |
|
|
4968 | continue |
|
|
4969 | fi |
|
|
4970 | |
|
|
4971 | rm -f conftest.err conftest.$ac_ext |
|
|
4972 | |
|
|
4973 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4974 | # can be detected and how. |
|
|
4975 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4976 | /* confdefs.h. */ |
|
|
4977 | _ACEOF |
|
|
4978 | cat confdefs.h >>conftest.$ac_ext |
|
|
4979 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4980 | /* end confdefs.h. */ |
|
|
4981 | #include <ac_nonexistent.h> |
|
|
4982 | _ACEOF |
|
|
4983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4984 | case "(($ac_try" in |
|
|
4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4986 | *) ac_try_echo=$ac_try;; |
|
|
4987 | esac |
|
|
4988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4990 | ac_status=$? |
|
|
4991 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4992 | rm -f conftest.er1 |
|
|
4993 | cat conftest.err >&5 |
|
|
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4995 | (exit $ac_status); } >/dev/null && { |
|
|
4996 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4997 | test ! -s conftest.err |
|
|
4998 | }; then |
|
|
4999 | # Broken: success on invalid input. |
|
|
5000 | continue |
|
|
5001 | else |
|
|
5002 | echo "$as_me: failed program was:" >&5 |
|
|
5003 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5004 | |
|
|
5005 | # Passes both tests. |
|
|
5006 | ac_preproc_ok=: |
|
|
5007 | break |
|
|
5008 | fi |
|
|
5009 | |
|
|
5010 | rm -f conftest.err conftest.$ac_ext |
|
|
5011 | |
|
|
5012 | done |
|
|
5013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5014 | rm -f conftest.err conftest.$ac_ext |
|
|
5015 | if $ac_preproc_ok; then |
|
|
5016 | break |
|
|
5017 | fi |
|
|
5018 | |
|
|
5019 | done |
|
|
5020 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5021 | |
|
|
5022 | fi |
|
|
5023 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5024 | else |
|
|
5025 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5026 | fi |
|
|
5027 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5028 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5029 | ac_preproc_ok=false |
|
|
5030 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5031 | do |
|
|
5032 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5033 | # with a fresh cross-compiler works. |
|
|
5034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5035 | # <limits.h> exists even on freestanding compilers. |
|
|
5036 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5037 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
|
|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
|
|
5044 | #ifdef __STDC__ |
|
|
5045 | # include <limits.h> |
|
|
5046 | #else |
|
|
5047 | # include <assert.h> |
|
|
5048 | #endif |
|
|
5049 | Syntax error |
|
|
5050 | _ACEOF |
|
|
5051 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5052 | case "(($ac_try" in |
|
|
5053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5054 | *) ac_try_echo=$ac_try;; |
|
|
5055 | esac |
|
|
5056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5058 | ac_status=$? |
|
|
5059 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5060 | rm -f conftest.er1 |
|
|
5061 | cat conftest.err >&5 |
|
|
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5063 | (exit $ac_status); } >/dev/null && { |
|
|
5064 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5065 | test ! -s conftest.err |
|
|
5066 | }; then |
|
|
5067 | : |
|
|
5068 | else |
|
|
5069 | echo "$as_me: failed program was:" >&5 |
|
|
5070 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5071 | |
|
|
5072 | # Broken: fails on valid input. |
|
|
5073 | continue |
|
|
5074 | fi |
|
|
5075 | |
|
|
5076 | rm -f conftest.err conftest.$ac_ext |
|
|
5077 | |
|
|
5078 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5079 | # can be detected and how. |
|
|
5080 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5081 | /* confdefs.h. */ |
|
|
5082 | _ACEOF |
|
|
5083 | cat confdefs.h >>conftest.$ac_ext |
|
|
5084 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5085 | /* end confdefs.h. */ |
|
|
5086 | #include <ac_nonexistent.h> |
|
|
5087 | _ACEOF |
|
|
5088 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5089 | case "(($ac_try" in |
|
|
5090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5091 | *) ac_try_echo=$ac_try;; |
|
|
5092 | esac |
|
|
5093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5094 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5095 | ac_status=$? |
|
|
5096 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5097 | rm -f conftest.er1 |
|
|
5098 | cat conftest.err >&5 |
|
|
5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5100 | (exit $ac_status); } >/dev/null && { |
|
|
5101 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5102 | test ! -s conftest.err |
|
|
5103 | }; then |
|
|
5104 | # Broken: success on invalid input. |
|
|
5105 | continue |
|
|
5106 | else |
|
|
5107 | echo "$as_me: failed program was:" >&5 |
|
|
5108 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5109 | |
|
|
5110 | # Passes both tests. |
|
|
5111 | ac_preproc_ok=: |
|
|
5112 | break |
|
|
5113 | fi |
|
|
5114 | |
|
|
5115 | rm -f conftest.err conftest.$ac_ext |
|
|
5116 | |
|
|
5117 | done |
|
|
5118 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5119 | rm -f conftest.err conftest.$ac_ext |
|
|
5120 | if $ac_preproc_ok; then |
|
|
5121 | : |
|
|
5122 | else |
|
|
5123 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5124 | See \`config.log' for more details." >&5 |
|
|
5125 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5126 | See \`config.log' for more details." >&2;} |
|
|
5127 | { (exit 1); exit 1; }; } |
|
|
5128 | fi |
|
|
5129 | |
|
|
5130 | ac_ext=cpp |
|
|
5131 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5132 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5133 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5134 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5135 | |
5982 | |
5136 | |
5983 | |
5137 | { echo "$as_me:$LINENO: checking for X" >&5 |
5984 | { echo "$as_me:$LINENO: checking for X" >&5 |
5138 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5985 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5139 | |
5986 | |
… | |
… | |
6445 | fi |
7292 | fi |
6446 | |
7293 | |
6447 | LDFLAGS=$ac_save_LDFLAGS |
7294 | LDFLAGS=$ac_save_LDFLAGS |
6448 | |
7295 | |
6449 | fi |
7296 | fi |
6450 | |
|
|
6451 | |
7297 | |
6452 | |
7298 | |
6453 | AFTERIMAGE_CFLAGS= |
7299 | AFTERIMAGE_CFLAGS= |
6454 | AFTERIMAGE_LIBS= |
7300 | AFTERIMAGE_LIBS= |
6455 | AFTERIMAGE_VERSION= |
7301 | AFTERIMAGE_VERSION= |
… | |
… | |
6526 | echo "${ECHO_T}no" >&6; } |
7372 | echo "${ECHO_T}no" >&6; } |
6527 | fi |
7373 | fi |
6528 | fi |
7374 | fi |
6529 | fi |
7375 | fi |
6530 | |
7376 | |
6531 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
|
|
6532 | |
|
|
6533 | |
|
|
6534 | |
|
|
6535 | # Initialize some more variables set by options. |
|
|
6536 | # The variables have the same names as the options, with |
|
|
6537 | # dashes changed to underlines. |
|
|
6538 | |
|
|
6539 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6540 | # paths, otherwise set no_xpm=yes. |
|
|
6541 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6542 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6543 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6544 | |
|
|
6545 | |
|
|
6546 | # Check whether --with-xpm_includes was given. |
|
|
6547 | if test "${with_xpm_includes+set}" = set; then |
|
|
6548 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6549 | else |
|
|
6550 | xpm_includes=NO |
|
|
6551 | fi |
|
|
6552 | |
|
|
6553 | |
|
|
6554 | # Check whether --with-xpm_library was given. |
|
|
6555 | if test "${with_xpm_library+set}" = set; then |
|
|
6556 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6557 | else |
|
|
6558 | xpm_libraries=NO |
|
|
6559 | fi |
|
|
6560 | |
|
|
6561 | |
|
|
6562 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6563 | |
|
|
6564 | # Check whether --with-xpm was given. |
|
|
6565 | if test "${with_xpm+set}" = set; then |
|
|
6566 | withval=$with_xpm; |
|
|
6567 | fi |
|
|
6568 | |
|
|
6569 | if test "$with_xpm" = no; then |
|
|
6570 | have_xpm=disabled |
|
|
6571 | else |
|
|
6572 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6574 | else |
|
|
6575 | |
|
|
6576 | vt_xpm_include_X11=no |
|
|
6577 | if test -n "$xpm_includes"; then |
|
|
6578 | vt_xpm_includes=$xpm_includes |
|
|
6579 | else |
|
|
6580 | vt_xpm_includes=NO |
|
|
6581 | fi |
|
|
6582 | if test -n "$xpm_libraries"; then |
|
|
6583 | vt_xpm_libraries=$xpm_libraries |
|
|
6584 | else |
|
|
6585 | vt_xpm_libraries=NO |
|
|
6586 | fi |
|
|
6587 | |
|
|
6588 | if test "$vt_xpm_includes" = NO; then |
|
|
6589 | # Guess where to find xpm.h |
|
|
6590 | |
|
|
6591 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6592 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6593 | |
|
|
6594 | # First, try using that file with no special directory specified. |
|
|
6595 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6596 | /* confdefs.h. */ |
|
|
6597 | _ACEOF |
|
|
6598 | cat confdefs.h >>conftest.$ac_ext |
|
|
6599 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6600 | /* end confdefs.h. */ |
|
|
6601 | #include <X11/xpm.h> |
|
|
6602 | _ACEOF |
|
|
6603 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6604 | case "(($ac_try" in |
|
|
6605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6606 | *) ac_try_echo=$ac_try;; |
|
|
6607 | esac |
|
|
6608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6610 | ac_status=$? |
|
|
6611 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6612 | rm -f conftest.er1 |
|
|
6613 | cat conftest.err >&5 |
|
|
6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6615 | (exit $ac_status); } >/dev/null && { |
|
|
6616 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6617 | test ! -s conftest.err |
|
|
6618 | }; then |
|
|
6619 | # We can compile using X headers with no special include directory. |
|
|
6620 | vt_xpm_includes= |
|
|
6621 | vt_xpm_include_X11=yes |
|
|
6622 | else |
|
|
6623 | echo "$as_me: failed program was:" >&5 |
|
|
6624 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6625 | |
|
|
6626 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6627 | # Look for the header file in a standard set of common directories. |
|
|
6628 | for ac_dir in \ |
|
|
6629 | /usr/X11/include \ |
|
|
6630 | /usr/X11R6/include \ |
|
|
6631 | /usr/X11R5/include \ |
|
|
6632 | /usr/X11R4/include \ |
|
|
6633 | \ |
|
|
6634 | /usr/include/X11 \ |
|
|
6635 | /usr/include/X11R6 \ |
|
|
6636 | /usr/include/X11R5 \ |
|
|
6637 | /usr/include/X11R4 \ |
|
|
6638 | \ |
|
|
6639 | /usr/local/X11/include \ |
|
|
6640 | /usr/local/X11R6/include \ |
|
|
6641 | /usr/local/X11R5/include \ |
|
|
6642 | /usr/local/X11R4/include \ |
|
|
6643 | \ |
|
|
6644 | /usr/local/include/X11 \ |
|
|
6645 | /usr/local/include/X11R6 \ |
|
|
6646 | /usr/local/include/X11R5 \ |
|
|
6647 | /usr/local/include/X11R4 \ |
|
|
6648 | \ |
|
|
6649 | /usr/X386/include \ |
|
|
6650 | /usr/x386/include \ |
|
|
6651 | /usr/XFree86/include/X11 \ |
|
|
6652 | \ |
|
|
6653 | /usr/include \ |
|
|
6654 | /usr/local/include \ |
|
|
6655 | /usr/unsupported/include \ |
|
|
6656 | /usr/athena/include \ |
|
|
6657 | /usr/local/x11r5/include \ |
|
|
6658 | /usr/lpp/Xamples/include \ |
|
|
6659 | \ |
|
|
6660 | /usr/openwin/include \ |
|
|
6661 | /usr/openwin/share/include \ |
|
|
6662 | ; \ |
|
|
6663 | do |
|
|
6664 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6665 | vt_xpm_includes="$ac_dir" |
|
|
6666 | vt_xpm_include_X11=yes |
|
|
6667 | break |
|
|
6668 | else |
|
|
6669 | if test -r "$ac_dir/xpm.h"; then |
|
|
6670 | vt_xpm_includes=$ac_dir |
|
|
6671 | break |
|
|
6672 | fi |
|
|
6673 | fi |
|
|
6674 | done |
|
|
6675 | fi |
|
|
6676 | |
|
|
6677 | rm -f conftest.err conftest.$ac_ext |
|
|
6678 | fi |
|
|
6679 | |
|
|
6680 | if test "$vt_xpm_libraries" = NO; then |
|
|
6681 | # Check for the libraries. |
|
|
6682 | |
|
|
6683 | # See if we find them without any special options. |
|
|
6684 | # Don't add to $LIBS permanently. |
|
|
6685 | ac_save_LIBS="$LIBS" |
|
|
6686 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6687 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6688 | /* confdefs.h. */ |
|
|
6689 | _ACEOF |
|
|
6690 | cat confdefs.h >>conftest.$ac_ext |
|
|
6691 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6692 | /* end confdefs.h. */ |
|
|
6693 | |
|
|
6694 | int |
|
|
6695 | main () |
|
|
6696 | { |
|
|
6697 | XpmReadFileToPixmap() |
|
|
6698 | ; |
|
|
6699 | return 0; |
|
|
6700 | } |
|
|
6701 | _ACEOF |
|
|
6702 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6703 | if { (ac_try="$ac_link" |
|
|
6704 | case "(($ac_try" in |
|
|
6705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6706 | *) ac_try_echo=$ac_try;; |
|
|
6707 | esac |
|
|
6708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6709 | (eval "$ac_link") 2>conftest.er1 |
|
|
6710 | ac_status=$? |
|
|
6711 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6712 | rm -f conftest.er1 |
|
|
6713 | cat conftest.err >&5 |
|
|
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6715 | (exit $ac_status); } && { |
|
|
6716 | test -z "$ac_cxx_werror_flag" || |
|
|
6717 | test ! -s conftest.err |
|
|
6718 | } && test -s conftest$ac_exeext && |
|
|
6719 | $as_test_x conftest$ac_exeext; then |
|
|
6720 | LIBS="$ac_save_LIBS" |
|
|
6721 | # We can link libXpm with no special library path. |
|
|
6722 | vt_xpm_libraries= |
|
|
6723 | else |
|
|
6724 | echo "$as_me: failed program was:" >&5 |
|
|
6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6726 | |
|
|
6727 | LIBS="$ac_save_LIBS" |
|
|
6728 | # First see if replacing the include by lib works. |
|
|
6729 | for ac_dir in \ |
|
|
6730 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6731 | /usr/X11/lib \ |
|
|
6732 | /usr/X11R6/lib \ |
|
|
6733 | /usr/X11R5/lib \ |
|
|
6734 | /usr/X11R4/lib \ |
|
|
6735 | \ |
|
|
6736 | /usr/lib/X11 \ |
|
|
6737 | /usr/lib/X11R6 \ |
|
|
6738 | /usr/lib/X11R5 \ |
|
|
6739 | /usr/lib/X11R4 \ |
|
|
6740 | \ |
|
|
6741 | /usr/local/X11/lib \ |
|
|
6742 | /usr/local/X11R6/lib \ |
|
|
6743 | /usr/local/X11R5/lib \ |
|
|
6744 | /usr/local/X11R4/lib \ |
|
|
6745 | \ |
|
|
6746 | /usr/local/lib/X11 \ |
|
|
6747 | /usr/local/lib/X11R6 \ |
|
|
6748 | /usr/local/lib/X11R5 \ |
|
|
6749 | /usr/local/lib/X11R4 \ |
|
|
6750 | \ |
|
|
6751 | /usr/X386/lib \ |
|
|
6752 | /usr/x386/lib \ |
|
|
6753 | /usr/XFree86/lib/X11 \ |
|
|
6754 | \ |
|
|
6755 | /usr/lib \ |
|
|
6756 | /usr/local/lib \ |
|
|
6757 | /usr/unsupported/lib \ |
|
|
6758 | /usr/athena/lib \ |
|
|
6759 | /usr/local/x11r5/lib \ |
|
|
6760 | /usr/lpp/Xamples/lib \ |
|
|
6761 | \ |
|
|
6762 | /usr/openwin/lib \ |
|
|
6763 | /usr/openwin/share/lib \ |
|
|
6764 | ; \ |
|
|
6765 | do |
|
|
6766 | for ac_extension in a so sl; do |
|
|
6767 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6768 | vt_xpm_libraries=$ac_dir |
|
|
6769 | break 2 |
|
|
6770 | fi |
|
|
6771 | done |
|
|
6772 | done |
|
|
6773 | fi |
|
|
6774 | |
|
|
6775 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6776 | conftest$ac_exeext conftest.$ac_ext |
|
|
6777 | fi |
|
|
6778 | |
|
|
6779 | |
|
|
6780 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6781 | ac_cv_have_xpm="have_xpm=no" |
|
|
6782 | else |
|
|
6783 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6784 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6785 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6786 | fi |
|
|
6787 | fi |
|
|
6788 | eval "$ac_cv_have_xpm" |
|
|
6789 | fi |
|
|
6790 | |
|
|
6791 | if test "$have_xpm" != yes; then |
|
|
6792 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6793 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6794 | no_xpm=yes |
|
|
6795 | else |
|
|
6796 | if test "$xpm_includes" != NO; then |
|
|
6797 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6798 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6799 | vt_xpm_include_X11=yes |
|
|
6800 | fi |
|
|
6801 | else |
|
|
6802 | vt_xpm_include_X11=no |
|
|
6803 | if test -z "$xpm_includes"; then |
|
|
6804 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6805 | /* confdefs.h. */ |
|
|
6806 | _ACEOF |
|
|
6807 | cat confdefs.h >>conftest.$ac_ext |
|
|
6808 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6809 | /* end confdefs.h. */ |
|
|
6810 | #include <X11/xpm.h> |
|
|
6811 | _ACEOF |
|
|
6812 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6813 | case "(($ac_try" in |
|
|
6814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6815 | *) ac_try_echo=$ac_try;; |
|
|
6816 | esac |
|
|
6817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6819 | ac_status=$? |
|
|
6820 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6821 | rm -f conftest.er1 |
|
|
6822 | cat conftest.err >&5 |
|
|
6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6824 | (exit $ac_status); } >/dev/null && { |
|
|
6825 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6826 | test ! -s conftest.err |
|
|
6827 | }; then |
|
|
6828 | vt_xpm_include_X11=yes |
|
|
6829 | else |
|
|
6830 | echo "$as_me: failed program was:" >&5 |
|
|
6831 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6832 | |
|
|
6833 | |
|
|
6834 | fi |
|
|
6835 | |
|
|
6836 | rm -f conftest.err conftest.$ac_ext |
|
|
6837 | else |
|
|
6838 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6839 | vt_xpm_include_X11=yes |
|
|
6840 | fi |
|
|
6841 | fi |
|
|
6842 | fi |
|
|
6843 | vt_xpm_includes=$xpm_includes |
|
|
6844 | fi |
|
|
6845 | if test "x$xpm_libraries" != xNO; then |
|
|
6846 | vt_xpm_libraries=$xpm_libraries |
|
|
6847 | fi |
|
|
6848 | # Update the cache value to reflect the command line values. |
|
|
6849 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6850 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6851 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6852 | eval "$ac_cv_have_xpm" |
|
|
6853 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
6854 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
6855 | if test -n "$vt_xpm_includes"; then |
|
|
6856 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
6857 | fi |
|
|
6858 | if test -n "$vt_xpm_includes"; then |
|
|
6859 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
6860 | fi |
|
|
6861 | XPM_LIBS="-lXpm" |
|
|
6862 | if test -n "$vt_xpm_libraries"; then |
|
|
6863 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
6864 | fi |
|
|
6865 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
6866 | |
|
|
6867 | cat >>confdefs.h <<\_ACEOF |
|
|
6868 | #define XPM_INC_X11 1 |
|
|
6869 | _ACEOF |
|
|
6870 | |
|
|
6871 | fi |
|
|
6872 | fi |
|
|
6873 | |
|
|
6874 | |
|
|
6875 | |
|
|
6876 | |
|
|
6877 | |
|
|
6878 | if test x$no_xpm = xyes; then |
|
|
6879 | support_xpm=needsmanualspecification |
|
|
6880 | fi |
|
|
6881 | fi |
|
|
6882 | |
|
|
6883 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
7377 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
6884 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
7378 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
6885 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
7379 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
6886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6887 | else |
7381 | else |
… | |
… | |
6944 | cat >>confdefs.h <<\_ACEOF |
7438 | cat >>confdefs.h <<\_ACEOF |
6945 | #define HAVE_SYS_WAIT_H 1 |
7439 | #define HAVE_SYS_WAIT_H 1 |
6946 | _ACEOF |
7440 | _ACEOF |
6947 | |
7441 | |
6948 | fi |
7442 | fi |
6949 | |
|
|
6950 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6951 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6952 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6954 | else |
|
|
6955 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6956 | /* confdefs.h. */ |
|
|
6957 | _ACEOF |
|
|
6958 | cat confdefs.h >>conftest.$ac_ext |
|
|
6959 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6960 | /* end confdefs.h. */ |
|
|
6961 | #include <stdlib.h> |
|
|
6962 | #include <stdarg.h> |
|
|
6963 | #include <string.h> |
|
|
6964 | #include <float.h> |
|
|
6965 | |
|
|
6966 | int |
|
|
6967 | main () |
|
|
6968 | { |
|
|
6969 | |
|
|
6970 | ; |
|
|
6971 | return 0; |
|
|
6972 | } |
|
|
6973 | _ACEOF |
|
|
6974 | rm -f conftest.$ac_objext |
|
|
6975 | if { (ac_try="$ac_compile" |
|
|
6976 | case "(($ac_try" in |
|
|
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6978 | *) ac_try_echo=$ac_try;; |
|
|
6979 | esac |
|
|
6980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6981 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6982 | ac_status=$? |
|
|
6983 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6984 | rm -f conftest.er1 |
|
|
6985 | cat conftest.err >&5 |
|
|
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6987 | (exit $ac_status); } && { |
|
|
6988 | test -z "$ac_cxx_werror_flag" || |
|
|
6989 | test ! -s conftest.err |
|
|
6990 | } && test -s conftest.$ac_objext; then |
|
|
6991 | ac_cv_header_stdc=yes |
|
|
6992 | else |
|
|
6993 | echo "$as_me: failed program was:" >&5 |
|
|
6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6995 | |
|
|
6996 | ac_cv_header_stdc=no |
|
|
6997 | fi |
|
|
6998 | |
|
|
6999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7000 | |
|
|
7001 | if test $ac_cv_header_stdc = yes; then |
|
|
7002 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7003 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7004 | /* confdefs.h. */ |
|
|
7005 | _ACEOF |
|
|
7006 | cat confdefs.h >>conftest.$ac_ext |
|
|
7007 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7008 | /* end confdefs.h. */ |
|
|
7009 | #include <string.h> |
|
|
7010 | |
|
|
7011 | _ACEOF |
|
|
7012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7013 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7014 | : |
|
|
7015 | else |
|
|
7016 | ac_cv_header_stdc=no |
|
|
7017 | fi |
|
|
7018 | rm -f conftest* |
|
|
7019 | |
|
|
7020 | fi |
|
|
7021 | |
|
|
7022 | if test $ac_cv_header_stdc = yes; then |
|
|
7023 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7024 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7025 | /* confdefs.h. */ |
|
|
7026 | _ACEOF |
|
|
7027 | cat confdefs.h >>conftest.$ac_ext |
|
|
7028 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7029 | /* end confdefs.h. */ |
|
|
7030 | #include <stdlib.h> |
|
|
7031 | |
|
|
7032 | _ACEOF |
|
|
7033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7034 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7035 | : |
|
|
7036 | else |
|
|
7037 | ac_cv_header_stdc=no |
|
|
7038 | fi |
|
|
7039 | rm -f conftest* |
|
|
7040 | |
|
|
7041 | fi |
|
|
7042 | |
|
|
7043 | if test $ac_cv_header_stdc = yes; then |
|
|
7044 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7045 | if test "$cross_compiling" = yes; then |
|
|
7046 | : |
|
|
7047 | else |
|
|
7048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7049 | /* confdefs.h. */ |
|
|
7050 | _ACEOF |
|
|
7051 | cat confdefs.h >>conftest.$ac_ext |
|
|
7052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* end confdefs.h. */ |
|
|
7054 | #include <ctype.h> |
|
|
7055 | #include <stdlib.h> |
|
|
7056 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7057 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7058 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7059 | #else |
|
|
7060 | # define ISLOWER(c) \ |
|
|
7061 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7062 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7063 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7064 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7065 | #endif |
|
|
7066 | |
|
|
7067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7068 | int |
|
|
7069 | main () |
|
|
7070 | { |
|
|
7071 | int i; |
|
|
7072 | for (i = 0; i < 256; i++) |
|
|
7073 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7074 | || toupper (i) != TOUPPER (i)) |
|
|
7075 | return 2; |
|
|
7076 | return 0; |
|
|
7077 | } |
|
|
7078 | _ACEOF |
|
|
7079 | rm -f conftest$ac_exeext |
|
|
7080 | if { (ac_try="$ac_link" |
|
|
7081 | case "(($ac_try" in |
|
|
7082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7083 | *) ac_try_echo=$ac_try;; |
|
|
7084 | esac |
|
|
7085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7086 | (eval "$ac_link") 2>&5 |
|
|
7087 | ac_status=$? |
|
|
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7090 | { (case "(($ac_try" in |
|
|
7091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7092 | *) ac_try_echo=$ac_try;; |
|
|
7093 | esac |
|
|
7094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7095 | (eval "$ac_try") 2>&5 |
|
|
7096 | ac_status=$? |
|
|
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7098 | (exit $ac_status); }; }; then |
|
|
7099 | : |
|
|
7100 | else |
|
|
7101 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7102 | echo "$as_me: failed program was:" >&5 |
|
|
7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7104 | |
|
|
7105 | ( exit $ac_status ) |
|
|
7106 | ac_cv_header_stdc=no |
|
|
7107 | fi |
|
|
7108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7109 | fi |
|
|
7110 | |
|
|
7111 | |
|
|
7112 | fi |
|
|
7113 | fi |
|
|
7114 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7115 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7116 | if test $ac_cv_header_stdc = yes; then |
|
|
7117 | |
|
|
7118 | cat >>confdefs.h <<\_ACEOF |
|
|
7119 | #define STDC_HEADERS 1 |
|
|
7120 | _ACEOF |
|
|
7121 | |
|
|
7122 | fi |
|
|
7123 | |
|
|
7124 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7125 | |
|
|
7126 | |
|
|
7127 | |
|
|
7128 | |
|
|
7129 | |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | |
|
|
7133 | |
|
|
7134 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7135 | inttypes.h stdint.h unistd.h |
|
|
7136 | do |
|
|
7137 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7138 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7142 | else |
|
|
7143 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7144 | /* confdefs.h. */ |
|
|
7145 | _ACEOF |
|
|
7146 | cat confdefs.h >>conftest.$ac_ext |
|
|
7147 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7148 | /* end confdefs.h. */ |
|
|
7149 | $ac_includes_default |
|
|
7150 | |
|
|
7151 | #include <$ac_header> |
|
|
7152 | _ACEOF |
|
|
7153 | rm -f conftest.$ac_objext |
|
|
7154 | if { (ac_try="$ac_compile" |
|
|
7155 | case "(($ac_try" in |
|
|
7156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7157 | *) ac_try_echo=$ac_try;; |
|
|
7158 | esac |
|
|
7159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7160 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7161 | ac_status=$? |
|
|
7162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7163 | rm -f conftest.er1 |
|
|
7164 | cat conftest.err >&5 |
|
|
7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7166 | (exit $ac_status); } && { |
|
|
7167 | test -z "$ac_cxx_werror_flag" || |
|
|
7168 | test ! -s conftest.err |
|
|
7169 | } && test -s conftest.$ac_objext; then |
|
|
7170 | eval "$as_ac_Header=yes" |
|
|
7171 | else |
|
|
7172 | echo "$as_me: failed program was:" >&5 |
|
|
7173 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7174 | |
|
|
7175 | eval "$as_ac_Header=no" |
|
|
7176 | fi |
|
|
7177 | |
|
|
7178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7179 | fi |
|
|
7180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7182 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7184 | cat >>confdefs.h <<_ACEOF |
|
|
7185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7186 | _ACEOF |
|
|
7187 | |
|
|
7188 | fi |
|
|
7189 | |
|
|
7190 | done |
|
|
7191 | |
|
|
7192 | |
7443 | |
7193 | |
7444 | |
7194 | |
7445 | |
7195 | |
7446 | |
7196 | |
7447 | |
… | |
… | |
9959 | _ACEOF |
10210 | _ACEOF |
9960 | |
10211 | |
9961 | |
10212 | |
9962 | |
10213 | |
9963 | |
10214 | |
9964 | |
|
|
9965 | |
|
|
9966 | for ac_func in \ |
10215 | for ac_func in unsetenv |
9967 | unsetenv \ |
|
|
9968 | setutent \ |
|
|
9969 | on_exit \ |
|
|
9970 | |
|
|
9971 | do |
10216 | do |
9972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10217 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9973 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10218 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10219 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9975 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10220 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
10114 | |
10359 | |
10115 | |
10360 | |
10116 | |
10361 | |
10117 | |
10362 | |
10118 | for ac_func in \ |
10363 | for ac_func in \ |
10119 | ttyslot \ |
|
|
10120 | updwtmp \ |
10364 | updwtmp \ |
10121 | updwtmpx \ |
10365 | updwtmpx \ |
|
|
10366 | updlastlogx \ |
10122 | |
10367 | |
10123 | do |
10368 | do |
10124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10369 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10125 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10370 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10371 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
11547 | |
11792 | |
11548 | cat >>confdefs.h <<_ACEOF |
11793 | cat >>confdefs.h <<_ACEOF |
11549 | #define LASTLOG_FILE "$path_lastlog" |
11794 | #define LASTLOG_FILE "$path_lastlog" |
11550 | _ACEOF |
11795 | _ACEOF |
11551 | |
11796 | |
11552 | if test -d "$path_lastlog"; then |
|
|
11553 | |
|
|
11554 | cat >>confdefs.h <<\_ACEOF |
|
|
11555 | #define LASTLOG_IS_DIR 1 |
|
|
11556 | _ACEOF |
|
|
11557 | |
|
|
11558 | fi |
|
|
11559 | fi |
11797 | fi |
11560 | |
11798 | |
11561 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11799 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11562 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11800 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11563 | if test "${path_lastlogx+set}" = set; then |
11801 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11645 | |
11883 | |
11646 | fi |
11884 | fi |
11647 | |
11885 | |
11648 | |
11886 | |
11649 | |
11887 | |
11650 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11651 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11652 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11654 | else |
|
|
11655 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11656 | do |
|
|
11657 | if test -f "$ttys_file" ; then |
|
|
11658 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11659 | break |
|
|
11660 | fi |
|
|
11661 | done |
|
|
11662 | |
11888 | |
11663 | fi |
|
|
11664 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11665 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11666 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11667 | |
|
|
11668 | cat >>confdefs.h <<_ACEOF |
|
|
11669 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11670 | _ACEOF |
|
|
11671 | |
|
|
11672 | fi |
|
|
11673 | |
|
|
11674 | |
|
|
11675 | ac_save_LIBS=$LIBS |
11889 | save_LIBS=$LIBS |
11676 | ac_save_CFLAGS=$CFLAGS |
11890 | save_CFLAGS=$CFLAGS |
11677 | CFLAGS="$CFLAGS $X_CFLAGS" |
11891 | CFLAGS="$CFLAGS $X_CFLAGS" |
11678 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11892 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
11893 | if test x$support_xim = xyes; then |
11679 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11894 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11680 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11895 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11681 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11896 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11683 | else |
11898 | else |
11684 | if test "$cross_compiling" = yes; then |
11899 | if test "$cross_compiling" = yes; then |
11685 | : |
11900 | : |
11686 | else |
11901 | else |
11687 | cat >conftest.$ac_ext <<_ACEOF |
11902 | cat >conftest.$ac_ext <<_ACEOF |
11688 | /* confdefs.h. */ |
11903 | /* confdefs.h. */ |
11689 | _ACEOF |
11904 | _ACEOF |
11690 | cat confdefs.h >>conftest.$ac_ext |
11905 | cat confdefs.h >>conftest.$ac_ext |
11691 | cat >>conftest.$ac_ext <<_ACEOF |
11906 | cat >>conftest.$ac_ext <<_ACEOF |
11692 | /* end confdefs.h. */ |
11907 | /* end confdefs.h. */ |
11693 | #include <X11/Xlib.h> |
11908 | #include <X11/Xlib.h> |
11694 | #include <stdlib.h> |
11909 | #include <stdlib.h> |
11695 | main() { |
11910 | main() { |
11696 | char *p; |
11911 | char *p; |
11697 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11912 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11698 | exit (XSupportsLocale() ? 0 : 1); |
11913 | exit (XSupportsLocale() ? 0 : 1); |
11699 | else |
11914 | else |
11700 | exit (1);} |
11915 | exit (1);} |
11701 | _ACEOF |
11916 | _ACEOF |
11702 | rm -f conftest$ac_exeext |
11917 | rm -f conftest$ac_exeext |
11703 | if { (ac_try="$ac_link" |
11918 | if { (ac_try="$ac_link" |
11704 | case "(($ac_try" in |
11919 | case "(($ac_try" in |
11705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11718 | (eval "$ac_try") 2>&5 |
11933 | (eval "$ac_try") 2>&5 |
11719 | ac_status=$? |
11934 | ac_status=$? |
11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11721 | (exit $ac_status); }; }; then |
11936 | (exit $ac_status); }; }; then |
11722 | rxvt_cv_func_xlocale=yes |
11937 | rxvt_cv_func_xlocale=yes |
11723 | else |
11938 | else |
11724 | echo "$as_me: program exited with status $ac_status" >&5 |
11939 | echo "$as_me: program exited with status $ac_status" >&5 |
11725 | echo "$as_me: failed program was:" >&5 |
11940 | echo "$as_me: failed program was:" >&5 |
11726 | sed 's/^/| /' conftest.$ac_ext >&5 |
11941 | sed 's/^/| /' conftest.$ac_ext >&5 |
11727 | |
11942 | |
… | |
… | |
11733 | |
11948 | |
11734 | |
11949 | |
11735 | fi |
11950 | fi |
11736 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11951 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11737 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
11952 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
11738 | if test x$support_xim = xyes; then |
|
|
11739 | if test x$rxvt_cv_func_xlocale = xyes; then |
11953 | if test x$rxvt_cv_func_xlocale = xyes; then |
11740 | |
11954 | |
11741 | cat >>confdefs.h <<\_ACEOF |
11955 | cat >>confdefs.h <<\_ACEOF |
11742 | #define USE_XIM 1 |
11956 | #define USE_XIM 1 |
11743 | _ACEOF |
11957 | _ACEOF |
11744 | |
11958 | |
|
|
11959 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
11960 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
11961 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
11962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11963 | else |
|
|
11964 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11965 | |
|
|
11966 | #include <X11/Xlib.h> |
|
|
11967 | |
|
|
11968 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
11969 | |
|
|
11970 | void f() { |
|
|
11971 | XIMCallback cb; |
|
|
11972 | cb.callback = im_destroy_cb; |
|
|
11973 | } |
|
|
11974 | |
|
|
11975 | _ACEOF |
|
|
11976 | rm -f conftest.$ac_objext |
|
|
11977 | if { (ac_try="$ac_compile" |
|
|
11978 | case "(($ac_try" in |
|
|
11979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11980 | *) ac_try_echo=$ac_try;; |
|
|
11981 | esac |
|
|
11982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11983 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11984 | ac_status=$? |
|
|
11985 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11986 | rm -f conftest.er1 |
|
|
11987 | cat conftest.err >&5 |
|
|
11988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11989 | (exit $ac_status); } && { |
|
|
11990 | test -z "$ac_cxx_werror_flag" || |
|
|
11991 | test ! -s conftest.err |
|
|
11992 | } && test -s conftest.$ac_objext; then |
|
|
11993 | rxvt_broken_ximcb=yes |
|
|
11994 | else |
|
|
11995 | echo "$as_me: failed program was:" >&5 |
|
|
11996 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11997 | |
|
|
11998 | rxvt_broken_ximcb=no |
|
|
11999 | fi |
|
|
12000 | |
|
|
12001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12002 | fi |
|
|
12003 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12004 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12005 | |
|
|
12006 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12007 | |
|
|
12008 | cat >>confdefs.h <<\_ACEOF |
|
|
12009 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12010 | _ACEOF |
|
|
12011 | |
|
|
12012 | fi |
11745 | fi |
12013 | fi |
11746 | fi |
12014 | fi |
11747 | |
12015 | |
11748 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
12016 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11749 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
12017 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
… | |
… | |
11802 | cat >>confdefs.h <<\_ACEOF |
12070 | cat >>confdefs.h <<\_ACEOF |
11803 | #define HAVE_XSETLOCALE 1 |
12071 | #define HAVE_XSETLOCALE 1 |
11804 | _ACEOF |
12072 | _ACEOF |
11805 | |
12073 | |
11806 | fi |
12074 | fi |
11807 | LIBS=$ac_save_LIBS |
12075 | LIBS=$save_LIBS |
11808 | CFLAGS=$ac_save_CFLAGS |
12076 | CFLAGS=$save_CFLAGS |
11809 | |
12077 | |
11810 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
12078 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11811 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
12079 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11812 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
12080 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12016 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
12284 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
12017 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12285 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12018 | { (exit 1); exit 1; }; } |
12286 | { (exit 1); exit 1; }; } |
12019 | fi |
12287 | fi |
12020 | |
12288 | |
12021 | |
|
|
12022 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12023 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12024 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12026 | else |
|
|
12027 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12028 | |
|
|
12029 | #include <X11/Xlib.h> |
|
|
12030 | |
|
|
12031 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12032 | |
|
|
12033 | void f() { |
|
|
12034 | XIMCallback cb; |
|
|
12035 | cb.callback = im_destroy_cb; |
|
|
12036 | } |
|
|
12037 | |
|
|
12038 | _ACEOF |
|
|
12039 | rm -f conftest.$ac_objext |
|
|
12040 | if { (ac_try="$ac_compile" |
|
|
12041 | case "(($ac_try" in |
|
|
12042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12043 | *) ac_try_echo=$ac_try;; |
|
|
12044 | esac |
|
|
12045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12046 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12047 | ac_status=$? |
|
|
12048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12049 | rm -f conftest.er1 |
|
|
12050 | cat conftest.err >&5 |
|
|
12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12052 | (exit $ac_status); } && { |
|
|
12053 | test -z "$ac_cxx_werror_flag" || |
|
|
12054 | test ! -s conftest.err |
|
|
12055 | } && test -s conftest.$ac_objext; then |
|
|
12056 | rxvt_broken_ximcb=yes |
|
|
12057 | else |
|
|
12058 | echo "$as_me: failed program was:" >&5 |
|
|
12059 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12060 | |
|
|
12061 | rxvt_broken_ximcb=no |
|
|
12062 | fi |
|
|
12063 | |
|
|
12064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12065 | fi |
|
|
12066 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12067 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12068 | |
|
|
12069 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12070 | |
|
|
12071 | cat >>confdefs.h <<\_ACEOF |
|
|
12072 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12073 | _ACEOF |
|
|
12074 | |
|
|
12075 | fi |
|
|
12076 | |
12289 | |
12077 | |
12290 | |
12078 | |
12291 | |
12079 | |
12292 | |
12080 | |
12293 | |
… | |
… | |
12761 | echo "${ECHO_T}no" >&6; } |
12974 | echo "${ECHO_T}no" >&6; } |
12762 | fi |
12975 | fi |
12763 | |
12976 | |
12764 | |
12977 | |
12765 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12978 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12766 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
12979 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12767 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12980 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12768 | else |
12981 | else |
12769 | # Extract the first word of "xft-config", so it can be a program name with args. |
12982 | # Extract the first word of "xft-config", so it can be a program name with args. |
12770 | set dummy xft-config; ac_word=$2 |
12983 | set dummy xft-config; ac_word=$2 |
12771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12984 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12806 | echo "${ECHO_T}no" >&6; } |
13019 | echo "${ECHO_T}no" >&6; } |
12807 | fi |
13020 | fi |
12808 | |
13021 | |
12809 | |
13022 | |
12810 | if test $XFT_CONFIG != no; then |
13023 | if test $XFT_CONFIG != no; then |
12811 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
13024 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12812 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13025 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12813 | fi |
13026 | fi |
12814 | fi |
13027 | fi |
12815 | |
13028 | |
12816 | |
13029 | |
… | |
… | |
12953 | support_xft=no |
13166 | support_xft=no |
12954 | fi |
13167 | fi |
12955 | |
13168 | |
12956 | done |
13169 | done |
12957 | |
13170 | |
|
|
13171 | ac_save_LIBS="$LIBS" |
|
|
13172 | LIBS="$LIBS $X_LIBS" |
12958 | |
13173 | |
12959 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13174 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12960 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13175 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12961 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13176 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
13026 | |
13241 | |
13027 | else |
13242 | else |
13028 | support_xft=no |
13243 | support_xft=no |
13029 | fi |
13244 | fi |
13030 | |
13245 | |
|
|
13246 | LIBS="$ac_save_LIBS" |
13031 | |
13247 | |
13032 | if test x$support_xft = xyes; then |
13248 | if test x$support_xft = xyes; then |
13033 | |
13249 | |
13034 | cat >>confdefs.h <<\_ACEOF |
13250 | cat >>confdefs.h <<\_ACEOF |
13035 | #define XFT 1 |
13251 | #define XFT 1 |
… | |
… | |
13063 | cat >>confdefs.h <<\_ACEOF |
13279 | cat >>confdefs.h <<\_ACEOF |
13064 | #define OFF_FOCUS_FADING 1 |
13280 | #define OFF_FOCUS_FADING 1 |
13065 | _ACEOF |
13281 | _ACEOF |
13066 | |
13282 | |
13067 | fi |
13283 | fi |
13068 | if test x$support_tinting = xyes; then |
|
|
13069 | |
|
|
13070 | cat >>confdefs.h <<\_ACEOF |
|
|
13071 | #define TINTING 1 |
|
|
13072 | _ACEOF |
|
|
13073 | |
|
|
13074 | fi |
|
|
13075 | if test x$support_inheritpixmap = xyes; then |
13284 | if test x$support_inheritpixmap = xyes; then |
13076 | |
13285 | |
13077 | cat >>confdefs.h <<\_ACEOF |
13286 | cat >>confdefs.h <<\_ACEOF |
13078 | #define ENABLE_TRANSPARENCY 1 |
13287 | #define ENABLE_TRANSPARENCY 1 |
13079 | _ACEOF |
13288 | _ACEOF |
… | |
… | |
13091 | cat >>confdefs.h <<\_ACEOF |
13300 | cat >>confdefs.h <<\_ACEOF |
13092 | #define SELECTION_SCROLLING 1 |
13301 | #define SELECTION_SCROLLING 1 |
13093 | _ACEOF |
13302 | _ACEOF |
13094 | |
13303 | |
13095 | fi |
13304 | fi |
|
|
13305 | if test x$support_frills = xyes; then |
|
|
13306 | |
|
|
13307 | cat >>confdefs.h <<\_ACEOF |
|
|
13308 | #define ENABLE_FRILLS 1 |
|
|
13309 | _ACEOF |
|
|
13310 | |
|
|
13311 | fi |
13096 | if test x$support_mousewheel = xyes; then |
13312 | if test x$support_mousewheel = xyes; then |
13097 | |
13313 | |
13098 | cat >>confdefs.h <<\_ACEOF |
13314 | cat >>confdefs.h <<\_ACEOF |
13099 | #define MOUSE_WHEEL 1 |
13315 | #define MOUSE_WHEEL 1 |
13100 | _ACEOF |
13316 | _ACEOF |
… | |
… | |
13105 | cat >>confdefs.h <<\_ACEOF |
13321 | cat >>confdefs.h <<\_ACEOF |
13106 | #define MOUSE_SLIP_WHEELING 1 |
13322 | #define MOUSE_SLIP_WHEELING 1 |
13107 | _ACEOF |
13323 | _ACEOF |
13108 | |
13324 | |
13109 | fi |
13325 | fi |
13110 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
13111 | |
|
|
13112 | cat >>confdefs.h <<\_ACEOF |
|
|
13113 | #define XPM_BACKGROUND 1 |
|
|
13114 | _ACEOF |
|
|
13115 | |
|
|
13116 | fi |
|
|
13117 | |
|
|
13118 | if test x$support_afterimage = xyes; then |
13326 | if test x$support_afterimage = xyes; then |
13119 | |
13327 | |
13120 | cat >>confdefs.h <<\_ACEOF |
13328 | cat >>confdefs.h <<\_ACEOF |
13121 | #define HAVE_AFTERIMAGE 1 |
13329 | #define HAVE_AFTERIMAGE 1 |
|
|
13330 | _ACEOF |
|
|
13331 | |
|
|
13332 | |
|
|
13333 | cat >>confdefs.h <<\_ACEOF |
|
|
13334 | #define BG_IMAGE_FROM_FILE 1 |
13122 | _ACEOF |
13335 | _ACEOF |
13123 | |
13336 | |
13124 | fi |
13337 | fi |
13125 | |
13338 | |
13126 | |
13339 | |
… | |
… | |
13398 | |
13611 | |
13399 | |
13612 | |
13400 | |
13613 | |
13401 | |
13614 | |
13402 | |
13615 | |
13403 | |
|
|
13404 | if test x$support_perl = xyes; then |
|
|
13405 | support_frills=yes |
|
|
13406 | fi |
|
|
13407 | |
|
|
13408 | if test x$support_frills = xyes; then |
|
|
13409 | |
|
|
13410 | cat >>confdefs.h <<\_ACEOF |
|
|
13411 | #define ENABLE_FRILLS 1 |
|
|
13412 | _ACEOF |
|
|
13413 | |
|
|
13414 | fi |
|
|
13415 | |
13616 | |
13416 | |
13617 | |
13417 | |
13618 | |
13418 | |
13619 | |
13419 | |
13620 | |
… | |
… | |
14195 | GREP!$GREP$ac_delim |
14396 | GREP!$GREP$ac_delim |
14196 | EGREP!$EGREP$ac_delim |
14397 | EGREP!$EGREP$ac_delim |
14197 | LINKER!$LINKER$ac_delim |
14398 | LINKER!$LINKER$ac_delim |
14198 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
14399 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
14199 | RXVTNAME!$RXVTNAME$ac_delim |
14400 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
14401 | CXXCPP!$CXXCPP$ac_delim |
14200 | TIC!$TIC$ac_delim |
14402 | TIC!$TIC$ac_delim |
14201 | XMKMF!$XMKMF$ac_delim |
14403 | XMKMF!$XMKMF$ac_delim |
14202 | CXXCPP!$CXXCPP$ac_delim |
|
|
14203 | X_CFLAGS!$X_CFLAGS$ac_delim |
14404 | X_CFLAGS!$X_CFLAGS$ac_delim |
14204 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14405 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14205 | X_LIBS!$X_LIBS$ac_delim |
14406 | X_LIBS!$X_LIBS$ac_delim |
14206 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14407 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14207 | afterimage_config!$afterimage_config$ac_delim |
14408 | afterimage_config!$afterimage_config$ac_delim |
14208 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
|
|
14209 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14210 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14211 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
14409 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
14212 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
14410 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
14213 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
14411 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
14214 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
14412 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
14215 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
14413 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
… | |
… | |
14224 | PERL_O!$PERL_O$ac_delim |
14422 | PERL_O!$PERL_O$ac_delim |
14225 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14423 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14226 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14424 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14227 | include_stdint_h!$include_stdint_h$ac_delim |
14425 | include_stdint_h!$include_stdint_h$ac_delim |
14228 | include_stdarg_h!$include_stdarg_h$ac_delim |
14426 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14427 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14428 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14429 | include_string_h!$include_string_h$ac_delim |
14229 | _ACEOF |
14430 | _ACEOF |
14230 | |
14431 | |
14231 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
14432 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
14232 | break |
14433 | break |
14233 | elif $ac_last_try; then |
14434 | elif $ac_last_try; then |
… | |
… | |
14265 | |
14466 | |
14266 | |
14467 | |
14267 | ac_delim='%!_!# ' |
14468 | ac_delim='%!_!# ' |
14268 | for ac_last_try in false false false false false :; do |
14469 | for ac_last_try in false false false false false :; do |
14269 | cat >conf$$subs.sed <<_ACEOF |
14470 | cat >conf$$subs.sed <<_ACEOF |
14270 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14271 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14272 | include_string_h!$include_string_h$ac_delim |
|
|
14273 | include_fcntl_h!$include_fcntl_h$ac_delim |
14471 | include_fcntl_h!$include_fcntl_h$ac_delim |
14274 | include_util_h!$include_util_h$ac_delim |
14472 | include_util_h!$include_util_h$ac_delim |
14275 | include_assert_h!$include_assert_h$ac_delim |
14473 | include_assert_h!$include_assert_h$ac_delim |
14276 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
14474 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
14277 | include_sys_select_h!$include_sys_select_h$ac_delim |
14475 | include_sys_select_h!$include_sys_select_h$ac_delim |
… | |
… | |
14280 | include_time_h!$include_time_h$ac_delim |
14478 | include_time_h!$include_time_h$ac_delim |
14281 | LIBOBJS!$LIBOBJS$ac_delim |
14479 | LIBOBJS!$LIBOBJS$ac_delim |
14282 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14480 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14283 | _ACEOF |
14481 | _ACEOF |
14284 | |
14482 | |
14285 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then |
14483 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
14286 | break |
14484 | break |
14287 | elif $ac_last_try; then |
14485 | elif $ac_last_try; then |
14288 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14486 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14289 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14487 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14290 | { (exit 1); exit 1; }; } |
14488 | { (exit 1); exit 1; }; } |
… | |
… | |
14719 | Install path: ${prefix}/bin |
14917 | Install path: ${prefix}/bin |
14720 | Compiler: $CXX |
14918 | Compiler: $CXX |
14721 | Compiler flags: $CXXFLAGS |
14919 | Compiler flags: $CXXFLAGS |
14722 | Linker: $LINKER" |
14920 | Linker: $LINKER" |
14723 | |
14921 | |
14724 | if test x$support_xpm = xyes; then |
|
|
14725 | echo " Xpm library: $XPM_LIBS" |
|
|
14726 | fi |
|
|
14727 | |
|
|
14728 | if test x$support_afterimage = xyes; then |
|
|
14729 | echo " AfterImage support: yes" |
|
|
14730 | fi |
|
|
14731 | |
|
|
14732 | |
|
|
14733 | if test x$term != x; then |
14922 | if test x$term != x; then |
14734 | echo " set TERM to: $term" |
14923 | echo " set TERM to: $term" |
14735 | fi |
14924 | fi |
14736 | if test x$terminfo != x; then |
14925 | if test x$terminfo != x; then |
14737 | echo " set TERMINFO to: $terminfo" |
14926 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14743 | fi |
14932 | fi |
14744 | echo |
14933 | echo |
14745 | echo " embedded perl: $support_perl" |
14934 | echo " embedded perl: $support_perl" |
14746 | echo " libafterimage: $support_afterimage" |
14935 | echo " libafterimage: $support_afterimage" |
14747 | echo |
14936 | echo |
14748 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
14749 | echo ".----------------------------------------------------------------." |
|
|
14750 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
14751 | echo ". XPM includes files and libraries could not be found. ." |
|
|
14752 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
14753 | echo ". to use them you should rerun configure with the ." |
|
|
14754 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
14755 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
14756 | echo ".----------------------------------------------------------------." |
|
|
14757 | fi |
|
|
14758 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14937 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14759 | echo ".----------------------------------------------------------------." |
14938 | echo ".----------------------------------------------------------------." |
14760 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14939 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14761 | echo ". functions could not be found. ." |
14940 | echo ". functions could not be found. ." |
14762 | echo ". XIM is now being DISABLED! ." |
14941 | echo ". XIM is now being DISABLED! ." |