Mercurial > hg > octave-lyh
comparison configure.ac @ 10266:82db36545def
use gnulib gethostname module
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 04 Feb 2010 04:43:08 -0500 |
parents | 65b41bc71f09 |
children | 6a50aa2cdf00 |
comparison
equal
deleted
inserted
replaced
10265:8c583af2cf64 | 10266:82db36545def |
---|---|
1368 AC_SUBST(library_path_var) | 1368 AC_SUBST(library_path_var) |
1369 AC_SUBST(ldpreloadsep) | 1369 AC_SUBST(ldpreloadsep) |
1370 AC_SUBST(SCRIPTS_EXE_SUFFIX) | 1370 AC_SUBST(SCRIPTS_EXE_SUFFIX) |
1371 | 1371 |
1372 ### special checks for odd OS specific things. | 1372 ### special checks for odd OS specific things. |
1373 ### | 1373 |
1374 ### I am told that on some SCO systems, the only place to find some | |
1375 ### functions like gethostname and gettimeofday is in libsocket. | |
1376 | |
1377 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) | |
1378 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) | 1374 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
1379 | 1375 |
1380 NO_UNDEFINED_LDFLAG= | 1376 NO_UNDEFINED_LDFLAG= |
1381 case "$canonical_host_type" in | 1377 case "$canonical_host_type" in |
1382 *-*-cygwin*) | 1378 *-*-cygwin*) |
1383 AC_CHECK_LIB(wsock32, gethostname) | 1379 LIBS="$LIBS -lwsock32" |
1384 LIBS="$LIBS -lwsock32" | |
1385 ;; | 1380 ;; |
1386 *-*-mingw*) | 1381 *-*-mingw*) |
1387 if test "$have_msvc" = "yes"; then | 1382 if test "$have_msvc" = "yes"; then |
1388 AC_CHECK_LIB(dirent, opendir) | 1383 AC_CHECK_LIB(dirent, opendir) |
1389 LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -luser32 -lkernel32" | 1384 LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -luser32 -lkernel32" |