openwrt-packages/mail/greyfix/patches/100-ignore_cross_compile_te...

41 lines
1.2 KiB
Diff

--- a/configure 2017-03-08 20:12:00.720885949 +0200
+++ b/configure 2017-03-08 20:12:51.210722711 +0200
@@ -4190,37 +4190,6 @@
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking match between Berkeley DB header files and runtime" >&5
-$as_echo_n "checking match between Berkeley DB header files and runtime... " >&6; }
-if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <db.h>
-int
-main ()
-{
-int M, m; db_version(&M, &m, 0);
- return DB_VERSION_MAJOR != M || DB_VERSION_MINOR != m;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
- as_fn_error $? "Berkeley DB header file does not match the library file" "$LINENO" 5
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF