1389 |
fi |
fi |
1390 |
done |
done |
1391 |
|
|
1392 |
|
#---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
1393 |
|
|
1394 |
|
for ac_head in getopt |
1395 |
|
do |
1396 |
|
ac_header=${ac_head}.h |
1397 |
|
echo $ac_n "checking for $ac_header""... $ac_c" 1>&6 |
1398 |
|
echo "configure:1396: checking for $ac_header" >&5 |
1399 |
|
if eval "test \"`echo '$''{'ac_cv_head_$ac_head'+set}'`\" = set"; then |
1400 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1401 |
|
else |
1402 |
|
cat > conftest.$ac_ext <<EOF |
1403 |
|
#line 1401 "configure" |
1404 |
|
#include "confdefs.h" |
1405 |
|
#include <stdio.h> |
1406 |
|
#include <$ac_header> |
1407 |
|
int main(int argc, char **argv) { |
1408 |
|
printf("Hello!\n") |
1409 |
|
; return 0; } |
1410 |
|
EOF |
1411 |
|
if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1412 |
|
rm -rf conftest* |
1413 |
|
eval "ac_cv_head_$ac_head=yes" |
1414 |
|
else |
1415 |
|
echo "configure: failed program was:" >&5 |
1416 |
|
cat conftest.$ac_ext >&5 |
1417 |
|
rm -rf conftest* |
1418 |
|
eval "ac_cv_head_$ac_head=no" |
1419 |
|
fi |
1420 |
|
rm -f conftest* |
1421 |
|
fi |
1422 |
|
|
1423 |
|
if eval "test \"`echo '$ac_cv_head_'$ac_head`\" = yes"; then |
1424 |
|
echo "$ac_t""yes" 1>&6 |
1425 |
|
ac_tr_head=HAVE_`echo ${ac_head}_h | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
1426 |
|
cat >> confdefs.h <<EOF |
1427 |
|
#define $ac_tr_head 1 |
1428 |
|
EOF |
1429 |
|
|
1430 |
|
else |
1431 |
|
echo "$ac_t""no" 1>&6 |
1432 |
|
fi |
1433 |
|
done |
1434 |
|
|
1435 |
|
#---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
1436 |
|
|
1437 |
trap '' 1 2 15 |
trap '' 1 2 15 |
1438 |
cat > confcache <<\EOF |
cat > confcache <<\EOF |