#!/bin/sh show_help() { echo configure help: echo "--help show this help" echo "--force-libpcap build a libpcap based binary under linux" echo " even if uid != euid" } if [ "$1" = "--help" ]; then show_help exit 0 fi CC=${CC:=cc} echo build byteorder.c... $CC byteorder.c -o byteorder || exit 1 INSTALL_MANPATH=`echo $MANPATH|cut -f1 -d:` if [ "$INSTALL_MANPATH" = "" ]; then INSTALL_MANPATH="/usr/local/man" fi BYTEORDER=`./byteorder -m` echo create byteorder.h... cat > byteorder.h <> byteorder.h echo \#define $BYTEORDER >> byteorder.h echo \#endif /\* $BYTEORDER \*/ >> byteorder.h cat >> byteorder.h < Makefile # # # cat > systype.h <> systype.h cat >> systype.h <