Menu

[34ec85]: / configure  Maximize  Restore  History

Download this file

28 lines (22 with data), 533 Bytes

#!/bin/sh

prefix=/usr/local

for arg in $* ; do
    case $arg in
        --prefix=*)
            prefix=${arg#--prefix=}
            ;;
        *)
            echo "unknown argument $arg"
            ;;
    esac
done

echo "prefix = $prefix" > Makefile.config

if [ $(uname -s) = Linux ] ; then
    poll_type=epoll
    notify_type=inotify
else
    poll_type=kqueue
    notify_type=kqueue
fi

sed -e "s/@POLL_TYPE@/$poll_type/" -e "s/@NOTIFY_TYPE@/$notify_type/" config.hpp.in > config.hpp
echo "modified config.hpp for your system"
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.