- sourced from http://marc.info/?l=quagga-dev&m=122470855231006&w=2
- configure.ac - pam module - we are searching for pam_misc.h also in pam/ - default location in OSX
- vtysh/vtysh_user.c - Added #ifdef and #include for pam on OSX.
- configure.ac - bsd linkdetect hack - On OSX we assume that bsdlinkdetect is not supported.
- OSX have tested ifm_status value but don't have ifi_link_state value in if_data struct.
|
|
case "$host" in |
530 | 530 | AC_CHECK_LIB(nsl, main) |
531 | 531 | CURSES=-lcurses |
532 | 532 | ;; |
| 533 | *-darwin*) |
| 534 | opsys=darwin |
| 535 | ;; |
533 | 536 | *-linux*) |
534 | 537 | opsys=gnu-linux |
535 | 538 | AC_DEFINE(GNU_LINUX,,GNU Linux) |
… |
… |
if test "$with_libpam" = "yes"; then |
604 | 604 | pam_conv_func="misc_conv" |
605 | 605 | ], |
606 | 606 | [], QUAGGA_INCLUDES) |
| 607 | AC_CHECK_HEADER([pam/pam_misc.h], |
| 608 | [AC_DEFINE(HAVE_PAM_MISC_H,,Have pam_misc.h) |
| 609 | AC_DEFINE(PAM_CONV_FUNC,misc_conv,Have misc_conv) |
| 610 | pam_conv_func="misc_conv" |
| 611 | ], |
| 612 | [], QUAGGA_INCLUDES) |
607 | 613 | AC_CHECK_HEADER([security/openpam.h], |
608 | 614 | [AC_DEFINE(HAVE_OPENPAM_H,,Have openpam.h) |
609 | 615 | AC_DEFINE(PAM_CONV_FUNC,openpam_ttyconv,Have openpam_ttyconv) |
… |
… |
AC_MSG_RESULT(no)) |
917 | 917 | dnl --------------------------------------------------------------- |
918 | 918 | dnl figure out how to check link-state |
919 | 919 | dnl --------------------------------------------------------------- |
| 920 | if test "$opsys" != "darwin"; then |
920 | 921 | AC_CHECK_HEADER([net/if.h], |
921 | 922 | [AC_CHECK_HEADER( [net/if_media.h], |
922 | 923 | [m4_define([LINK_DETECT_INCLUDES], |
… |
… |
AC_CHECK_HEADER([net/if.h], |
929 | 929 | [], |
930 | 930 | QUAGGA_INCLUDES)], |
931 | 931 | [], QUAGGA_INCLUDES ) |
| 932 | fi |
932 | 933 | |
933 | 934 | dnl ------------------------ |
934 | 935 | dnl TCP_MD5SIG socket option |