ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.11 by root, Fri Jan 20 16:00:38 2006 UTC vs.
Revision 1.14 by ayin, Sat Jan 21 00:09:06 2006 UTC

48fi 48fi
49AC_SUBST(LINKER,[$LINKER]) 49AC_SUBST(LINKER,[$LINKER])
50 50
51AC_LANG(C++) 51AC_LANG(C++)
52dnl# -------------------------------------------------------------------------- 52dnl# --------------------------------------------------------------------------
53dnl# Supply default CXXLAGS, if not specified by `CXXLAGS=flags ./configure' 53dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure'
54dnl# 54dnl#
55if test -z "$orig_CXXFLAGS"; then 55if test -z "$orig_CXXFLAGS"; then
56 if test x$GCC = xyes && test "x$GXX" = xyes; then 56 if test x$GCC = xyes && test "x$GXX" = xyes; then
57 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 57 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
58 AC_COMPILE_IFELSE([int i;], [], [CXXFLAGS="-g -O3"]) 58 AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [], [CXXFLAGS="-g -O3"])
59 else 59 else
60 CXXFLAGS="-O" 60 CXXFLAGS="-O"
61 fi 61 fi
62 CFLAGS="$CXXFLAGS" 62 CFLAGS="$CXXFLAGS"
63fi 63fi
531 sys/byteorder.h \ 531 sys/byteorder.h \
532 sys/ioctl.h \ 532 sys/ioctl.h \
533 sys/select.h \ 533 sys/select.h \
534 sys/sockio.h \ 534 sys/sockio.h \
535 sys/strredir.h \ 535 sys/strredir.h \
536 sys/stropts.h \ 536 sys/stropts.h \
537 sys/time.h \ 537 sys/time.h \
538 utmp.h \ 538 utmp.h \
539 utmpx.h \ 539 utmpx.h \
540 stdint.h \ 540 stdint.h \
541 pty.h \ 541 pty.h \
542 util.h \ 542 util.h \
543 libutil.h \ 543 libutil.h \
544 wchar.h \ 544 wchar.h \
545 cwchar \ 545 cwchar \
546 clocale \ 546 clocale \
547) 547)
548 548
549AC_HEADER_TIME 549AC_HEADER_TIME
550 550
551dnl# check to allow both <termios.h> and <sys/ioctl.h> 551dnl# check to allow both <termios.h> and <sys/ioctl.h>
626dnl AC_CHECK_SIZEOF(long, 4) 626dnl AC_CHECK_SIZEOF(long, 4)
627AC_CHECK_SIZEOF(long long, 8) 627AC_CHECK_SIZEOF(long long, 8)
628AC_CHECK_SIZEOF(int *, 4) 628AC_CHECK_SIZEOF(int *, 4)
629 629
630dnl# see usage below 630dnl# see usage below
631AC_DEFUN(RXVT_CHECK_SIZE, 631AC_DEFUN([RXVT_CHECK_SIZE],
632 [AC_CACHE_CHECK([for $2], $1, 632 [AC_CACHE_CHECK([for $2], $1,
633 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl 633 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl
634if test "$ac_cv_sizeof_char" -ge $3; then 634if test "$ac_cv_sizeof_char" -ge $3; then
635 $1="$4 char" 635 $1="$4 char"
636else 636else
1423AC_ARG_PROGRAM 1423AC_ARG_PROGRAM
1424 1424
1425dnl# test for "sun" or "__sun__" before include sys_ioctl 1425dnl# test for "sun" or "__sun__" before include sys_ioctl
1426 1426
1427dnl# revert HAVE_BLAH_H into a "#include <blah.h>" 1427dnl# revert HAVE_BLAH_H into a "#include <blah.h>"
1428AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl 1428AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl
1429[if test "$$3" = "$4" -o "$$5" = "$6"; then 1429[if test "$$3" = "$4" -o "$$5" = "$6"; then
1430 $1="#include <$2>" 1430 $1="#include <$2>"
1431else 1431else
1432 $1="/* #include <$2> */" 1432 $1="/* #include <$2> */"
1433fi dnl 1433fi dnl

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines