From 99dee98a2bbda2a7e15bd2a00cd9634fb5dc7eef Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 14 May 2009 00:34:25 +0000 Subject: [PATCH] Use a variable for uname. --- configure | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/configure b/configure index e0a14589..920bff3d 100755 --- a/configure +++ b/configure @@ -1,13 +1,15 @@ #!/bin/sh -# $Id: configure,v 1.5 2009-05-14 00:17:37 nicm Exp $ +# $Id: configure,v 1.6 2009-05-14 00:34:25 nicm Exp $ + +UNAME=`uname -s` CONFIG_H=config.h CONFIG_MK=config.mk -echo "/* `uname` */" >$CONFIG_H -echo "# `uname`" >$CONFIG_MK +echo "/* $UNAME */" >$CONFIG_H +echo "# $UNAME" >$CONFIG_MK -case `uname` in +case $UNAME in # ------------------------------------------------------------------------------ OpenBSD) cat <>$CONFIG_H @@ -161,9 +163,15 @@ EOF cat <>$CONFIG_MK SRCS+= osdep-netbsd.c LIBS+= -lcrypt +CPPFLAGS+= -I/usr/pkg/include +LDFLAGS+= -L/usr/pkg/lib EOF ;; # ------------------------------------------------------------------------------ + *) + echo Unable to configure for $UNAME + exit 1 esac -echo Configured for `uname` +echo Configured for $UNAME +exit 0