comparison configure @ 258:ebd9c98bbc7f noffle

[svn] * config.h.in,configure,configure.in: Check for timegm().
author bears
date Wed, 26 Jun 2002 14:29:02 +0100
parents 4c0f54d51591
children 1cafe0f3f0ec
comparison
equal deleted inserted replaced
257:087e7039b569 258:ebd9c98bbc7f
2408 #define HAVE_FNMATCH 1 2408 #define HAVE_FNMATCH 1
2409 EOF 2409 EOF
2410 2410
2411 fi 2411 fi
2412 2412
2413 for ac_func in fdopen vsnprintf snprintf __vsnprintf __snprintf 2413 for ac_func in fdopen mkdir select socket
2414 do 2414 do
2415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2416 echo "configure:2417: checking for $ac_func" >&5 2416 echo "configure:2417: checking for $ac_func" >&5
2417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6 2418 echo $ac_n "(cached) $ac_c" 1>&6
2463 else 2463 else
2464 echo "$ac_t""no" 1>&6 2464 echo "$ac_t""no" 1>&6
2465 fi 2465 fi
2466 done 2466 done
2467 2467
2468 for ac_func in gethostname mkdir mktime select socket strerror strstr uname 2468 for ac_func in gethostname uname
2469 do 2469 do
2470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2471 echo "configure:2472: checking for $ac_func" >&5 2471 echo "configure:2472: checking for $ac_func" >&5
2472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6 2473 echo $ac_n "(cached) $ac_c" 1>&6
2518 else 2518 else
2519 echo "$ac_t""no" 1>&6 2519 echo "$ac_t""no" 1>&6
2520 fi 2520 fi
2521 done 2521 done
2522 2522
2523 for ac_func in snprintf vsnprintf __vsnprintf __snprintf
2524 do
2525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2526 echo "configure:2527: checking for $ac_func" >&5
2527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2529 else
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 /* System header to define __stub macros and hopefully few prototypes,
2534 which can conflict with char $ac_func(); below. */
2535 #include <assert.h>
2536 /* Override any gcc2 internal prototype to avoid an error. */
2537 /* We use char because int might match the return type of a gcc2
2538 builtin and then its argument prototype would still apply. */
2539 char $ac_func();
2540
2541 int main() {
2542
2543 /* The GNU C library defines this for functions which it implements
2544 to always fail with ENOSYS. Some functions are actually named
2545 something starting with __ and the normal name is an alias. */
2546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2547 choke me
2548 #else
2549 $ac_func();
2550 #endif
2551
2552 ; return 0; }
2553 EOF
2554 if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555 rm -rf conftest*
2556 eval "ac_cv_func_$ac_func=yes"
2557 else
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 rm -rf conftest*
2561 eval "ac_cv_func_$ac_func=no"
2562 fi
2563 rm -f conftest*
2564 fi
2565
2566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2569 cat >> confdefs.h <<EOF
2570 #define $ac_tr_func 1
2571 EOF
2572
2573 else
2574 echo "$ac_t""no" 1>&6
2575 fi
2576 done
2577
2578 for ac_func in strerror strstr
2579 do
2580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_func" >&5
2582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $ac_func(); below. */
2590 #include <assert.h>
2591 /* Override any gcc2 internal prototype to avoid an error. */
2592 /* We use char because int might match the return type of a gcc2
2593 builtin and then its argument prototype would still apply. */
2594 char $ac_func();
2595
2596 int main() {
2597
2598 /* The GNU C library defines this for functions which it implements
2599 to always fail with ENOSYS. Some functions are actually named
2600 something starting with __ and the normal name is an alias. */
2601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2602 choke me
2603 #else
2604 $ac_func();
2605 #endif
2606
2607 ; return 0; }
2608 EOF
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2610 rm -rf conftest*
2611 eval "ac_cv_func_$ac_func=yes"
2612 else
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 rm -rf conftest*
2616 eval "ac_cv_func_$ac_func=no"
2617 fi
2618 rm -f conftest*
2619 fi
2620
2621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2622 echo "$ac_t""yes" 1>&6
2623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2624 cat >> confdefs.h <<EOF
2625 #define $ac_tr_func 1
2626 EOF
2627
2628 else
2629 echo "$ac_t""no" 1>&6
2630 fi
2631 done
2632
2633 for ac_func in mktime timegm
2634 do
2635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_func" >&5
2637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 /* System header to define __stub macros and hopefully few prototypes,
2644 which can conflict with char $ac_func(); below. */
2645 #include <assert.h>
2646 /* Override any gcc2 internal prototype to avoid an error. */
2647 /* We use char because int might match the return type of a gcc2
2648 builtin and then its argument prototype would still apply. */
2649 char $ac_func();
2650
2651 int main() {
2652
2653 /* The GNU C library defines this for functions which it implements
2654 to always fail with ENOSYS. Some functions are actually named
2655 something starting with __ and the normal name is an alias. */
2656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2657 choke me
2658 #else
2659 $ac_func();
2660 #endif
2661
2662 ; return 0; }
2663 EOF
2664 if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 rm -rf conftest*
2666 eval "ac_cv_func_$ac_func=yes"
2667 else
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2670 rm -rf conftest*
2671 eval "ac_cv_func_$ac_func=no"
2672 fi
2673 rm -f conftest*
2674 fi
2675
2676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2679 cat >> confdefs.h <<EOF
2680 #define $ac_tr_func 1
2681 EOF
2682
2683 else
2684 echo "$ac_t""no" 1>&6
2685 fi
2686 done
2687
2523 2688
2524 2689
2525 2690
2526 2691
2527 2692
2551 if test "${with_docdir+set}" = set; then 2716 if test "${with_docdir+set}" = set; then
2552 withval="$with_docdir" 2717 withval="$with_docdir"
2553 noffle_cv_docdir=$withval 2718 noffle_cv_docdir=$withval
2554 else 2719 else
2555 echo $ac_n "checking other documentation directory""... $ac_c" 1>&6 2720 echo $ac_n "checking other documentation directory""... $ac_c" 1>&6
2556 echo "configure:2557: checking other documentation directory" >&5 2721 echo "configure:2722: checking other documentation directory" >&5
2557 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then 2722 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6 2723 echo $ac_n "(cached) $ac_c" 1>&6
2559 else 2724 else
2560 if test x$prefix = xNONE; then 2725 if test x$prefix = xNONE; then
2561 noffle_cv_prefix=$ac_default_prefix 2726 noffle_cv_prefix=$ac_default_prefix
2570 2735
2571 fi 2736 fi
2572 2737
2573 2738
2574 echo $ac_n "checking spooldir""... $ac_c" 1>&6 2739 echo $ac_n "checking spooldir""... $ac_c" 1>&6
2575 echo "configure:2576: checking spooldir" >&5 2740 echo "configure:2741: checking spooldir" >&5
2576 # Check whether --with-spooldir or --without-spooldir was given. 2741 # Check whether --with-spooldir or --without-spooldir was given.
2577 if test "${with_spooldir+set}" = set; then 2742 if test "${with_spooldir+set}" = set; then
2578 withval="$with_spooldir" 2743 withval="$with_spooldir"
2579 if echo "$withval" | egrep >/dev/null -v '^/' ; then 2744 if echo "$withval" | egrep >/dev/null -v '^/' ; then
2580 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } 2745 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; }
2593 EOF 2758 EOF
2594 2759
2595 2760
2596 2761
2597 echo $ac_n "checking configfile""... $ac_c" 1>&6 2762 echo $ac_n "checking configfile""... $ac_c" 1>&6
2598 echo "configure:2599: checking configfile" >&5 2763 echo "configure:2764: checking configfile" >&5
2599 # Check whether --with-configfile or --without-configfile was given. 2764 # Check whether --with-configfile or --without-configfile was given.
2600 if test "${with_configfile+set}" = set; then 2765 if test "${with_configfile+set}" = set; then
2601 withval="$with_configfile" 2766 withval="$with_configfile"
2602 if echo "$withval" | egrep >/dev/null -v '^/' ; then 2767 if echo "$withval" | egrep >/dev/null -v '^/' ; then
2603 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } 2768 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; }