5463 |
fi |
fi |
5464 |
|
|
5465 |
|
|
5466 |
|
# ../include/getopt.h file needs the HAVE_DECL_GETOPT variable defined, or we |
5467 |
|
# get compile errors on multiple platforms. |
5468 |
|
|
5469 |
|
for ac_func in getopt |
5470 |
|
do |
5471 |
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5472 |
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5473 |
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5474 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5475 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5476 |
|
else |
5477 |
|
cat >conftest.$ac_ext <<_ACEOF |
5478 |
|
/* confdefs.h. */ |
5479 |
|
_ACEOF |
5480 |
|
cat confdefs.h >>conftest.$ac_ext |
5481 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5482 |
|
/* end confdefs.h. */ |
5483 |
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5484 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5485 |
|
#define $ac_func innocuous_$ac_func |
5486 |
|
|
5487 |
|
/* System header to define __stub macros and hopefully few prototypes, |
5488 |
|
which can conflict with char $ac_func (); below. |
5489 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5490 |
|
<limits.h> exists even on freestanding compilers. */ |
5491 |
|
|
5492 |
|
#ifdef __STDC__ |
5493 |
|
# include <limits.h> |
5494 |
|
#else |
5495 |
|
# include <assert.h> |
5496 |
|
#endif |
5497 |
|
|
5498 |
|
#undef $ac_func |
5499 |
|
|
5500 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
5501 |
|
#ifdef __cplusplus |
5502 |
|
extern "C" |
5503 |
|
{ |
5504 |
|
#endif |
5505 |
|
/* We use char because int might match the return type of a gcc2 |
5506 |
|
builtin and then its argument prototype would still apply. */ |
5507 |
|
char $ac_func (); |
5508 |
|
/* The GNU C library defines this for functions which it implements |
5509 |
|
to always fail with ENOSYS. Some functions are actually named |
5510 |
|
something starting with __ and the normal name is an alias. */ |
5511 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5512 |
|
choke me |
5513 |
|
#else |
5514 |
|
char (*f) () = $ac_func; |
5515 |
|
#endif |
5516 |
|
#ifdef __cplusplus |
5517 |
|
} |
5518 |
|
#endif |
5519 |
|
|
5520 |
|
int |
5521 |
|
main () |
5522 |
|
{ |
5523 |
|
return f != $ac_func; |
5524 |
|
; |
5525 |
|
return 0; |
5526 |
|
} |
5527 |
|
_ACEOF |
5528 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5529 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5530 |
|
(eval $ac_link) 2>conftest.er1 |
5531 |
|
ac_status=$? |
5532 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5533 |
|
rm -f conftest.er1 |
5534 |
|
cat conftest.err >&5 |
5535 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5536 |
|
(exit $ac_status); } && |
5537 |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5538 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5539 |
|
(eval $ac_try) 2>&5 |
5540 |
|
ac_status=$? |
5541 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5542 |
|
(exit $ac_status); }; } && |
5543 |
|
{ ac_try='test -s conftest$ac_exeext' |
5544 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5545 |
|
(eval $ac_try) 2>&5 |
5546 |
|
ac_status=$? |
5547 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5548 |
|
(exit $ac_status); }; }; then |
5549 |
|
eval "$as_ac_var=yes" |
5550 |
|
else |
5551 |
|
echo "$as_me: failed program was:" >&5 |
5552 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5553 |
|
|
5554 |
|
eval "$as_ac_var=no" |
5555 |
|
fi |
5556 |
|
rm -f conftest.err conftest.$ac_objext \ |
5557 |
|
conftest$ac_exeext conftest.$ac_ext |
5558 |
|
fi |
5559 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5560 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5561 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5562 |
|
cat >>confdefs.h <<_ACEOF |
5563 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5564 |
|
_ACEOF |
5565 |
|
|
5566 |
|
cat >>confdefs.h <<\_ACEOF |
5567 |
|
#define HAVE_DECL_GETOPT 1 |
5568 |
|
_ACEOF |
5569 |
|
|
5570 |
|
else |
5571 |
|
|
5572 |
|
cat >>confdefs.h <<\_ACEOF |
5573 |
|
#define HAVE_DECL_GETOPT 0 |
5574 |
|
_ACEOF |
5575 |
|
|
5576 |
|
fi |
5577 |
|
done |
5578 |
|
|
5579 |
|
|
5580 |
|
# ../include/libiberty.h file needs the HAVE_DECL_GETOPT variable defined, or |
5581 |
|
# we get compile errors on multiple platforms. |
5582 |
|
|
5583 |
|
for ac_func in basename |
5584 |
|
do |
5585 |
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5586 |
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5587 |
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5588 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5589 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5590 |
|
else |
5591 |
|
cat >conftest.$ac_ext <<_ACEOF |
5592 |
|
/* confdefs.h. */ |
5593 |
|
_ACEOF |
5594 |
|
cat confdefs.h >>conftest.$ac_ext |
5595 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5596 |
|
/* end confdefs.h. */ |
5597 |
|
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5598 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5599 |
|
#define $ac_func innocuous_$ac_func |
5600 |
|
|
5601 |
|
/* System header to define __stub macros and hopefully few prototypes, |
5602 |
|
which can conflict with char $ac_func (); below. |
5603 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5604 |
|
<limits.h> exists even on freestanding compilers. */ |
5605 |
|
|
5606 |
|
#ifdef __STDC__ |
5607 |
|
# include <limits.h> |
5608 |
|
#else |
5609 |
|
# include <assert.h> |
5610 |
|
#endif |
5611 |
|
|
5612 |
|
#undef $ac_func |
5613 |
|
|
5614 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
5615 |
|
#ifdef __cplusplus |
5616 |
|
extern "C" |
5617 |
|
{ |
5618 |
|
#endif |
5619 |
|
/* We use char because int might match the return type of a gcc2 |
5620 |
|
builtin and then its argument prototype would still apply. */ |
5621 |
|
char $ac_func (); |
5622 |
|
/* The GNU C library defines this for functions which it implements |
5623 |
|
to always fail with ENOSYS. Some functions are actually named |
5624 |
|
something starting with __ and the normal name is an alias. */ |
5625 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5626 |
|
choke me |
5627 |
|
#else |
5628 |
|
char (*f) () = $ac_func; |
5629 |
|
#endif |
5630 |
|
#ifdef __cplusplus |
5631 |
|
} |
5632 |
|
#endif |
5633 |
|
|
5634 |
|
int |
5635 |
|
main () |
5636 |
|
{ |
5637 |
|
return f != $ac_func; |
5638 |
|
; |
5639 |
|
return 0; |
5640 |
|
} |
5641 |
|
_ACEOF |
5642 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5643 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5644 |
|
(eval $ac_link) 2>conftest.er1 |
5645 |
|
ac_status=$? |
5646 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5647 |
|
rm -f conftest.er1 |
5648 |
|
cat conftest.err >&5 |
5649 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5650 |
|
(exit $ac_status); } && |
5651 |
|
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5652 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5653 |
|
(eval $ac_try) 2>&5 |
5654 |
|
ac_status=$? |
5655 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5656 |
|
(exit $ac_status); }; } && |
5657 |
|
{ ac_try='test -s conftest$ac_exeext' |
5658 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5659 |
|
(eval $ac_try) 2>&5 |
5660 |
|
ac_status=$? |
5661 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5662 |
|
(exit $ac_status); }; }; then |
5663 |
|
eval "$as_ac_var=yes" |
5664 |
|
else |
5665 |
|
echo "$as_me: failed program was:" >&5 |
5666 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5667 |
|
|
5668 |
|
eval "$as_ac_var=no" |
5669 |
|
fi |
5670 |
|
rm -f conftest.err conftest.$ac_objext \ |
5671 |
|
conftest$ac_exeext conftest.$ac_ext |
5672 |
|
fi |
5673 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5674 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5675 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5676 |
|
cat >>confdefs.h <<_ACEOF |
5677 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5678 |
|
_ACEOF |
5679 |
|
|
5680 |
|
cat >>confdefs.h <<\_ACEOF |
5681 |
|
#define HAVE_DECL_BASENAME 1 |
5682 |
|
_ACEOF |
5683 |
|
|
5684 |
|
else |
5685 |
|
|
5686 |
|
cat >>confdefs.h <<\_ACEOF |
5687 |
|
#define HAVE_DECL_BASENAME 0 |
5688 |
|
_ACEOF |
5689 |
|
|
5690 |
|
fi |
5691 |
|
done |
5692 |
|
|
5693 |
|
|
5694 |
|
|
5695 |
echo "$as_me:$LINENO: checking for --with-lispdir" >&5 |
echo "$as_me:$LINENO: checking for --with-lispdir" >&5 |
5696 |
echo $ECHO_N "checking for --with-lispdir... $ECHO_C" >&6 |
echo $ECHO_N "checking for --with-lispdir... $ECHO_C" >&6 |
5697 |
if test -n "$with_lispdir" ; then |
if test -n "$with_lispdir" ; then |