Commit Graph

484 Commits

Author SHA1 Message Date
Todd C. Miller
4724e313e0 FreeBSD has libutil.h not util.h 2011-09-21 09:52:33 -04:00
Todd C. Miller
441abee4e8 Define _BSD_SOURCE on FreeBSD, OpenBSD and DragonflyBSD 2011-09-21 09:46:52 -04:00
Todd C. Miller
647e087cd3 Fix some square brackets in case statements that needed to be doubled
up.  While here, use $OSMAJOR when it makes sense.
2011-09-16 13:05:21 -04:00
Todd C. Miller
523492af52 Error message if user tries --with-CC 2011-09-16 09:04:58 -04:00
Todd C. Miller
ba331ebfb6 Check for -libmldap too when looking for ldap libs, which is the
Tivoli Directory Server client library.
2011-09-16 09:04:27 -04:00
Todd C. Miller
b3b268c3a4 Remove --with-CC option; it doesn't work correctly now that we use
libtool.  Users can get the same effect by setting the CC environment
variable when running configure.
2011-09-08 09:36:24 -04:00
Todd C. Miller
f730cb7873 Assume all modern systems support fstat(2). 2011-08-31 11:19:10 -04:00
Todd C. Miller
47af0fc2b8 Add configure test for missing errno declaration and only
declare it ourselves if it is missing.
2011-08-30 10:05:30 -04:00
Todd C. Miller
3e0e0fc385 Add -Wall and -Werror after all tests so they don't cause failures. 2011-08-29 14:49:10 -04:00
Todd C. Miller
e4956d22e1 Add --enable-werror configure option. 2011-08-23 10:15:28 -04:00
Todd C. Miller
64a57a2ee9 Use PAM by default on AIX 6 and higher. 2011-08-23 09:50:40 -04:00
Todd C. Miller
366cb19273 Add caching for gettext() checks. 2011-08-15 13:41:58 -04:00
Todd C. Miller
8f8738ff37 Better handling of libintl header and library mismatch. 2011-08-15 10:21:13 -04:00
Todd C. Miller
6b9d80b106 If dlopen is present but libtool doesn't find it, error out since it
probably means that libtool doesn't support the system.
2011-08-12 13:00:55 -04:00
Todd C. Miller
c8fb440848 Update to autoconf 2.68 and libtool 2.4 2011-08-11 14:25:01 -04:00
Todd C. Miller
f922678360 regen 2011-08-02 16:14:11 -04:00
Todd C. Miller
b124635b04 Instead of keeping separate groups and gids arrays, create struct
group_info and use it to store both, along with a count for each.
Cache group info on a per-user basis using getgrouplist() to get
the groups.  We no longer need special to special case the user or
list user for user_in_group() and thus no longer need to reset the
groups list when listing another user.
2011-07-20 11:58:45 -04:00
Todd C. Miller
ae34052542 Disable noexec for AIX < 5. LDR_PRELOAD is only available in AIX
5.3 and above.
2011-07-05 11:42:39 -04:00
Todd C. Miller
210e091d81 No longer need to specify LINGUAS in configure, "make install-nls"
now just installs all the .mo files it finds.
2011-06-18 13:11:27 -04:00
Todd C. Miller
b4a48510cd Only enable Solaris project support when setproject() is present in
libproject.
2011-06-10 15:28:58 -04:00
Todd C. Miller
0562e492aa FreeBSD no longer needs the main sudo binary to link with -lpam
now that plug-ins are loaded with RTLD_GLOBAL.
2011-06-06 11:02:52 -04:00
Todd C. Miller
707bad44d4 Add Finish translation from translationproject.org 2011-06-04 09:58:44 -04:00
Todd C. Miller
88cfbd51a5 Add support for --enable-nls[=location] 2011-05-29 14:33:18 -04:00
Todd C. Miller
97214c4485 Don't install .mo files if gettext was not found. 2011-05-28 09:18:46 -04:00
Todd C. Miller
47adbf8d33 Add simplified chinese translation 2011-05-27 07:54:52 -04:00
Todd C. Miller
c202c4e6d8 Add ukranian translation 2011-05-26 15:23:55 -04:00
Todd C. Miller
724b64e2ca Add missing "checking" message for gettext when using the cache. 2011-05-20 15:27:45 -04:00
Todd C. Miller
a05e963690 Add checks for nroff -c and -Tascii flags 2011-05-19 18:00:31 -04:00
Todd C. Miller
e2aef4f526 Add check for HP bundled C Compiler (which cannot create shared libs) 2011-05-19 17:34:38 -04:00
Todd C. Miller
3164f58143 Add scaffolding to update .po files and install .mo files. 2011-05-19 15:25:29 -04:00
Todd C. Miller
159d7e393a FreeBSD needs the main sudo executable to link with -lpam when
loading dynaic pam modules for some reason.
2011-05-18 11:18:44 -04:00
Todd C. Miller
c3a259f5ee Add calls to bindtextdomain() and textdomain()
Currently there are two domains, one for the sudo front-end and
one for the sudoers plugin and its associated utilities.
2011-05-17 16:38:40 -04:00
Todd C. Miller
19a81af6b0 Fix caching of libc gettext check. 2011-05-17 15:55:23 -04:00
Todd C. Miller
4ff045b266 Cache the status of the initial gettext() check. 2011-05-09 11:04:19 -04:00
Todd C. Miller
1994db70da Add --disable-nls flag and improve checks for gettext. 2011-05-09 10:58:52 -04:00
Todd C. Miller
411737cf25 When building with gcc on HP-UX, use -march=1.1 to produce portable
binaries on a pa-risc2 host.  Previously, the +Dportable option was
used for the HP-UX C compiler but gcc always produced native binaries.
2011-05-09 10:02:16 -04:00
Todd C. Miller
96b7c1f0f4 Add initial scaffolding to support localization via gettext() 2011-05-04 15:26:31 -04:00
Todd C. Miller
f1bea0a215 Need to do checks for krb5_verify_user, krb5_init_secure_context
and krb5_get_init_creds_opt_alloc regardless of whether or not
krb5-config is present.
2011-04-18 09:22:26 -04:00
Todd C. Miller
f52a6ccae4 Fix and document --with-plugindir; partially from Diego Elio Petteno 2011-04-06 12:02:49 -04:00
Todd C. Miller
233d90f2c3 Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
has this.  Adapted from a patch from Diego Elio Petteno
2011-04-06 10:08:57 -04:00
Todd C. Miller
dcc4ec8436 Fix warnings when -without-skey, --without-opie, --without-kerb4,
--without-kerb5 or --without-SecurID were specified.
2011-04-06 09:33:07 -04:00
Todd C. Miller
89cd8c2ff1 Back out the --with-libpath addition to SUDOERS_LDFLAGS since that
now include LDFLAGS in the sudoers Makefile.in.
Add missing settng of @LDFLAGS@ in plugin Makefile.in files.
2011-04-06 07:01:17 -04:00
Todd C. Miller
021e2a94b9 The --with-libpath option now adds to SUDOERS_LDFLAGS as well as LDFLAGS.
Remove old -static hack for HP-UX < 9.
Add LTLDFLAGS and set it to -Wc,-static-libgcc if not using GNU ld so we
    don't have a dependency on the shared libgcc in sudoers.so.
2011-04-05 09:42:59 -04:00
Todd C. Miller
2534672f62 We need to include OSDEFS in CFLAGS when doing the utmp/utmpx
structure checks for glibc which only has __e_termination visible
when _GNU_SOURCE is *not* defined.
2011-03-30 10:14:25 -04:00
Todd C. Miller
53d183c380 Add explicit check for struct utmpx.ut_exit.e_termination
and struct utmpx.ut_exit.__e_termination.  HP-UX uses the latter.
Only update ut_exit if we detect one or the other.
2011-03-29 09:10:40 -04:00
Todd C. Miller
13b9c7b17b Remove the hack to disable -g in CFLAGS unless --with-devel 2011-03-17 18:43:46 -04:00
Todd C. Miller
27dbaa8ded Change trunk version to 1.8.x to distinguish from real 1.8.0. 2011-03-16 16:07:33 -04:00
Todd C. Miller
2041d39db7 Add support for ut_exit 2011-03-15 16:18:33 -04:00
Todd C. Miller
5e6bc4017b Add check for _PATH_UTMP 2011-03-15 11:56:49 -04:00
Todd C. Miller
8653ccc809 Redo utmp handling. If no getutent()/getutxent() is available,
assume a ttyslot-based utmp.  If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.
2011-03-14 10:20:47 -04:00