[3241] in Kerberos-V5-bugs
pending/986: config script references LDFLAGS before init?
daemon@ATHENA.MIT.EDU (Vangelis_Dempsey@playstation.sony.)
Wed Aug 29 17:10:04 2001
Resent-From: gnats@rt-11.mit.edu (GNATS Management)
Resent-To: gnats-admin@rt-11.mit.edu
Resent-Reply-To: krb5-bugs@MIT.EDU, Vangelis_Dempsey@playstation.sony.com
Message-Id: <OFCE961528.FEBC792A-ON88256AB7.00727F0E@playstation.sony.com>
Date: Wed, 29 Aug 2001 14:08:41 -0700
From: Vangelis_Dempsey@playstation.sony.com
To: krb5-bugs@mit.edu
>Number: 986
>Category: pending
>Synopsis: config script references LDFLAGS before init?
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Wed Aug 29 17:10:00 EDT 2001
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
Sorry, krb5-send-pr doesn't want to build for me yet.
src/configure (and all those below it, apparently) references $LDFLAGS
about 6 times before it is first initialized. As I have linker opts which
I need to pass on the command line via "--with-ldopts" before these tests
can succeed, the scripts look broken to me.
$ grep -n LDFLAGS configure
545:ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS
$LDFLAGS conftest.$ac_ext $LIBS 1>&5'
761:echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
works""... $ac_c" 1>&6
762:echo "configure:763: checking whether the C compiler ($CC $CFLAGS
$LDFLAGS) works" >&5
768:ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS
$LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796:ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS
$LDFLAGS conftest.$ac_ext $LIBS 1>&5'
803:echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)
is a cross-compiler""... $ac_c" 1>&6
804:echo "configure:805: checking whether the C compiler ($CC $CFLAGS
$LDFLAGS) is a cross-compiler" >&5
892: echo "$ac_t""LDFLAGS is $withval" 1>&6
893:LDFLAGS=$withval <----------- init does not
occur til down here?!
895: LDFLAGS= <----------- init does not occur
til down here?!
2249:old_LDFLAGS=$LDFLAGS
2267: LDFLAGS="$old_LDFLAGS $TCL_LD_FLAGS"
2298:LDFLAGS=$old_LDFLAGS
2485: krb5_save_LDFLAGS="$LDFLAGS"
2487: LDFLAGS="$LDFLAGS $TCL_LIBPATH"
2749: LDFLAGS="$krb5_save_LDFLAGS"
3241:s%@LDFLAGS@%$LDFLAGS%g
I'm guessing that the correct solution involves autoconf, configure.in, and
the aclocal.m4 macros? Unfortunately the configure script headers claim
autoconf 2.13 as their origin, and my GNU Autoconf 2.52 cant even reproduce
the same scripts (unless there's Autoconf command-line magic I need to know
now, but I see no mention in the readme.)
-Van