problem with configure check for mkstemps()

Matthias Welwarsky matze at stud.fbi.fh-darmstadt.de
Thu Oct 3 15:59:10 BST 2002


On Thursday 03 October 2002 15:40, Matthias Welwarsky wrote:
> Hi,
>
> seems that currently the check for mkstemps() is not working. On my machine
> (SuSE 7.2) it fails to detect the existence of the function in libiberty.a,
> since there's also no prototype in stdlib.h.
>
> Is it wise to run the compile check with "-pedantic-errors"? That way it of
> course will not compile if the prototype is missing.

Ok, I've looked into it a little deeper: It's not the CXXFLAGS, it's simply 
the check not knowing about the existence of libiberty, and g++ does not seem 
to link it by default (gcc does?).

Any suggestions how to deal with this? I'm thinking of simply adding a 
AC_CHECK_LIB(iberty,mkstemps) to KDE_CHECK_MISC, what do you think?

regards,
	matze

diff -u -3 -p -r2.286 acinclude.m4.in
--- acinclude.m4.in     2002/10/03 13:42:38     2.286
+++ acinclude.m4.in     2002/10/03 14:56:14
@@ -726,6 +726,7 @@ support])
    AC_SUBST(X_EXTRA_LIBS)
    AC_CHECK_LIB(ucb, killpg, [LIBUCB="-lucb"]) dnl for Solaris2.4
    AC_SUBST(LIBUCB)
+   AC_CHECK_LIB(iberty,mkstemps) dnl ???

    case $host in  dnl this *is* LynxOS specific
    *-*-lynxos* )


-- 
Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at stud.fbi.fh-darmstadt.de

"all software sucks equally, but some software is more equal"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021003/389ecbe3/attachment.sig>


More information about the kde-core-devel mailing list