flush
[m6w6/ext-psi] / m4 / stdlib.m4
index 4ac56358288608e757f89c3a4c69019462c89fda..4f2f7397fb9dfc7919cf58a1fca6fff6551e7598 100644 (file)
@@ -57,7 +57,11 @@ PSI_CHECK_STDLIB() {
        PSI_DECL(char *realpath, [(char *path, char *resolved)])
        PSI_DECL(unsigned short *seed48, [(unsigned short seed16v@<:@3@:>@)])
        PSI_DECL(int setenv, [(char *var)])
-       PSI_DECL(void setkey, [(char *key)])
+       
+       AC_SEARCH_LIBS(setkey, crypt, [
+               PSI_DECL(void setkey, [(char *key)])
+       ])
+       
        PSI_DECL(char *setstate, [(char *state)])
        PSI_DECL(void srand, [(unsigned seed)])
        PSI_DECL(void srand48, [(long seed)])
@@ -65,6 +69,7 @@ PSI_CHECK_STDLIB() {
        PSI_DECL(double strtod, [(char *nptr, char **endptr)])
        PSI_DECL(float strtof, [(char *nptr, char **endptr)])
        PSI_DECL(long strtol, [(char *nptr, char **endptr)])
+       PSI_DECL(long double strtold, [(const char *nptr, char **endptr)])
        PSI_DECL(unsigned long strtoul, [(char *nptr, char **endptr)])
        PSI_DECL(int system, [(char *command)])
        PSI_DECL(int unlockpt, [(int fd)])