head 1.2; access; symbols SHTOOL_1_0_0:1.1.1.1 RSE:1.1.1; locks; strict; comment @# @; 1.2 date 99.04.29.11.21.05; author rse; state dead; branches; next 1.1; 1.1 date 99.04.29.11.19.34; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.04.29.11.19.34; author rse; state Exp; branches; next ; desc @@ 1.2 log @*** empty log message *** @ text @#!/bin/sh ## ## checkheader -- Check whether a C header file exists ## Copyright (c) 1998-1999 Ralf S. Engelschall ## Originally written for the Apache configuration mechanism ## Usage: checkheader ## header=$1 rc=1 if [ ".$CPP" = . ]; then CPP='NOT-AVAILABLE' fi if [ ".$CPP" != .NOT-AVAILABLE ]; then # create a test C source cat >conftest.c < Syntax Error EOT (eval "$CPP conftest.c >/dev/null") 2>conftest.out my_error=`grep -v '^ *+' conftest.out` if [ ".$my_error" = . ]; then rc=0 fi else if [ -f "/usr/include/$header" ]; then rc=0 fi fi rm -f conftest.* exit $rc @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import of shtool 1.0.0 @ text @@