1977
for ac_func in sched_setscheduler
1979
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1980
echo "configure:1981: checking for $ac_func" >&5
1981
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1982
echo $ac_n "(cached) $ac_c" 1>&6
1984
cat > conftest.$ac_ext <<EOF
1985
#line 1986 "configure"
1986
#include "confdefs.h"
1987
/* System header to define __stub macros and hopefully few prototypes,
1988
which can conflict with char $ac_func(); below. */
1990
/* Override any gcc2 internal prototype to avoid an error. */
1991
/* We use char because int might match the return type of a gcc2
1992
builtin and then its argument prototype would still apply. */
1997
/* The GNU C library defines this for functions which it implements
1998
to always fail with ENOSYS. Some functions are actually named
1999
something starting with __ and the normal name is an alias. */
2000
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2008
if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010
eval "ac_cv_func_$ac_func=yes"
2012
echo "configure: failed program was:" >&5
2013
cat conftest.$ac_ext >&5
2015
eval "ac_cv_func_$ac_func=no"
2020
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2021
echo "$ac_t""yes" 1>&6
2022
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2023
cat >> confdefs.h <<EOF
2024
#define $ac_tr_func 1
2028
echo "$ac_t""no" 1>&6
2032
echo $ac_n "checking for sched_setscheduler in -lposix4""... $ac_c" 1>&6
2033
echo "configure:2034: checking for sched_setscheduler in -lposix4" >&5
2034
ac_lib_var=`echo posix4'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2035
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2036
echo $ac_n "(cached) $ac_c" 1>&6
2038
ac_save_LIBS="$LIBS"
2039
LIBS="-lposix4 $LIBS"
2040
cat > conftest.$ac_ext <<EOF
2041
#line 2042 "configure"
2042
#include "confdefs.h"
2043
/* Override any gcc2 internal prototype to avoid an error. */
2044
/* We use char because int might match the return type of a gcc2
2045
builtin and then its argument prototype would still apply. */
2046
char sched_setscheduler();
2049
sched_setscheduler()
2052
if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054
eval "ac_cv_lib_$ac_lib_var=yes"
2056
echo "configure: failed program was:" >&5
2057
cat conftest.$ac_ext >&5
2059
eval "ac_cv_lib_$ac_lib_var=no"
2062
LIBS="$ac_save_LIBS"
2065
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2066
echo "$ac_t""yes" 1>&6
2067
ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2068
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2069
cat >> confdefs.h <<EOF
2070
#define $ac_tr_lib 1
2073
LIBS="-lposix4 $LIBS"
2076
echo "$ac_t""no" 1>&6
2079
echo $ac_n "checking for sched_setscheduler in -lposix4""... $ac_c" 1>&6
2080
echo "configure:2081: checking for sched_setscheduler in -lposix4" >&5
2081
ac_lib_var=`echo posix4'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2082
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2083
echo $ac_n "(cached) $ac_c" 1>&6
2085
ac_save_LIBS="$LIBS"
2086
LIBS="-lposix4 $LIBS"
2087
cat > conftest.$ac_ext <<EOF
2088
#line 2089 "configure"
2089
#include "confdefs.h"
2090
/* Override any gcc2 internal prototype to avoid an error. */
2091
/* We use char because int might match the return type of a gcc2
2092
builtin and then its argument prototype would still apply. */
2093
char sched_setscheduler();
2096
sched_setscheduler()
2099
if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2101
eval "ac_cv_lib_$ac_lib_var=yes"
2103
echo "configure: failed program was:" >&5
2104
cat conftest.$ac_ext >&5
2106
eval "ac_cv_lib_$ac_lib_var=no"
2109
LIBS="$ac_save_LIBS"
2112
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2113
echo "$ac_t""yes" 1>&6
2115
cat >> confdefs.h <<\EOF
2116
#define HAVE_SCHED_SETSCHEDULER 1
2121
echo "$ac_t""no" 1>&6
2124
echo $ac_n "checking for sched_setscheduler in -lrt""... $ac_c" 1>&6
2125
echo "configure:2126: checking for sched_setscheduler in -lrt" >&5
2126
ac_lib_var=`echo rt'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2127
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2128
echo $ac_n "(cached) $ac_c" 1>&6
2130
ac_save_LIBS="$LIBS"
2132
cat > conftest.$ac_ext <<EOF
2133
#line 2134 "configure"
2134
#include "confdefs.h"
2135
/* Override any gcc2 internal prototype to avoid an error. */
2136
/* We use char because int might match the return type of a gcc2
2137
builtin and then its argument prototype would still apply. */
2138
char sched_setscheduler();
2141
sched_setscheduler()
2144
if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2146
eval "ac_cv_lib_$ac_lib_var=yes"
2148
echo "configure: failed program was:" >&5
2149
cat conftest.$ac_ext >&5
2151
eval "ac_cv_lib_$ac_lib_var=no"
2154
LIBS="$ac_save_LIBS"
2157
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2158
echo "$ac_t""yes" 1>&6
2159
ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2160
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2161
cat >> confdefs.h <<EOF
2162
#define $ac_tr_lib 1
2168
echo "$ac_t""no" 1>&6
2171
echo $ac_n "checking for sched_setscheduler in -lrt""... $ac_c" 1>&6
2172
echo "configure:2173: checking for sched_setscheduler in -lrt" >&5
2173
ac_lib_var=`echo rt'_'sched_setscheduler | sed 'y%./+-%__p_%'`
2174
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2175
echo $ac_n "(cached) $ac_c" 1>&6
2177
ac_save_LIBS="$LIBS"
2179
cat > conftest.$ac_ext <<EOF
2180
#line 2181 "configure"
2181
#include "confdefs.h"
2182
/* Override any gcc2 internal prototype to avoid an error. */
2183
/* We use char because int might match the return type of a gcc2
2184
builtin and then its argument prototype would still apply. */
2185
char sched_setscheduler();
2188
sched_setscheduler()
2191
if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2193
eval "ac_cv_lib_$ac_lib_var=yes"
2195
echo "configure: failed program was:" >&5
2196
cat conftest.$ac_ext >&5
2198
eval "ac_cv_lib_$ac_lib_var=no"
2201
LIBS="$ac_save_LIBS"
2204
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2205
echo "$ac_t""yes" 1>&6
2207
cat >> confdefs.h <<\EOF
2208
#define HAVE_SCHED_SETSCHEDULER 1
2213
echo "$ac_t""no" 1>&6
2217
echo $ac_n "checking for i386_get_ioperm in -li386""... $ac_c" 1>&6
2218
echo "configure:2219: checking for i386_get_ioperm in -li386" >&5
2219
ac_lib_var=`echo i386'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
2220
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2221
echo $ac_n "(cached) $ac_c" 1>&6
2223
ac_save_LIBS="$LIBS"
2225
cat > conftest.$ac_ext <<EOF
2226
#line 2227 "configure"
2227
#include "confdefs.h"
2228
/* Override any gcc2 internal prototype to avoid an error. */
2229
/* We use char because int might match the return type of a gcc2
2230
builtin and then its argument prototype would still apply. */
2231
char i386_get_ioperm();
2237
if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239
eval "ac_cv_lib_$ac_lib_var=yes"
2241
echo "configure: failed program was:" >&5
2242
cat conftest.$ac_ext >&5
2244
eval "ac_cv_lib_$ac_lib_var=no"
2247
LIBS="$ac_save_LIBS"
2250
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2251
echo "$ac_t""yes" 1>&6
2252
ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2253
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2254
cat >> confdefs.h <<EOF
2255
#define $ac_tr_lib 1
2261
echo "$ac_t""no" 1>&6
2264
echo $ac_n "checking for i386_get_ioperm in -li386""... $ac_c" 1>&6
2265
echo "configure:2266: checking for i386_get_ioperm in -li386" >&5
2266
ac_lib_var=`echo i386'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
2267
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2268
echo $ac_n "(cached) $ac_c" 1>&6
2270
ac_save_LIBS="$LIBS"
2272
cat > conftest.$ac_ext <<EOF
2273
#line 2274 "configure"
2274
#include "confdefs.h"
2275
/* Override any gcc2 internal prototype to avoid an error. */
2276
/* We use char because int might match the return type of a gcc2
2277
builtin and then its argument prototype would still apply. */
2278
char i386_get_ioperm();
2284
if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286
eval "ac_cv_lib_$ac_lib_var=yes"
2288
echo "configure: failed program was:" >&5
2289
cat conftest.$ac_ext >&5
2291
eval "ac_cv_lib_$ac_lib_var=no"
2294
LIBS="$ac_save_LIBS"
2297
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2298
echo "$ac_t""yes" 1>&6
2299
cat >> confdefs.h <<\EOF
2300
#define HAVE_I386_IOPERM_NETBSD 1
2304
echo "$ac_t""no" 1>&6
2306
echo $ac_n "checking for i386_get_ioperm in -lc""... $ac_c" 1>&6
2307
echo "configure:2308: checking for i386_get_ioperm in -lc" >&5
2308
ac_lib_var=`echo c'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
2309
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2310
echo $ac_n "(cached) $ac_c" 1>&6
2312
ac_save_LIBS="$LIBS"
2314
cat > conftest.$ac_ext <<EOF
2315
#line 2316 "configure"
2316
#include "confdefs.h"
2317
/* Override any gcc2 internal prototype to avoid an error. */
2318
/* We use char because int might match the return type of a gcc2
2319
builtin and then its argument prototype would still apply. */
2320
char i386_get_ioperm();
2326
if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2328
eval "ac_cv_lib_$ac_lib_var=yes"
2330
echo "configure: failed program was:" >&5
2331
cat conftest.$ac_ext >&5
2333
eval "ac_cv_lib_$ac_lib_var=no"
2336
LIBS="$ac_save_LIBS"
2339
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340
echo "$ac_t""yes" 1>&6
2341
ac_tr_lib=HAVE_LIB`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2342
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2343
cat >> confdefs.h <<EOF
2344
#define $ac_tr_lib 1
2350
echo "$ac_t""no" 1>&6
2353
echo $ac_n "checking for i386_get_ioperm in -lc""... $ac_c" 1>&6
2354
echo "configure:2355: checking for i386_get_ioperm in -lc" >&5
2355
ac_lib_var=`echo c'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
2356
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2357
echo $ac_n "(cached) $ac_c" 1>&6
2359
ac_save_LIBS="$LIBS"
2361
cat > conftest.$ac_ext <<EOF
2362
#line 2363 "configure"
2363
#include "confdefs.h"
2364
/* Override any gcc2 internal prototype to avoid an error. */
2365
/* We use char because int might match the return type of a gcc2
2366
builtin and then its argument prototype would still apply. */
2367
char i386_get_ioperm();
2373
if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2375
eval "ac_cv_lib_$ac_lib_var=yes"
2377
echo "configure: failed program was:" >&5
2378
cat conftest.$ac_ext >&5
2380
eval "ac_cv_lib_$ac_lib_var=no"
2383
LIBS="$ac_save_LIBS"
2386
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2387
echo "$ac_t""yes" 1>&6
2388
cat >> confdefs.h <<\EOF
2389
#define HAVE_I386_IOPERM_FREEBSD 1
2393
echo "$ac_t""no" 1>&6
2400
for ac_func in ioperm
2402
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2403
echo "configure:2404: checking for $ac_func" >&5
2404
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2405
echo $ac_n "(cached) $ac_c" 1>&6
2407
cat > conftest.$ac_ext <<EOF
2408
#line 2409 "configure"
2409
#include "confdefs.h"
2410
/* System header to define __stub macros and hopefully few prototypes,
2411
which can conflict with char $ac_func(); below. */
2413
/* Override any gcc2 internal prototype to avoid an error. */
2414
/* We use char because int might match the return type of a gcc2
2415
builtin and then its argument prototype would still apply. */
2420
/* The GNU C library defines this for functions which it implements
2421
to always fail with ENOSYS. Some functions are actually named
2422
something starting with __ and the normal name is an alias. */
2423
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2431
if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2433
eval "ac_cv_func_$ac_func=yes"
2435
echo "configure: failed program was:" >&5
2436
cat conftest.$ac_ext >&5
2438
eval "ac_cv_func_$ac_func=no"
2443
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2444
echo "$ac_t""yes" 1>&6
2445
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2446
cat >> confdefs.h <<EOF
2447
#define $ac_tr_func 1
2451
echo "$ac_t""no" 1>&6
2455
for ac_hdr in sys/io.h sys/perm.h unistd.h
2457
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2458
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2459
echo "configure:2460: checking for $ac_hdr" >&5
2460
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2461
echo $ac_n "(cached) $ac_c" 1>&6
2463
cat > conftest.$ac_ext <<EOF
2464
#line 2465 "configure"
2465
#include "confdefs.h"
2468
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2469
{ (eval echo configure:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2470
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2471
if test -z "$ac_err"; then
2473
eval "ac_cv_header_$ac_safe=yes"
2476
echo "configure: failed program was:" >&5
2477
cat conftest.$ac_ext >&5
2479
eval "ac_cv_header_$ac_safe=no"
2483
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2484
echo "$ac_t""yes" 1>&6
2485
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2486
cat >> confdefs.h <<EOF
2487
#define $ac_tr_hdr 1
2491
echo "$ac_t""no" 1>&6
2496
echo $ac_n "checking for a parallel port""... $ac_c" 1>&6
2497
echo "configure:2498: checking for a parallel port" >&5
2498
if eval "test \"`echo '$''{'ac_cv_port_have_lpt'+set}'`\" = set"; then
2499
echo $ac_n "(cached) $ac_c" 1>&6
2501
cat > conftest.$ac_ext <<EOF
2502
#line 2503 "configure"
2503
#include "confdefs.h"
2504
#include "server/drivers/port.h"
2506
char val = port_in(0x350)
2509
if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2511
ac_cv_port_have_lpt=yes
2513
echo "configure: failed program was:" >&5
2514
cat conftest.$ac_ext >&5
2516
ac_cv_port_have_lpt=no
2521
echo "$ac_t""$ac_cv_port_have_lpt" 1>&6
2523
if test "$ac_cv_port_have_lpt" = yes
2525
cat >> confdefs.h <<\EOF
2526
#define HAVE_PCSTYLE_LPT_CONTROL 1
2530
echo "configure: warning: Can't talk to the parallel port, disabling drivers that use it." 1>&2
1972
2533
ac_header_dirent=no
1973
2534
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1975
2536
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1976
2537
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1977
echo "configure:1978: checking for $ac_hdr that defines DIR" >&5
2538
echo "configure:2539: checking for $ac_hdr that defines DIR" >&5
1978
2539
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1979
2540
echo $ac_n "(cached) $ac_c" 1>&6
1981
2542
cat > conftest.$ac_ext <<EOF
1982
#line 1983 "configure"
2543
#line 2544 "configure"
1983
2544
#include "confdefs.h"
1984
2545
#include <sys/types.h>
1985
2546
#include <$ac_hdr>