3728
ac_cpp='$CPP $CPPFLAGS'
3729
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3733
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3734
# On Suns, sometimes $CPP names a directory.
3735
if test -n "$CPP" && test -d "$CPP"; then
3738
if test -z "$CPP"; then
3739
if test "${ac_cv_prog_CPP+set}" = set; then
3740
$as_echo_n "(cached) " >&6
3742
# Double quotes because CPP needs to be expanded
3743
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3746
for ac_c_preproc_warn_flag in '' yes
3748
# Use a header file that comes with gcc, so configuring glibc
3749
# with a fresh cross-compiler works.
3750
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751
# <limits.h> exists even on freestanding compilers.
3752
# On the NeXT, cc -E runs the code through the compiler's parser,
3753
# not just through cpp. "Syntax error" is here to catch this case.
3754
cat >conftest.$ac_ext <<_ACEOF
3757
cat confdefs.h >>conftest.$ac_ext
3758
cat >>conftest.$ac_ext <<_ACEOF
3759
/* end confdefs.h. */
3761
# include <limits.h>
3763
# include <assert.h>
3767
if { (ac_try="$ac_cpp conftest.$ac_ext"
3769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770
*) ac_try_echo=$ac_try;;
3772
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773
$as_echo "$ac_try_echo") >&5
3774
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776
grep -v '^ *+' conftest.er1 >conftest.err
3778
cat conftest.err >&5
3779
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
(exit $ac_status); } >/dev/null && {
3781
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782
test ! -s conftest.err
3786
$as_echo "$as_me: failed program was:" >&5
3787
sed 's/^/| /' conftest.$ac_ext >&5
3789
# Broken: fails on valid input.
3793
rm -f conftest.err conftest.$ac_ext
3795
# OK, works on sane cases. Now check whether nonexistent headers
3796
# can be detected and how.
3797
cat >conftest.$ac_ext <<_ACEOF
3800
cat confdefs.h >>conftest.$ac_ext
3801
cat >>conftest.$ac_ext <<_ACEOF
3802
/* end confdefs.h. */
3803
#include <ac_nonexistent.h>
3805
if { (ac_try="$ac_cpp conftest.$ac_ext"
3807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808
*) ac_try_echo=$ac_try;;
3810
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811
$as_echo "$ac_try_echo") >&5
3812
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3814
grep -v '^ *+' conftest.er1 >conftest.err
3816
cat conftest.err >&5
3817
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818
(exit $ac_status); } >/dev/null && {
3819
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820
test ! -s conftest.err
3822
# Broken: success on invalid input.
3825
$as_echo "$as_me: failed program was:" >&5
3826
sed 's/^/| /' conftest.$ac_ext >&5
3828
# Passes both tests.
3833
rm -f conftest.err conftest.$ac_ext
3836
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837
rm -f conftest.err conftest.$ac_ext
3838
if $ac_preproc_ok; then
3850
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3851
$as_echo "$CPP" >&6; }
3853
for ac_c_preproc_warn_flag in '' yes
3855
# Use a header file that comes with gcc, so configuring glibc
3856
# with a fresh cross-compiler works.
3857
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3858
# <limits.h> exists even on freestanding compilers.
3859
# On the NeXT, cc -E runs the code through the compiler's parser,
3860
# not just through cpp. "Syntax error" is here to catch this case.
3861
cat >conftest.$ac_ext <<_ACEOF
3864
cat confdefs.h >>conftest.$ac_ext
3865
cat >>conftest.$ac_ext <<_ACEOF
3866
/* end confdefs.h. */
3868
# include <limits.h>
3870
# include <assert.h>
3874
if { (ac_try="$ac_cpp conftest.$ac_ext"
3876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877
*) ac_try_echo=$ac_try;;
3879
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3880
$as_echo "$ac_try_echo") >&5
3881
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3883
grep -v '^ *+' conftest.er1 >conftest.err
3885
cat conftest.err >&5
3886
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887
(exit $ac_status); } >/dev/null && {
3888
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889
test ! -s conftest.err
3893
$as_echo "$as_me: failed program was:" >&5
3894
sed 's/^/| /' conftest.$ac_ext >&5
3896
# Broken: fails on valid input.
3900
rm -f conftest.err conftest.$ac_ext
3902
# OK, works on sane cases. Now check whether nonexistent headers
3903
# can be detected and how.
3904
cat >conftest.$ac_ext <<_ACEOF
3907
cat confdefs.h >>conftest.$ac_ext
3908
cat >>conftest.$ac_ext <<_ACEOF
3909
/* end confdefs.h. */
3910
#include <ac_nonexistent.h>
3912
if { (ac_try="$ac_cpp conftest.$ac_ext"
3914
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915
*) ac_try_echo=$ac_try;;
3917
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918
$as_echo "$ac_try_echo") >&5
3919
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3921
grep -v '^ *+' conftest.er1 >conftest.err
3923
cat conftest.err >&5
3924
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925
(exit $ac_status); } >/dev/null && {
3926
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927
test ! -s conftest.err
3929
# Broken: success on invalid input.
3932
$as_echo "$as_me: failed program was:" >&5
3933
sed 's/^/| /' conftest.$ac_ext >&5
3935
# Passes both tests.
3940
rm -f conftest.err conftest.$ac_ext
3943
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3944
rm -f conftest.err conftest.$ac_ext
3945
if $ac_preproc_ok; then
3948
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3949
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3951
See \`config.log' for more details." >&5
3952
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3953
See \`config.log' for more details." >&2;}
3954
{ (exit 1); exit 1; }; }; }
3958
ac_cpp='$CPP $CPPFLAGS'
3959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3965
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3966
if test "${ac_cv_path_GREP+set}" = set; then
3967
$as_echo_n "(cached) " >&6
3969
if test -z "$GREP"; then
3970
ac_path_GREP_found=false
3971
# Loop through the user's path and test for each of PROGNAME-LIST
3972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976
test -z "$as_dir" && as_dir=.
3977
for ac_prog in grep ggrep; do
3978
for ac_exec_ext in '' $ac_executable_extensions; do
3979
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3981
# Check for GNU ac_path_GREP and select it if it is found.
3982
# Check for GNU $ac_path_GREP
3983
case `"$ac_path_GREP" --version 2>&1` in
3985
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988
$as_echo_n 0123456789 >"conftest.in"
3991
cat "conftest.in" "conftest.in" >"conftest.tmp"
3992
mv "conftest.tmp" "conftest.in"
3993
cp "conftest.in" "conftest.nl"
3994
$as_echo 'GREP' >> "conftest.nl"
3995
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997
ac_count=`expr $ac_count + 1`
3998
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999
# Best one so far, save it but keep looking for a better one
4000
ac_cv_path_GREP="$ac_path_GREP"
4001
ac_path_GREP_max=$ac_count
4003
# 10*(2^10) chars as input seems more than enough
4004
test $ac_count -gt 10 && break
4006
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009
$ac_path_GREP_found && break 3
4014
if test -z "$ac_cv_path_GREP"; then
4015
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017
{ (exit 1); exit 1; }; }
4020
ac_cv_path_GREP=$GREP
4024
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4025
$as_echo "$ac_cv_path_GREP" >&6; }
4026
GREP="$ac_cv_path_GREP"
4029
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4030
$as_echo_n "checking for egrep... " >&6; }
4031
if test "${ac_cv_path_EGREP+set}" = set; then
4032
$as_echo_n "(cached) " >&6
4034
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4035
then ac_cv_path_EGREP="$GREP -E"
4037
if test -z "$EGREP"; then
4038
ac_path_EGREP_found=false
4039
# Loop through the user's path and test for each of PROGNAME-LIST
4040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044
test -z "$as_dir" && as_dir=.
4045
for ac_prog in egrep; do
4046
for ac_exec_ext in '' $ac_executable_extensions; do
4047
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4048
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4049
# Check for GNU ac_path_EGREP and select it if it is found.
4050
# Check for GNU $ac_path_EGREP
4051
case `"$ac_path_EGREP" --version 2>&1` in
4053
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056
$as_echo_n 0123456789 >"conftest.in"
4059
cat "conftest.in" "conftest.in" >"conftest.tmp"
4060
mv "conftest.tmp" "conftest.in"
4061
cp "conftest.in" "conftest.nl"
4062
$as_echo 'EGREP' >> "conftest.nl"
4063
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4065
ac_count=`expr $ac_count + 1`
4066
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4067
# Best one so far, save it but keep looking for a better one
4068
ac_cv_path_EGREP="$ac_path_EGREP"
4069
ac_path_EGREP_max=$ac_count
4071
# 10*(2^10) chars as input seems more than enough
4072
test $ac_count -gt 10 && break
4074
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077
$ac_path_EGREP_found && break 3
4082
if test -z "$ac_cv_path_EGREP"; then
4083
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085
{ (exit 1); exit 1; }; }
4088
ac_cv_path_EGREP=$EGREP
4093
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4094
$as_echo "$ac_cv_path_EGREP" >&6; }
4095
EGREP="$ac_cv_path_EGREP"
4098
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4099
$as_echo_n "checking for ANSI C header files... " >&6; }
4100
if test "${ac_cv_header_stdc+set}" = set; then
4101
$as_echo_n "(cached) " >&6
4103
cat >conftest.$ac_ext <<_ACEOF
4106
cat confdefs.h >>conftest.$ac_ext
4107
cat >>conftest.$ac_ext <<_ACEOF
4108
/* end confdefs.h. */
4122
rm -f conftest.$ac_objext
4123
if { (ac_try="$ac_compile"
4125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126
*) ac_try_echo=$ac_try;;
4128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4129
$as_echo "$ac_try_echo") >&5
4130
(eval "$ac_compile") 2>conftest.er1
4132
grep -v '^ *+' conftest.er1 >conftest.err
4134
cat conftest.err >&5
4135
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136
(exit $ac_status); } && {
4137
test -z "$ac_c_werror_flag" ||
4138
test ! -s conftest.err
4139
} && test -s conftest.$ac_objext; then
4140
ac_cv_header_stdc=yes
4142
$as_echo "$as_me: failed program was:" >&5
4143
sed 's/^/| /' conftest.$ac_ext >&5
4145
ac_cv_header_stdc=no
4148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150
if test $ac_cv_header_stdc = yes; then
4151
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4152
cat >conftest.$ac_ext <<_ACEOF
4155
cat confdefs.h >>conftest.$ac_ext
4156
cat >>conftest.$ac_ext <<_ACEOF
4157
/* end confdefs.h. */
4161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162
$EGREP "memchr" >/dev/null 2>&1; then
4165
ac_cv_header_stdc=no
4171
if test $ac_cv_header_stdc = yes; then
4172
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4173
cat >conftest.$ac_ext <<_ACEOF
4176
cat confdefs.h >>conftest.$ac_ext
4177
cat >>conftest.$ac_ext <<_ACEOF
4178
/* end confdefs.h. */
4182
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183
$EGREP "free" >/dev/null 2>&1; then
4186
ac_cv_header_stdc=no
4192
if test $ac_cv_header_stdc = yes; then
4193
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4194
if test "$cross_compiling" = yes; then
4197
cat >conftest.$ac_ext <<_ACEOF
4200
cat confdefs.h >>conftest.$ac_ext
4201
cat >>conftest.$ac_ext <<_ACEOF
4202
/* end confdefs.h. */
4205
#if ((' ' & 0x0FF) == 0x020)
4206
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4207
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4209
# define ISLOWER(c) \
4210
(('a' <= (c) && (c) <= 'i') \
4211
|| ('j' <= (c) && (c) <= 'r') \
4212
|| ('s' <= (c) && (c) <= 'z'))
4213
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4216
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4221
for (i = 0; i < 256; i++)
4222
if (XOR (islower (i), ISLOWER (i))
4223
|| toupper (i) != TOUPPER (i))
4228
rm -f conftest$ac_exeext
4229
if { (ac_try="$ac_link"
4231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232
*) ac_try_echo=$ac_try;;
4234
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4235
$as_echo "$ac_try_echo") >&5
4236
(eval "$ac_link") 2>&5
4238
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240
{ (case "(($ac_try" in
4241
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242
*) ac_try_echo=$ac_try;;
4244
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4245
$as_echo "$ac_try_echo") >&5
4246
(eval "$ac_try") 2>&5
4248
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249
(exit $ac_status); }; }; then
4252
$as_echo "$as_me: program exited with status $ac_status" >&5
4253
$as_echo "$as_me: failed program was:" >&5
4254
sed 's/^/| /' conftest.$ac_ext >&5
4257
ac_cv_header_stdc=no
4259
rm -rf conftest.dSYM
4260
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4266
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4267
$as_echo "$ac_cv_header_stdc" >&6; }
4268
if test $ac_cv_header_stdc = yes; then
4270
cat >>confdefs.h <<\_ACEOF
4271
#define STDC_HEADERS 1
4276
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4286
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4287
inttypes.h stdint.h unistd.h
4289
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4290
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4291
$as_echo_n "checking for $ac_header... " >&6; }
4292
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293
$as_echo_n "(cached) " >&6
4295
cat >conftest.$ac_ext <<_ACEOF
4298
cat confdefs.h >>conftest.$ac_ext
4299
cat >>conftest.$ac_ext <<_ACEOF
4300
/* end confdefs.h. */
4301
$ac_includes_default
4303
#include <$ac_header>
4305
rm -f conftest.$ac_objext
4306
if { (ac_try="$ac_compile"
4308
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309
*) ac_try_echo=$ac_try;;
4311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4312
$as_echo "$ac_try_echo") >&5
4313
(eval "$ac_compile") 2>conftest.er1
4315
grep -v '^ *+' conftest.er1 >conftest.err
4317
cat conftest.err >&5
4318
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
(exit $ac_status); } && {
4320
test -z "$ac_c_werror_flag" ||
4321
test ! -s conftest.err
4322
} && test -s conftest.$ac_objext; then
4323
eval "$as_ac_Header=yes"
4325
$as_echo "$as_me: failed program was:" >&5
4326
sed 's/^/| /' conftest.$ac_ext >&5
4328
eval "$as_ac_Header=no"
4331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333
ac_res=`eval 'as_val=${'$as_ac_Header'}
4334
$as_echo "$as_val"'`
4335
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4336
$as_echo "$ac_res" >&6; }
4337
as_val=`eval 'as_val=${'$as_ac_Header'}
4338
$as_echo "$as_val"'`
4339
if test "x$as_val" = x""yes; then
4340
cat >>confdefs.h <<_ACEOF
4341
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4350
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4351
if test "${ac_cv_prog_cc_c99+set}" = set; then
4352
$as_echo_n "(cached) " >&6
4354
ac_cv_prog_cc_c99=no
4356
cat >conftest.$ac_ext <<_ACEOF
4359
cat confdefs.h >>conftest.$ac_ext
4360
cat >>conftest.$ac_ext <<_ACEOF
4361
/* end confdefs.h. */
4363
#include <stdbool.h>
4368
// Check varargs macros. These examples are taken from C99 6.10.3.5.
4369
#define debug(...) fprintf (stderr, __VA_ARGS__)
4370
#define showlist(...) puts (#__VA_ARGS__)
4371
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4373
test_varargs_macros (void)
4378
debug ("X = %d\n", x);
4379
showlist (The first, second, and third items.);
4380
report (x>y, "x is %d but y is %d", x, y);
4383
// Check long long types.
4384
#define BIG64 18446744073709551615ull
4385
#define BIG32 4294967295ul
4386
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4388
your preprocessor is broken;
4392
your preprocessor is broken;
4394
static long long int bignum = -9223372036854775807LL;
4395
static unsigned long long int ubignum = BIG64;
4397
struct incomplete_array
4405
const wchar_t *name;
4409
typedef const char *ccp;
4412
test_restrict (ccp restrict text)
4414
// See if C++-style comments work.
4415
// Iterate through items via the restricted pointer.
4416
// Also check for declarations in for loops.
4417
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4422
// Check varargs and va_copy.
4424
test_varargs (const char *format, ...)
4427
va_start (args, format);
4429
va_copy (args_copy, args);
4440
str = va_arg (args_copy, const char *);
4443
number = va_arg (args_copy, int);
4446
fnumber = va_arg (args_copy, double);
4461
_Bool success = false;
4464
if (test_restrict ("String literal") == 0)
4466
char *restrict newvar = "Another string";
4469
test_varargs ("s, d' f .", "string", 65, 34.234);
4470
test_varargs_macros ();
4472
// Check flexible array members.
4473
struct incomplete_array *ia =
4474
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4476
for (int i = 0; i < ia->datasize; ++i)
4477
ia->data[i] = i * 1.234;
4479
// Check named initializers.
4480
struct named_init ni = {
4482
.name = L"Test wide string",
4483
.average = 543.34343,
4488
int dynamic_array[ni.number];
4489
dynamic_array[ni.number - 1] = 543;
4491
// work around unused variable warnings
4492
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4493
|| dynamic_array[ni.number - 1] != 543);
4499
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4501
CC="$ac_save_CC $ac_arg"
4502
rm -f conftest.$ac_objext
4503
if { (ac_try="$ac_compile"
4505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506
*) ac_try_echo=$ac_try;;
4508
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4509
$as_echo "$ac_try_echo") >&5
4510
(eval "$ac_compile") 2>conftest.er1
4512
grep -v '^ *+' conftest.er1 >conftest.err
4514
cat conftest.err >&5
4515
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516
(exit $ac_status); } && {
4517
test -z "$ac_c_werror_flag" ||
4518
test ! -s conftest.err
4519
} && test -s conftest.$ac_objext; then
4520
ac_cv_prog_cc_c99=$ac_arg
4522
$as_echo "$as_me: failed program was:" >&5
4523
sed 's/^/| /' conftest.$ac_ext >&5
4528
rm -f core conftest.err conftest.$ac_objext
4529
test "x$ac_cv_prog_cc_c99" != "xno" && break
4531
rm -f conftest.$ac_ext
4536
case "x$ac_cv_prog_cc_c99" in
4538
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
4539
$as_echo "none needed" >&6; } ;;
4541
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
4542
$as_echo "unsupported" >&6; } ;;
4544
CC="$CC $ac_cv_prog_cc_c99"
4545
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4546
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4551
# Make sure we can run config.sub.
4552
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4553
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4554
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4555
{ (exit 1); exit 1; }; }
4557
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4558
$as_echo_n "checking build system type... " >&6; }
4559
if test "${ac_cv_build+set}" = set; then
4560
$as_echo_n "(cached) " >&6
4562
ac_build_alias=$build_alias
4563
test "x$ac_build_alias" = x &&
4564
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4565
test "x$ac_build_alias" = x &&
4566
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4567
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4568
{ (exit 1); exit 1; }; }
4569
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4570
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4571
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4572
{ (exit 1); exit 1; }; }
4575
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4576
$as_echo "$ac_cv_build" >&6; }
4577
case $ac_cv_build in
4579
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4580
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4581
{ (exit 1); exit 1; }; };;
4584
ac_save_IFS=$IFS; IFS='-'
4590
# Remember, the first character of IFS is used to create $*,
4591
# except with old shells:
4594
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4597
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4598
$as_echo_n "checking host system type... " >&6; }
4599
if test "${ac_cv_host+set}" = set; then
4600
$as_echo_n "(cached) " >&6
4602
if test "x$host_alias" = x; then
4603
ac_cv_host=$ac_cv_build
4605
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4606
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4607
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4608
{ (exit 1); exit 1; }; }
4612
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4613
$as_echo "$ac_cv_host" >&6; }
4616
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4617
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4618
{ (exit 1); exit 1; }; };;
4621
ac_save_IFS=$IFS; IFS='-'
4627
# Remember, the first character of IFS is used to create $*,
4628
# except with old shells:
4631
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4637
if test "x$GCC" = xyes ; then
4638
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4639
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4640
-Wbad-function-cast"
4641
case `$CC -dumpversion` in
4643
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4647
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4648
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4649
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4650
$as_echo_n "(cached) " >&6
4652
cat >conftest.$ac_ext <<_ACEOF
4655
cat confdefs.h >>conftest.$ac_ext
4656
cat >>conftest.$ac_ext <<_ACEOF
4657
/* end confdefs.h. */
4658
$ac_includes_default
4670
rm -f conftest.$ac_objext
4671
if { (ac_try="$ac_compile"
4673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674
*) ac_try_echo=$ac_try;;
4676
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4677
$as_echo "$ac_try_echo") >&5
4678
(eval "$ac_compile") 2>conftest.er1
4680
grep -v '^ *+' conftest.er1 >conftest.err
4682
cat conftest.err >&5
4683
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684
(exit $ac_status); } && {
4685
test -z "$ac_c_werror_flag" ||
4686
test ! -s conftest.err
4687
} && test -s conftest.$ac_objext; then
4688
ac_cv_have_decl___SUNPRO_C=yes
4690
$as_echo "$as_me: failed program was:" >&5
4691
sed 's/^/| /' conftest.$ac_ext >&5
4693
ac_cv_have_decl___SUNPRO_C=no
4696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4699
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4700
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4706
if test "x$SUNCC" = "xyes"; then
4711
# Check whether --enable-silent-rules was given.
4712
if test "${enable_silent_rules+set}" = set; then
4713
enableval=$enable_silent_rules;
4716
case $enable_silent_rules in
4717
yes) AM_DEFAULT_VERBOSITY=0;;
4718
no) AM_DEFAULT_VERBOSITY=1;;
4719
*) AM_DEFAULT_VERBOSITY=0;;
4729
# Check whether --enable-strict-compilation was given.
4730
if test "${enable_strict_compilation+set}" = set; then
4731
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4736
if test "x$STRICT_COMPILE" = "xyes"; then
4737
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4738
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4739
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4740
$as_echo_n "(cached) " >&6
4742
cat >conftest.$ac_ext <<_ACEOF
4745
cat confdefs.h >>conftest.$ac_ext
4746
cat >>conftest.$ac_ext <<_ACEOF
4747
/* end confdefs.h. */
4748
$ac_includes_default
4760
rm -f conftest.$ac_objext
4761
if { (ac_try="$ac_compile"
4763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764
*) ac_try_echo=$ac_try;;
4766
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4767
$as_echo "$ac_try_echo") >&5
4768
(eval "$ac_compile") 2>conftest.er1
4770
grep -v '^ *+' conftest.er1 >conftest.err
4772
cat conftest.err >&5
4773
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774
(exit $ac_status); } && {
4775
test -z "$ac_c_werror_flag" ||
4776
test ! -s conftest.err
4777
} && test -s conftest.$ac_objext; then
4778
ac_cv_have_decl___SUNPRO_C=yes
4780
$as_echo "$as_me: failed program was:" >&5
4781
sed 's/^/| /' conftest.$ac_ext >&5
4783
ac_cv_have_decl___SUNPRO_C=no
4786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4789
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4790
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4796
{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4797
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4798
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4799
$as_echo_n "(cached) " >&6
4801
cat >conftest.$ac_ext <<_ACEOF
4804
cat confdefs.h >>conftest.$ac_ext
4805
cat >>conftest.$ac_ext <<_ACEOF
4806
/* end confdefs.h. */
4807
$ac_includes_default
4811
#ifndef __INTEL_COMPILER
4812
(void) __INTEL_COMPILER;
4819
rm -f conftest.$ac_objext
4820
if { (ac_try="$ac_compile"
4822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823
*) ac_try_echo=$ac_try;;
4825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826
$as_echo "$ac_try_echo") >&5
4827
(eval "$ac_compile") 2>conftest.er1
4829
grep -v '^ *+' conftest.er1 >conftest.err
4831
cat conftest.err >&5
4832
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833
(exit $ac_status); } && {
4834
test -z "$ac_c_werror_flag" ||
4835
test ! -s conftest.err
4836
} && test -s conftest.$ac_objext; then
4837
ac_cv_have_decl___INTEL_COMPILER=yes
4839
$as_echo "$as_me: failed program was:" >&5
4840
sed 's/^/| /' conftest.$ac_ext >&5
4842
ac_cv_have_decl___INTEL_COMPILER=no
4845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4848
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4849
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4855
if test "x$GCC" = xyes ; then
4856
STRICT_CFLAGS="-pedantic -Werror"
4857
elif test "x$SUNCC" = "xyes"; then
4858
STRICT_CFLAGS="-errwarn"
4859
elif test "x$INTELCC" = "xyes"; then
4860
STRICT_CFLAGS="-Werror"
4863
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4868
# Check whether --with-release-version was given.
4869
if test "${with_release_version+set}" = set; then
4870
withval=$with_release_version; RELEASE_VERSION="$withval"
4875
if test "x$RELEASE_VERSION" != "x"; then
4876
PACKAGE="$PACKAGE-$RELEASE_VERSION"
4877
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4878
{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4879
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4882
cat >>confdefs.h <<_ACEOF
4883
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4886
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4887
if test "x$PVM" = "x"; then
4891
cat >>confdefs.h <<_ACEOF
4892
#define PACKAGE_VERSION_MINOR $PVM
4895
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4896
if test "x$PVP" = "x"; then
4900
cat >>confdefs.h <<_ACEOF
4901
#define PACKAGE_VERSION_PATCHLEVEL $PVP
4906
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4907
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4908
echo 'git directory not found: installing possibly empty changelog.' >&2)"
4910
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4916
if test x$APP_MAN_SUFFIX = x ; then
4919
if test x$APP_MAN_DIR = x ; then
4920
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4923
if test x$LIB_MAN_SUFFIX = x ; then
4926
if test x$LIB_MAN_DIR = x ; then
4927
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4930
if test x$FILE_MAN_SUFFIX = x ; then
4932
solaris*) FILE_MAN_SUFFIX=4 ;;
4933
*) FILE_MAN_SUFFIX=5 ;;
4936
if test x$FILE_MAN_DIR = x ; then
4937
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4940
if test x$MISC_MAN_SUFFIX = x ; then
4942
solaris*) MISC_MAN_SUFFIX=5 ;;
4943
*) MISC_MAN_SUFFIX=7 ;;
4946
if test x$MISC_MAN_DIR = x ; then
4947
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4950
if test x$DRIVER_MAN_SUFFIX = x ; then
4952
solaris*) DRIVER_MAN_SUFFIX=7 ;;
4953
*) DRIVER_MAN_SUFFIX=4 ;;
4956
if test x$DRIVER_MAN_DIR = x ; then
4957
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4960
if test x$ADMIN_MAN_SUFFIX = x ; then
4962
solaris*) ADMIN_MAN_SUFFIX=1m ;;
4963
*) ADMIN_MAN_SUFFIX=8 ;;
4966
if test x$ADMIN_MAN_DIR = x ; then
4967
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
3500
4986
# Checks for pkg-config packages
3607
5089
if test -n "$PKG_CONFIG"; then
3608
5090
_pkg_min_version=0.9.0
3609
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3610
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5091
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5092
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3611
5093
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3612
{ echo "$as_me:$LINENO: result: yes" >&5
3613
echo "${ECHO_T}yes" >&6; }
5094
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5095
$as_echo "yes" >&6; }
3615
{ echo "$as_me:$LINENO: result: no" >&5
3616
echo "${ECHO_T}no" >&6; }
5097
{ $as_echo "$as_me:$LINENO: result: no" >&5
5098
$as_echo "no" >&6; }
3623
{ echo "$as_me:$LINENO: checking for ICEAUTH" >&5
3624
echo $ECHO_N "checking for ICEAUTH... $ECHO_C" >&6; }
5105
{ $as_echo "$as_me:$LINENO: checking for ICEAUTH" >&5
5106
$as_echo_n "checking for ICEAUTH... " >&6; }
3626
if test -n "$PKG_CONFIG"; then
3627
if test -n "$PKG_CONFIG" && \
3628
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto ice\"") >&5
5108
if test -n "$ICEAUTH_CFLAGS"; then
5109
pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS"
5110
elif test -n "$PKG_CONFIG"; then
5111
if test -n "$PKG_CONFIG" && \
5112
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto ice\"") >&5
3629
5113
($PKG_CONFIG --exists --print-errors "xproto ice") 2>&5
3631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632
5116
(exit $ac_status); }; then
3633
5117
pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto ice" 2>/dev/null`
3640
if test -n "$PKG_CONFIG"; then
3641
if test -n "$PKG_CONFIG" && \
3642
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto ice\"") >&5
5124
if test -n "$ICEAUTH_LIBS"; then
5125
pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS"
5126
elif test -n "$PKG_CONFIG"; then
5127
if test -n "$PKG_CONFIG" && \
5128
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto ice\"") >&5
3643
5129
($PKG_CONFIG --exists --print-errors "xproto ice") 2>&5
3645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646
5132
(exit $ac_status); }; then
3647
5133
pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto ice" 2>/dev/null`
3655
5143
if test $pkg_failed = yes; then
3656
ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto ice"`
5145
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5146
_pkg_short_errors_supported=yes
5148
_pkg_short_errors_supported=no
5150
if test $_pkg_short_errors_supported = yes; then
5151
ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto ice" 2>&1`
5153
ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto ice" 2>&1`
3657
5155
# Put the nasty error message in config.log where it belongs
3658
echo "$ICEAUTH_PKG_ERRORS" 1>&5
3660
{ { echo "$as_me:$LINENO: error: Package requirements (xproto ice) were not met.
3661
Consider adjusting the PKG_CONFIG_PATH environment variable if you
3662
installed software in a non-standard prefix.
3664
Alternatively you may set the ICEAUTH_CFLAGS and ICEAUTH_LIBS environment variables
3665
to avoid the need to call pkg-config. See the pkg-config man page for
3667
echo "$as_me: error: Package requirements (xproto ice) were not met.
3668
Consider adjusting the PKG_CONFIG_PATH environment variable if you
3669
installed software in a non-standard prefix.
3671
Alternatively you may set the ICEAUTH_CFLAGS and ICEAUTH_LIBS environment variables
3672
to avoid the need to call pkg-config. See the pkg-config man page for
3673
more details." >&2;}
5156
echo "$ICEAUTH_PKG_ERRORS" >&5
5158
{ { $as_echo "$as_me:$LINENO: error: Package requirements (xproto ice) were not met:
5162
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5163
installed software in a non-standard prefix.
5165
Alternatively, you may set the environment variables ICEAUTH_CFLAGS
5166
and ICEAUTH_LIBS to avoid the need to call pkg-config.
5167
See the pkg-config man page for more details.
5169
$as_echo "$as_me: error: Package requirements (xproto ice) were not met:
5173
Consider adjusting the PKG_CONFIG_PATH environment variable if you
5174
installed software in a non-standard prefix.
5176
Alternatively, you may set the environment variables ICEAUTH_CFLAGS
5177
and ICEAUTH_LIBS to avoid the need to call pkg-config.
5178
See the pkg-config man page for more details.
3674
5180
{ (exit 1); exit 1; }; }
3675
5181
elif test $pkg_failed = untried; then
3676
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5182
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5183
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3677
5185
is in your PATH or set the PKG_CONFIG environment variable to the full
3678
5186
path to pkg-config.
3680
Alternatively you may set the ICEAUTH_CFLAGS and ICEAUTH_LIBS environment variables
3681
to avoid the need to call pkg-config. See the pkg-config man page for
5188
Alternatively, you may set the environment variables ICEAUTH_CFLAGS
5189
and ICEAUTH_LIBS to avoid the need to call pkg-config.
5190
See the pkg-config man page for more details.
3684
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5192
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3685
5193
See \`config.log' for more details." >&5
3686
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5194
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3687
5195
is in your PATH or set the PKG_CONFIG environment variable to the full
3688
5196
path to pkg-config.
3690
Alternatively you may set the ICEAUTH_CFLAGS and ICEAUTH_LIBS environment variables
3691
to avoid the need to call pkg-config. See the pkg-config man page for
5198
Alternatively, you may set the environment variables ICEAUTH_CFLAGS
5199
and ICEAUTH_LIBS to avoid the need to call pkg-config.
5200
See the pkg-config man page for more details.
3694
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5202
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3695
5203
See \`config.log' for more details." >&2;}
3696
{ (exit 1); exit 1; }; }
5204
{ (exit 1); exit 1; }; }; }
3698
5206
ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS
3699
5207
ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS
3700
{ echo "$as_me:$LINENO: result: yes" >&5
3701
echo "${ECHO_T}yes" >&6; }
5208
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5209
$as_echo "yes" >&6; }
4577
5942
(umask 077 && mkdir "$tmp")
4580
echo "$me: cannot create a temporary directory in ." >&2
5945
$as_echo "$as_me: cannot create a temporary directory in ." >&2
4581
5946
{ (exit 1); exit 1; }
4585
# Set up the sed scripts for CONFIG_FILES section.
4588
# No need to generate the scripts if there are no CONFIG_FILES.
4589
# This happens for instance when ./config.status config.h
5949
# Set up the scripts for CONFIG_FILES section.
5950
# No need to generate them if there are no CONFIG_FILES.
5951
# This happens for instance with `./config.status config.h'.
4590
5952
if test -n "$CONFIG_FILES"; then
4597
for ac_last_try in false false false false false :; do
4598
cat >conf$$subs.sed <<_ACEOF
4599
SHELL!$SHELL$ac_delim
4600
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4601
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4602
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4603
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4604
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4605
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4606
exec_prefix!$exec_prefix$ac_delim
4607
prefix!$prefix$ac_delim
4608
program_transform_name!$program_transform_name$ac_delim
4609
bindir!$bindir$ac_delim
4610
sbindir!$sbindir$ac_delim
4611
libexecdir!$libexecdir$ac_delim
4612
datarootdir!$datarootdir$ac_delim
4613
datadir!$datadir$ac_delim
4614
sysconfdir!$sysconfdir$ac_delim
4615
sharedstatedir!$sharedstatedir$ac_delim
4616
localstatedir!$localstatedir$ac_delim
4617
includedir!$includedir$ac_delim
4618
oldincludedir!$oldincludedir$ac_delim
4619
docdir!$docdir$ac_delim
4620
infodir!$infodir$ac_delim
4621
htmldir!$htmldir$ac_delim
4622
dvidir!$dvidir$ac_delim
4623
pdfdir!$pdfdir$ac_delim
4624
psdir!$psdir$ac_delim
4625
libdir!$libdir$ac_delim
4626
localedir!$localedir$ac_delim
4627
mandir!$mandir$ac_delim
4629
ECHO_C!$ECHO_C$ac_delim
4630
ECHO_N!$ECHO_N$ac_delim
4631
ECHO_T!$ECHO_T$ac_delim
4633
build_alias!$build_alias$ac_delim
4634
host_alias!$host_alias$ac_delim
4635
target_alias!$target_alias$ac_delim
4636
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4637
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
4638
INSTALL_DATA!$INSTALL_DATA$ac_delim
4639
am__isrc!$am__isrc$ac_delim
4640
CYGPATH_W!$CYGPATH_W$ac_delim
4641
PACKAGE!$PACKAGE$ac_delim
4642
VERSION!$VERSION$ac_delim
4643
ACLOCAL!$ACLOCAL$ac_delim
4644
AUTOCONF!$AUTOCONF$ac_delim
4645
AUTOMAKE!$AUTOMAKE$ac_delim
4646
AUTOHEADER!$AUTOHEADER$ac_delim
4647
MAKEINFO!$MAKEINFO$ac_delim
4648
install_sh!$install_sh$ac_delim
4649
STRIP!$STRIP$ac_delim
4650
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
4651
mkdir_p!$mkdir_p$ac_delim
4653
SET_MAKE!$SET_MAKE$ac_delim
4654
am__leading_dot!$am__leading_dot$ac_delim
4655
AMTAR!$AMTAR$ac_delim
4656
am__tar!$am__tar$ac_delim
4657
am__untar!$am__untar$ac_delim
4658
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
4659
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
4660
MAINT!$MAINT$ac_delim
4662
CFLAGS!$CFLAGS$ac_delim
4663
LDFLAGS!$LDFLAGS$ac_delim
4664
CPPFLAGS!$CPPFLAGS$ac_delim
4665
ac_ct_CC!$ac_ct_CC$ac_delim
4666
EXEEXT!$EXEEXT$ac_delim
4667
OBJEXT!$OBJEXT$ac_delim
4668
DEPDIR!$DEPDIR$ac_delim
4669
am__include!$am__include$ac_delim
4670
am__quote!$am__quote$ac_delim
4671
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
4672
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
4673
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
4674
CCDEPMODE!$CCDEPMODE$ac_delim
4675
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
4676
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
4677
PKG_CONFIG!$PKG_CONFIG$ac_delim
4678
ICEAUTH_CFLAGS!$ICEAUTH_CFLAGS$ac_delim
4679
ICEAUTH_LIBS!$ICEAUTH_LIBS$ac_delim
4681
LINT_FLAGS!$LINT_FLAGS$ac_delim
4682
LINT_TRUE!$LINT_TRUE$ac_delim
4683
LINT_FALSE!$LINT_FALSE$ac_delim
4684
build!$build$ac_delim
4685
build_cpu!$build_cpu$ac_delim
4686
build_vendor!$build_vendor$ac_delim
4687
build_os!$build_os$ac_delim
4689
host_cpu!$host_cpu$ac_delim
4690
host_vendor!$host_vendor$ac_delim
4691
host_os!$host_os$ac_delim
4692
APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
4693
LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
4694
FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
4695
MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
4698
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
4700
elif $ac_last_try; then
4701
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4702
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4703
{ (exit 1); exit 1; }; }
4705
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4709
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4710
if test -n "$ac_eof"; then
4711
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4712
ac_eof=`expr $ac_eof + 1`
4715
cat >>$CONFIG_STATUS <<_ACEOF
4716
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4717
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4720
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4721
s/^/s,@/; s/!/@,|#_!!_#|/
4724
s/'"$ac_delim"'$/,g/; t
4726
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4727
' >>$CONFIG_STATUS <conf$$subs.sed
4728
rm -f conf$$subs.sed
4729
cat >>$CONFIG_STATUS <<_ACEOF
4735
for ac_last_try in false false false false false :; do
4736
cat >conf$$subs.sed <<_ACEOF
4737
DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
4738
ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
4739
APP_MAN_DIR!$APP_MAN_DIR$ac_delim
4740
LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
4741
FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
4742
MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
4743
DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
4744
ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
4745
LIBOBJS!$LIBOBJS$ac_delim
4746
LTLIBOBJS!$LTLIBOBJS$ac_delim
4749
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
4751
elif $ac_last_try; then
4752
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4753
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4754
{ (exit 1); exit 1; }; }
4756
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4760
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4761
if test -n "$ac_eof"; then
4762
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4763
ac_eof=`expr $ac_eof + 1`
4766
cat >>$CONFIG_STATUS <<_ACEOF
4767
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
4768
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4771
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4772
s/^/s,@/; s/!/@,|#_!!_#|/
4775
s/'"$ac_delim"'$/,g/; t
4777
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4778
' >>$CONFIG_STATUS <conf$$subs.sed
4779
rm -f conf$$subs.sed
4780
cat >>$CONFIG_STATUS <<_ACEOF
5956
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5957
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5963
echo 'BEGIN {' >"$tmp/subs1.awk" &&
5968
echo "cat >conf$$subs.awk <<_ACEOF" &&
5969
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5972
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5973
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5974
{ (exit 1); exit 1; }; }
5975
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5977
for ac_last_try in false false false false false :; do
5978
. ./conf$$subs.sh ||
5979
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5980
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5981
{ (exit 1); exit 1; }; }
5983
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5984
if test $ac_delim_n = $ac_delim_num; then
5986
elif $ac_last_try; then
5987
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5988
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5989
{ (exit 1); exit 1; }; }
5991
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5996
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5997
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6001
s/^/S["/; s/!.*/"]=/
6011
s/\(.\{148\}\).*/\1/
6013
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6018
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6025
s/\(.\{148\}\).*/\1/
6027
s/["\\]/\\&/g; s/^/"/; s/$/"/
6031
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6036
' <conf$$subs.awk | sed '
6041
' >>$CONFIG_STATUS || ac_write_fail=1
6042
rm -f conf$$subs.awk
6043
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6045
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6046
for (key in S) S_is_set[key] = 1
6052
nfields = split(line, field, "@")
6054
len = length(field[1])
6055
for (i = 2; i < nfields; i++) {
6057
keylen = length(key)
6058
if (S_is_set[key]) {
6060
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6061
len += length(value) + length(field[++i])
6072
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6073
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6074
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6077
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6078
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6079
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
6080
{ (exit 1); exit 1; }; }
4787
6083
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4788
6084
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5033
6458
s&@INSTALL@&$ac_INSTALL&;t t
5034
6459
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5035
6460
$ac_datarootdir_hack
5036
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
6462
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6463
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6464
$as_echo "$as_me: error: could not create $ac_file" >&2;}
6465
{ (exit 1); exit 1; }; }
5038
6467
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5039
6468
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5040
6469
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5041
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6470
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5042
6471
which seems to be undefined. Please make sure it is defined." >&5
5043
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6472
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5044
6473
which seems to be undefined. Please make sure it is defined." >&2;}
5046
6475
rm -f "$tmp/stdin"
5047
6476
case $ac_file in
5048
-) cat "$tmp/out"; rm -f "$tmp/out";;
5049
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6477
-) cat "$tmp/out" && rm -f "$tmp/out";;
6478
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6480
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6481
$as_echo "$as_me: error: could not create $ac_file" >&2;}
6482
{ (exit 1); exit 1; }; }
5054
6486
# CONFIG_HEADER
5058
# Transform confdefs.h into a sed script `conftest.defines', that
5059
# substitutes the proper values into config.h.in to produce config.h.
5060
rm -f conftest.defines conftest.tail
5061
# First, append a space to every undef/define line, to ease matching.
5062
echo 's/$/ /' >conftest.defines
5063
# Then, protect against being on the right side of a sed subst, or in
5064
# an unquoted here document, in config.status. If some macros were
5065
# called several times there might be several #defines for the same
5066
# symbol, which is useless. But do not sort them, since the last
5067
# AC_DEFINE must be honored.
5068
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5069
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5070
# NAME is the cpp macro being defined, VALUE is the value it is being given.
5071
# PARAMS is the parameter list in the macro definition--in most cases, it's
5072
# just an empty string.
5073
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
5074
ac_dB='\\)[ (].*,\\1define\\2'
5082
s/^[ ]*#[ ]*define[ ][ ]*//
5087
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5088
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5089
' >>conftest.defines
5091
# Remove the space that was appended to ease matching.
5092
# Then replace #undef with comments. This is necessary, for
5093
# example, in the case of _POSIX_SOURCE, which is predefined and required
5094
# on some systems where configure will not decide to define it.
5095
# (The regexp can be short, since the line contains either #define or #undef.)
5097
s,^[ #]*u.*,/* & */,' >>conftest.defines
5099
# Break up conftest.defines:
5102
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5103
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5104
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5106
ac_in='$ac_file_inputs'
5107
ac_out='"$tmp/out1"'
5108
ac_nxt='"$tmp/out2"'
5112
# Write a here document:
5113
cat >>$CONFIG_STATUS <<_ACEOF
5114
# First, check the format of the line:
5115
cat >"\$tmp/defines.sed" <<\\CEOF
5116
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
5117
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
5121
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5123
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5124
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5125
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5126
grep . conftest.tail >/dev/null || break
5127
rm -f conftest.defines
5128
mv conftest.tail conftest.defines
5130
rm -f conftest.defines conftest.tail
5132
echo "ac_result=$ac_in" >>$CONFIG_STATUS
5133
cat >>$CONFIG_STATUS <<\_ACEOF
5134
6488
if test x"$ac_file" != x-; then
5135
echo "/* $configure_input */" >"$tmp/config.h"
5136
cat "$ac_result" >>"$tmp/config.h"
5137
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5138
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5139
echo "$as_me: $ac_file is unchanged" >&6;}
6490
$as_echo "/* $configure_input */" \
6491
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6492
} >"$tmp/config.h" \
6493
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6494
$as_echo "$as_me: error: could not create $ac_file" >&2;}
6495
{ (exit 1); exit 1; }; }
6496
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6497
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6498
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5142
mv "$tmp/config.h" $ac_file
6501
mv "$tmp/config.h" "$ac_file" \
6502
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6503
$as_echo "$as_me: error: could not create $ac_file" >&2;}
6504
{ (exit 1); exit 1; }; }
5145
echo "/* $configure_input */"
6507
$as_echo "/* $configure_input */" \
6508
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6509
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6510
$as_echo "$as_me: error: could not create -" >&2;}
6511
{ (exit 1); exit 1; }; }
5149
# Compute $ac_file's index in $config_headers.
6513
# Compute "$ac_file"'s index in $config_headers.
5150
6515
_am_stamp_count=1
5151
6516
for _am_header in $config_headers :; do
5152
6517
case $_am_header in
5153
$ac_file | $ac_file:* )
6518
$_am_arg | $_am_arg:* )
5156
6521
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
5159
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
5160
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5161
X$ac_file : 'X\(//\)[^/]' \| \
5162
X$ac_file : 'X\(//\)$' \| \
5163
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6524
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6525
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6526
X"$_am_arg" : 'X\(//\)[^/]' \| \
6527
X"$_am_arg" : 'X\(//\)$' \| \
6528
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6529
$as_echo X"$_am_arg" |
5165
6530
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{