|
1 | 1 | # Macros that test various C library quirks
|
2 |
| -# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.1 2000/06/11 11:39:46 petere Exp $ |
| 2 | +# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.2 2000/09/27 15:17:52 petere Exp $ |
3 | 3 |
|
4 | 4 |
|
5 | 5 | # PGAC_VAR_INT_TIMEZONE
|
@@ -49,10 +49,28 @@ AC_DEFUN([PGAC_UNION_SEMUN],
|
49 | 49 | [pgac_cv_union_semun=yes],
|
50 | 50 | [pgac_cv_union_semun=no])])
|
51 | 51 | if test x"$pgac_cv_union_semun" = xyes ; then
|
52 |
| - AC_DEFINE(HAVE_UNION_SEMUN,, [Set to 1 if you have `union semun']) |
| 52 | + AC_DEFINE(HAVE_UNION_SEMUN, 1, [Set to 1 if you have `union semun']) |
53 | 53 | fi])# PGAC_UNION_SEMUN
|
54 | 54 |
|
55 | 55 |
|
| 56 | +# PGAC_STRUCT_SOCKADDR_UN |
| 57 | +# ----------------------- |
| 58 | +# If `struct sockaddr_un' exists, define HAVE_STRUCT_SOCKADDR_UN. If |
| 59 | +# it is missing then one could define it as { short int sun_family; |
| 60 | +# char sun_path[108]; }. (Requires test for <sys/un.h>!) |
| 61 | +AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN], |
| 62 | +[AC_CACHE_CHECK([for struct sockaddr_un], pgac_cv_struct_sockaddr_un, |
| 63 | +[AC_TRY_COMPILE([#ifdef HAVE_SYS_UN_H |
| 64 | +#include <sys/un.h> |
| 65 | +#endif], |
| 66 | + [struct sockaddr_un un;], |
| 67 | + [pgac_cv_struct_sockaddr_un=yes], |
| 68 | + [pgac_cv_struct_sockaddr_un=no])]) |
| 69 | +if test x"$pgac_cv_struct_sockaddr_un" = xyes; then |
| 70 | + AC_DEFINE(HAVE_STRUCT_SOCKADDR_UN, 1, [Set to 1 if you have `struct sockaddr_un']) |
| 71 | +fi])# PGAC_STRUCT_SOCKADDR_UN |
| 72 | + |
| 73 | + |
56 | 74 | # PGAC_FUNC_POSIX_SIGNALS
|
57 | 75 | # -----------------------
|
58 | 76 | # Check to see if the machine has the POSIX signal interface. Define
|
|
0 commit comments