tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Firefox 3 pkg: configure vs. configure.in
On Wed, Aug 06, 2008 at 03:12:50PM +0200, Martin Husemann wrote:
> latter). For some reason it does not seem to work for me (i.e. I get a
> configure
> that differs vastly from configure.orig, a lot more than patch-ab explains).
I double checked, and it explicitly does:
cd /usr/pkgobj/www/firefox3/work/mozilla && autoconf
so patch-ab is useless.
Anyway, attached is a fixed version that adds the missing stdlib.h includes -
no idea if this is the correct way to do autoconf-wise.
I noticed the problem because va_copy support was not detected at all and
compilation failed for me.
Martin
$NetBSD: patch-ab,v 1.1.1.1 2008/06/28 10:01:07 tnn Exp $
--- configure.orig 2008-06-27 15:41:02.000000000 +0200
+++ configure 2008-08-06 15:36:44.000000000 +0200
@@ -6124,7 +6124,7 @@
LDFLAGS=$_SAVE_LDFLAGS
;;
-*-freebsd*)
+*-freebsd* | *-dragonfly*)
if test `test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` !=
"elf"; then
DLL_SUFFIX=".so.1.0"
DSO_LDOPTS="-shared"
@@ -6138,6 +6138,9 @@
# MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive'
# MKSHLIB_UNFORCE_ALL=''
# fi
+ if test "$LIBRUNPATH"; then
+ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
+ fi
;;
*-hpux*)
@@ -6828,6 +6831,13 @@
if test "$LIBRUNPATH"; then
DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS"
fi
+
+ case "${target_cpu}" in
+ alpha*)
+ CFLAGS="$CFLAGS -mieee"
+ CXXFLAGS="$CXXFLAGS -mieee"
+ ;;
+ esac
;;
*-openvms*)
@@ -7411,6 +7421,7 @@
#line 7412 "configure"
#include "confdefs.h"
#include <ctype.h>
+#include <stdlib.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
@@ -10392,6 +10403,8 @@
cat > conftest.$ac_ext <<EOF
#line 10394 "configure"
#include "confdefs.h"
+#include <string.h>
+#include <stdlib.h>
main()
{
@@ -11042,6 +11055,7 @@
#include "confdefs.h"
#include <stdarg.h>
+ #include <stdlib.h>
void f (int i, ...) {
va_list args1, args2;
va_start (args1, i);
@@ -11083,6 +11097,7 @@
#include "confdefs.h"
#include <stdarg.h>
+ #include <stdlib.h>
void f (int i, ...) {
va_list args1, args2;
va_start (args1, i);
@@ -11124,6 +11139,7 @@
#include "confdefs.h"
#include <stdarg.h>
+ #includ <stdlib.h>
void f (int i, ...) {
va_list args1, args2;
va_start (args1, i);
@@ -16522,7 +16538,7 @@
fi
if test -z "$MOZ_OPTIMIZE_FLAGS"; then
- MOZ_OPTIMIZE_FLAGS="-O"
+ MOZ_OPTIMIZE_FLAGS=""
fi
# Check whether --enable-optimize or --disable-optimize was given.
@@ -17624,6 +17640,7 @@
echo "configure:17625: checking for gcc -pipe support" >&5
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
echo '#include <stdio.h>' > dummy-hello.c
+ echo '#include <stdlib.h>' > dummy-hello.c
echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c
${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
cat dummy-hello.s | ${AS_BIN} -o dummy-hello.S - 2>&5
@@ -19701,6 +19718,7 @@
cat > conftest.$ac_ext <<EOF
#line 19703 "configure"
#include "confdefs.h"
+#include <stdlib.h>
find_stack_direction ()
{
static char *addr = 0;
Home |
Main Index |
Thread Index |
Old Index