2765
2785
#define PROG_EXT "$PROG_EXT"
2768
echo "$as_me:2768: checking if $CC -U and -D options work together" >&5
2769
echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
2770
if test "${cf_cv_cc_u_d_options+set}" = set; then
2771
echo $ECHO_N "(cached) $ECHO_C" >&6
2774
cf_save_CPPFLAGS="$CPPFLAGS"
2775
CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
2776
cat >conftest.$ac_ext <<_ACEOF
2777
#line 2777 "configure"
2778
#include "confdefs.h"
2785
make an undefined-error
2788
make a defined-error
2795
rm -f conftest.$ac_objext
2796
if { (eval echo "$as_me:2796: \"$ac_compile\"") >&5
2797
(eval $ac_compile) 2>&5
2799
echo "$as_me:2799: \$? = $ac_status" >&5
2800
(exit $ac_status); } &&
2801
{ ac_try='test -s conftest.$ac_objext'
2802
{ (eval echo "$as_me:2802: \"$ac_try\"") >&5
2805
echo "$as_me:2805: \$? = $ac_status" >&5
2806
(exit $ac_status); }; }; then
2808
cf_cv_cc_u_d_options=yes
2810
echo "$as_me: failed program was:" >&5
2811
cat conftest.$ac_ext >&5
2813
cf_cv_cc_u_d_options=no
2815
rm -f conftest.$ac_objext conftest.$ac_ext
2816
CPPFLAGS="$cf_save_CPPFLAGS"
2819
echo "$as_me:2819: result: $cf_cv_cc_u_d_options" >&5
2820
echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
2822
2788
cf_XOPEN_SOURCE=500
2823
2789
cf_POSIX_C_SOURCE=199506L
2825
2792
case $host_os in #(vi
2826
2793
aix[456]*) #(vi
2827
CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
2794
cf_xopen_source="-D_ALL_SOURCE"
2797
cf_xopen_source="-D_APPLE_C_SOURCE"
2800
cf_xopen_source="-D_DARWIN_C_SOURCE"
2829
2802
freebsd*|dragonfly*) #(vi
2830
2803
# 5.x headers associate
3027
3003
rm -f conftest.$ac_objext conftest.$ac_ext
3030
echo "$as_me:3030: result: $cf_cv_xopen_source" >&5
3006
echo "$as_me:3006: result: $cf_cv_xopen_source" >&5
3031
3007
echo "${ECHO_T}$cf_cv_xopen_source" >&6
3032
3008
if test "$cf_cv_xopen_source" != no ; then
3034
# remove _XOPEN_SOURCE symbol from $CFLAGS
3035
3010
CFLAGS=`echo "$CFLAGS" | \
3036
sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3037
-e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
3039
# remove _XOPEN_SOURCE symbol from $CPPFLAGS
3040
CPPFLAGS=`echo "$CPPFLAGS" | \
3041
sed -e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?[ ]/ /g' \
3042
-e 's/-[UD]_XOPEN_SOURCE\(=[^ ]*\)\?$//g'`
3044
test "$cf_cv_cc_u_d_options" = yes && \
3045
CPPFLAGS="$CPPFLAGS -U_XOPEN_SOURCE"
3046
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_cv_xopen_source"
3011
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3012
-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3014
CPPFLAGS=`echo "$CPPFLAGS" | \
3015
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3016
-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3018
cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3023
cf_new_extra_cppflags=
3025
for cf_add_cflags in $cf_temp_xopen_source
3027
case $cf_fix_cppflags in
3029
case $cf_add_cflags in #(vi
3030
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3031
case $cf_add_cflags in
3033
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3035
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3036
&& test -z "${cf_tst_cflags}" \
3037
&& cf_fix_cppflags=yes
3039
if test $cf_fix_cppflags = yes ; then
3040
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3042
elif test "${cf_tst_cflags}" = "\"'" ; then
3043
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3049
*$cf_add_cflags) #(vi
3052
case $cf_add_cflags in #(vi
3054
cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3056
CPPFLAGS=`echo "$CPPFLAGS" | \
3057
sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3058
-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3062
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3067
cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3072
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3074
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3076
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3077
&& test -z "${cf_tst_cflags}" \
3078
&& cf_fix_cppflags=no
3083
if test -n "$cf_new_cflags" ; then
3085
CFLAGS="$CFLAGS $cf_new_cflags"
3088
if test -n "$cf_new_cppflags" ; then
3090
CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3093
if test -n "$cf_new_extra_cppflags" ; then
3095
EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3049
3100
cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3198
3247
rm -f conftest.$ac_objext conftest.$ac_ext
3201
echo "$as_me:3201: result: $cf_cv_posix_c_source" >&5
3250
echo "$as_me:3250: result: $cf_cv_posix_c_source" >&5
3202
3251
echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3204
3253
if test "$cf_cv_posix_c_source" != no ; then
3205
3254
CFLAGS="$cf_trim_CFLAGS"
3206
3255
CPPFLAGS="$cf_trim_CPPFLAGS"
3207
if test "$cf_cv_cc_u_d_options" = yes ; then
3208
cf_temp_posix_c_source=`echo "$cf_cv_posix_c_source" | \
3209
sed -e 's/-D/-U/g' -e 's/=[^ ]*//g'`
3210
CPPFLAGS="$CPPFLAGS $cf_temp_posix_c_source"
3212
CPPFLAGS="$CPPFLAGS $cf_cv_posix_c_source"
3218
echo "$as_me:3218: checking if SIGWINCH is defined" >&5
3260
cf_new_extra_cppflags=
3262
for cf_add_cflags in $cf_cv_posix_c_source
3264
case $cf_fix_cppflags in
3266
case $cf_add_cflags in #(vi
3267
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3268
case $cf_add_cflags in
3270
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3272
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3273
&& test -z "${cf_tst_cflags}" \
3274
&& cf_fix_cppflags=yes
3276
if test $cf_fix_cppflags = yes ; then
3277
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3279
elif test "${cf_tst_cflags}" = "\"'" ; then
3280
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3286
*$cf_add_cflags) #(vi
3289
case $cf_add_cflags in #(vi
3291
cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3293
CPPFLAGS=`echo "$CPPFLAGS" | \
3294
sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3295
-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3299
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3304
cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3309
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3311
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3313
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3314
&& test -z "${cf_tst_cflags}" \
3315
&& cf_fix_cppflags=no
3320
if test -n "$cf_new_cflags" ; then
3322
CFLAGS="$CFLAGS $cf_new_cflags"
3325
if test -n "$cf_new_cppflags" ; then
3327
CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3330
if test -n "$cf_new_extra_cppflags" ; then
3332
EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3340
if test -n "$cf_xopen_source" ; then
3345
cf_new_extra_cppflags=
3347
for cf_add_cflags in $cf_xopen_source
3349
case $cf_fix_cppflags in
3351
case $cf_add_cflags in #(vi
3352
-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3353
case $cf_add_cflags in
3355
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3357
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3358
&& test -z "${cf_tst_cflags}" \
3359
&& cf_fix_cppflags=yes
3361
if test $cf_fix_cppflags = yes ; then
3362
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3364
elif test "${cf_tst_cflags}" = "\"'" ; then
3365
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3371
*$cf_add_cflags) #(vi
3374
case $cf_add_cflags in #(vi
3376
cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3378
CPPFLAGS=`echo "$CPPFLAGS" | \
3379
sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3380
-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3384
cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3389
cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3394
cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3396
cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3398
test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3399
&& test -z "${cf_tst_cflags}" \
3400
&& cf_fix_cppflags=no
3405
if test -n "$cf_new_cflags" ; then
3407
CFLAGS="$CFLAGS $cf_new_cflags"
3410
if test -n "$cf_new_cppflags" ; then
3412
CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3415
if test -n "$cf_new_extra_cppflags" ; then
3417
EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3422
echo "$as_me:3422: checking if SIGWINCH is defined" >&5
3219
3423
echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
3220
3424
if test "${cf_cv_define_sigwinch+set}" = set; then
3221
3425
echo $ECHO_N "(cached) $ECHO_C" >&6
3224
3428
cat >conftest.$ac_ext <<_ACEOF
3225
#line 3225 "configure"
3429
#line 3429 "configure"
3226
3430
#include "confdefs.h"
3228
3432
#include <sys/types.h>
5378
5583
cat conftest.$ac_ext >&5
5380
5585
rm -f conftest.$ac_objext conftest.$ac_ext
5588
for ac_header in termcap.h
5590
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5591
echo "$as_me:5591: checking for $ac_header" >&5
5592
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5593
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5594
echo $ECHO_N "(cached) $ECHO_C" >&6
5596
cat >conftest.$ac_ext <<_ACEOF
5597
#line 5597 "configure"
5598
#include "confdefs.h"
5599
#include <$ac_header>
5601
if { (eval echo "$as_me:5601: \"$ac_cpp conftest.$ac_ext\"") >&5
5602
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5604
egrep -v '^ *\+' conftest.er1 >conftest.err
5606
cat conftest.err >&5
5607
echo "$as_me:5607: \$? = $ac_status" >&5
5608
(exit $ac_status); } >/dev/null; then
5609
if test -s conftest.err; then
5610
ac_cpp_err=$ac_c_preproc_warn_flag
5617
if test -z "$ac_cpp_err"; then
5618
eval "$as_ac_Header=yes"
5620
echo "$as_me: failed program was:" >&5
5621
cat conftest.$ac_ext >&5
5622
eval "$as_ac_Header=no"
5624
rm -f conftest.err conftest.$ac_ext
5626
echo "$as_me:5626: result: `eval echo '${'$as_ac_Header'}'`" >&5
5627
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5628
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5629
cat >>confdefs.h <<EOF
5630
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5382
5638
# If we didn't find a tgetent() that supports the buffer
5383
5639
# argument, look again to see whether we can find even
5384
5640
# a crippled one. A crippled tgetent() is still useful to
5385
5641
# validate values for the TERM environment variable given to
5386
5642
# child processes.
5387
echo "$as_me:5387: checking for partial tgetent function" >&5
5643
echo "$as_me:5643: checking for partial tgetent function" >&5
5388
5644
echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
5389
5645
if test "${cf_cv_lib_part_tgetent+set}" = set; then
5390
5646
echo $ECHO_N "(cached) $ECHO_C" >&6
9793
10079
default_TERM=xterm
9795
echo "$as_me:9795: result: $default_TERM" >&5
10081
echo "$as_me:10081: result: $default_TERM" >&5
9796
10082
echo "${ECHO_T}$default_TERM" >&6
9797
10083
cat >>confdefs.h <<EOF
9798
10084
#define DFT_TERMTYPE "$default_TERM"
9801
echo "$as_me:9801: checking for private terminfo-directory" >&5
10087
# Extract the first word of "tic", so it can be a program name with args.
10088
set dummy tic; ac_word=$2
10089
echo "$as_me:10089: checking for $ac_word" >&5
10090
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091
if test "${ac_cv_prog_cf_tic_prog+set}" = set; then
10092
echo $ECHO_N "(cached) $ECHO_C" >&6
10094
if test -n "$cf_tic_prog"; then
10095
ac_cv_prog_cf_tic_prog="$cf_tic_prog" # Let the user override the test.
10097
ac_save_IFS=$IFS; IFS=$ac_path_separator
10099
for ac_dir in $ac_dummy; do
10101
test -z "$ac_dir" && ac_dir=.
10102
$as_executable_p "$ac_dir/$ac_word" || continue
10103
ac_cv_prog_cf_tic_prog="yes"
10104
echo "$as_me:10104: found $ac_dir/$ac_word" >&5
10108
test -z "$ac_cv_prog_cf_tic_prog" && ac_cv_prog_cf_tic_prog="no"
10111
cf_tic_prog=$ac_cv_prog_cf_tic_prog
10112
if test -n "$cf_tic_prog"; then
10113
echo "$as_me:10113: result: $cf_tic_prog" >&5
10114
echo "${ECHO_T}$cf_tic_prog" >&6
10116
echo "$as_me:10116: result: no" >&5
10117
echo "${ECHO_T}no" >&6
10120
if test "$cf_tic_prog" = yes ; then
10121
echo "$as_me:10121: checking for private terminfo-directory" >&5
9802
10122
echo $ECHO_N "checking for private terminfo-directory... $ECHO_C" >&6
9804
10124
# Check whether --with-own-terminfo or --without-own-terminfo was given.
9809
10129
TERMINFO_DIR=${TERMINFO-none}
9811
echo "$as_me:9811: result: $TERMINFO_DIR" >&5
10131
echo "$as_me:10131: result: $TERMINFO_DIR" >&5
9812
10132
echo "${ECHO_T}$TERMINFO_DIR" >&6
9813
if test "$TERMINFO_DIR" = yes ; then
9814
{ echo "$as_me:9814: WARNING: no value given" >&5
10133
if test "$TERMINFO_DIR" = yes ; then
10134
{ echo "$as_me:10134: WARNING: no value given" >&5
9815
10135
echo "$as_me: WARNING: no value given" >&2;}
9816
elif test "$TERMINFO_DIR" != none ; then
9817
if test -d $TERMINFO_DIR ; then
9818
cat >>confdefs.h <<EOF
10136
elif test "$TERMINFO_DIR" != none ; then
10137
if test -d $TERMINFO_DIR ; then
10138
cat >>confdefs.h <<EOF
9819
10139
#define OWN_TERMINFO_DIR "$TERMINFO_DIR"
9823
{ echo "$as_me:9823: WARNING: not a directory" >&5
10143
{ echo "$as_me:10143: WARNING: not a directory" >&5
9824
10144
echo "$as_me: WARNING: not a directory" >&2;}
9826
elif test "$prefix" != NONE ; then
9827
TERMINFO_DIR='${prefix}/lib/terminfo'
9828
elif test -d /usr/lib/terminfo ; then
9829
TERMINFO_DIR=/usr/lib/terminfo
10146
elif test "$prefix" != NONE ; then
10147
TERMINFO_DIR='${prefix}/lib/terminfo'
10148
elif test -d /usr/lib/terminfo ; then
10149
TERMINFO_DIR=/usr/lib/terminfo
10154
if test -n "$TERMINFO_DIR" ; then
10155
TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
10156
SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
9834
if test -n "$TERMINFO_DIR" ; then
9835
TERMINFO_DIR='$(DESTDIR)'$TERMINFO_DIR
9836
SET_TERMINFO='TERMINFO=$(TERMINFO_DIR)'
9839
10165
###############################################################################
9841
echo "$as_me:9841: checking if you want active-icons" >&5
10167
echo "$as_me:10167: checking if you want active-icons" >&5
9842
10168
echo $ECHO_N "checking if you want active-icons... $ECHO_C" >&6
9844
10170
# Check whether --enable-active-icon or --disable-active-icon was given.
10518
echo "$as_me:10518: checking for FreeType config" >&5
10844
echo "$as_me:10844: checking for FreeType config" >&5
10519
10845
echo $ECHO_N "checking for FreeType config... $ECHO_C" >&6
10520
echo "$as_me:10520: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
10846
echo "$as_me:10846: result: $FREETYPE_CONFIG $FREETYPE_PARAMS" >&5
10521
10847
echo "${ECHO_T}$FREETYPE_CONFIG $FREETYPE_PARAMS" >&6
10523
10849
if test "$FREETYPE_CONFIG" != none ; then
10525
10851
if test "$cf_cv_x_freetype_incs" = no ; then
10526
echo "$as_me:10526: checking for $FREETYPE_CONFIG cflags" >&5
10852
echo "$as_me:10852: checking for $FREETYPE_CONFIG cflags" >&5
10527
10853
echo $ECHO_N "checking for $FREETYPE_CONFIG cflags... $ECHO_C" >&6
10528
10854
cf_cv_x_freetype_incs="`$FREETYPE_CONFIG $FREETYPE_PARAMS --cflags 2>/dev/null`"
10529
echo "$as_me:10529: result: $cf_cv_x_freetype_incs" >&5
10855
echo "$as_me:10855: result: $cf_cv_x_freetype_incs" >&5
10530
10856
echo "${ECHO_T}$cf_cv_x_freetype_incs" >&6
10533
10859
if test "$cf_cv_x_freetype_libs" = no ; then
10534
echo "$as_me:10534: checking for $FREETYPE_CONFIG libs" >&5
10860
echo "$as_me:10860: checking for $FREETYPE_CONFIG libs" >&5
10535
10861
echo $ECHO_N "checking for $FREETYPE_CONFIG libs... $ECHO_C" >&6
10536
10862
cf_cv_x_freetype_libs="$cf_extra_freetype_libs `$FREETYPE_CONFIG $FREETYPE_PARAMS --libs 2>/dev/null`"
10537
echo "$as_me:10537: result: $cf_cv_x_freetype_libs" >&5
10863
echo "$as_me:10863: result: $cf_cv_x_freetype_libs" >&5
10538
10864
echo "${ECHO_T}$cf_cv_x_freetype_libs" >&6
11418
11754
if test "$with_pcre" = no ; then
11420
echo "$as_me:11420: checking for regular-expression headers" >&5
11756
echo "$as_me:11756: checking for regcomp" >&5
11757
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
11758
if test "${ac_cv_func_regcomp+set}" = set; then
11759
echo $ECHO_N "(cached) $ECHO_C" >&6
11761
cat >conftest.$ac_ext <<_ACEOF
11762
#line 11762 "configure"
11763
#include "confdefs.h"
11764
/* System header to define __stub macros and hopefully few prototypes,
11765
which can conflict with char regcomp (); below. */
11766
#include <assert.h>
11767
/* Override any gcc2 internal prototype to avoid an error. */
11771
/* We use char because int might match the return type of a gcc2
11772
builtin and then its argument prototype would still apply. */
11779
/* The GNU C library defines this for functions which it implements
11780
to always fail with ENOSYS. Some functions are actually named
11781
something starting with __ and the normal name is an alias. */
11782
#if defined (__stub_regcomp) || defined (__stub___regcomp)
11792
rm -f conftest.$ac_objext conftest$ac_exeext
11793
if { (eval echo "$as_me:11793: \"$ac_link\"") >&5
11794
(eval $ac_link) 2>&5
11796
echo "$as_me:11796: \$? = $ac_status" >&5
11797
(exit $ac_status); } &&
11798
{ ac_try='test -s conftest$ac_exeext'
11799
{ (eval echo "$as_me:11799: \"$ac_try\"") >&5
11800
(eval $ac_try) 2>&5
11802
echo "$as_me:11802: \$? = $ac_status" >&5
11803
(exit $ac_status); }; }; then
11804
ac_cv_func_regcomp=yes
11806
echo "$as_me: failed program was:" >&5
11807
cat conftest.$ac_ext >&5
11808
ac_cv_func_regcomp=no
11810
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11812
echo "$as_me:11812: result: $ac_cv_func_regcomp" >&5
11813
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
11814
if test $ac_cv_func_regcomp = yes; then
11818
echo "$as_me:11818: checking for regcomp in -lregex" >&5
11819
echo $ECHO_N "checking for regcomp in -lregex... $ECHO_C" >&6
11820
if test "${ac_cv_lib_regex_regcomp+set}" = set; then
11821
echo $ECHO_N "(cached) $ECHO_C" >&6
11823
ac_check_lib_save_LIBS=$LIBS
11824
LIBS="-lregex $LIBS"
11825
cat >conftest.$ac_ext <<_ACEOF
11826
#line 11826 "configure"
11827
#include "confdefs.h"
11829
/* Override any gcc2 internal prototype to avoid an error. */
11833
/* We use char because int might match the return type of a gcc2
11834
builtin and then its argument prototype would still apply. */
11844
rm -f conftest.$ac_objext conftest$ac_exeext
11845
if { (eval echo "$as_me:11845: \"$ac_link\"") >&5
11846
(eval $ac_link) 2>&5
11848
echo "$as_me:11848: \$? = $ac_status" >&5
11849
(exit $ac_status); } &&
11850
{ ac_try='test -s conftest$ac_exeext'
11851
{ (eval echo "$as_me:11851: \"$ac_try\"") >&5
11852
(eval $ac_try) 2>&5
11854
echo "$as_me:11854: \$? = $ac_status" >&5
11855
(exit $ac_status); }; }; then
11856
ac_cv_lib_regex_regcomp=yes
11858
echo "$as_me: failed program was:" >&5
11859
cat conftest.$ac_ext >&5
11860
ac_cv_lib_regex_regcomp=no
11862
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11863
LIBS=$ac_check_lib_save_LIBS
11865
echo "$as_me:11865: result: $ac_cv_lib_regex_regcomp" >&5
11866
echo "${ECHO_T}$ac_cv_lib_regex_regcomp" >&6
11867
if test $ac_cv_lib_regex_regcomp = yes; then
11868
LIBS="-lregex $LIBS"
11871
echo "$as_me:11871: checking for regcomp in -lre" >&5
11872
echo $ECHO_N "checking for regcomp in -lre... $ECHO_C" >&6
11873
if test "${ac_cv_lib_re_regcomp+set}" = set; then
11874
echo $ECHO_N "(cached) $ECHO_C" >&6
11876
ac_check_lib_save_LIBS=$LIBS
11878
cat >conftest.$ac_ext <<_ACEOF
11879
#line 11879 "configure"
11880
#include "confdefs.h"
11882
/* Override any gcc2 internal prototype to avoid an error. */
11886
/* We use char because int might match the return type of a gcc2
11887
builtin and then its argument prototype would still apply. */
11897
rm -f conftest.$ac_objext conftest$ac_exeext
11898
if { (eval echo "$as_me:11898: \"$ac_link\"") >&5
11899
(eval $ac_link) 2>&5
11901
echo "$as_me:11901: \$? = $ac_status" >&5
11902
(exit $ac_status); } &&
11903
{ ac_try='test -s conftest$ac_exeext'
11904
{ (eval echo "$as_me:11904: \"$ac_try\"") >&5
11905
(eval $ac_try) 2>&5
11907
echo "$as_me:11907: \$? = $ac_status" >&5
11908
(exit $ac_status); }; }; then
11909
ac_cv_lib_re_regcomp=yes
11911
echo "$as_me: failed program was:" >&5
11912
cat conftest.$ac_ext >&5
11913
ac_cv_lib_re_regcomp=no
11915
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11916
LIBS=$ac_check_lib_save_LIBS
11918
echo "$as_me:11918: result: $ac_cv_lib_re_regcomp" >&5
11919
echo "${ECHO_T}$ac_cv_lib_re_regcomp" >&6
11920
if test $ac_cv_lib_re_regcomp = yes; then
11924
echo "$as_me:11924: checking for compile" >&5
11925
echo $ECHO_N "checking for compile... $ECHO_C" >&6
11926
if test "${ac_cv_func_compile+set}" = set; then
11927
echo $ECHO_N "(cached) $ECHO_C" >&6
11929
cat >conftest.$ac_ext <<_ACEOF
11930
#line 11930 "configure"
11931
#include "confdefs.h"
11932
/* System header to define __stub macros and hopefully few prototypes,
11933
which can conflict with char compile (); below. */
11934
#include <assert.h>
11935
/* Override any gcc2 internal prototype to avoid an error. */
11939
/* We use char because int might match the return type of a gcc2
11940
builtin and then its argument prototype would still apply. */
11947
/* The GNU C library defines this for functions which it implements
11948
to always fail with ENOSYS. Some functions are actually named
11949
something starting with __ and the normal name is an alias. */
11950
#if defined (__stub_compile) || defined (__stub___compile)
11960
rm -f conftest.$ac_objext conftest$ac_exeext
11961
if { (eval echo "$as_me:11961: \"$ac_link\"") >&5
11962
(eval $ac_link) 2>&5
11964
echo "$as_me:11964: \$? = $ac_status" >&5
11965
(exit $ac_status); } &&
11966
{ ac_try='test -s conftest$ac_exeext'
11967
{ (eval echo "$as_me:11967: \"$ac_try\"") >&5
11968
(eval $ac_try) 2>&5
11970
echo "$as_me:11970: \$? = $ac_status" >&5
11971
(exit $ac_status); }; }; then
11972
ac_cv_func_compile=yes
11974
echo "$as_me: failed program was:" >&5
11975
cat conftest.$ac_ext >&5
11976
ac_cv_func_compile=no
11978
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11980
echo "$as_me:11980: result: $ac_cv_func_compile" >&5
11981
echo "${ECHO_T}$ac_cv_func_compile" >&6
11982
if test $ac_cv_func_compile = yes; then
11986
echo "$as_me:11986: checking for compile in -lgen" >&5
11987
echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
11988
if test "${ac_cv_lib_gen_compile+set}" = set; then
11989
echo $ECHO_N "(cached) $ECHO_C" >&6
11991
ac_check_lib_save_LIBS=$LIBS
11993
cat >conftest.$ac_ext <<_ACEOF
11994
#line 11994 "configure"
11995
#include "confdefs.h"
11997
/* Override any gcc2 internal prototype to avoid an error. */
12001
/* We use char because int might match the return type of a gcc2
12002
builtin and then its argument prototype would still apply. */
12012
rm -f conftest.$ac_objext conftest$ac_exeext
12013
if { (eval echo "$as_me:12013: \"$ac_link\"") >&5
12014
(eval $ac_link) 2>&5
12016
echo "$as_me:12016: \$? = $ac_status" >&5
12017
(exit $ac_status); } &&
12018
{ ac_try='test -s conftest$ac_exeext'
12019
{ (eval echo "$as_me:12019: \"$ac_try\"") >&5
12020
(eval $ac_try) 2>&5
12022
echo "$as_me:12022: \$? = $ac_status" >&5
12023
(exit $ac_status); }; }; then
12024
ac_cv_lib_gen_compile=yes
12026
echo "$as_me: failed program was:" >&5
12027
cat conftest.$ac_ext >&5
12028
ac_cv_lib_gen_compile=no
12030
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12031
LIBS=$ac_check_lib_save_LIBS
12033
echo "$as_me:12033: result: $ac_cv_lib_gen_compile" >&5
12034
echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
12035
if test $ac_cv_lib_gen_compile = yes; then
12039
{ echo "$as_me:12039: WARNING: cannot find regular expression library" >&5
12040
echo "$as_me: WARNING: cannot find regular expression library" >&2;}
12052
echo "$as_me:12052: checking for regular-expression headers" >&5
11421
12053
echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
11422
if test "${cf_cv_regex+set}" = set; then
12054
if test "${cf_cv_regex_hdrs+set}" = set; then
11423
12055
echo $ECHO_N "(cached) $ECHO_C" >&6
12058
cf_cv_regex_hdrs=no
11426
12059
cat >conftest.$ac_ext <<_ACEOF
11427
#line 11427 "configure"
12060
#line 12060 "configure"
11428
12061
#include "confdefs.h"
11429
12062
#include <sys/types.h>
11430
12063
#include <regex.h>
11510
12141
rm -f conftest.$ac_objext conftest$ac_exeext
11511
if { (eval echo "$as_me:11511: \"$ac_link\"") >&5
12142
if { (eval echo "$as_me:12142: \"$ac_link\"") >&5
11512
12143
(eval $ac_link) 2>&5
11514
echo "$as_me:11514: \$? = $ac_status" >&5
12145
echo "$as_me:12145: \$? = $ac_status" >&5
11515
12146
(exit $ac_status); } &&
11516
12147
{ ac_try='test -s conftest$ac_exeext'
11517
{ (eval echo "$as_me:11517: \"$ac_try\"") >&5
12148
{ (eval echo "$as_me:12148: \"$ac_try\"") >&5
11518
12149
(eval $ac_try) 2>&5
11520
echo "$as_me:11520: \$? = $ac_status" >&5
12151
echo "$as_me:12151: \$? = $ac_status" >&5
11521
12152
(exit $ac_status); }; }; then
11522
cf_cv_regex="regexpr.h"
12153
cf_cv_regex_hdrs="regexpr.h"
11524
12155
echo "$as_me: failed program was:" >&5
11525
12156
cat conftest.$ac_ext >&5
11526
LIBS="$cf_save_LIBS"
11528
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11530
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11532
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11536
echo "$as_me:11536: result: $cf_cv_regex" >&5
11537
echo "${ECHO_T}$cf_cv_regex" >&6
11538
case $cf_cv_regex in
11539
regex.h) cat >>confdefs.h <<\EOF
12158
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12160
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12162
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12165
echo "$as_me:12165: result: $cf_cv_regex_hdrs" >&5
12166
echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
12168
case $cf_cv_regex_hdrs in #(vi
12169
no) { echo "$as_me:12169: WARNING: no regular expression header found" >&5
12170
echo "$as_me: WARNING: no regular expression header found" >&2;} ;; #(vi
12171
regex.h) cat >>confdefs.h <<\EOF
11540
12172
#define HAVE_REGEX_H_FUNCS 1
11543
regexp.h) cat >>confdefs.h <<\EOF
12175
regexp.h) cat >>confdefs.h <<\EOF
11544
12176
#define HAVE_REGEXP_H_FUNCS 1
11547
regexpr.h) cat >>confdefs.h <<\EOF
12179
regexpr.h) cat >>confdefs.h <<\EOF
11548
12180
#define HAVE_REGEXPR_H_FUNCS 1
11553
if test "X$cf_cv_regex" != "Xregex.h" ; then
11554
{ { echo "$as_me:11554: error: Only POSIX or PCRE regular expressions are supported" >&5
12185
if test "X$cf_cv_regex_hdrs" != "Xregex.h" ; then
12186
{ { echo "$as_me:12186: error: Only POSIX or PCRE regular expressions are supported" >&5
11555
12187
echo "$as_me: error: Only POSIX or PCRE regular expressions are supported" >&2;}
11556
12188
{ (exit 1); exit 1; }; }
12411
13045
cf_directive="__attribute__(($cf_attribute))"
12412
13046
echo "checking for $CC $cf_directive" 1>&5
12413
case $cf_attribute in
12415
cat >conftest.h <<EOF
12416
#define GCC_$cf_ATTRIBUTE 1
12420
cat >conftest.h <<EOF
13048
case $cf_attribute in #(vi
13050
cf_printf_attribute=yes
13051
cat >conftest.h <<EOF
13052
#define GCC_$cf_ATTRIBUTE 1
13056
cf_scanf_attribute=yes
13057
cat >conftest.h <<EOF
13058
#define GCC_$cf_ATTRIBUTE 1
13062
cat >conftest.h <<EOF
12421
13063
#define GCC_$cf_ATTRIBUTE $cf_directive
12425
if { (eval echo "$as_me:12425: \"$ac_compile\"") >&5
13068
if { (eval echo "$as_me:13068: \"$ac_compile\"") >&5
12426
13069
(eval $ac_compile) 2>&5
12428
echo "$as_me:12428: \$? = $ac_status" >&5
13071
echo "$as_me:13071: \$? = $ac_status" >&5
12429
13072
(exit $ac_status); }; then
12430
test -n "$verbose" && echo "$as_me:12430: result: ... $cf_attribute" >&5
13073
test -n "$verbose" && echo "$as_me:13073: result: ... $cf_attribute" >&5
12431
13074
echo "${ECHO_T}... $cf_attribute" >&6
12432
13075
cat conftest.h >>confdefs.h
13076
case $cf_attribute in #(vi
13078
if test "$cf_printf_attribute" = no ; then
13079
cat >>confdefs.h <<EOF
13080
#define GCC_PRINTFLIKE(fmt,var) /* nothing */
13083
cat >>confdefs.h <<EOF
13084
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13089
if test "$cf_scanf_attribute" = no ; then
13090
cat >>confdefs.h <<EOF
13091
#define GCC_SCANFLIKE(fmt,var) /* nothing */
13094
cat >>confdefs.h <<EOF
13095
#define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))