ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/ptytty.m4
(Generate patch)

Comparing libptytty/ptytty.m4 (file contents):
Revision 1.6 by root, Wed Jan 25 21:17:46 2006 UTC vs.
Revision 1.10 by ayin, Wed Jun 13 17:30:54 2007 UTC

15 revoke \ 15 revoke \
16 _getpty \ 16 _getpty \
17 getpt \ 17 getpt \
18 posix_openpt \ 18 posix_openpt \
19 isastream \ 19 isastream \
20 setuid \
21 seteuid \
22 setreuid \
23 setresuid \
20) 24)
21 25
22have_clone=no 26have_clone=no
23 27
24AC_MSG_CHECKING(for /dev/ptym/clone) 28AC_MSG_CHECKING(for /dev/ptym/clone)
208dnl# -------------------------------------------------------------------------- 212dnl# --------------------------------------------------------------------------
209 213
210dnl# find utmp 214dnl# find utmp
211AC_CACHE_CHECK(where utmp is located, path_utmp, 215AC_CACHE_CHECK(where utmp is located, path_utmp,
212[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 216[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
217#include <stdlib.h>
213#include <sys/types.h> 218#include <sys/types.h>
214#include <utmp.h> 219#include <utmp.h>
215#include <errno.h> 220#include <errno.h>
216main() 221main()
217{ 222{
244 249
245dnl# find utmpx - if a utmp file exists at the same location and is more than 250dnl# find utmpx - if a utmp file exists at the same location and is more than
246dnl# a day newer, then dump the utmpx. People leave lots of junk around. 251dnl# a day newer, then dump the utmpx. People leave lots of junk around.
247AC_CACHE_CHECK(where utmpx is located, path_utmpx, 252AC_CACHE_CHECK(where utmpx is located, path_utmpx,
248[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 253[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
254#include <stdlib.h>
249#include <sys/types.h> 255#include <sys/types.h>
250#include <utmpx.h> 256#include <utmpx.h>
251#include <errno.h> 257#include <errno.h>
252#include <sys/stat.h> 258#include <sys/stat.h>
253#ifdef HAVE_STRING_H 259#ifdef HAVE_STRING_H
289dnl# -------------------------------------------------------------------------- 295dnl# --------------------------------------------------------------------------
290 296
291dnl# find wtmp 297dnl# find wtmp
292AC_CACHE_CHECK(where wtmp is located, path_wtmp, 298AC_CACHE_CHECK(where wtmp is located, path_wtmp,
293[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 299[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
300#include <stdlib.h>
294#include <sys/types.h> 301#include <sys/types.h>
295#ifdef HAVE_UTMP_H 302#ifdef HAVE_UTMP_H
296#include <utmp.h> 303#include <utmp.h>
297#endif 304#endif
298#include <errno.h> 305#include <errno.h>
299main() 306main()
300{ 307{
301 char **w, *wtmplist[] = { 308 char **w, *wtmplist[] = {
302 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 309 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
303 FILE *a, *f=fopen("conftestval", "w"); 310 FILE *a, *f=fopen("conftestval", "w");
304 if (!f) exit(1); 311 if (!f) exit(1);
305#ifdef WTMP_FILE 312#ifdef WTMP_FILE
306 fprintf(f, "%s\n", WTMP_FILE); 313 fprintf(f, "%s\n", WTMP_FILE);
307 exit(0); 314 exit(0);
325dnl# -------------------------------------------------------------------------- 332dnl# --------------------------------------------------------------------------
326 333
327dnl# find wtmpx 334dnl# find wtmpx
328AC_CACHE_CHECK(where wtmpx is located, path_wtmpx, 335AC_CACHE_CHECK(where wtmpx is located, path_wtmpx,
329[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 336[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
337#include <stdlib.h>
330#ifdef HAVE_UTMPX_H 338#ifdef HAVE_UTMPX_H
331#include <utmpx.h> 339#include <utmpx.h>
332#endif 340#endif
333#include <errno.h> 341#include <errno.h>
334main() 342main()
335{ 343{
336 char **w, *wtmplist[] = { 344 char **w, *wtmplist[] = {
337 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 345 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
338 FILE *a, *f=fopen("conftestval", "w"); 346 FILE *a, *f=fopen("conftestval", "w");
339 if (!f) exit(1); 347 if (!f) exit(1);
340#ifdef WTMPX_FILE 348#ifdef WTMPX_FILE
341 fprintf(f, "%s\n", WTMPX_FILE); 349 fprintf(f, "%s\n", WTMPX_FILE);
342 exit(0); 350 exit(0);
360dnl# -------------------------------------------------------------------------- 368dnl# --------------------------------------------------------------------------
361 369
362dnl# find lastlog 370dnl# find lastlog
363AC_CACHE_CHECK(where lastlog is located, path_lastlog, 371AC_CACHE_CHECK(where lastlog is located, path_lastlog,
364[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 372[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
373#include <stdlib.h>
365#include <sys/types.h> 374#include <sys/types.h>
366#ifdef HAVE_UTMPX_H 375#ifdef HAVE_UTMPX_H
367#include <utmpx.h> 376#include <utmpx.h>
368#elif defined(HAVE_UTMP_H) 377#elif defined(HAVE_UTMP_H)
369#include <utmp.h> 378#include <utmp.h>
403dnl# -------------------------------------------------------------------------- 412dnl# --------------------------------------------------------------------------
404 413
405dnl# find lastlogx 414dnl# find lastlogx
406AC_CACHE_CHECK(where lastlogx is located, path_lastlogx, 415AC_CACHE_CHECK(where lastlogx is located, path_lastlogx,
407[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 416[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
417#include <stdlib.h>
408#ifdef HAVE_UTMPX_H 418#ifdef HAVE_UTMPX_H
409#include <utmpx.h> 419#include <utmpx.h>
410#endif 420#endif
411#include <errno.h> 421#include <errno.h>
412main() 422main()
431 exit(0); 441 exit(0);
432}]])],[path_lastlogx=`cat conftestval`],[path_lastlogx=],[dnl 442}]])],[path_lastlogx=`cat conftestval`],[path_lastlogx=],[dnl
433 AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])]) 443 AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])])
434if test x$path_lastlogx != x; then 444if test x$path_lastlogx != x; then
435 AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$path_lastlogx", Define location of lastlogx) 445 AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$path_lastlogx", Define location of lastlogx)
436fi
437
438if test x$support_utmp != xyes; then
439 echo " utmp support: disabled"
440 echo
441else
442 echo " utmp support: enabled
443 utmp file: $path_utmp
444 utmpx file: $path_utmpx
445 wtmp file: $path_wtmp
446 wtmpx file: $path_wtmpx
447 lastlog file: $path_lastlog
448 lastlogx file: $path_lastlogx"
449fi 446fi
450]) 447])
451 448
452AC_DEFUN([SCM_RIGHTS_CHECK], 449AC_DEFUN([SCM_RIGHTS_CHECK],
453[ 450[

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines