lib/autoconf/libs.m4 from CVS

2002-01-03 Thread Albert Chin
y not just: AC_CHECK_FUNC(connect, , AC_CHECK_LIB(socket, connect, X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS", , $X_EXTRA_LIBS)) -- albert chin ([EMAIL PROTECTED])

Re: AC_SYS_LARGEFILE

2002-01-10 Thread Albert Chin
link, you get an unresolved reference to the symbol open? Using AC_SYS_LARGEFILE should be transparent to your program. -- albert chin ([EMAIL PROTECTED])

AC_PROG_SED selecting correct sed for config.status

2004-12-29 Thread Albert Chin
Is there a reason autoconf doesn't use AC_PROG_SED internally to select a more-appropriate sed command to use in config.status? Could we just AC_REQUIRE(AC_PROG_SED) in _AC_OUTPUT_CONFIG_STATUS and then use $SED throughout generation of config.status? -- albert chin ([EMAIL PROT

Re: AC_PROG_SED selecting correct sed for config.status

2004-12-29 Thread Albert Chin
On Wed, Dec 29, 2004 at 04:55:48PM +0100, Stepan Kasal wrote: > On Wed, Dec 29, 2004 at 09:39:18AM -0600, Albert Chin wrote: > > Is there a reason autoconf doesn't use AC_PROG_SED internally to > > select a more-appropriate sed command to use in config.status? > > &g

Re: AC_PROG_SED selecting correct sed for config.status

2004-12-29 Thread Albert Chin
On Wed, Dec 29, 2004 at 05:40:53PM +0100, Stepan Kasal wrote: > On Wed, Dec 29, 2004 at 10:21:09AM -0600, Albert Chin wrote: > > > Have you encountered any problem on a particular platform? > > > > Yes. When building kdevelop from kde-3.3.2 on Solaris 2.6, 7, > > sub

Re: AC_PROG_SED selecting correct sed for config.status

2004-12-29 Thread Albert Chin
on (i.e. default behaviour is not what a typical Solaris user might expect). > And now for something completely different: > > > Yep. I cannot AC_REQUIRE([AC_PROG_SED]) in a m4_define'd macro. > > If your approach wins,

Re: AC_PROG_SED selecting correct sed for config.status

2004-12-29 Thread Albert Chin
On Wed, Dec 29, 2004 at 05:04:35PM -0600, Albert Chin wrote: > On Wed, Dec 29, 2004 at 11:11:17PM +0100, Stepan Kasal wrote: > > And now for something completely different: > > > > > Yep. I cannot AC_REQUIRE([AC_PROG_SED]) in a m4_define'd macro. > > >

@LIBOBJ@ usage

2005-01-07 Thread Albert Chin
If a program has; 1. Makefile.in's in each directory 2. AC_CONFIG_LIBOBJ_DIR(lib) in the top-level configure.ac then how do subdirectory Makefile.in's make use of @[EMAIL PROTECTED] @LIBOBJ@ contains relative paths, rather than something looking like $(top_builddir)/lib/func.o.

Re: @LIBOBJ@ usage

2005-01-08 Thread Albert Chin
On Sat, Jan 08, 2005 at 01:01:30AM +0100, Alexandre Duret-Lutz wrote: > >>> "Albert" == Albert Chin <[EMAIL PROTECTED]> writes: > > Albert> If a program has; > Albert> 1. Makefile.in's in each directory > Albert> 2. AC_CONFIG_LIBOBJ_DIR(lib

Re: regarding autoconf

2005-01-11 Thread Albert Chin
orks just about everywhere, as long as you have Perl. You can find the source at: ftp://ftp.gnu.org/gnu/autoconf -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: multiline output variables.

2005-02-07 Thread Albert Chin
On Mon, Feb 07, 2005 at 03:55:49PM -0500, Dan Manthey wrote: > I instead just ask `test ${#ac_delim} -gt 1000', which gives six > iterations with the current set up. ${#} isn't portable. I think this is: _len=`expr "${ac_delim}" : ".*"

Re: Looking for definition of AC_TRY_COMPILER

2005-03-04 Thread Albert Chin
file so that autoconf doesn't croak? If you know your compiler works, why not just delete the AC_TRY_COMPILER line? Failing that, just AC_DEFUN it to nothing. -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org htt

Re: how to check callback prototypes?

2005-07-14 Thread Albert Chin
set_errcall_accept_dbe=no)]) > if test "$ac_cv_dbe_set_errcall_accept_dbe" = "yes"; then > AC_DEFINE(HAVE_DBE_SET_ERRCALL_ACCEPT_DBE,1, > [Define to 1 if DB_ENV->set_errcall() accepts DBE]) > fi How about testing if conftest.err is non-empt

Re: checking for specific versions of operating system

2005-08-23 Thread Albert Chin
kse") > > which "seems to work". Can you or anybody else with more experience > than me see any problems with it? Depends. Won't work on Tru64 because pthread_create is a #define. Some platforms have stub functions in libc so you don't need to -lpthread. Getting pth

Re: AC_CHECK_TYPE for socklen_t

2006-02-17 Thread Albert Chin
rtable to most unices)? See m4/socklen.m4 from the gnulib project. -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

AC_C_RESTRICT

2006-03-31 Thread Albert Chin
f restrict. Should AC_C_RESTRICT be updated to include a function call with restrict in the parameter list to catch the above? -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: AC_C_RESTRICT

2006-03-31 Thread Albert Chin
On Fri, Mar 31, 2006 at 02:25:51PM -0600, Albert Chin wrote: > Autoconf 2.59 chooses __restrict on HP-UX 11.x. Indeed, the following > works: > $ cat a.c > void > foo (int var) { > float * __restrict x; > } > > However, this fails: > $ cat a.c > void >

Re: AC_C_RESTRICT

2006-04-03 Thread Albert Chin
On Mon, Apr 03, 2006 at 06:55:30PM +0200, Ralf Wildenhues wrote: > Hi Albert, > > * Albert Chin wrote on Fri, Mar 31, 2006 at 10:40:14PM CEST: > > On Fri, Mar 31, 2006 at 02:25:51PM -0600, Albert Chin wrote: > > > Autoconf 2.59 chooses __restrict on HP-UX 11.x. >

Re: SunOS 4 support?

2006-05-28 Thread Albert Chin
> > > > The /bin/sh that comes with SunOS 4.1.4, when it processes a "." > > command, > > SunOS 4 is the one before SunOS 5 which was Solaris 2.5. No: http://www.science.uva.nl/pub/solaris/solaris2.html -- albert chin ([EMAIL PROTECTED]) __

Re: AC_PATH_XTRA and -rpath

2006-07-19 Thread Albert Chin
r/X11R6/lib though? -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: AC_PATH_XTRA and -rpath

2006-07-21 Thread Albert Chin
the latter, we have a problem. > > I used autoconf head with a simple configure.ac and Makefile.am, that I > wrote just for this test. It failed. The -R flag was added on a machine > that does not support -R. Can you post a tarball of this? I need to test on some more systems. -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: conftest files

2006-08-11 Thread Albert Chin
directory of the test. Why not create a shell script that wraps the compiler executable that removes these temporary files? Then, rebuild with: ./configure CC= ... -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: conftest files

2006-08-16 Thread Albert Chin
test$ac_exeext m4_ifval([$1], [conftest.$ac_ext])[]dnl > ])# _AC_LINK_IFELSE What's the 8 in ipa8 for? Compiler version? Maybe ipa? instead? -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: Variadic macro support

2006-08-24 Thread Albert Chin
efine my_debug_macro(...) some_debug_function(__FILE__, __LINE__, > __VA_ARGS__) glib has this in configure.in: # check for flavours of varargs macros AC_MSG_CHECKING(for ISO C99 varargs macros in C) ... -- albert chin ([EMAIL PROTECTED]) __

Re: Variadic macro support

2006-08-24 Thread Albert Chin
efine my_debug_macro(...) some_debug_function(__FILE__, __LINE__, > __VA_ARGS__) What nasty-gram are you getting. Seems to work fine with v7.0.0.6 of the compiler. -- albert chin ([EMAIL PROTECTED]) ___ Autoconf mailing list Autoconf@gnu.org http:

Re: libstdc++ on solaris / rpath / gnulib's havelib macros

2007-02-19 Thread Albert Chin
ther everyone...I figured it out: You can do what you want from within gcc. Just modify gcc so that when it links a program, it automatically adds the runtime path to the libstdc++.so library: http://gcc.gnu.org/ml/gcc/2006-06/msg00820.html -- albert chin ([EMAIL PROTECTED]) __

Re: libstdc++ on solaris / rpath / gnulib's havelib macros

2007-02-20 Thread Albert Chin
On Mon, Feb 19, 2007 at 11:08:40PM -0800, David Byron wrote: > On Monday, February 19, 2007 @ 8:31p, Albert Chin wrote: > > > On Fri, Feb 16, 2007 at 06:37:58PM -0800, David Byron wrote: > > > On Friday, February 16, 2007 @ 3:35p, David Byron wrote: > > &g

Re: AC_PROG_CC_STDC

2002-03-28 Thread Albert Chin
iler I know of that > needs a flag to grok ANSI code at all is HP-UX's. With HP-UX 11.00 and above, -Aa (dunnot about -Ae) is the default. -- albert chin ([EMAIL PROTECTED])

Re: solaris: -z defs

2002-03-28 Thread Albert Chin
aying "Use libtool". I have other linker errors if I don't do a > export LD=CC. You should be using the HEAD branch of libtool, what will become 1.5. It contains support for C++ and sets LD=CC. -- albert chin ([EMAIL PROTECTED])

AC_CHECK_FUNCS difference between 2.54 and 2.56

2002-11-29 Thread Albert Chin
/tmp/xlcW0Xytrya unlink: /tmp/xlcW1Xytryb unlink: /tmp/xlcW2Xytryc So, can we go back to 2.54 behaviour? -- albert chin ([EMAIL PROTECTED])

Re: AC_CHECK_FUNCS difference between 2.54 and 2.56

2002-12-02 Thread Albert Chin
On Sat, Nov 30, 2002 at 05:01:20PM +, Lars Hecking wrote: > Albert Chin writes: > > There seem to be problems with AC_CHECK_FUNCS on AIX with the IBM C > > compiler (5.0.2.6). With autoconf 2.54, AC_CHECK_FUNCS(chflags) > > outputs (b.c): > [...] > > The problem

HP-UX 10.20 breakage in 2.57

2002-12-22 Thread Albert Chin
Inconsistent for "gettimeofday". This error also occurs on HP-UX 11.00 and 11i. -- albert chin ([EMAIL PROTECTED])

Re: HP-UX 10.20 breakage in 2.57

2002-12-23 Thread Albert Chin
On Mon, Dec 23, 2002 at 12:06:26AM -0800, Paul Eggert wrote: > > Date: Sun, 22 Dec 2002 22:21:20 -0600 > > From: Albert Chin <[EMAIL PROTECTED]> > > > > Under, HP-UX 10.20, #include brings in which > > defines a prototype for gettimeofday(). > > H

Re: AC_PROG_CC and AC_PROG_LIBTOOL problem

2003-06-03 Thread Albert Chin
ly. There is a libtool mailing list: http://www.gnu.org/software/libtool/ -- albert chin ([EMAIL PROTECTED])

Re: HPUX 11.00 with aCC vs. autoconf 2.57 [#8108]

2003-06-24 Thread Albert Chin
a couple of years). Ostensibly to provide > > > a prototype for exit(), it actually is used to allow > > > glibc to tack a "throws" onto the exit() prototype. > > > > Thank you. > > > > Would it be reasonable to if/else it for gcc only? > &g

AC_C_INLINE and AIX C++ compiler

2003-06-24 Thread Albert Chin
be undeclared or ambiguous. ... Any way to change the #define to: #ifndef __cplusplus #define inline __inline #endif -- albert chin ([EMAIL PROTECTED])

Re: Using AC_C_INLINE blows up C++ tests

2003-06-26 Thread Albert Chin
've > has some joy from th following (and no description are in the AC_DEFINEs). > > AH_VERBATIM(inline, > [/* Define as `__inline' if that's what the C compiler calls it, or to nothing >if it is not supported. */ > #ifndef __cplusplus > #undef inline > #end

Re: Using AC_C_INLINE blows up C++ tests

2003-07-01 Thread Albert Chin
On Tue, Jul 01, 2003 at 09:56:59AM -0700, Paul Eggert wrote: > Albert Chin <[EMAIL PROTECTED]> writes: > > > How about the patch below. > > That patch (archived in > <http://mail.gnu.org/archive/html/autoconf/2003-06/msg00099.html>) > assumes that 'inl

Re: HPUX 11.00 with aCC vs. autoconf 2.57 [#8108]

2003-07-01 Thread Albert Chin
On Tue, Jul 01, 2003 at 09:31:24AM -0700, Paul Eggert wrote: > Albert Chin <[EMAIL PROTECTED]> writes: > > > How's this. I don't ifdef __GNUC__ as you mention glibc above > > > --- lib/autoconf/c.m4.orig Sun Dec 22 22:10:46 2002 > > +++ lib/a

Re: Poartble use of shared libraries when linking executables

2003-11-10 Thread Albert Chin
oconf 2.59. The solution is libtool. I'm sure the libtool list would be interested in any problems you find. -- albert chin ([EMAIL PROTECTED])

Re: system libraries that need -R/path/

2003-11-25 Thread Albert Chin
about -R. However, you might find this useful: http://mail.gnu.org/archive/html/autoconf/2002-05/msg00124.html It was mentioned recently on this list. -- albert chin ([EMAIL PROTECTED])

Re: system libraries that need -R/path/

2003-11-26 Thread Albert Chin
ibution. > > How about moving these macros into Autoconf now? I think libtool is the proper solution. If it's broken somehow, then it should be fixed. -- albert chin ([EMAIL PROTECTED])

Re: system libraries that need -R/path/

2003-11-28 Thread Albert Chin
nt > to use this for the next release of NTP. The proposed macro will fail on Tru64 UNIX, AIX, and HP-UX. This is due to the limits discussed at the end of Bruno's email. Do we want a macro that fails on these systems? -- albert chin ([EMAIL PROTECTED])

Re: Config.rpath vs. AC_CONFIG_AUX_DIR

2004-01-15 Thread Albert Chin
On Thu, Jan 15, 2004 at 12:27:16AM +0100, Alexandre Duret-Lutz wrote: > >>> "Dalibor" == Dalibor Topic <[EMAIL PROTECTED]> writes: > > IOW, config.rpath is not something that automake installs. It's from gettext. -- albert chin ([EMAIL PROTECTED])

Re: Building ncurses with libtool (32/64 bit)

2004-01-17 Thread Albert Chin
ROG_LIBTOOL to expand before the macro. Since there is > > none, it should expand within. > > If we're talking about libtool 1.5, then notice the first thing > AC_PROG_LIBTOOL does is an AC_REQUIRE of _AC_PROG_LIBTOOL. :-( So the fac that AC_PROG_LIBTOOL AC_REQUIRE's some

Re: Non-standard link paths

2004-01-29 Thread Albert Chin
e > whether LD_RUN_PATH/rpath is the right way to go, or if static linking > will be required or whatever. That doesn't help during the ./configure run. Bruno Haible (gettext maintainer) has a solution for what you want: http://mail.gnu.org/archive/html/autoconf/2002-05/msg00124.html -- albert chin ([EMAIL PROTECTED])

Bug in _AC_FEATURE_CHECK_LENGTH

2004-03-17 Thread Albert Chin
However, the 'break 2' in _AC_FEATURE_CHECK_LENGTH seems rather brittle. Looks like we need to get out of the loop without 'break', to avoid an assumption about how deeply nested we are. What should I do? Set a variable to exit the loop? -- albert chin ([EMAIL PROTECTED])

Re: [Autoconf] Macro to test for pthreads?

2000-09-20 Thread Albert Chin-A-Young
READ) is not proving useful due to not working on common > platforms (e.g. Solaris). Take a look at how OpenLDAP 2.0 does it (ftp.openldap.org). It should be an improvement to how things were done in the 1.2 release. -- albert chin ([EMAIL PROTECTED]) ___ A