| 248 |
AC_SUBST(unsafe_path) |
AC_SUBST(unsafe_path) |
| 249 |
|
|
| 250 |
if test ${unsafe_path} = true; then |
if test ${unsafe_path} = true; then |
| 251 |
AC_DEFINE(WNN_ALLOW_UNSAFE_PATH) |
AC_DEFINE(WNN_ALLOW_UNSAFE_PATH, 1, |
| 252 |
|
[Define to allow writing to other than JSERVERDIR.]) |
| 253 |
fi |
fi |
| 254 |
|
|
| 255 |
dnl |
dnl |
| 267 |
;; |
;; |
| 268 |
*-*-bsdi*) |
*-*-bsdi*) |
| 269 |
;; |
;; |
| 270 |
|
*-*-darwin*) |
| 271 |
|
# Unfortunately, autoconf (at least 2.57) does not recognize |
| 272 |
|
# proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does |
| 273 |
|
# not work with pubdic+ processing.) So define here .... |
| 274 |
|
CPP=${CPP:-"gcc -E -no-cpp-precomp"} |
| 275 |
|
;; |
| 276 |
*-*-sunos*) |
*-*-sunos*) |
| 277 |
if test $GCC = yes; then |
if test $GCC = yes; then |
| 278 |
CCOPTIONS="-Dsun -Dsparc" |
CCOPTIONS="-Dsun -Dsparc" |
| 378 |
dnl |
dnl |
| 379 |
AC_TYPE_MODE_T |
AC_TYPE_MODE_T |
| 380 |
AC_HEADER_TIME |
AC_HEADER_TIME |
|
AC_CHECK_TYPE(time_t, long) |
|
| 381 |
|
|
| 382 |
dnl |
AC_CHECK_TYPES(time_t, AC_DEFINE(time_t, long, [Define missing time_t.])) |
| 383 |
dnl socklen_t は sys/socket.h や bits/socket.h で定義されているので、 |
AC_CHECK_TYPES(socklen_t, |
| 384 |
dnl AC_CHECK_TYPE では検出できない |
AC_DEFINE(socklen_t, int, [Define missing socklen_t.]), [INCLUDES = sys/socket.h]) |
|
dnl |
|
|
AC_MSG_CHECKING(for socklen_t) |
|
|
AC_EGREP_CPP(socklen_t, [#include <sys/socket.h>], AC_MSG_RESULT(yes), |
|
|
[ |
|
|
AC_DEFINE(socklen_t, int) |
|
|
AC_MSG_RESULT(no) |
|
|
]) |
|
|
dnl code below is for the same thing with autoconf 2.53 |
|
|
dnl AC_CHECK_TYPES(socklen_t,, |
|
|
dnl AC_DEFINE(socklen_t, int), |
|
|
dnl [INCLUDES = sys/socket.h]) |
|
| 385 |
|
|
| 386 |
dnl |
dnl |
| 387 |
dnl Checks for symbol |
dnl Checks for symbol |