Commit Graph

134 Commits

Author SHA1 Message Date
Keegan McAllister 93325d3ef0 Include -fPIE when we check for $LD -pie
configure's linker flag check also compiles a C++ program.  g++ -pie informs
both the compiler and linker, but clang++ -Wl,-pie is only a linker flag, and
the linker will complain that the code hasn't been compiled as
position-independent.
2012-04-13 12:27:27 -04:00
Keegan McAllister 8c16ca8123 Try $LD -Wl,-pie if $LD -pie fails
clang on OS X wants the former.

c.f. http://bugs.ruby-lang.org/issues/5697
2012-04-13 12:27:27 -04:00
Keegan McAllister d2434d1a79 Check compiler support for -fno-default-inline and -pipe
clang was spewing warnings about the unrecognized -fno-default-inline.  (Oddly,
it warns only with -c, not when compiling directly to an executable.)  For
completeness we also check -pipe, even though clang is OK with that one.

It should be fine to omit either flag.  gcc -fno-default-inline drops the
implicit 'inline' annotation on functions defined inside a class scope, but
'inline' is only a hint anyway.  -fno-default-inline does not change linkage.
-pipe is merely a compile speed optimization.
2012-04-13 12:27:27 -04:00
Keegan McAllister 62b6137ff5 Grep for clang warnings when testing compiler flag support
There is no way to make clang's "argument unused" warning fatal.

Ideally the search string would also include 'clang: ' but this output might
depend on clang's argv[0].
2012-04-13 12:27:27 -04:00
Keegan McAllister ffd7332f8d Detect binary hardening flags supported by the compiler and linker 2012-04-13 12:25:09 -04:00
Keith Winstein 719e085f3e Bump version number 2012-04-11 03:37:09 -04:00
Anders Kaseorg 9cec566cd1 Find ncurses from pkg-config if possible, and prefer separate libtinfo
Recent ncurses can be configured --with-termlib, which splits out the
terminfo-level functions from libncurses into a separate libtinfo.
This allows us to avoid an unnecessary dependency on libncurses.  (We
already avoided this on distributions that link with -Wl,--as-needed.)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>

Closes #128 github pull request.
2012-04-11 02:47:55 -04:00
Keegan McAllister c6751cfb92 configure.ac: Fix protoc check
AC_MSG_ERROR inside the variable assignment doesn't work properly.  We get
output like

    checking for protoc... ./configure: line 4524: is: command not found
    no

and then the build continues (and fails) with PROTOC="".

Closes #132 github pull request.
2012-04-11 02:45:15 -04:00
Keith Winstein 4d9483bc83 Fix build when libutil.h exists but is deprecated 2012-04-07 20:23:59 -04:00
Keegan McAllister c354a69ee6 Test the Mosh crypto layer 2012-04-06 23:43:42 -04:00
Keegan McAllister fe34cb3809 Create src/tests 2012-04-06 23:43:42 -04:00
Keegan McAllister 3b61581bcd Make aligned allocation without posix_memalign more robust
Instead of guessing the right function to use, we malloc() 15 bytes more than
we need, and compute the aligned offset within.  The AlignedBuffer class takes
care of passing the original pointer to free().
2012-04-06 23:43:41 -04:00
Benjamin Kaduk 29539516e5 FreeBSD needs libutil.h for forkpty()
The header is not available everywhere, so only include it if it
is present.  (The extra include should be harmless on Linux by
inspection.)
2012-04-05 18:19:37 -04:00
Benjamin Kaduk 424e2b53e1 Allow <sys/endian.h> as well as <endian.h>
On FreeBSD, the header which defines htobe64() is the sys/ variant,
unlike Linux.
2012-04-05 18:19:37 -04:00
Keith Winstein ef96859498 Bump version to 1.1.3. 2012-04-03 12:41:41 -04:00
Keith Winstein 7e6356e887 Bump version to 1.1.2c 2012-04-02 19:08:59 -04:00
Keith Winstein 7542070b8f Bump version to 1.1.2b 2012-03-31 17:25:43 -04:00
Keith Winstein 519d1ee282 Bump version to 1.1.2a 2012-03-31 15:55:07 -04:00
Keith Winstein 9119fa1c7d Add warning and check for IUTF8 2012-03-31 15:07:28 -04:00
Keith Winstein 4f79778ca5 Add warning for C libraries that don't commit to Unicode wchar_t 2012-03-31 15:07:12 -04:00
Keith Winstein 594acf4168 Bump version to 1.1.2 2012-03-28 18:04:11 +02:00
Keith Winstein c868c587d4 Bump version to 1.1.1a 2012-03-28 15:17:24 +02:00
Keith Winstein 0d35baae88 Enforce required headers (closes #69 github issue) 2012-03-28 15:10:29 +02:00
Quentin Smith 7a4ef054c3 Allow the user to specify CFLAGS and LIBS for linking with poll, and test for -lpoll if necessary 2012-03-28 14:32:32 +02:00
Keegan McAllister 2c4bf49490 configure.ac: Add --with-utempter and --without-utempter
The default is to detect the presence of the library, as before.

Suggested by Michael Weber (github: xmw).

Closes #88.
2012-03-28 06:51:50 -04:00
Quentin Smith 3b2604b81c Handle early gcc compilers that are missing __builtin_bswap64 or __builtin_ctz
(closes #84)
2012-03-26 21:26:33 -04:00
Keegan McAllister 705dcb6483 configure.ac: Don't check for malloc, realloc
When cross-compiling for Android, configure (erroneously?) decides we don't
have a GNU-compatible malloc, and tries to

    #define malloc rpl_malloc

We don't define rpl_malloc, and it's not clear it would work with the <cstdlib>
C++ header, anyway.  See

    http://nerdland.net/unstumping-the-internet/malloc-has-not-been-declared/

If we aren't using malloc(0), it should be safe to use malloc without the check.
2012-03-26 20:08:51 -04:00
Keith Winstein 84cb170403 Bump autoconf version to 1.1.1 2012-03-26 19:20:57 -04:00
Quentin Smith 10332ec61f Handle platforms (like Darwin 9) that do not have posix_memalign 2012-03-23 02:17:29 -04:00
Keith Winstein 28b42426fe Bump version to 1.1 2012-03-22 18:42:20 -04:00
Keith Winstein ddb73f3927 Bump version to 1.0.9d 2012-03-21 22:47:16 -04:00
Keith Winstein 96a6d7c63b Bump version number to 1.0.9c 2012-03-21 19:25:56 -04:00
Keith Winstein f8eac780f3 Add configure checks for setrlimit() 2012-03-21 18:43:54 -04:00
Keith Winstein 5571e9a828 Renumber versions to, e.g., 1.0.9 2012-03-19 00:21:35 -04:00
Keith Winstein 175045a6fb Bump version to 1.09b 2012-03-18 16:38:25 -04:00
Keith Winstein 1d19f9b7de Bump version to 1.09a 2012-03-18 14:01:08 -04:00
Keith Winstein 41856a3f17 Increase version to 1.09 (1.1 release candidate) 2012-03-18 06:07:58 -04:00
Keegan McAllister 139bcbf9ae configure.ac: Add --enable-{client,server,examples}
These default respectively to yes, yes, no.
2012-03-17 05:36:42 -04:00
Keith Winstein 2b5b0445df Bump version number to 1.02 2012-03-16 13:46:56 -04:00
Keith Winstein 462a3db7cf Bump version numbers 2012-03-14 04:55:30 -04:00
Keith Winstein 9e18ecb83e Bump version 2012-03-14 02:59:44 -04:00
Keith Winstein 91b8d500a5 Increase version number 2012-03-12 04:52:55 -04:00
Keith Winstein 66730050ee Update version 2012-03-10 16:51:30 -05:00
Keith Winstein 792724159c Update README.md 2012-03-10 14:06:01 -05:00
Keith Winstein bc3297aa75 Small cleanup to generated output when predictions active 2012-03-10 06:42:21 -05:00
Keith Winstein 0f8d0eea0d Update version number (to 0.98) and changelogs 2012-03-10 05:47:05 -05:00
Keith Winstein b8457dd308 Use TERM env var / terminfo to decide whether to send ECH. Fixes tmux bug.
Closes #28 github issue.
2012-03-10 05:41:03 -05:00
Keith Winstein e9cea2627e Update version numbers (etc.) for new release 2012-03-07 04:22:15 -05:00
Keith Winstein 5dc208a97e Terminate compiler warnings options so displays with closing right bracket 2012-03-07 03:30:23 -05:00
Quentin Smith 03edc31ccb Lower required autoconf version since 2.65 isn't needed 2012-03-07 03:10:19 -05:00