gnulib-tool.py: Make --megatest behaviour more similar to shell impl.
[gnulib.git] / modules / gethostname
blob94151cd8b0c8bb5f47ac3aa21c85f1527fa79df5
1 Description:
2 gethostname() function: Return machine's hostname.
4 Files:
5 lib/gethostname.c
6 m4/gethostname.m4
7 lib/w32sock.h
9 Depends-on:
10 unistd
11 sys_socket      [test $HAVE_GETHOSTNAME = 0]
12 errno           [test $HAVE_GETHOSTNAME = 0]
13 sockets         [test $HAVE_GETHOSTNAME = 0]
14 msvc-nothrow    [test $HAVE_GETHOSTNAME = 0]
16 configure.ac:
17 gl_FUNC_GETHOSTNAME
18 gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0])
19 AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
20   gl_PREREQ_GETHOSTNAME
22 gl_UNISTD_MODULE_INDICATOR([gethostname])
24 Makefile.am:
25 if GL_COND_OBJ_GETHOSTNAME
26 lib_SOURCES += gethostname.c
27 endif
29 Include:
30 <unistd.h>
32 Link:
33 $(GETHOSTNAME_LIB)
35 License:
36 LGPLv2+
38 Maintainer:
39 all