summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-19 15:25:58 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-19 15:25:58 +0000
commitc59803ea632ea6d944f7abd18f03907e59eaf5bb (patch)
tree51bead395dd89117d0009d527155e87d04c9c8d8
parent58e348aac8d248bb6bc556ed64a83378e7e91d8b (diff)
add sitefiles similar to the ones from openembedded
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5232 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/package.mk2
-rw-r--r--include/site/armeb-linux-uclibc19
-rw-r--r--include/site/i386-linux-uclibc19
-rw-r--r--include/site/linux-uclibc60
-rw-r--r--include/site/mips-linux-uclibc19
-rw-r--r--include/site/mipsel-linux-uclibc19
-rw-r--r--include/site/powerpc-linux-uclibc19
-rw-r--r--package/libpcap/Makefile1
8 files changed, 157 insertions, 1 deletions
diff --git a/include/package.mk b/include/package.mk
index b4f16e2d3a..2d4e703f3b 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -14,6 +14,8 @@ include $(INCLUDE_DIR)/prereq.mk
include $(INCLUDE_DIR)/host.mk
include $(INCLUDE_DIR)/unpack.mk
+export CONFIG_SITE:=$(INCLUDE_DIR)/site/$(REAL_GNU_TARGET_NAME)
+
define shvar
V_$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
endef
diff --git a/include/site/armeb-linux-uclibc b/include/site/armeb-linux-uclibc
new file mode 100644
index 0000000000..f78e9f2ead
--- /dev/null
+++ b/include/site/armeb-linux-uclibc
@@ -0,0 +1,19 @@
+#!/bin/sh
+ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
+ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}
+
+ac_cv_sizeof_int=4
+ac_cv_sizeof___int64=0
+ac_cv_sizeof_char=1
+ac_cv_sizeof_int=4
+ac_cv_sizeof_long=4
+ac_cv_sizeof_long_int=4
+ac_cv_sizeof_long_long=8
+ac_cv_sizeof_short=2
+ac_cv_sizeof_short_int=2
+ac_cv_sizeof_size_t=4
+ac_cv_sizeof_void_p=4
+ac_cv_sizeof_off_t=8
+
+. $TOPDIR/include/site/linux-uclibc
+
diff --git a/include/site/i386-linux-uclibc b/include/site/i386-linux-uclibc
new file mode 100644
index 0000000000..552f4b648d
--- /dev/null
+++ b/include/site/i386-linux-uclibc
@@ -0,0 +1,19 @@
+#!/bin/sh
+ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
+ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
+
+ac_cv_sizeof_int=4
+ac_cv_sizeof___int64=0
+ac_cv_sizeof_char=1
+ac_cv_sizeof_int=4
+ac_cv_sizeof_long=4
+ac_cv_sizeof_long_int=4
+ac_cv_sizeof_long_long=8
+ac_cv_sizeof_short=2
+ac_cv_sizeof_short_int=2
+ac_cv_sizeof_size_t=4
+ac_cv_sizeof_void_p=4
+ac_cv_sizeof_off_t=8
+
+. $TOPDIR/include/site/linux-uclibc
+
diff --git a/include/site/linux-uclibc b/include/site/linux-uclibc
new file mode 100644
index 0000000000..74ffdf0648
--- /dev/null
+++ b/include/site/linux-uclibc
@@ -0,0 +1,60 @@
+ac_atomic_add=yes
+ac_atomic_sub=yes
+ac_cv_c_gettext_without_libintl=yes
+ac_cv_c_long_double=no
+ac_cv_conv_longlong_to_float=yes
+ac_cv_func__exit=yes
+ac_cv_func_fchmod=yes
+ac_cv_func_getaddrinfo=yes
+ac_cv_func_getcwd=yes
+ac_cv_func_getdomainname=yes
+ac_cv_func_getpgrp_void=yes
+ac_cv_func_getpwuid_r=yes
+ac_cv_func_lstat_dereferences_slashed_symlink=yes
+ac_cv_func_lstat_empty_string_bug=no
+ac_cv_func_lstat=yes
+ac_cv_func_malloc_0_nonnull=yes
+ac_cv_func_malloc_works=yes
+ac_cv_func_memcmp_clean=yes
+ac_cv_func_memcmp_working=yes
+ac_cv_func_posix_getpwuid_r=yes
+ac_cv_func_pthread_key_delete=yes
+ac_cv_func_realloc_0_nonnull=yes
+ac_cv_func_realloc_works=yes
+ac_cv_func_rename=yes
+ac_cv_func_setlocale=yes
+ac_cv_func_setpgrp_void=yes
+ac_cv_func_setresuid=no
+ac_cv_func_setvbuf_reversed=no
+ac_cv_func_stat_empty_string_bug=no
+ac_cv_func_stat_ignores_trailing_slash=no
+ac_cv_func_strerror=yes
+ac_cv_func_strftime=yes
+ac_cv_func_utimes=yes
+ac_cv_func___va_copy=no
+ac_cv_func_vsnprintf=yes
+ac_cv_have_accrights_in_msghdr=no
+ac_cv_have_broken_snprintf=no
+ac_cv_have_broken_snprintf=np
+ac_cv_have_control_in_msghdr=yes
+ac_cv_have_decl_sys_siglist=yes
+ac_cv_have_openpty_ctty_bug=no
+ac_cv_have_openpty_ctty_bug=yes
+ac_cv_have_space_d_name_in_struct_dirent=yes
+ac_cv_header_netinet_sctp_h=no
+ac_cv_header_netinet_sctp_uio_h=no
+ac_cv_int64_t=no
+ac_cv_lbl_unaligned_fail=no
+ac_cv_linux_kernel_pppoe=yes
+ac_cv_linux_vers=2
+ac_cv_pack_bitfields_reversed=yes
+ac_cv_regexec_segfault_emptystr=no
+ac_cv_sctp=no
+ac_cv_sys_restartable_syscalls=yes
+ac_cv_time_r_type=POSIX
+ac_cv_uchar=no
+ac_cv_uint=yes
+ac_cv_ulong=yes
+ac_cv_ushort=yes
+ac_cv_va_copy=no
+ac_cv_va_val_copy=yes
diff --git a/include/site/mips-linux-uclibc b/include/site/mips-linux-uclibc
new file mode 100644
index 0000000000..f78e9f2ead
--- /dev/null
+++ b/include/site/mips-linux-uclibc
@@ -0,0 +1,19 @@
+#!/bin/sh
+ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
+ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}
+
+ac_cv_sizeof_int=4
+ac_cv_sizeof___int64=0
+ac_cv_sizeof_char=1
+ac_cv_sizeof_int=4
+ac_cv_sizeof_long=4
+ac_cv_sizeof_long_int=4
+ac_cv_sizeof_long_long=8
+ac_cv_sizeof_short=2
+ac_cv_sizeof_short_int=2
+ac_cv_sizeof_size_t=4
+ac_cv_sizeof_void_p=4
+ac_cv_sizeof_off_t=8
+
+. $TOPDIR/include/site/linux-uclibc
+
diff --git a/include/site/mipsel-linux-uclibc b/include/site/mipsel-linux-uclibc
new file mode 100644
index 0000000000..552f4b648d
--- /dev/null
+++ b/include/site/mipsel-linux-uclibc
@@ -0,0 +1,19 @@
+#!/bin/sh
+ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
+ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
+
+ac_cv_sizeof_int=4
+ac_cv_sizeof___int64=0
+ac_cv_sizeof_char=1
+ac_cv_sizeof_int=4
+ac_cv_sizeof_long=4
+ac_cv_sizeof_long_int=4
+ac_cv_sizeof_long_long=8
+ac_cv_sizeof_short=2
+ac_cv_sizeof_short_int=2
+ac_cv_sizeof_size_t=4
+ac_cv_sizeof_void_p=4
+ac_cv_sizeof_off_t=8
+
+. $TOPDIR/include/site/linux-uclibc
+
diff --git a/include/site/powerpc-linux-uclibc b/include/site/powerpc-linux-uclibc
new file mode 100644
index 0000000000..f78e9f2ead
--- /dev/null
+++ b/include/site/powerpc-linux-uclibc
@@ -0,0 +1,19 @@
+#!/bin/sh
+ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
+ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}
+
+ac_cv_sizeof_int=4
+ac_cv_sizeof___int64=0
+ac_cv_sizeof_char=1
+ac_cv_sizeof_int=4
+ac_cv_sizeof_long=4
+ac_cv_sizeof_long_int=4
+ac_cv_sizeof_long_long=8
+ac_cv_sizeof_short=2
+ac_cv_sizeof_short_int=2
+ac_cv_sizeof_size_t=4
+ac_cv_sizeof_void_p=4
+ac_cv_sizeof_off_t=8
+
+. $TOPDIR/include/site/linux-uclibc
+
diff --git a/package/libpcap/Makefile b/package/libpcap/Makefile
index f8de02d559..93a090d3d6 100644
--- a/package/libpcap/Makefile
+++ b/package/libpcap/Makefile
@@ -38,7 +38,6 @@ define Build/Configure
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
- ac_cv_linux_vers= \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \