This program uses the wiringPi GPIO access library, available here: http://wiringpi.com/download-and-install/
$ sudo apt-get update
$ sudo apt-get install libcurl4-openssl-dev
https://sourceforge.net/projects/libquickmail/
NOTE: After following the instructions for libquickmail, I still needed to run:
$ sudo cp /path/to/where/you/compiled/quickmail.h /usr/local/include/
With wiringPi installed, compile the PIRTrigger.c program as follows:
$ gcc -o PIRTrigger PIRTrigger.c -lwiringPi -lquickmail -lcurl -Wl,-rpath=/usr/local/lib
$ sudo ./PIRTrigger [-e [email protected]] [-s servername]
#Info for presentation: Email: [email protected]