Re: issue with AC_CHECK_LIB...

2004-06-30 Thread Ossama Othman
[ AC_DEFINE([ACE_HAS_SHM_OPEN]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) You'll of course have to add the library you're testing for to $LIBS before you run the link-time test, and remove it if the test fails. HTH, -Os

Re: C++ libraries

2004-03-22 Thread Ossama Othman
_LINK_IFELSE in recent versions of autoconf. HTH, -Ossama -- Ossama Othman <[EMAIL PROTECTED]>

Re: Linking shared libraries with KCC

2003-05-29 Thread Ossama Othman
Hi, On Wed, 2003-05-28 at 06:18, David Svoboda wrote: > If I set > CXX="KCC" # KCC ... KAI compiler > CC="$CXX --c" > > then after running "AC_PROG_LIBTOOL" I get > > checking if libtool supports shared libraries... no > checking whether to build shared libraries... no

Re: AC_CHECK_FUNC(qsort) fails when C++ is test language

2003-03-14 Thread Ossama Othman
Hi, On Fri, Mar 14, 2003 at 10:29:06AM -0800, Ossama Othman wrote: > AC_INIT([FOO],[TEST],[],[]) > AC_PREREQ([2.57]) > AC_PROG_CXX > AC_LANG([C++]) > AC_CHECK_FUNC([qsort],[],[]) > AC_OUTPUT > > produces this output: > > $ ./configure > checking for g++..

AC_CHECK_FUNC(qsort) fails when C++ is test language

2003-03-14 Thread Ossama Othman
e error doesn't appear in the C case. I assume that similar errors will occur for other functions declared in . I can work around the problem by temporarily setting the test language to C, but I'd prefer not to have to do that. Any ideas? The full `config.log' file is attache

Re: HP-UX 11.0 and native CC and CXX

2002-10-30 Thread Ossama Othman
Hi Robert, On Wed, Oct 30, 2002 at 06:05:40PM -0500, Boehne, Robert wrote: > > Are there really any C++ compilers that don't support const and inline? I've never heard of any. Any that do not are probably really busted. -Ossama -- Ossama Othman <[EMAIL PROTECTED]&

Re: Check for a library with C++ code

2002-09-28 Thread Ossama Othman
e compiler. AFAICT, you'll have to write a custom test using something like AC_TRY_LINK. Make sure you set the test language to C++. HTH, -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: AC_TRY_RUN and cross-compiling (was: Re: ORBit 0.5.8 Cross-Compile problems...)

2002-04-01 Thread Ossama Othman
i.e. fallback on a compile/link-time test for the "action-if-cross-compiling" case. I'm sure there are other autoconf users out there besides me that have done similar. -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California

Re: AC_TRY_RUN and cross-compiling (was: Re: ORBit 0.5.8 Cross-Compile problems...)

2002-04-01 Thread Ossama Othman
Hi Dan, On Mon, Apr 01, 2002 at 09:02:12PM -0800, Dan Kegel wrote: > Ossama Othman wrote: > > That should certainly be feasible unless there are some bizarre > > platforms out there. In any case, this shouldn't be a problem if > > developers use a reasonable "acti

Re: AC_TRY_RUN and cross-compiling (was: Re: ORBit 0.5.8 Cross-Compile problems...)

2002-04-01 Thread Ossama Othman
Hi Dan, On Mon, Apr 01, 2002 at 11:38:27AM -0800, Dan Kegel wrote: > Ossama Othman wrote: > > I have to agree with Paul. Sometimes it's just not possible to rely > > on compile/link-time tests alone. > > That's ok if three things hold: > 1. configure.

Re: ORBit 0.5.8 Cross-Compile problems...

2002-04-01 Thread Ossama Othman
N that is correct both for self-hosted and for cross > development. > (Defaults that work for 'most' targets don't qualify.) I have to agree with Paul. Sometimes it's just not possible to rely on compile/link-time tests alone. -Ossama -- Ossama Othman <[EMAIL PROTECT

Re: AC_LIBTOOL_CXX

2001-08-09 Thread Ossama Othman
n't upgrade until somebody complaints that they can't > compile my program, *and* puts some work into testing my improvements. > I'm not holding my breadth. :-) Good luck. :-) -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: AC_LIBTOOL_CXX

2001-08-08 Thread Ossama Othman
use an old version libtool with a C++ compiler other than GNU C++. AC_LIBTOOL_CXX was needed in the MLB branch in the past. Now that MLB has been merged into head, I believe that it is no longer needed. -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: AC_LIBTOOL_CXX

2001-08-07 Thread Ossama Othman
On Tue, Aug 07, 2001 at 09:29:22PM -0700, Ossama Othman wrote: > Try libtool 1.4b-2. Sorry. No "-2" in there. -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: AC_LIBTOOL_CXX

2001-08-07 Thread Ossama Othman
autoconf or libtool. Try libtool 1.4b-2. BTW, sorry for not responding to your previous e-mail. I just back from being out of town. I'll get to it tomorrow. Time to sleep now. :-) -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: Meta list issue: subject prefixes

2000-09-28 Thread Ossama Othman
u.org mailing lists, how about switching to a stable version? Of course, Mailman may not be at fault at all, but it certainly does seem like things started going awry when the switch was made. -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California

Re: Meta list issue: subject prefixes

2000-09-21 Thread Ossama Othman
e list? I seem to be getting two copies of each e-mail sent from all of the GNU lists I'm subscribed to. -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B

Re: Meta list issue: subject prefixes

2000-09-21 Thread Ossama Othman
of > > Russ> incoming messages be turned off? > > > > It should be ok by now. > > I liked it... :-( As did I. :-( -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED A

Re: [Autoconf] Macro to test for pthreads?

2000-09-17 Thread Ossama Othman
On Sun, Sep 17, 2000 at 07:29:25PM -0700, Ossama Othman wrote: > Take a look at the thread detection macros we use for ACE. They are > fairly extensive, and should be able to detect drafts 4, 6, 7 and > standard POSIX threads implementations, in addition to Solaris' "U

Re: [Autoconf] Macro to test for pthreads?

2000-09-17 Thread Ossama Othman
"UNIX International" threads (which is of course, not pthreads). The macros are available at: http://ace.cs.wustl.edu/cvsweb/ace-latest.cgi/ACE_wrappers/m4/threads.m4 HTH, -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Ir

Re: How to determine PIC generation options

2000-09-06 Thread Ossama Othman
k of. My own C++ shared library problems prompted me to contribute to libtool multi-language branch to help stabilize it as quickly as possible. Hopefully someone else can give you another option, if libtool isn't suitable for you at this point in time. -Ossama -- Ossama Othman <[EMAIL PR

Re: How to determine PIC generation options

2000-09-06 Thread Ossama Othman
o. Automake does a great job > but only for GCC, not really useful for my project. I believe that the version of Automake currently in the CVS repository supports dependency generation for compilers other than gcc via the newly added `depcomp' script. I'm not sure when the next version

Re: Replacement for FUNC_SELECT_ARGTYPES

2000-07-12 Thread Ossama Othman
hat this could be fixed by removing the const from the fifth argument of the wrapper, but this isn't always an option since users may want semantics to match those of a const argument, i.e. they don't want their timeval to be modified. As such, I don't think the const-ness of the fif

Re: autoconf 2.13 question

2000-06-29 Thread Ossama Othman
_LIB implicitly uses LDFLAGS when running its test. Please see the message I posted yesterday regarding this issue. HTH, -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: autoconf 2.13 question

2000-06-27 Thread Ossama Othman
e'. If you don't have it check if you have it in libnsl. > > AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname)). Here's a more compact form: AC_SEARCH_LIBS(gethostbyname, nsl [,action-if-stuff, ,]) -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distrib

Re: Getting a "cannot run" message from ./configure

2000-06-10 Thread Ossama Othman
.e. pulling in the AC_CONFIG_AUX_DIR_DEFAULT but I haven't had any luck either. -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

mixed native/cross-compiled package howto?

2000-06-01 Thread Ossama Othman
he package? BTW, Akim and Paul, this is one example where I can see that it might be useful not to exclude detection of a native compiler if cross-compiling is enabled. :-) :-) TIA, -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California

Re: Why is "-g -O2" enabled by default for gcc/g++?

2000-05-22 Thread Ossama Othman
Hi Paul, On Mon, May 22, 2000 at 11:05:56PM -0400, Paul D. Smith wrote: > %% Ossama Othman <[EMAIL PROTECTED]> writes: > > oo> Yes, indeed. I don't reset CXXFLAGS in the Makefile at all. What > oo> I would like is a way to disable the automatically selected &

Re: Why is "-g -O2" enabled by default for gcc/g++?

2000-05-22 Thread Ossama Othman
Hi Assar, On Tue, May 23, 2000 at 04:49:29AM +0200, Assar Westerlund wrote: > Ossama Othman <[EMAIL PROTECTED]> writes: > > Would it be worthwhile to add a "--enable-debug" and a > > "--enable-optimize=level" set of configure script options? >

Re: Why is "-g -O2" enabled by default for gcc/g++?

2000-05-22 Thread Ossama Othman
Hi Earnie, On Mon, May 22, 2000 at 04:26:57PM -0700, Earnie Boyd wrote: > --- Ossama Othman <[EMAIL PROTECTED]> wrote: > -8<- > > itself a hack. What I feel is a hack is the fact that it must be used > > to disable the "-g -O2" that autoconf adds to the c

Re: Why is "-g -O2" enabled by default for gcc/g++?

2000-05-22 Thread Ossama Othman
Hi Paul, On Mon, May 22, 2000 at 05:44:44PM -0400, Paul D. Smith wrote: > %% Ossama Othman <[EMAIL PROTECTED]> writes: > > oo> I've had complaints from users about the fact that my configure script > oo> adds "-g -O2" to CXXFLAGS by default since th

Re: Why is "-g -O2" enabled by default for gcc/g++?

2000-05-22 Thread Ossama Othman
Hi Alexandre, On Mon, May 22, 2000 at 06:21:47PM -0300, Alexandre Oliva wrote: > On May 22, 2000, Ossama Othman <[EMAIL PROTECTED]> wrote: > > > The issue here is that the user doesn't appear to have a choice > > about the "-g -O2" flags. Is this c

Re: Why is "-g -O2" enabled by default for gcc/g++?

2000-05-22 Thread Ossama Othman
th of these flags without having to fake out the the configure script, but have them enabled by default? -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Why is "-g -O2" enabled by default for gcc/g++?

2000-05-22 Thread Ossama Othman
that's not the issue. The issue here is that the user doesn't appear to have a choice about the "-g -O2" flags. Is this correct? If so, why does autoconf add these? Shouldn't it be up to the package maintainer to decide whether these flags get added to the compiler f

Re: 45-cross-compilation

2000-05-17 Thread Ossama Othman
and I trust the maintainers. On Wed, May 17, 2000 at 11:07:51AM +0200, Akim Demaille wrote: > >>>>> "Ossama" == Ossama Othman <[EMAIL PROTECTED]> writes: > Ossama> However, this point is moot since the proposed Autoconf patch > Ossama> prevents "misma

Re: 45-cross-compilation

2000-05-17 Thread Ossama Othman
Hi Paul, On Tue, May 16, 2000 at 06:06:36PM -0400, Paul D. Smith wrote: > %% Ossama Othman <[EMAIL PROTECTED]> writes: > > oo> Before you read on, I'd just like to point that I do agree with your > oo> "(c)" alternative. So please keep that in mind

Re: 45-cross-compilation

2000-05-16 Thread Ossama Othman
a compiler can > be misinstalled on various systems could be provided. Right. > Anyone who is sophisticated enough to want to cross-compile is certainly > capable of reading the docs, and deserves to be thrashed with the > proverbial wet noodle if they don't do so. Hehe, yes indeed. :-) -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: 45-cross-compilation

2000-05-16 Thread Ossama Othman
e great work Akim! I'm really looking forward to the latest Autoconf! -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Object Computing Laboratory, Univ. of California at Irvine 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8

Re: Fix some tests to be g++ >= 2.95 safe

2000-03-02 Thread Ossama Othman
Hi, > * acspecific.m4 (AC_FUNC_MMAP): Make it c++ safe. > (AC_FUNC_ALLOCA): Likewise. Along these same lines, was my patch to make AC_RESTARTABLE_SYSCALLS C++ safe ever incorporated. No rush. I know that you guys are busy. :-) -Ossama -- Ossama Othman <[EMAIL

Re: Argh. config.guess breaks things

2000-02-28 Thread Ossama Othman
; been fixed in later versions? Any reason why AC_CANONICAL_HOST can't AC_REQUIRE([AC_PROG_CC])? It seems like that would solve the problem on autoconf's end. Of course, I haven't put much thought into this. :-) -Ossama -- Ossama Othman <[EMAIL PROTECTED]> Distributed Obje

Re: Cross-compilation considered harmful

2000-02-25 Thread Ossama Othman
s-compilation isn't enabled than the fact that both compilers weren't native could be interpreted as a fatal error. Explicitly enabling cross-compilation would perhaps convert that fatal error into some noticeable warning created by AC_MSG_WARN, for example, instead stopping the configure sc

Re: How to optionally test for a C++ compiler?

2000-02-15 Thread Ossama Othman
Hi Alexandre, On Tue, Feb 15, 2000 at 02:54:21PM -0200, Alexandre Oliva wrote: > On Feb 15, 2000, Ossama Othman <[EMAIL PROTECTED]> wrote: > > > Right, but I think I'm missing something. Are you saying we should > > use __cplusplus in the AC_PROG_CXX test program?

Re: How to optionally test for a C++ compiler?

2000-02-15 Thread Ossama Othman
Hi Alexandre, On Tue, Feb 15, 2000 at 02:41:27PM -0200, Alexandre Oliva wrote: > On Feb 15, 2000, Ossama Othman <[EMAIL PROTECTED]> wrote: > > Not really. I was making a pretty big assumption about the potential > > existence of a such a beast. :-) > > I'd

Re: How to optionally test for a C++ compiler?

2000-02-15 Thread Ossama Othman
Hi Alexandre, On Tue, Feb 15, 2000 at 11:10:40AM -0200, Alexandre Oliva wrote: > On Feb 12, 2000, Ossama Othman <[EMAIL PROTECTED]> wrote: > > > I think it's bad idea to check for bool and/or if __cplusplus is > > defined since some C compilers may actually accept t

Re: How to optionally test for a C++ compiler?

2000-02-14 Thread Ossama Othman
Hi Olly, On Tue, Feb 15, 2000 at 03:22:49AM +, Olly Betts wrote: > In message <[EMAIL PROTECTED]>, Ossama Othman writes: > >Something like the following should be a good smoke test: > > > > class Foo > > { > > public: > > Foo (vo

Re: How to optionally test for a C++ compiler?

2000-02-14 Thread Ossama Othman
te why? "aCC" and "CC" are both C++ compilers on HP-UX. "aCC" is the better C++ compiler of the two, as Morten pointed out. It certainly seems like a better idea to detect the better compiler before the bad one, hence the preference of "aCC" to "CC."

Re: How to optionally test for a C++ compiler?

2000-02-14 Thread Ossama Othman
" to "CC" (appears to be safe everywhere) Right. > * "cl" could be a lisp compiler on Unix - perhaps only check for it on > DOS and Windows Why is this a problem? If it's a lisp compiler than it should correctly fail. Isn't this okay? > That a