guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile on Mac OS X


From: Michael Tuexen
Subject: Re: Guile on Mac OS X
Date: Mon, 5 Aug 2002 18:37:52 +0200

Rob,
see my comments below.
Best regards
Michael

On Montag, Aug 5, 2002, at 17:53 Europe/Berlin, Rob Browning wrote:

Michael Tuexen <address@hidden> writes:

GUILE_FUNC_DECLARED(strptime, time.h)
GUILE_FUNC_DECLARED(sleep, unistd.h)
GUILE_FUNC_DECLARED(usleep, unistd.h)

Looks like usleep and sleep are in unistd.h on (most?) platforms, but
on yours they're in time.h.

No, see the the following output (from an earlier e-mail):

OK.

What happens if you:

  1) create a tiny C file containing

       #include <unistd.h>
       int main(int argc, char *argv[]) { sleep(1); return 0; }

     and try to compile it with "gcc -Wall myfile.c"?
No warnings. The program is completely valid:
[Powerbook:~] tuexen% gcc -Wall test.c
[Powerbook:~] tuexen%


  2) Put an AC_EGREP_HEADER([sleep], [unistd.h]) followed by an "exit
     1" into your configure.in and then re-run autoconf, and then
     re-run configure?  After the exit, is there anything useful in
     the log? (may not be).
Well, there is simply no output.

  3) examine the configure script itself -- find the sleep or usleep
     test and see what it's doing.  Stick an "exit 1" or some echoes
     in there somewhere useful (if possible) so you can see what's
     going on.  I believe if you want to see the output of an echo,
     you will need to redirect it to fd 5 like this:

       echo "Howdy!" >&5

     This may allow you to see what gcc command it's running, and the
     contents of the relevant source file.
The code which performs the check is:

### Check for a declaration of FUNCTION in HEADERFILE; if it is
### not there, #define MISSING_FUNCTION_DECL.
AC_DEFUN(GUILE_FUNC_DECLARED, [
  AC_CACHE_CHECK(for $1 declaration, guile_cv_func_$1_declared,
    AC_EGREP_HEADER($1, $2,
                    guile_cv_func_$1_declared=yes,
                    guile_cv_func_$1_declared=no))
  if test [x$guile_cv_func_]$1[_declared] = xno; then
    AC_DEFINE([MISSING_]translit($1, [a-z], [A-Z])[_DECL])
  fi
])

GUILE_FUNC_DECLARED(strptime, time.h)
GUILE_FUNC_DECLARED(sleep, unistd.h)
GUILE_FUNC_DECLARED(usleep, unistd.h)

My problem is that it IS working for strptime but NOT for sleep and
usleep and I do not see the difference.

--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD


--
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]