source: freewrt/package/bind/patches/cross-compile.patch@ 9df7618

freewrt_1_0 freewrt_2_0
Last change on this file since 9df7618 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 5.8 KB
  • configure

    old new  
    2367523675# which provides some (all?) of the desired functions.
    2367623676#
    2367723677
    23678 echo "$as_me:$LINENO: checking for inet_ntop with IPv6 support" >&5
    23679 echo $ECHO_N "checking for inet_ntop with IPv6 support... $ECHO_C" >&6
    23680 if test "$cross_compiling" = yes; then
    23681   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
    23682 See \`config.log' for more details." >&5
    23683 echo "$as_me: error: cannot run test program while cross compiling
    23684 See \`config.log' for more details." >&2;}
    23685    { (exit 1); exit 1; }; }
    23686 else
    23687   cat >conftest.$ac_ext <<_ACEOF
    23688 /* confdefs.h.  */
    23689 _ACEOF
    23690 cat confdefs.h >>conftest.$ac_ext
    23691 cat >>conftest.$ac_ext <<_ACEOF
    23692 /* end confdefs.h.  */
    23693 
    23694 #include <sys/types.h>
    23695 #include <sys/socket.h>
    23696 #include <netinet/in.h>
    23697 #include <arpa/inet.h>
    23698 main() {
    23699 char a[16],b[64]; return(inet_ntop(AF_INET6, a, b, sizeof(b)) == (char*)0);}
    23700 _ACEOF
    23701 rm -f conftest$ac_exeext
    23702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23703   (eval $ac_link) 2>&5
    23704   ac_status=$?
    23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    23707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23708   (eval $ac_try) 2>&5
    23709   ac_status=$?
    23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23711   (exit $ac_status); }; }; then
    23712   echo "$as_me:$LINENO: result: yes" >&5
    23713 echo "${ECHO_T}yes" >&6
    23714         ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
    23715 else
    23716   echo "$as_me: program exited with status $ac_status" >&5
    23717 echo "$as_me: failed program was:" >&5
    23718 sed 's/^/| /' conftest.$ac_ext >&5
    23719 
    23720 ( exit $ac_status )
    23721 echo "$as_me:$LINENO: result: no" >&5
    23722 echo "${ECHO_T}no" >&6
    23723         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O"
    23724         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
    23725         ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1"
    23726 fi
    23727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    23728 fi
    23729 
    23730 
    23731 # On NetBSD 1.4.2 and maybe others, inet_pton() incorrectly accepts
    23732 # addresses with less than four octets, like "1.2.3".  Also leading
    23733 # zeros should also be rejected.
    23734 
    23735 echo "$as_me:$LINENO: checking for working inet_pton with IPv6 support" >&5
    23736 echo $ECHO_N "checking for working inet_pton with IPv6 support... $ECHO_C" >&6
    23737 if test "$cross_compiling" = yes; then
    23738   echo "$as_me:$LINENO: result: assuming target platform has working inet_pton" >&5
    23739 echo "${ECHO_T}assuming target platform has working inet_pton" >&6
    23740         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
    23741 else
    23742   cat >conftest.$ac_ext <<_ACEOF
    23743 /* confdefs.h.  */
    23744 _ACEOF
    23745 cat confdefs.h >>conftest.$ac_ext
    23746 cat >>conftest.$ac_ext <<_ACEOF
    23747 /* end confdefs.h.  */
    23748 
    23749 #include <sys/types.h>
    23750 #include <sys/socket.h>
    23751 #include <netinet/in.h>
    23752 #include <arpa/inet.h>
    23753 main() { char a[16]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
    23754                              inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 :
    23755                              (inet_pton(AF_INET6, "::1.2.3.4", a) != 1)); }
    23756 _ACEOF
    23757 rm -f conftest$ac_exeext
    23758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23759   (eval $ac_link) 2>&5
    23760   ac_status=$?
    23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    23763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23764   (eval $ac_try) 2>&5
    23765   ac_status=$?
    23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23767   (exit $ac_status); }; }; then
    23768   echo "$as_me:$LINENO: result: yes" >&5
    23769 echo "${ECHO_T}yes" >&6
    23770         ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
    23771 else
    23772   echo "$as_me: program exited with status $ac_status" >&5
    23773 echo "$as_me: failed program was:" >&5
    23774 sed 's/^/| /' conftest.$ac_ext >&5
    23775 
    23776 ( exit $ac_status )
    23777 echo "$as_me:$LINENO: result: no" >&5
    23778 echo "${ECHO_T}no" >&6
    23779         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O"
    23780         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
    23781         ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1"
    23782 fi
    23783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    23784 fi
    23785 
    23786 echo "$as_me:$LINENO: checking for inet_aton" >&5
    23787 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
    23788 cat >conftest.$ac_ext <<_ACEOF
    23789 /* confdefs.h.  */
    23790 _ACEOF
    23791 cat confdefs.h >>conftest.$ac_ext
    23792 cat >>conftest.$ac_ext <<_ACEOF
    23793 /* end confdefs.h.  */
    23794 
    23795 #include <sys/types.h>
    23796 #include <netinet/in.h>
    23797 #include <arpa/inet.h>
    23798 int
    23799 main ()
    23800 {
    23801 struct in_addr in; inet_aton(0, &in); return (0);
    23802   ;
    23803   return 0;
    23804 }
    23805 _ACEOF
    23806 rm -f conftest.$ac_objext conftest$ac_exeext
    23807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    23808   (eval $ac_link) 2>conftest.er1
    23809   ac_status=$?
    23810   grep -v '^ *+' conftest.er1 >conftest.err
    23811   rm -f conftest.er1
    23812   cat conftest.err >&5
    23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23814   (exit $ac_status); } &&
    23815          { ac_try='test -z "$ac_c_werror_flag"
    23816                          || test ! -s conftest.err'
    23817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23818   (eval $ac_try) 2>&5
    23819   ac_status=$?
    23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23821   (exit $ac_status); }; } &&
    23822          { ac_try='test -s conftest$ac_exeext'
    23823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23824   (eval $ac_try) 2>&5
    23825   ac_status=$?
    23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23827   (exit $ac_status); }; }; then
    23828   echo "$as_me:$LINENO: result: yes" >&5
    23829 echo "${ECHO_T}yes" >&6
    23830         ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
    23831 else
    23832   echo "$as_me: failed program was:" >&5
    23833 sed 's/^/| /' conftest.$ac_ext >&5
    23834 
    23835 echo "$as_me:$LINENO: result: no" >&5
    23836 echo "${ECHO_T}no" >&6
    23837         ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O"
    23838         ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
    23839         ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1"
    23840 fi
    23841 rm -f conftest.err conftest.$ac_objext \
    23842       conftest$ac_exeext conftest.$ac_ext
    23843 
    23844 
    23845 
    23846 
    2384723678
    2384823679#
    2384923680# Look for a 4.4BSD-style sa_len member in struct sockaddr.
Note: See TracBrowser for help on using the repository browser.