-AROPT:cq
-SHARED_LIB:-fpic -DPIC
-CFLAGS:-O2 -m486 -pipe
-SRCH_INC:/usr/local/include
-SRCH_LIB:/usr/local/lib
-USE_LOCALE:no
-DLSUFFIX:.so
-YFLAGS:-d
-YACC:bison -y
+CFLAGS='-pipe'
+
+case $host_cpu in
+ alpha*) CFLAGS="$CFLAGS -O" ;;
+esac
+
+SUPPORTS_THREADS=yes
+NEED_REENTRANT_FUNCS=yes # 4.8, 5.1 2003-09-12
+
+case $host_os in
+ freebsd2*|freebsd3*|freebsd4*)
+ THREAD_CFLAGS="-pthread"
+ ;;
+ *)
+ THREAD_LIBS="-lc_r"
+ ;;
+esac