diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2005-01-27 03:59:55 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2005-01-27 03:59:55 +0000 |
commit | 27ae3485968304992db0396da2121c33076a0804 (patch) | |
tree | 153b528d1e5ff29ccfd944a63536c4b8fdd38edd /configure.in | |
parent | dc16d4c67d65a38019855f7a60b89a0bffd66dc0 (diff) | |
download | flac-27ae3485968304992db0396da2121c33076a0804.tar.gz |
fix recently-broken host- and system-checking logic
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 08aa04e1..912b44e1 100644 --- a/configure.in +++ b/configure.in @@ -36,6 +36,8 @@ AM_PROG_AS AC_PROG_CXX AC_PROG_MAKE_SET +AC_CHECK_TYPES(socklen_t, [], []) + dnl check for getopt in standard library dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) AC_CHECK_FUNCS(getopt_long, [], []) @@ -50,14 +52,16 @@ AM_CONDITIONAL(FLaC__CPU_IA32, test x$cpu_ia32 = xtrue) AM_CONDITIONAL(FLaC__CPU_PPC, test x$cpu_ppc = xtrue) AM_CONDITIONAL(FLaC__CPU_SPARC, test x$cpu_sparc = xtrue) case "$host" in - *-pc-linux-gnu) sys_linux=true ; AC_DEFINE(FLAC__SYS_LINUX) ;; - *-*-darwin*) sys_darwin=true ; AC_DEFINE(FLAC__SYS_DARWIN) ;; i386-*-openbsd3.[[0-3]]) OBJ_FORMAT=aoutb ;; *) OBJ_FORMAT=elf ;; esac +AC_SUBST(OBJ_FORMAT) +case "$host" in + *-pc-linux-gnu) sys_linux=true ; AC_DEFINE(FLAC__SYS_LINUX) ;; + *-*-darwin*) sys_darwin=true ; AC_DEFINE(FLAC__SYS_DARWIN) ;; +esac AM_CONDITIONAL(FLaC__SYS_DARWIN, test x$sys_darwin = xtrue) AM_CONDITIONAL(FLaC__SYS_LINUX, test x$sys_linux = xtrue) -AC_SUBST(OBJ_FORMAT) if test x$cpu_ia32 = xtrue ; then AC_DEFINE(FLAC__ALIGN_MALLOC_DATA) |