configure.in (127668) | configure.in (146773) |
---|---|
1dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.169.2.3 2004/03/28 21:04:48 fenner Exp $ (LBL) | 1dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.188 2005/03/27 23:16:08 guy Exp $ (LBL) |
2dnl 3dnl Copyright (c) 1994, 1995, 1996, 1997 4dnl The Regents of the University of California. All rights reserved. 5dnl 6dnl Process this file with autoconf to produce a configure script. 7dnl 8 | 2dnl 3dnl Copyright (c) 1994, 1995, 1996, 1997 4dnl The Regents of the University of California. All rights reserved. 5dnl 6dnl Process this file with autoconf to produce a configure script. 7dnl 8 |
9AC_REVISION($Revision: 1.169.2.3 $) | 9AC_REVISION($Revision: 1.188 $) |
10AC_PREREQ(2.50) 11AC_INIT(tcpdump.c) 12 13AC_CANONICAL_HOST 14 15AC_LBL_C_INIT(V_CCOPT, V_INCLS) 16AC_LBL_C_INLINE 17AC_C___ATTRIBUTE__ | 10AC_PREREQ(2.50) 11AC_INIT(tcpdump.c) 12 13AC_CANONICAL_HOST 14 15AC_LBL_C_INIT(V_CCOPT, V_INCLS) 16AC_LBL_C_INLINE 17AC_C___ATTRIBUTE__ |
18 19AC_CHECK_HEADERS(fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h) | 18AC_CHECK_HEADERS(fcntl.h rpc/rpcent.h netdnet/dnetdb.h) |
20AC_CHECK_HEADERS(netinet/if_ether.h, , , [#include <sys/types.h> 21#include <sys/socket.h>]) | 19AC_CHECK_HEADERS(netinet/if_ether.h, , , [#include <sys/types.h> 20#include <sys/socket.h>]) |
21if test "$ac_cv_header_netinet_if_ether_h" != yes; then 22 # 23 # The simple test didn't work. 24 # Do we need to include <net/if.h> first? 25 # Unset ac_cv_header_netinet_if_ether_h so we don't 26 # treat the previous failure as a cached value and 27 # suppress the next test. 28 # 29 AC_MSG_NOTICE([Rechecking with some additional includes]) 30 unset ac_cv_header_netinet_if_ether_h 31 AC_CHECK_HEADERS(netinet/if_ether.h, , , [#include <sys/types.h> 32#include <sys/socket.h> 33#include <netinet/in.h> 34struct mbuf; 35struct rtentry; 36#include <net/if.h>]) 37fi 38 |
|
22AC_HEADER_TIME 23 24case "$host_os" in 25 26linux*) 27 AC_MSG_CHECKING(Linux kernel version) 28 if test "$cross_compiling" = yes; then 29 AC_CACHE_VAL(ac_cv_linux_vers, --- 69 unchanged lines hidden (view full) --- 99 AC_WARN([The SMB printer may have exploitable buffer overflows!!!]) 100 AC_DEFINE(TCPDUMP_DO_SMB) 101 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 102 ;; 103*) AC_MSG_RESULT(no) 104 ;; 105esac 106 | 39AC_HEADER_TIME 40 41case "$host_os" in 42 43linux*) 44 AC_MSG_CHECKING(Linux kernel version) 45 if test "$cross_compiling" = yes; then 46 AC_CACHE_VAL(ac_cv_linux_vers, --- 69 unchanged lines hidden (view full) --- 116 AC_WARN([The SMB printer may have exploitable buffer overflows!!!]) 117 AC_DEFINE(TCPDUMP_DO_SMB) 118 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 119 ;; 120*) AC_MSG_RESULT(no) 121 ;; 122esac 123 |
124AC_ARG_WITH(user, [ --with-user=USERNAME drop privileges by default to USERNAME]) 125AC_MSG_CHECKING([whether to drop root privileges by default]) 126if test ! -z "$with_user" ; then 127 AC_DEFINE_UNQUOTED(WITH_USER, "$withval") 128 AC_MSG_RESULT(to \"$withval\") 129else 130 AC_MSG_RESULT(no) 131fi 132 133AC_ARG_WITH(chroot, [ --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY]) 134AC_MSG_CHECKING([whether to chroot]) 135if test ! -z "$with_chroot" ; then 136 AC_DEFINE_UNQUOTED(WITH_CHROOT, "$withval") 137 AC_MSG_RESULT(to \"$withval\") 138else 139 AC_MSG_RESULT(no) 140fi 141 |
|
107AC_MSG_CHECKING([whether to enable ipv6]) 108AC_ARG_ENABLE(ipv6, 109[ --enable-ipv6 enable ipv6 (with ipv4) support 110 --disable-ipv6 disable ipv6 support], 111[ case "$enableval" in 112yes) AC_MSG_RESULT(yes) 113 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 114 AC_DEFINE(INET6) --- 292 unchanged lines hidden (view full) --- 407 408dnl 409dnl check sizeof basic types. 410dnl They're very likely to be wrong for cross-compiling. 411AC_CHECK_SIZEOF(char, 1) 412AC_CHECK_SIZEOF(short, 2) 413AC_CHECK_SIZEOF(int, 4) 414AC_CHECK_SIZEOF(long, 4) | 142AC_MSG_CHECKING([whether to enable ipv6]) 143AC_ARG_ENABLE(ipv6, 144[ --enable-ipv6 enable ipv6 (with ipv4) support 145 --disable-ipv6 disable ipv6 support], 146[ case "$enableval" in 147yes) AC_MSG_RESULT(yes) 148 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC" 149 AC_DEFINE(INET6) --- 292 unchanged lines hidden (view full) --- 442 443dnl 444dnl check sizeof basic types. 445dnl They're very likely to be wrong for cross-compiling. 446AC_CHECK_SIZEOF(char, 1) 447AC_CHECK_SIZEOF(short, 2) 448AC_CHECK_SIZEOF(int, 4) 449AC_CHECK_SIZEOF(long, 4) |
450AC_CHECK_SIZEOF(long long, 8) |
|
415 416dnl 417dnl Checks for u_intXX_t 418dnl AC_CHECK_BITTYPES(ac_cv_bittypes) 419dnl if test "$ac_cv_bittypes" = no; then 420dnl missing_includes=yes 421dnl fi 422 --- 45 unchanged lines hidden (view full) --- 468if test "$ac_cv_res_state_ext" = no; then 469 missing_includes=yes 470fi 471 472dnl 473dnl Checks if res_state structure has nsort member. 474AC_STRUCT_RES_STATE(ac_cv_res_state) 475 | 451 452dnl 453dnl Checks for u_intXX_t 454dnl AC_CHECK_BITTYPES(ac_cv_bittypes) 455dnl if test "$ac_cv_bittypes" = no; then 456dnl missing_includes=yes 457dnl fi 458 --- 45 unchanged lines hidden (view full) --- 504if test "$ac_cv_res_state_ext" = no; then 505 missing_includes=yes 506fi 507 508dnl 509dnl Checks if res_state structure has nsort member. 510AC_STRUCT_RES_STATE(ac_cv_res_state) 511 |
476dnl 477dnl set additional include path if necessary 478if test "$missing_includes" = "yes"; then 479 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 480 V_INCLS="$V_INCLS -I\$(srcdir)/missing" 481fi | |
482 | 512 |
483 | |
484AC_REPLACE_FUNCS(vfprintf strcasecmp strlcat strlcpy strdup strsep) 485AC_CHECK_FUNCS(strftime) | 513AC_REPLACE_FUNCS(vfprintf strcasecmp strlcat strlcpy strdup strsep) 514AC_CHECK_FUNCS(strftime) |
486AC_CHECK_FUNCS(ether_ntohost, [ 487 AC_CACHE_CHECK(for buggy ether_ntohost, ac_cv_buggy_ether_ntohost, [ 488 AC_TRY_RUN([ 489 #include <netdb.h> 490 #include <sys/types.h> 491 #include <sys/param.h> 492 #include <sys/socket.h> | 515AC_CHECK_FUNCS(setlinebuf alarm) |
493 | 516 |
494 int 495 main(int argc, char **argv) 496 { 497 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 498 char name[MAXHOSTNAMELEN]; 499 500 ether_ntohost(name, (struct ether_addr *)ea); 501 exit(0); 502 } 503 ], [ac_cv_buggy_ether_ntohost=no], 504 [ac_cv_buggy_ether_ntohost=yes], 505 [ac_cv_buggy_ether_ntohost="not while cross-compiling"])]) 506 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 507 AC_DEFINE(USE_ETHER_NTOHOST) 508 fi 509]) 510AC_CHECK_FUNCS(setlinebuf) 511 | |
512needsnprintf=no 513AC_CHECK_FUNCS(vsnprintf snprintf,, 514 [needsnprintf=yes]) 515if test $needsnprintf = yes; then | 517needsnprintf=no 518AC_CHECK_FUNCS(vsnprintf snprintf,, 519 [needsnprintf=yes]) 520if test $needsnprintf = yes; then |
516 AC_LIBOBJ(snprintf.o) | 521 AC_LIBOBJ(snprintf) |
517fi 518 519AC_LBL_TYPE_SIGNAL 520 521AC_SEARCH_LIBS(dnet_htoa, dnet, AC_DEFINE(HAVE_DNET_HTOA)) 522 523AC_CHECK_LIB(rpc, main) dnl It's unclear why we might need -lrpc 524 | 522fi 523 524AC_LBL_TYPE_SIGNAL 525 526AC_SEARCH_LIBS(dnet_htoa, dnet, AC_DEFINE(HAVE_DNET_HTOA)) 527 528AC_CHECK_LIB(rpc, main) dnl It's unclear why we might need -lrpc 529 |
525dnl HP/UX may need -lnsl for getrpcbynumber. 526AC_SEARCH_LIBS(getrpcbynumber, nsl) | 530dnl Some platforms may need -lnsl for getrpcbynumber. 531AC_SEARCH_LIBS(getrpcbynumber, nsl, AC_DEFINE(HAVE_GETRPCBYNUMBER)) |
527 528dnl AC_CHECK_LIB(z, uncompress) 529dnl AC_CHECK_HEADERS(zlib.h) 530 531AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS) 532 533# 534# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate --- 10 unchanged lines hidden (view full) --- 545dnl AC_TRY_COMPILE(inet_ntop inet_pton inet_aton) 546AC_MSG_CHECKING(for inet_ntop) 547AC_TRY_LINK([#include <sys/types.h> 548#include <sys/socket.h> 549#include <netinet/in.h> 550#include <arpa/inet.h>], [char src[4], dst[128]; 551inet_ntop(AF_INET, src, dst, sizeof(dst));], 552 [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) | 532 533dnl AC_CHECK_LIB(z, uncompress) 534dnl AC_CHECK_HEADERS(zlib.h) 535 536AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS) 537 538# 539# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate --- 10 unchanged lines hidden (view full) --- 550dnl AC_TRY_COMPILE(inet_ntop inet_pton inet_aton) 551AC_MSG_CHECKING(for inet_ntop) 552AC_TRY_LINK([#include <sys/types.h> 553#include <sys/socket.h> 554#include <netinet/in.h> 555#include <arpa/inet.h>], [char src[4], dst[128]; 556inet_ntop(AF_INET, src, dst, sizeof(dst));], 557 [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) |
553 AC_LIBOBJ(inet_ntop.o)]) | 558 AC_LIBOBJ(inet_ntop)]) |
554AC_MSG_CHECKING(for inet_pton) 555AC_TRY_LINK([#include <sys/types.h> 556#include <sys/socket.h> 557#include <netinet/in.h> 558#include <arpa/inet.h>], [char src[128], dst[4]; 559inet_pton(AF_INET, src, dst);], 560 [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) | 559AC_MSG_CHECKING(for inet_pton) 560AC_TRY_LINK([#include <sys/types.h> 561#include <sys/socket.h> 562#include <netinet/in.h> 563#include <arpa/inet.h>], [char src[128], dst[4]; 564inet_pton(AF_INET, src, dst);], 565 [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) |
561 AC_LIBOBJ(inet_pton.o)]) | 566 AC_LIBOBJ(inet_pton)]) |
562AC_MSG_CHECKING(for inet_aton) 563AC_TRY_LINK([#include <sys/types.h> 564#include <netinet/in.h> 565#include <arpa/inet.h>], [char src[128]; 566struct in_addr dst; 567inet_aton(src, &dst);], 568 [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) | 567AC_MSG_CHECKING(for inet_aton) 568AC_TRY_LINK([#include <sys/types.h> 569#include <netinet/in.h> 570#include <arpa/inet.h>], [char src[128]; 571struct in_addr dst; 572inet_aton(src, &dst);], 573 [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) |
569 AC_LIBOBJ(inet_aton.o)]) | 574 AC_LIBOBJ(inet_aton)]) |
570 | 575 |
576# 577# Check for these after AC_LBL_LIBPCAP, for the same reason. 578# 579# You are in a twisty little maze of UN*Xes, all different. 580# Some might not have ether_ntohost(). 581# Some might have it, but not declare it in any header file. 582# Some might have it, but declare it in <netinet/if_ether.h>. 583# Some might have it, but declare it in <netinet/ether.h> 584# (And some might have it but document it as something declared in 585# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.) 586# 587# Before you is a C compiler. 588# 589AC_CHECK_FUNCS(ether_ntohost, [ 590 AC_CACHE_CHECK(for buggy ether_ntohost, ac_cv_buggy_ether_ntohost, [ 591 AC_TRY_RUN([ 592 #include <netdb.h> 593 #include <sys/types.h> 594 #include <sys/param.h> 595 #include <sys/socket.h> 596 597 int 598 main(int argc, char **argv) 599 { 600 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 601 char name[MAXHOSTNAMELEN]; 602 603 ether_ntohost(name, (struct ether_addr *)ea); 604 exit(0); 605 } 606 ], [ac_cv_buggy_ether_ntohost=no], 607 [ac_cv_buggy_ether_ntohost=yes], 608 [ac_cv_buggy_ether_ntohost="not while cross-compiling"])]) 609 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 610 AC_DEFINE(USE_ETHER_NTOHOST) 611 fi 612]) 613if test "$ac_cv_func_ether_ntohost" = yes -a \ 614 "$ac_cv_buggy_ether_ntohost" = "no"; then 615 # 616 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>? 617 # 618 if test "$ac_cv_header_netinet_if_ether_h" = yes; then 619 # 620 # Yes. Does it declare ether_ntohost()? 621 # 622 AC_CHECK_DECLS(ether_ntohost, 623 [ 624 AC_DEFINE(NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST,, 625 [Define to 1 if netinet/if_ether.h declares `ether_ntohost']) 626 ],, 627 [ 628#include <sys/types.h> 629#include <sys/socket.h> 630#include <netinet/in.h> 631struct mbuf; 632struct rtentry; 633#include <net/if.h> 634#include <netinet/if_ether.h> 635 ]) 636 fi 637 # 638 # Did that succeed? 639 # 640 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 641 # 642 # No, how about <netinet/ether.h>, as on Linux? 643 # 644 AC_CHECK_HEADERS(netinet/ether.h) 645 if test "$ac_cv_header_netinet_ether_h" = yes; then 646 # 647 # We have it - does it declare ether_ntohost()? 648 # Unset ac_cv_have_decl_ether_ntohost so we don't 649 # treat the previous failure as a cached value and 650 # suppress the next test. 651 # 652 unset ac_cv_have_decl_ether_ntohost 653 AC_CHECK_DECLS(ether_ntohost, 654 [ 655 AC_DEFINE(NETINET_ETHER_H_DECLARES_ETHER_NTOHOST,, 656 [Define to 1 if netinet/ether.h declares `ether_ntohost']) 657 ],, 658 [ 659#include <netinet/ether.h> 660 ]) 661 fi 662 fi 663fi 664 |
|
571dnl portability macros for getaddrinfo/getnameinfo 572dnl 573dnl Check for sa_len 574AC_CHECK_SA_LEN(ac_cv_sockaddr_has_sa_len) 575if test "$ac_cv_sockaddr_has_sa_len" = no; then 576 missing_includes=yes 577fi 578 579AC_CHECK_FUNCS(pcap_findalldevs pcap_dump_flush pcap_lib_version) 580if test $ac_cv_func_pcap_findalldevs = "yes" ; then | 665dnl portability macros for getaddrinfo/getnameinfo 666dnl 667dnl Check for sa_len 668AC_CHECK_SA_LEN(ac_cv_sockaddr_has_sa_len) 669if test "$ac_cv_sockaddr_has_sa_len" = no; then 670 missing_includes=yes 671fi 672 673AC_CHECK_FUNCS(pcap_findalldevs pcap_dump_flush pcap_lib_version) 674if test $ac_cv_func_pcap_findalldevs = "yes" ; then |
581dnl Check for MacOS X, which may ship pcap.h from 0.6 but libpcap may | 675dnl Check for Mac OS X, which may ship pcap.h from 0.6 but libpcap may |
582dnl be 0.8; this means that lib has pcap_findalldevs but header doesn't 583dnl have pcap_if_t. | 676dnl be 0.8; this means that lib has pcap_findalldevs but header doesn't 677dnl have pcap_if_t. |
678 savedcflags="$CFLAGS" 679 CFLAGS="$CFLAGS $V_INCLS" |
|
584 AC_CHECK_TYPES(pcap_if_t, , , [#include <pcap.h>]) | 680 AC_CHECK_TYPES(pcap_if_t, , , [#include <pcap.h>]) |
681 CFLAGS="$savedcflags" |
|
585fi | 682fi |
683 |
|
586if test $ac_cv_func_pcap_lib_version = "no" ; then 587 AC_MSG_CHECKING(whether pcap_version is defined by libpcap) 588 AC_TRY_LINK([], 589 [ | 684if test $ac_cv_func_pcap_lib_version = "no" ; then 685 AC_MSG_CHECKING(whether pcap_version is defined by libpcap) 686 AC_TRY_LINK([], 687 [ |
590char * 591return_pcap_version(void) 592{ | |
593 extern char pcap_version[]; 594 | 688 extern char pcap_version[]; 689 |
595 return pcap_version; 596} | 690 return (int)pcap_version; |
597 ], 598 ac_lbl_cv_pcap_version_defined=yes, 599 ac_lbl_cv_pcap_version_defined=no) 600 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 601 AC_MSG_RESULT(yes) 602 AC_DEFINE(HAVE_PCAP_VERSION) 603 else 604 AC_MSG_RESULT(no) 605 fi 606fi 607AC_MSG_CHECKING(whether pcap_debug is defined by libpcap) 608AC_TRY_LINK([], 609 [ | 691 ], 692 ac_lbl_cv_pcap_version_defined=yes, 693 ac_lbl_cv_pcap_version_defined=no) 694 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 695 AC_MSG_RESULT(yes) 696 AC_DEFINE(HAVE_PCAP_VERSION) 697 else 698 AC_MSG_RESULT(no) 699 fi 700fi 701AC_MSG_CHECKING(whether pcap_debug is defined by libpcap) 702AC_TRY_LINK([], 703 [ |
610int 611return_pcap_debug(void) 612{ | |
613 extern int pcap_debug; 614 615 return pcap_debug; | 704 extern int pcap_debug; 705 706 return pcap_debug; |
616} | |
617 ], 618 ac_lbl_cv_pcap_debug_defined=yes, 619 ac_lbl_cv_pcap_debug_defined=no) 620if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 621 AC_MSG_RESULT(yes) 622 AC_DEFINE(HAVE_PCAP_DEBUG) 623else 624 AC_MSG_RESULT(no) 625 # 626 # OK, what about "yydebug"? 627 # 628 AC_MSG_CHECKING(whether yydebug is defined by libpcap) 629 AC_TRY_LINK([], 630 [ | 707 ], 708 ac_lbl_cv_pcap_debug_defined=yes, 709 ac_lbl_cv_pcap_debug_defined=no) 710if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 711 AC_MSG_RESULT(yes) 712 AC_DEFINE(HAVE_PCAP_DEBUG) 713else 714 AC_MSG_RESULT(no) 715 # 716 # OK, what about "yydebug"? 717 # 718 AC_MSG_CHECKING(whether yydebug is defined by libpcap) 719 AC_TRY_LINK([], 720 [ |
631 int 632 return_yydebug(void) 633 { | |
634 extern int yydebug; 635 636 return yydebug; | 721 extern int yydebug; 722 723 return yydebug; |
637 } | |
638 ], 639 ac_lbl_cv_yydebug_defined=yes, 640 ac_lbl_cv_yydebug_defined=no) 641 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 642 AC_MSG_RESULT(yes) 643 AC_DEFINE(HAVE_YYDEBUG) 644 else 645 AC_MSG_RESULT(no) --- 30 unchanged lines hidden (view full) --- 676fi 677 678AC_LBL_CHECK_TYPE(int8_t, signed char) 679AC_LBL_CHECK_TYPE(u_int8_t, u_char) 680AC_LBL_CHECK_TYPE(int16_t, short) 681AC_LBL_CHECK_TYPE(u_int16_t, u_short) 682AC_LBL_CHECK_TYPE(int32_t, int) 683AC_LBL_CHECK_TYPE(u_int32_t, u_int) | 724 ], 725 ac_lbl_cv_yydebug_defined=yes, 726 ac_lbl_cv_yydebug_defined=no) 727 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 728 AC_MSG_RESULT(yes) 729 AC_DEFINE(HAVE_YYDEBUG) 730 else 731 AC_MSG_RESULT(no) --- 30 unchanged lines hidden (view full) --- 762fi 763 764AC_LBL_CHECK_TYPE(int8_t, signed char) 765AC_LBL_CHECK_TYPE(u_int8_t, u_char) 766AC_LBL_CHECK_TYPE(int16_t, short) 767AC_LBL_CHECK_TYPE(u_int16_t, u_short) 768AC_LBL_CHECK_TYPE(int32_t, int) 769AC_LBL_CHECK_TYPE(u_int32_t, u_int) |
770AC_LBL_CHECK_TYPE(int64_t, long long) 771AC_LBL_CHECK_TYPE(u_int64_t, unsigned long long) |
|
684 | 772 |
773# 774# We can't just check for <inttypes.h> - some systems have one that 775# doesn't define all the PRI[doxu]64 macros. 776# 777AC_CHECK_HEADERS(inttypes.h, 778 [ 779 # 780 # OK, we have inttypes.h, but does it define those macros? 781 # 782 AC_MSG_CHECKING([[whether inttypes.h defines the PRI[doxu]64 macros]]) 783 AC_COMPILE_IFELSE( 784 [ 785 AC_LANG_SOURCE( 786 [[ 787 #include <inttypes.h> 788 #include <stdio.h> 789 #include <sys/types.h> 790 791 main() 792 { 793 printf("%" PRId64 "\n", (u_int64_t)1); 794 printf("%" PRIo64 "\n", (u_int64_t)1); 795 printf("%" PRIx64 "\n", (u_int64_t)1); 796 printf("%" PRIu64 "\n", (u_int64_t)1); 797 } 798 ]]) 799 ], 800 [ 801 AC_MSG_RESULT(yes) 802 ac_lbl_inttypes_h_defines_formats=yes 803 ], 804 [ 805 AC_MSG_RESULT(no) 806 ac_lbl_inttypes_h_defines_formats=no 807 ]) 808 ], 809 [ 810 # 811 # We don't have inttypes.h, so it obviously can't define those 812 # macros. 813 # 814 ac_lbl_inttypes_h_defines_formats=no 815 ]) 816if test "$ac_lbl_inttypes_h_defines_formats" = yes; then 817 AC_DEFINE(INTTYPES_H_DEFINES_FORMATS) 818else 819 AC_LBL_CHECK_64BIT_FORMAT(ll, 820 [ 821 AC_LBL_CHECK_64BIT_FORMAT(L, 822 [ 823 AC_LBL_CHECK_64BIT_FORMAT(q, 824 [ 825 AC_MSG_ERROR([neither %llx nor %Lx nor %qx worked on a 64-bit integer]) 826 ]) 827 ]) 828 ]) 829fi 830 |
|
685AC_LBL_DEVEL(V_CCOPT) 686 687AC_LBL_SOCKADDR_SA_LEN 688 689AC_LBL_UNALIGNED_ACCESS 690 691AC_VAR_H_ERRNO 692 693AC_ARG_WITH(crypto, [ --without-crypto disable crypto support], 694 [], [ 695AC_MSG_CHECKING(for SSLeay) 696ac_cv_ssleay_path=no 697incdir=no | 831AC_LBL_DEVEL(V_CCOPT) 832 833AC_LBL_SOCKADDR_SA_LEN 834 835AC_LBL_UNALIGNED_ACCESS 836 837AC_VAR_H_ERRNO 838 839AC_ARG_WITH(crypto, [ --without-crypto disable crypto support], 840 [], [ 841AC_MSG_CHECKING(for SSLeay) 842ac_cv_ssleay_path=no 843incdir=no |
698for dir in /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do | 844 845Xprefix=`eval echo $prefix` 846 847for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do |
699 # 700 # XXX - is there a better way to check if a given library is 701 # in a given directory than checking each of the possible 702 # shared library suffixes? 703 # 704 # Are there any other suffixes we need to look for? Do we have to 705 # worry about ".so.{version}"? 706 # --- 20 unchanged lines hidden (view full) --- 727 V_INCLS="$V_INCLS $incdir" 728 LDFLAGS="-L$dir/lib $LDFLAGS" 729 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 730 LIBS="$LIBS -lRSAglue" 731 fi 732 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 733 LIBS="$LIBS -lrsaref" 734 fi | 848 # 849 # XXX - is there a better way to check if a given library is 850 # in a given directory than checking each of the possible 851 # shared library suffixes? 852 # 853 # Are there any other suffixes we need to look for? Do we have to 854 # worry about ".so.{version}"? 855 # --- 20 unchanged lines hidden (view full) --- 876 V_INCLS="$V_INCLS $incdir" 877 LDFLAGS="-L$dir/lib $LDFLAGS" 878 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then 879 LIBS="$LIBS -lRSAglue" 880 fi 881 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then 882 LIBS="$LIBS -lrsaref" 883 fi |
735 AC_CHECK_LIB(crypto, des_cbc_encrypt) | 884 AC_CHECK_LIB(crypto, DES_cbc_encrypt) |
736 737 CPPFLAGS="$CPPFLAGS $V_INCLS" 738 AC_CHECK_HEADERS(openssl/evp.h) 739fi 740]) 741 | 885 886 CPPFLAGS="$CPPFLAGS $V_INCLS" 887 AC_CHECK_HEADERS(openssl/evp.h) 888fi 889]) 890 |
891dnl 892dnl set additional include path if necessary 893if test "$missing_includes" = "yes"; then 894 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing" 895 V_INCLS="$V_INCLS -I\$(srcdir)/missing" 896fi 897 |
|
742AC_SUBST(V_CCOPT) 743AC_SUBST(V_DEFS) 744AC_SUBST(V_GROUP) 745AC_SUBST(V_INCLS) 746AC_SUBST(V_PCAPDEP) 747AC_SUBST(LOCALSRC) 748 749AC_PROG_INSTALL 750 751AC_CONFIG_HEADER(config.h) 752 753AC_OUTPUT_COMMANDS([if test -f .devel; then 754 echo timestamp > stamp-h 755 cat Makefile-devel-adds >> Makefile 756 make depend 757fi]) 758AC_OUTPUT(Makefile) 759exit 0 | 898AC_SUBST(V_CCOPT) 899AC_SUBST(V_DEFS) 900AC_SUBST(V_GROUP) 901AC_SUBST(V_INCLS) 902AC_SUBST(V_PCAPDEP) 903AC_SUBST(LOCALSRC) 904 905AC_PROG_INSTALL 906 907AC_CONFIG_HEADER(config.h) 908 909AC_OUTPUT_COMMANDS([if test -f .devel; then 910 echo timestamp > stamp-h 911 cat Makefile-devel-adds >> Makefile 912 make depend 913fi]) 914AC_OUTPUT(Makefile) 915exit 0 |