diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 410df27..444ee64 100644 --- a/configure.ac +++ b/configure.ac @@ -2,5 +2,18 @@ AC_INIT(radsecproxy, 1.2-devel, venaas@uninett.no) AM_INIT_AUTOMAKE AC_PROG_CC AM_PROG_CC_C_O +dnl Check if we're on Solaris and set CFLAGS accordingly +AC_CANONICAL_SYSTEM +case "${target_os}" in + solaris*) + TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS" + TARGET_LDFLAGS="-lsocket" + ;; + *) + TARGET_CFLAGS="" + TARGET_LDFLAGS="" + esac +AC_SUBST(TARGET_CFLAGS) +AC_SUBST(TARGET_LDFLAGS) AX_CHECK_SSL AC_OUTPUT(Makefile) |