| #!/bin/sh -e | |
| autoreconf --install --symlink | |
| MYCFLAGS="-g -Wall \ | |
| -Wmissing-declarations -Wmissing-prototypes \ | |
| -Wnested-externs -Wpointer-arith \ | |
| -Wpointer-arith -Wsign-compare -Wchar-subscripts \ | |
| -Wstrict-prototypes -Wshadow \ | |
| -Wformat-security -Wtype-limits" | |
| libdir() { | |
| echo $(cd $1/$(gcc -print-multi-os-directory); pwd) | |
| } | |
| args="--prefix=/usr \ | |
| --sysconfdir=/etc \ | |
| --libdir=$(libdir /usr/lib)" | |
| export CFLAGS | |
| ./configure $args $@ |