head	1.7;
access;
symbols;
locks; strict;
comment	@# @;


1.7
date	98.01.18.01.32.56;	author jared;	state Exp;
branches;
next	1.6;

1.6
date	98.01.14.11.20.20;	author jared;	state Exp;
branches;
next	1.5;

1.5
date	97.12.02.18.10.34;	author jared;	state Exp;
branches;
next	1.4;

1.4
date	97.10.21.03.51.48;	author jared;	state Exp;
branches;
next	1.3;

1.3
date	97.06.15.07.27.54;	author jared;	state Exp;
branches;
next	1.2;

1.2
date	97.06.15.07.11.31;	author jared;	state Exp;
branches;
next	1.1;

1.1
date	97.06.15.06.48.28;	author jared;	state Exp;
branches;
next	;


desc
@configure
@


1.7
log
@*** empty log message ***
@
text
@#!/bin/sh
if [ -x /usr/ucb/echo ]; then
	ECHO=/usr/ucb/echo
else
	ECHO=echo
fi
$ECHO Determining libraries to include in linking
NCURSES="n"
if [ -f /usr/lib/libnsl.a ]; then 
 $ECHO -n "libnsl.a "
 LIBS="$LIBS -lnsl"
fi
if [ -f /usr/lib/libsocket.a ]; then
 $ECHO -n "libsocket.a "
 LIBS="$LIBS -lsocket"
fi
if [ -f /usr/lib/libresolv.a ]; then
 $ECHO -n "libresolv.a "
 LIBS="$LIBS -lresolv"
fi
if [ -f /usr/lib/libncurses.a ]; then
 $ECHO -n "libncurses.a "
 CURSES="$CURSES -lncurses"
 NCURSES="y"
fi
if [ $NCURSES = "n" ]; then
 if [ -f /usr/local/lib/libncurses.a ]; then
  $ECHO -n "libncurses.a "
  CURSES="$CURSES -lncurses"
  NCURSES="y"
 fi
fi
if [ $NCURSES = "n" ]; then
 $ECHO
 $ECHO The System Monitor requires ncurses -- get it from
 $ECHO http://www.cdrom.com/pub/ada/bindings/ncurses/
fi

if [ -f /usr/local/ssl/lib/libssl.a ]; then
  $ECHO -n "libssl.a "
  set SSL="-DSSL_TEST -DHAVE_HTTPS"
  LIBS="$LIBS -lssl -lcrypto"
else
  set SSL="-DNO_SSL"
fi

CC=gcc
CFLAGS="-Wall  -Wshadow -g $SSL"
IRIX=`uname`
if [ $IRIX = "IRIX" ]; then
 CC=cc
 CFLAGS="-O $(SSL) "
fi

$ECHO
$ECHO Creating Makefile $LIBS $CURSES $CC $CFLAGS
sed -e s/__CC__/"$CC"/g -e s/__CFLAGS__/"$CFLAGS"/g -e s/__LIBS__/"$LIBS"/g -e s/__CURSES__/"$CURSES"/g -e s/__SSL__/"$SSL"/g< Makefile.tmpl > Makefile

# find sendmail
$ECHO Looking for sendmail
if [ -f /usr/sbin/sendmail ]; then
 $ECHO using /usr/sbin/sendmail
 sed 's/\/usr\/lib\/sendmail/\/usr\/sbin\/sendmail/g' < config.h.tmpl > config.h
else
 $ECHO using /usr/lib/sendmail
 cp config.h.tmpl config.h
fi
@


1.6
log
@updates
@
text
@d48 1
a48 1
CFLAGS="-Wall  -Wshadow -g  $(SSL) "
@


1.5
log
@*** empty log message ***
@
text
@d39 16
d56 2
a57 2
$ECHO Including $LIBS $CURSES
sed s/__LIBS__/"$LIBS"/g < Makefile.tmpl | sed s/__CURSES__/"$CURSES"/g > Makefile
@


1.4
log
@fixes
@
text
@d35 2
a36 1
 $ECHO The System Monitor requires ncurses -- get it from prep.ai.mit.edu
@


1.3
log
@fixed error message echoing semantics
@
text
@d41 10
@


1.2
log
@fixed echo semantics
@
text
@d34 1
@


1.1
log
@Initial revision
@
text
@d2 6
a7 1
echo Determining libraries to include in linking
d10 1
a10 1
 echo -n "libnsl.a "
d14 1
a14 1
 echo -n "libsocket.a "
d18 1
a18 1
 echo -n "libresolv.a "
d22 1
a22 1
 echo -n "libncurses.a "
d28 1
a28 1
  echo -n "libncurses.a "
d34 1
a34 1
 echo The System Monitor requires ncurses -- get it from prep.ai.mit.edu
d37 2
a38 2
echo
echo Including $LIBS $CURSES
@
