Changeset 1971 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 17, 2004, 4:57:32 PM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/config.h.in
r1959 r1971 3 3 /* Define to 1 if you have the `bzero' function. */ 4 4 #undef HAVE_BZERO 5 6 /* Define to 1 if you have the <GL/glut.h> header file. */ 7 #undef HAVE_GL_GLUT_H 8 9 /* Define to 1 if you have the <GL/glu.h> header file. */ 10 #undef HAVE_GL_GLU_H 11 12 /* Define to 1 if you have the <GL/gl.h> header file. */ 13 #undef HAVE_GL_GL_H 5 14 6 15 /* Define to 1 if you have the <inttypes.h> header file. */ -
orxonox/trunk/configure
r1959 r1971 3285 3285 3286 3286 # cheking for libGL 3287 # checking for Unix GL 3288 3289 echo "$as_me:$LINENO: checking for glPushMatrix in -lGL" >&5 3290 echo $ECHO_N "checking for glPushMatrix in -lGL... $ECHO_C" >&6 3291 if test "${ac_cv_lib_GL_glPushMatrix+set}" = set; then 3287 3288 ac_ext=c 3289 ac_cpp='$CPP $CPPFLAGS' 3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3293 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3294 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3295 # On Suns, sometimes $CPP names a directory. 3296 if test -n "$CPP" && test -d "$CPP"; then 3297 CPP= 3298 fi 3299 if test -z "$CPP"; then 3300 if test "${ac_cv_prog_CPP+set}" = set; then 3292 3301 echo $ECHO_N "(cached) $ECHO_C" >&6 3293 3302 else 3294 ac_check_lib_save_LIBS=$LIBS 3295 LIBS="-lGL $LIBS" 3296 cat >conftest.$ac_ext <<_ACEOF 3303 # Double quotes because CPP needs to be expanded 3304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3305 do 3306 ac_preproc_ok=false 3307 for ac_c_preproc_warn_flag in '' yes 3308 do 3309 # Use a header file that comes with gcc, so configuring glibc 3310 # with a fresh cross-compiler works. 3311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3312 # <limits.h> exists even on freestanding compilers. 3313 # On the NeXT, cc -E runs the code through the compiler's parser, 3314 # not just through cpp. "Syntax error" is here to catch this case. 3315 cat >conftest.$ac_ext <<_ACEOF 3297 3316 /* confdefs.h. */ 3298 3317 _ACEOF … … 3300 3319 cat >>conftest.$ac_ext <<_ACEOF 3301 3320 /* end confdefs.h. */ 3302 3303 /* Override any gcc2 internal prototype to avoid an error. */ 3304 # ifdef __cplusplus3305 extern "C" 3321 #ifdef __STDC__ 3322 # include <limits.h> 3323 #else 3324 # include <assert.h> 3306 3325 #endif 3307 /* We use char because int might match the return type of a gcc2 3308 builtin and then its argument prototype would still apply. */ 3309 char glPushMatrix (); 3326 Syntax error 3327 _ACEOF 3328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3330 ac_status=$? 3331 grep -v '^ *+' conftest.er1 >conftest.err 3332 rm -f conftest.er1 3333 cat conftest.err >&5 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } >/dev/null; then 3336 if test -s conftest.err; then 3337 ac_cpp_err=$ac_c_preproc_warn_flag 3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3339 else 3340 ac_cpp_err= 3341 fi 3342 else 3343 ac_cpp_err=yes 3344 fi 3345 if test -z "$ac_cpp_err"; then 3346 : 3347 else 3348 echo "$as_me: failed program was:" >&5 3349 sed 's/^/| /' conftest.$ac_ext >&5 3350 3351 # Broken: fails on valid input. 3352 continue 3353 fi 3354 rm -f conftest.err conftest.$ac_ext 3355 3356 # OK, works on sane cases. Now check whether non-existent headers 3357 # can be detected and how. 3358 cat >conftest.$ac_ext <<_ACEOF 3359 /* confdefs.h. */ 3360 _ACEOF 3361 cat confdefs.h >>conftest.$ac_ext 3362 cat >>conftest.$ac_ext <<_ACEOF 3363 /* end confdefs.h. */ 3364 #include <ac_nonexistent.h> 3365 _ACEOF 3366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3368 ac_status=$? 3369 grep -v '^ *+' conftest.er1 >conftest.err 3370 rm -f conftest.er1 3371 cat conftest.err >&5 3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); } >/dev/null; then 3374 if test -s conftest.err; then 3375 ac_cpp_err=$ac_c_preproc_warn_flag 3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3377 else 3378 ac_cpp_err= 3379 fi 3380 else 3381 ac_cpp_err=yes 3382 fi 3383 if test -z "$ac_cpp_err"; then 3384 # Broken: success on invalid input. 3385 continue 3386 else 3387 echo "$as_me: failed program was:" >&5 3388 sed 's/^/| /' conftest.$ac_ext >&5 3389 3390 # Passes both tests. 3391 ac_preproc_ok=: 3392 break 3393 fi 3394 rm -f conftest.err conftest.$ac_ext 3395 3396 done 3397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3398 rm -f conftest.err conftest.$ac_ext 3399 if $ac_preproc_ok; then 3400 break 3401 fi 3402 3403 done 3404 ac_cv_prog_CPP=$CPP 3405 3406 fi 3407 CPP=$ac_cv_prog_CPP 3408 else 3409 ac_cv_prog_CPP=$CPP 3410 fi 3411 echo "$as_me:$LINENO: result: $CPP" >&5 3412 echo "${ECHO_T}$CPP" >&6 3413 ac_preproc_ok=false 3414 for ac_c_preproc_warn_flag in '' yes 3415 do 3416 # Use a header file that comes with gcc, so configuring glibc 3417 # with a fresh cross-compiler works. 3418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3419 # <limits.h> exists even on freestanding compilers. 3420 # On the NeXT, cc -E runs the code through the compiler's parser, 3421 # not just through cpp. "Syntax error" is here to catch this case. 3422 cat >conftest.$ac_ext <<_ACEOF 3423 /* confdefs.h. */ 3424 _ACEOF 3425 cat confdefs.h >>conftest.$ac_ext 3426 cat >>conftest.$ac_ext <<_ACEOF 3427 /* end confdefs.h. */ 3428 #ifdef __STDC__ 3429 # include <limits.h> 3430 #else 3431 # include <assert.h> 3432 #endif 3433 Syntax error 3434 _ACEOF 3435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3437 ac_status=$? 3438 grep -v '^ *+' conftest.er1 >conftest.err 3439 rm -f conftest.er1 3440 cat conftest.err >&5 3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3442 (exit $ac_status); } >/dev/null; then 3443 if test -s conftest.err; then 3444 ac_cpp_err=$ac_c_preproc_warn_flag 3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3446 else 3447 ac_cpp_err= 3448 fi 3449 else 3450 ac_cpp_err=yes 3451 fi 3452 if test -z "$ac_cpp_err"; then 3453 : 3454 else 3455 echo "$as_me: failed program was:" >&5 3456 sed 's/^/| /' conftest.$ac_ext >&5 3457 3458 # Broken: fails on valid input. 3459 continue 3460 fi 3461 rm -f conftest.err conftest.$ac_ext 3462 3463 # OK, works on sane cases. Now check whether non-existent headers 3464 # can be detected and how. 3465 cat >conftest.$ac_ext <<_ACEOF 3466 /* confdefs.h. */ 3467 _ACEOF 3468 cat confdefs.h >>conftest.$ac_ext 3469 cat >>conftest.$ac_ext <<_ACEOF 3470 /* end confdefs.h. */ 3471 #include <ac_nonexistent.h> 3472 _ACEOF 3473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3475 ac_status=$? 3476 grep -v '^ *+' conftest.er1 >conftest.err 3477 rm -f conftest.er1 3478 cat conftest.err >&5 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); } >/dev/null; then 3481 if test -s conftest.err; then 3482 ac_cpp_err=$ac_c_preproc_warn_flag 3483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3484 else 3485 ac_cpp_err= 3486 fi 3487 else 3488 ac_cpp_err=yes 3489 fi 3490 if test -z "$ac_cpp_err"; then 3491 # Broken: success on invalid input. 3492 continue 3493 else 3494 echo "$as_me: failed program was:" >&5 3495 sed 's/^/| /' conftest.$ac_ext >&5 3496 3497 # Passes both tests. 3498 ac_preproc_ok=: 3499 break 3500 fi 3501 rm -f conftest.err conftest.$ac_ext 3502 3503 done 3504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3505 rm -f conftest.err conftest.$ac_ext 3506 if $ac_preproc_ok; then 3507 : 3508 else 3509 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3510 See \`config.log' for more details." >&5 3511 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3512 See \`config.log' for more details." >&2;} 3513 { (exit 1); exit 1; }; } 3514 fi 3515 3516 ac_ext=c 3517 ac_cpp='$CPP $CPPFLAGS' 3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3521 3522 3523 echo "$as_me:$LINENO: checking for egrep" >&5 3524 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3525 if test "${ac_cv_prog_egrep+set}" = set; then 3526 echo $ECHO_N "(cached) $ECHO_C" >&6 3527 else 3528 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3529 then ac_cv_prog_egrep='grep -E' 3530 else ac_cv_prog_egrep='egrep' 3531 fi 3532 fi 3533 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3534 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3535 EGREP=$ac_cv_prog_egrep 3536 3537 3538 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3539 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3540 if test "${ac_cv_header_stdc+set}" = set; then 3541 echo $ECHO_N "(cached) $ECHO_C" >&6 3542 else 3543 cat >conftest.$ac_ext <<_ACEOF 3544 /* confdefs.h. */ 3545 _ACEOF 3546 cat confdefs.h >>conftest.$ac_ext 3547 cat >>conftest.$ac_ext <<_ACEOF 3548 /* end confdefs.h. */ 3549 #include <stdlib.h> 3550 #include <stdarg.h> 3551 #include <string.h> 3552 #include <float.h> 3553 3310 3554 int 3311 3555 main () 3312 3556 { 3313 glPushMatrix (); 3557 3314 3558 ; 3315 3559 return 0; 3316 3560 } 3317 3561 _ACEOF 3318 rm -f conftest.$ac_objext conftest$ac_exeext3319 if { (eval echo "$as_me:$LINENO: \"$ac_ link\"") >&53320 (eval $ac_ link) 2>conftest.er13562 rm -f conftest.$ac_objext 3563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3564 (eval $ac_compile) 2>conftest.er1 3321 3565 ac_status=$? 3322 3566 grep -v '^ *+' conftest.er1 >conftest.err … … 3332 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 3577 (exit $ac_status); }; } && 3334 { ac_try='test -s conftest $ac_exeext'3578 { ac_try='test -s conftest.$ac_objext' 3335 3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3336 3580 (eval $ac_try) 2>&5 … … 3338 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 3583 (exit $ac_status); }; }; then 3340 ac_cv_ lib_GL_glPushMatrix=yes3584 ac_cv_header_stdc=yes 3341 3585 else 3342 3586 echo "$as_me: failed program was:" >&5 3343 3587 sed 's/^/| /' conftest.$ac_ext >&5 3344 3588 3345 ac_cv_lib_GL_glPushMatrix=no 3346 fi 3347 rm -f conftest.err conftest.$ac_objext \ 3348 conftest$ac_exeext conftest.$ac_ext 3349 LIBS=$ac_check_lib_save_LIBS 3350 fi 3351 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glPushMatrix" >&5 3352 echo "${ECHO_T}$ac_cv_lib_GL_glPushMatrix" >&6 3353 if test $ac_cv_lib_GL_glPushMatrix = yes; then 3354 FOUND_GL=yes 3355 fi 3356 3357 if test "$FOUND_GL" = "yes" ; then 3358 LIBS="$LIBS -lGL" 3359 # checking for Windows openGl library 3360 else 3361 echo "We did not find the Linux opengl Library. Checking for Windows Library" 3362 echo "$as_me:$LINENO: checking for glPushMatrix in -lopengl32" >&5 3363 echo $ECHO_N "checking for glPushMatrix in -lopengl32... $ECHO_C" >&6 3364 if test "${ac_cv_lib_opengl32_glPushMatrix+set}" = set; then 3365 echo $ECHO_N "(cached) $ECHO_C" >&6 3366 else 3367 ac_check_lib_save_LIBS=$LIBS 3368 LIBS="-lopengl32 $LIBS" 3369 cat >conftest.$ac_ext <<_ACEOF 3589 ac_cv_header_stdc=no 3590 fi 3591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3592 3593 if test $ac_cv_header_stdc = yes; then 3594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3595 cat >conftest.$ac_ext <<_ACEOF 3370 3596 /* confdefs.h. */ 3371 3597 _ACEOF … … 3373 3599 cat >>conftest.$ac_ext <<_ACEOF 3374 3600 /* end confdefs.h. */ 3375 3376 /* Override any gcc2 internal prototype to avoid an error. */ 3377 #ifdef __cplusplus 3378 extern "C" 3601 #include <string.h> 3602 3603 _ACEOF 3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3605 $EGREP "memchr" >/dev/null 2>&1; then 3606 : 3607 else 3608 ac_cv_header_stdc=no 3609 fi 3610 rm -f conftest* 3611 3612 fi 3613 3614 if test $ac_cv_header_stdc = yes; then 3615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3616 cat >conftest.$ac_ext <<_ACEOF 3617 /* confdefs.h. */ 3618 _ACEOF 3619 cat confdefs.h >>conftest.$ac_ext 3620 cat >>conftest.$ac_ext <<_ACEOF 3621 /* end confdefs.h. */ 3622 #include <stdlib.h> 3623 3624 _ACEOF 3625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3626 $EGREP "free" >/dev/null 2>&1; then 3627 : 3628 else 3629 ac_cv_header_stdc=no 3630 fi 3631 rm -f conftest* 3632 3633 fi 3634 3635 if test $ac_cv_header_stdc = yes; then 3636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3637 if test "$cross_compiling" = yes; then 3638 : 3639 else 3640 cat >conftest.$ac_ext <<_ACEOF 3641 /* confdefs.h. */ 3642 _ACEOF 3643 cat confdefs.h >>conftest.$ac_ext 3644 cat >>conftest.$ac_ext <<_ACEOF 3645 /* end confdefs.h. */ 3646 #include <ctype.h> 3647 #if ((' ' & 0x0FF) == 0x020) 3648 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3649 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3650 #else 3651 # define ISLOWER(c) \ 3652 (('a' <= (c) && (c) <= 'i') \ 3653 || ('j' <= (c) && (c) <= 'r') \ 3654 || ('s' <= (c) && (c) <= 'z')) 3655 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3379 3656 #endif 3380 /* We use char because int might match the return type of a gcc2 3381 builtin and then its argument prototype would still apply. */ 3382 char glPushMatrix (); 3657 3658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3383 3659 int 3384 3660 main () 3385 3661 { 3386 glPushMatrix (); 3387 ; 3388 return 0; 3662 int i; 3663 for (i = 0; i < 256; i++) 3664 if (XOR (islower (i), ISLOWER (i)) 3665 || toupper (i) != TOUPPER (i)) 3666 exit(2); 3667 exit (0); 3389 3668 } 3390 3669 _ACEOF 3391 rm -f conftest .$ac_objext conftest$ac_exeext3670 rm -f conftest$ac_exeext 3392 3671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3393 (eval $ac_link) 2>conftest.er1 3672 (eval $ac_link) 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3677 (eval $ac_try) 2>&5 3678 ac_status=$? 3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3680 (exit $ac_status); }; }; then 3681 : 3682 else 3683 echo "$as_me: program exited with status $ac_status" >&5 3684 echo "$as_me: failed program was:" >&5 3685 sed 's/^/| /' conftest.$ac_ext >&5 3686 3687 ( exit $ac_status ) 3688 ac_cv_header_stdc=no 3689 fi 3690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3691 fi 3692 fi 3693 fi 3694 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3695 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3696 if test $ac_cv_header_stdc = yes; then 3697 3698 cat >>confdefs.h <<\_ACEOF 3699 #define STDC_HEADERS 1 3700 _ACEOF 3701 3702 fi 3703 3704 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3715 inttypes.h stdint.h unistd.h 3716 do 3717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3718 echo "$as_me:$LINENO: checking for $ac_header" >&5 3719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3720 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3722 else 3723 cat >conftest.$ac_ext <<_ACEOF 3724 /* confdefs.h. */ 3725 _ACEOF 3726 cat confdefs.h >>conftest.$ac_ext 3727 cat >>conftest.$ac_ext <<_ACEOF 3728 /* end confdefs.h. */ 3729 $ac_includes_default 3730 3731 #include <$ac_header> 3732 _ACEOF 3733 rm -f conftest.$ac_objext 3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3735 (eval $ac_compile) 2>conftest.er1 3394 3736 ac_status=$? 3395 3737 grep -v '^ *+' conftest.er1 >conftest.err … … 3405 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3406 3748 (exit $ac_status); }; } && 3749 { ac_try='test -s conftest.$ac_objext' 3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3751 (eval $ac_try) 2>&5 3752 ac_status=$? 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); }; }; then 3755 eval "$as_ac_Header=yes" 3756 else 3757 echo "$as_me: failed program was:" >&5 3758 sed 's/^/| /' conftest.$ac_ext >&5 3759 3760 eval "$as_ac_Header=no" 3761 fi 3762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3763 fi 3764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3766 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3767 cat >>confdefs.h <<_ACEOF 3768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3769 _ACEOF 3770 3771 fi 3772 3773 done 3774 3775 3776 3777 for ac_header in GL/gl.h 3778 do 3779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3780 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3781 echo "$as_me:$LINENO: checking for $ac_header" >&5 3782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3783 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3784 echo $ECHO_N "(cached) $ECHO_C" >&6 3785 fi 3786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3788 else 3789 # Is the header compilable? 3790 echo "$as_me:$LINENO: checking $ac_header usability" >&5 3791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3792 cat >conftest.$ac_ext <<_ACEOF 3793 /* confdefs.h. */ 3794 _ACEOF 3795 cat confdefs.h >>conftest.$ac_ext 3796 cat >>conftest.$ac_ext <<_ACEOF 3797 /* end confdefs.h. */ 3798 $ac_includes_default 3799 #include <$ac_header> 3800 _ACEOF 3801 rm -f conftest.$ac_objext 3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3803 (eval $ac_compile) 2>conftest.er1 3804 ac_status=$? 3805 grep -v '^ *+' conftest.er1 >conftest.err 3806 rm -f conftest.er1 3807 cat conftest.err >&5 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); } && 3810 { ac_try='test -z "$ac_c_werror_flag" 3811 || test ! -s conftest.err' 3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3813 (eval $ac_try) 2>&5 3814 ac_status=$? 3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3816 (exit $ac_status); }; } && 3817 { ac_try='test -s conftest.$ac_objext' 3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3819 (eval $ac_try) 2>&5 3820 ac_status=$? 3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3822 (exit $ac_status); }; }; then 3823 ac_header_compiler=yes 3824 else 3825 echo "$as_me: failed program was:" >&5 3826 sed 's/^/| /' conftest.$ac_ext >&5 3827 3828 ac_header_compiler=no 3829 fi 3830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3832 echo "${ECHO_T}$ac_header_compiler" >&6 3833 3834 # Is the header present? 3835 echo "$as_me:$LINENO: checking $ac_header presence" >&5 3836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3837 cat >conftest.$ac_ext <<_ACEOF 3838 /* confdefs.h. */ 3839 _ACEOF 3840 cat confdefs.h >>conftest.$ac_ext 3841 cat >>conftest.$ac_ext <<_ACEOF 3842 /* end confdefs.h. */ 3843 #include <$ac_header> 3844 _ACEOF 3845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3847 ac_status=$? 3848 grep -v '^ *+' conftest.er1 >conftest.err 3849 rm -f conftest.er1 3850 cat conftest.err >&5 3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3852 (exit $ac_status); } >/dev/null; then 3853 if test -s conftest.err; then 3854 ac_cpp_err=$ac_c_preproc_warn_flag 3855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3856 else 3857 ac_cpp_err= 3858 fi 3859 else 3860 ac_cpp_err=yes 3861 fi 3862 if test -z "$ac_cpp_err"; then 3863 ac_header_preproc=yes 3864 else 3865 echo "$as_me: failed program was:" >&5 3866 sed 's/^/| /' conftest.$ac_ext >&5 3867 3868 ac_header_preproc=no 3869 fi 3870 rm -f conftest.err conftest.$ac_ext 3871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3872 echo "${ECHO_T}$ac_header_preproc" >&6 3873 3874 # So? What about this header? 3875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3876 yes:no: ) 3877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3881 ac_header_preproc=yes 3882 ;; 3883 no:yes:* ) 3884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3896 ( 3897 cat <<\_ASBOX 3898 ## ------------------------------------------- ## 3899 ## Report this to orxonox-dev@mail.datacore.ch ## 3900 ## ------------------------------------------- ## 3901 _ASBOX 3902 ) | 3903 sed "s/^/$as_me: WARNING: /" >&2 3904 ;; 3905 esac 3906 echo "$as_me:$LINENO: checking for $ac_header" >&5 3907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3908 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3909 echo $ECHO_N "(cached) $ECHO_C" >&6 3910 else 3911 eval "$as_ac_Header=\$ac_header_preproc" 3912 fi 3913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3915 3916 fi 3917 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3918 cat >>confdefs.h <<_ACEOF 3919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3920 _ACEOF 3921 3922 else 3923 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 3924 echo "$as_me: error: cannot find opengl headers" >&2;} 3925 { (exit 1); exit 1; }; } 3926 fi 3927 3928 done 3929 3930 3931 # checking for Unix GL 3932 echo "$as_me:$LINENO: checking for main in -lGL" >&5 3933 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 3934 if test "${ac_cv_lib_GL_main+set}" = set; then 3935 echo $ECHO_N "(cached) $ECHO_C" >&6 3936 else 3937 ac_check_lib_save_LIBS=$LIBS 3938 LIBS="-lGL $LIBS" 3939 cat >conftest.$ac_ext <<_ACEOF 3940 /* confdefs.h. */ 3941 _ACEOF 3942 cat confdefs.h >>conftest.$ac_ext 3943 cat >>conftest.$ac_ext <<_ACEOF 3944 /* end confdefs.h. */ 3945 3946 3947 int 3948 main () 3949 { 3950 main (); 3951 ; 3952 return 0; 3953 } 3954 _ACEOF 3955 rm -f conftest.$ac_objext conftest$ac_exeext 3956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3957 (eval $ac_link) 2>conftest.er1 3958 ac_status=$? 3959 grep -v '^ *+' conftest.er1 >conftest.err 3960 rm -f conftest.er1 3961 cat conftest.err >&5 3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3963 (exit $ac_status); } && 3964 { ac_try='test -z "$ac_c_werror_flag" 3965 || test ! -s conftest.err' 3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3967 (eval $ac_try) 2>&5 3968 ac_status=$? 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3970 (exit $ac_status); }; } && 3407 3971 { ac_try='test -s conftest$ac_exeext' 3408 3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 … … 3411 3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 3976 (exit $ac_status); }; }; then 3413 ac_cv_lib_ opengl32_glPushMatrix=yes3977 ac_cv_lib_GL_main=yes 3414 3978 else 3415 3979 echo "$as_me: failed program was:" >&5 3416 3980 sed 's/^/| /' conftest.$ac_ext >&5 3417 3981 3418 ac_cv_lib_ opengl32_glPushMatrix=no3982 ac_cv_lib_GL_main=no 3419 3983 fi 3420 3984 rm -f conftest.err conftest.$ac_objext \ … … 3422 3986 LIBS=$ac_check_lib_save_LIBS 3423 3987 fi 3424 echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_glPushMatrix" >&5 3425 echo "${ECHO_T}$ac_cv_lib_opengl32_glPushMatrix" >&6 3426 if test $ac_cv_lib_opengl32_glPushMatrix = yes; then 3427 FOUND_opengl=yes 3428 fi 3429 3430 if test "$FOUND_opengl" = "yes" ; then 3988 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 3989 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 3990 if test $ac_cv_lib_GL_main = yes; then 3991 FOUND_GL=yes 3992 fi 3993 3994 if test "$FOUND_GL" = "yes" ; then 3995 LIBS="$LIBS -lGL" 3996 # checking for Windows openGl library 3997 else 3998 echo "We did not find the Linux opengl Library. Checking for Windows Library" 3999 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 4000 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 4001 if test "${ac_cv_lib_opengl32_main+set}" = set; then 4002 echo $ECHO_N "(cached) $ECHO_C" >&6 4003 else 4004 ac_check_lib_save_LIBS=$LIBS 4005 LIBS="-lopengl32 $LIBS" 4006 cat >conftest.$ac_ext <<_ACEOF 4007 /* confdefs.h. */ 4008 _ACEOF 4009 cat confdefs.h >>conftest.$ac_ext 4010 cat >>conftest.$ac_ext <<_ACEOF 4011 /* end confdefs.h. */ 4012 4013 4014 int 4015 main () 4016 { 4017 main (); 4018 ; 4019 return 0; 4020 } 4021 _ACEOF 4022 rm -f conftest.$ac_objext conftest$ac_exeext 4023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4024 (eval $ac_link) 2>conftest.er1 4025 ac_status=$? 4026 grep -v '^ *+' conftest.er1 >conftest.err 4027 rm -f conftest.er1 4028 cat conftest.err >&5 4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4030 (exit $ac_status); } && 4031 { ac_try='test -z "$ac_c_werror_flag" 4032 || test ! -s conftest.err' 4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4034 (eval $ac_try) 2>&5 4035 ac_status=$? 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4037 (exit $ac_status); }; } && 4038 { ac_try='test -s conftest$ac_exeext' 4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4040 (eval $ac_try) 2>&5 4041 ac_status=$? 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); }; }; then 4044 ac_cv_lib_opengl32_main=yes 4045 else 4046 echo "$as_me: failed program was:" >&5 4047 sed 's/^/| /' conftest.$ac_ext >&5 4048 4049 ac_cv_lib_opengl32_main=no 4050 fi 4051 rm -f conftest.err conftest.$ac_objext \ 4052 conftest$ac_exeext conftest.$ac_ext 4053 LIBS=$ac_check_lib_save_LIBS 4054 fi 4055 echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 4056 echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 4057 if test $ac_cv_lib_opengl32_main = yes; then 4058 FOUND_opengl32=yes 4059 else 4060 "gl/gl.h" 4061 fi 4062 4063 if test "$FOUND_opengl32" = "yes" ; then 3431 4064 LIBS="$LIBS -lopengl32" 3432 4065 3433 4066 else 3434 4067 echo "------------------" 3435 4068 echo "opengl not found." … … 3441 4074 3442 4075 # cheking for libGLU 4076 4077 for ac_header in GL/glu.h 4078 do 4079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4080 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4081 echo "$as_me:$LINENO: checking for $ac_header" >&5 4082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4083 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085 fi 4086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4088 else 4089 # Is the header compilable? 4090 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4092 cat >conftest.$ac_ext <<_ACEOF 4093 /* confdefs.h. */ 4094 _ACEOF 4095 cat confdefs.h >>conftest.$ac_ext 4096 cat >>conftest.$ac_ext <<_ACEOF 4097 /* end confdefs.h. */ 4098 $ac_includes_default 4099 #include <$ac_header> 4100 _ACEOF 4101 rm -f conftest.$ac_objext 4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4103 (eval $ac_compile) 2>conftest.er1 4104 ac_status=$? 4105 grep -v '^ *+' conftest.er1 >conftest.err 4106 rm -f conftest.er1 4107 cat conftest.err >&5 4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4109 (exit $ac_status); } && 4110 { ac_try='test -z "$ac_c_werror_flag" 4111 || test ! -s conftest.err' 4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4113 (eval $ac_try) 2>&5 4114 ac_status=$? 4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4116 (exit $ac_status); }; } && 4117 { ac_try='test -s conftest.$ac_objext' 4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4119 (eval $ac_try) 2>&5 4120 ac_status=$? 4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4122 (exit $ac_status); }; }; then 4123 ac_header_compiler=yes 4124 else 4125 echo "$as_me: failed program was:" >&5 4126 sed 's/^/| /' conftest.$ac_ext >&5 4127 4128 ac_header_compiler=no 4129 fi 4130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4132 echo "${ECHO_T}$ac_header_compiler" >&6 4133 4134 # Is the header present? 4135 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4137 cat >conftest.$ac_ext <<_ACEOF 4138 /* confdefs.h. */ 4139 _ACEOF 4140 cat confdefs.h >>conftest.$ac_ext 4141 cat >>conftest.$ac_ext <<_ACEOF 4142 /* end confdefs.h. */ 4143 #include <$ac_header> 4144 _ACEOF 4145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4147 ac_status=$? 4148 grep -v '^ *+' conftest.er1 >conftest.err 4149 rm -f conftest.er1 4150 cat conftest.err >&5 4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4152 (exit $ac_status); } >/dev/null; then 4153 if test -s conftest.err; then 4154 ac_cpp_err=$ac_c_preproc_warn_flag 4155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4156 else 4157 ac_cpp_err= 4158 fi 4159 else 4160 ac_cpp_err=yes 4161 fi 4162 if test -z "$ac_cpp_err"; then 4163 ac_header_preproc=yes 4164 else 4165 echo "$as_me: failed program was:" >&5 4166 sed 's/^/| /' conftest.$ac_ext >&5 4167 4168 ac_header_preproc=no 4169 fi 4170 rm -f conftest.err conftest.$ac_ext 4171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4172 echo "${ECHO_T}$ac_header_preproc" >&6 4173 4174 # So? What about this header? 4175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4176 yes:no: ) 4177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4181 ac_header_preproc=yes 4182 ;; 4183 no:yes:* ) 4184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4196 ( 4197 cat <<\_ASBOX 4198 ## ------------------------------------------- ## 4199 ## Report this to orxonox-dev@mail.datacore.ch ## 4200 ## ------------------------------------------- ## 4201 _ASBOX 4202 ) | 4203 sed "s/^/$as_me: WARNING: /" >&2 4204 ;; 4205 esac 4206 echo "$as_me:$LINENO: checking for $ac_header" >&5 4207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4208 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4209 echo $ECHO_N "(cached) $ECHO_C" >&6 4210 else 4211 eval "$as_ac_Header=\$ac_header_preproc" 4212 fi 4213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4215 4216 fi 4217 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4218 cat >>confdefs.h <<_ACEOF 4219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4220 _ACEOF 4221 4222 else 4223 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 4224 echo "$as_me: error: cannot find opengl headers" >&2;} 4225 { (exit 1); exit 1; }; } 4226 fi 4227 4228 done 4229 4230 3443 4231 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 3444 4232 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 … … 3514 4302 else 3515 4303 echo "We did not find the Linux GLU Library. Checking for Windows Library" 3516 echo "$as_me:$LINENO: checking for glPushMatrix in -lGLU32" >&53517 echo $ECHO_N "checking for glPushMatrix in -lGLU32... $ECHO_C" >&63518 if test "${ac_cv_lib_ GLU32_glPushMatrix+set}" = set; then4304 echo "$as_me:$LINENO: checking for main in -lglu32" >&5 4305 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 4306 if test "${ac_cv_lib_glu32_main+set}" = set; then 3519 4307 echo $ECHO_N "(cached) $ECHO_C" >&6 3520 4308 else 3521 4309 ac_check_lib_save_LIBS=$LIBS 3522 LIBS="-l GLU32 $LIBS"4310 LIBS="-lglu32 $LIBS" 3523 4311 cat >conftest.$ac_ext <<_ACEOF 3524 4312 /* confdefs.h. */ … … 3528 4316 /* end confdefs.h. */ 3529 4317 3530 /* Override any gcc2 internal prototype to avoid an error. */ 3531 #ifdef __cplusplus 3532 extern "C" 3533 #endif 3534 /* We use char because int might match the return type of a gcc2 3535 builtin and then its argument prototype would still apply. */ 3536 char glPushMatrix (); 4318 3537 4319 int 3538 4320 main () 3539 4321 { 3540 glPushMatrix();4322 main (); 3541 4323 ; 3542 4324 return 0; … … 3565 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 4348 (exit $ac_status); }; }; then 3567 ac_cv_lib_ GLU32_glPushMatrix=yes4349 ac_cv_lib_glu32_main=yes 3568 4350 else 3569 4351 echo "$as_me: failed program was:" >&5 3570 4352 sed 's/^/| /' conftest.$ac_ext >&5 3571 4353 3572 ac_cv_lib_ GLU32_glPushMatrix=no4354 ac_cv_lib_glu32_main=no 3573 4355 fi 3574 4356 rm -f conftest.err conftest.$ac_objext \ … … 3576 4358 LIBS=$ac_check_lib_save_LIBS 3577 4359 fi 3578 echo "$as_me:$LINENO: result: $ac_cv_lib_ GLU32_glPushMatrix" >&53579 echo "${ECHO_T}$ac_cv_lib_ GLU32_glPushMatrix" >&63580 if test $ac_cv_lib_ GLU32_glPushMatrix= yes; then3581 FOUND_ GLU32=yes3582 fi 3583 3584 if test "$FOUND_ GLU32" = "yes" ; then4360 echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 4361 echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 4362 if test $ac_cv_lib_glu32_main = yes; then 4363 FOUND_glu32=yes 4364 fi 4365 4366 if test "$FOUND_glu32" = "yes" ; then 3585 4367 LIBS="$LIBS -lGLU32" 3586 4368 … … 3593 4375 fi 3594 4376 fi 4377 3595 4378 # FIXME: Replace `main' with a function in `-lOSMesa': 3596 4379 … … 3802 4585 3803 4586 # cheking for libglut32 4587 4588 for ac_header in GL/glut.h 4589 do 4590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4591 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4592 echo "$as_me:$LINENO: checking for $ac_header" >&5 4593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4594 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4595 echo $ECHO_N "(cached) $ECHO_C" >&6 4596 fi 4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4599 else 4600 # Is the header compilable? 4601 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4603 cat >conftest.$ac_ext <<_ACEOF 4604 /* confdefs.h. */ 4605 _ACEOF 4606 cat confdefs.h >>conftest.$ac_ext 4607 cat >>conftest.$ac_ext <<_ACEOF 4608 /* end confdefs.h. */ 4609 $ac_includes_default 4610 #include <$ac_header> 4611 _ACEOF 4612 rm -f conftest.$ac_objext 4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4614 (eval $ac_compile) 2>conftest.er1 4615 ac_status=$? 4616 grep -v '^ *+' conftest.er1 >conftest.err 4617 rm -f conftest.er1 4618 cat conftest.err >&5 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); } && 4621 { ac_try='test -z "$ac_c_werror_flag" 4622 || test ! -s conftest.err' 4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4624 (eval $ac_try) 2>&5 4625 ac_status=$? 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); }; } && 4628 { ac_try='test -s conftest.$ac_objext' 4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4630 (eval $ac_try) 2>&5 4631 ac_status=$? 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); }; }; then 4634 ac_header_compiler=yes 4635 else 4636 echo "$as_me: failed program was:" >&5 4637 sed 's/^/| /' conftest.$ac_ext >&5 4638 4639 ac_header_compiler=no 4640 fi 4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4643 echo "${ECHO_T}$ac_header_compiler" >&6 4644 4645 # Is the header present? 4646 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4648 cat >conftest.$ac_ext <<_ACEOF 4649 /* confdefs.h. */ 4650 _ACEOF 4651 cat confdefs.h >>conftest.$ac_ext 4652 cat >>conftest.$ac_ext <<_ACEOF 4653 /* end confdefs.h. */ 4654 #include <$ac_header> 4655 _ACEOF 4656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4658 ac_status=$? 4659 grep -v '^ *+' conftest.er1 >conftest.err 4660 rm -f conftest.er1 4661 cat conftest.err >&5 4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4663 (exit $ac_status); } >/dev/null; then 4664 if test -s conftest.err; then 4665 ac_cpp_err=$ac_c_preproc_warn_flag 4666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4667 else 4668 ac_cpp_err= 4669 fi 4670 else 4671 ac_cpp_err=yes 4672 fi 4673 if test -z "$ac_cpp_err"; then 4674 ac_header_preproc=yes 4675 else 4676 echo "$as_me: failed program was:" >&5 4677 sed 's/^/| /' conftest.$ac_ext >&5 4678 4679 ac_header_preproc=no 4680 fi 4681 rm -f conftest.err conftest.$ac_ext 4682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4683 echo "${ECHO_T}$ac_header_preproc" >&6 4684 4685 # So? What about this header? 4686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4687 yes:no: ) 4688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4692 ac_header_preproc=yes 4693 ;; 4694 no:yes:* ) 4695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4707 ( 4708 cat <<\_ASBOX 4709 ## ------------------------------------------- ## 4710 ## Report this to orxonox-dev@mail.datacore.ch ## 4711 ## ------------------------------------------- ## 4712 _ASBOX 4713 ) | 4714 sed "s/^/$as_me: WARNING: /" >&2 4715 ;; 4716 esac 4717 echo "$as_me:$LINENO: checking for $ac_header" >&5 4718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4720 echo $ECHO_N "(cached) $ECHO_C" >&6 4721 else 4722 eval "$as_ac_Header=\$ac_header_preproc" 4723 fi 4724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4726 4727 fi 4728 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4729 cat >>confdefs.h <<_ACEOF 4730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4731 _ACEOF 4732 4733 else 4734 { { echo "$as_me:$LINENO: error: cannot find glut headers" >&5 4735 echo "$as_me: error: cannot find glut headers" >&2;} 4736 { (exit 1); exit 1; }; } 4737 fi 4738 4739 done 4740 3804 4741 echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5 3805 4742 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6 … … 3875 4812 else 3876 4813 echo "We did not find the Linux glut Library. Checking for Windows Library" 3877 echo "$as_me:$LINENO: checking for glPushMatrixin -lglut32" >&53878 echo $ECHO_N "checking for glPushMatrixin -lglut32... $ECHO_C" >&63879 if test "${ac_cv_lib_glut32_ glPushMatrix+set}" = set; then4814 echo "$as_me:$LINENO: checking for main in -lglut32" >&5 4815 echo $ECHO_N "checking for main in -lglut32... $ECHO_C" >&6 4816 if test "${ac_cv_lib_glut32_main+set}" = set; then 3880 4817 echo $ECHO_N "(cached) $ECHO_C" >&6 3881 4818 else … … 3889 4826 /* end confdefs.h. */ 3890 4827 3891 /* Override any gcc2 internal prototype to avoid an error. */ 3892 #ifdef __cplusplus 3893 extern "C" 3894 #endif 3895 /* We use char because int might match the return type of a gcc2 3896 builtin and then its argument prototype would still apply. */ 3897 char glPushMatrix (); 4828 3898 4829 int 3899 4830 main () 3900 4831 { 3901 glPushMatrix();4832 main (); 3902 4833 ; 3903 4834 return 0; … … 3926 4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 4858 (exit $ac_status); }; }; then 3928 ac_cv_lib_glut32_ glPushMatrix=yes4859 ac_cv_lib_glut32_main=yes 3929 4860 else 3930 4861 echo "$as_me: failed program was:" >&5 3931 4862 sed 's/^/| /' conftest.$ac_ext >&5 3932 4863 3933 ac_cv_lib_glut32_ glPushMatrix=no4864 ac_cv_lib_glut32_main=no 3934 4865 fi 3935 4866 rm -f conftest.err conftest.$ac_objext \ … … 3937 4868 LIBS=$ac_check_lib_save_LIBS 3938 4869 fi 3939 echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_ glPushMatrix" >&53940 echo "${ECHO_T}$ac_cv_lib_glut32_ glPushMatrix" >&63941 if test $ac_cv_lib_glut32_ glPushMatrix= yes; then4870 echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_main" >&5 4871 echo "${ECHO_T}$ac_cv_lib_glut32_main" >&6 4872 if test $ac_cv_lib_glut32_main = yes; then 3942 4873 FOUND_glut32=yes 3943 4874 fi … … 4025 4956 4026 4957 # Checks for header files. 4027 ac_ext=c4028 ac_cpp='$CPP $CPPFLAGS'4029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4031 ac_compiler_gnu=$ac_cv_c_compiler_gnu4032 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&54033 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&64034 # On Suns, sometimes $CPP names a directory.4035 if test -n "$CPP" && test -d "$CPP"; then4036 CPP=4037 fi4038 if test -z "$CPP"; then4039 if test "${ac_cv_prog_CPP+set}" = set; then4040 echo $ECHO_N "(cached) $ECHO_C" >&64041 else4042 # Double quotes because CPP needs to be expanded4043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"4044 do4045 ac_preproc_ok=false4046 for ac_c_preproc_warn_flag in '' yes4047 do4048 # Use a header file that comes with gcc, so configuring glibc4049 # with a fresh cross-compiler works.4050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since4051 # <limits.h> exists even on freestanding compilers.4052 # On the NeXT, cc -E runs the code through the compiler's parser,4053 # not just through cpp. "Syntax error" is here to catch this case.4054 cat >conftest.$ac_ext <<_ACEOF4055 /* confdefs.h. */4056 _ACEOF4057 cat confdefs.h >>conftest.$ac_ext4058 cat >>conftest.$ac_ext <<_ACEOF4059 /* end confdefs.h. */4060 #ifdef __STDC__4061 # include <limits.h>4062 #else4063 # include <assert.h>4064 #endif4065 Syntax error4066 _ACEOF4067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&54068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er14069 ac_status=$?4070 grep -v '^ *+' conftest.er1 >conftest.err4071 rm -f conftest.er14072 cat conftest.err >&54073 echo "$as_me:$LINENO: \$? = $ac_status" >&54074 (exit $ac_status); } >/dev/null; then4075 if test -s conftest.err; then4076 ac_cpp_err=$ac_c_preproc_warn_flag4077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag4078 else4079 ac_cpp_err=4080 fi4081 else4082 ac_cpp_err=yes4083 fi4084 if test -z "$ac_cpp_err"; then4085 :4086 else4087 echo "$as_me: failed program was:" >&54088 sed 's/^/| /' conftest.$ac_ext >&54089 4090 # Broken: fails on valid input.4091 continue4092 fi4093 rm -f conftest.err conftest.$ac_ext4094 4095 # OK, works on sane cases. Now check whether non-existent headers4096 # can be detected and how.4097 cat >conftest.$ac_ext <<_ACEOF4098 /* confdefs.h. */4099 _ACEOF4100 cat confdefs.h >>conftest.$ac_ext4101 cat >>conftest.$ac_ext <<_ACEOF4102 /* end confdefs.h. */4103 #include <ac_nonexistent.h>4104 _ACEOF4105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&54106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er14107 ac_status=$?4108 grep -v '^ *+' conftest.er1 >conftest.err4109 rm -f conftest.er14110 cat conftest.err >&54111 echo "$as_me:$LINENO: \$? = $ac_status" >&54112 (exit $ac_status); } >/dev/null; then4113 if test -s conftest.err; then4114 ac_cpp_err=$ac_c_preproc_warn_flag4115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag4116 else4117 ac_cpp_err=4118 fi4119 else4120 ac_cpp_err=yes4121 fi4122 if test -z "$ac_cpp_err"; then4123 # Broken: success on invalid input.4124 continue4125 else4126 echo "$as_me: failed program was:" >&54127 sed 's/^/| /' conftest.$ac_ext >&54128 4129 # Passes both tests.4130 ac_preproc_ok=:4131 break4132 fi4133 rm -f conftest.err conftest.$ac_ext4134 4135 done4136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.4137 rm -f conftest.err conftest.$ac_ext4138 if $ac_preproc_ok; then4139 break4140 fi4141 4142 done4143 ac_cv_prog_CPP=$CPP4144 4145 fi4146 CPP=$ac_cv_prog_CPP4147 else4148 ac_cv_prog_CPP=$CPP4149 fi4150 echo "$as_me:$LINENO: result: $CPP" >&54151 echo "${ECHO_T}$CPP" >&64152 ac_preproc_ok=false4153 for ac_c_preproc_warn_flag in '' yes4154 do4155 # Use a header file that comes with gcc, so configuring glibc4156 # with a fresh cross-compiler works.4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since4158 # <limits.h> exists even on freestanding compilers.4159 # On the NeXT, cc -E runs the code through the compiler's parser,4160 # not just through cpp. "Syntax error" is here to catch this case.4161 cat >conftest.$ac_ext <<_ACEOF4162 /* confdefs.h. */4163 _ACEOF4164 cat confdefs.h >>conftest.$ac_ext4165 cat >>conftest.$ac_ext <<_ACEOF4166 /* end confdefs.h. */4167 #ifdef __STDC__4168 # include <limits.h>4169 #else4170 # include <assert.h>4171 #endif4172 Syntax error4173 _ACEOF4174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&54175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er14176 ac_status=$?4177 grep -v '^ *+' conftest.er1 >conftest.err4178 rm -f conftest.er14179 cat conftest.err >&54180 echo "$as_me:$LINENO: \$? = $ac_status" >&54181 (exit $ac_status); } >/dev/null; then4182 if test -s conftest.err; then4183 ac_cpp_err=$ac_c_preproc_warn_flag4184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag4185 else4186 ac_cpp_err=4187 fi4188 else4189 ac_cpp_err=yes4190 fi4191 if test -z "$ac_cpp_err"; then4192 :4193 else4194 echo "$as_me: failed program was:" >&54195 sed 's/^/| /' conftest.$ac_ext >&54196 4197 # Broken: fails on valid input.4198 continue4199 fi4200 rm -f conftest.err conftest.$ac_ext4201 4202 # OK, works on sane cases. Now check whether non-existent headers4203 # can be detected and how.4204 cat >conftest.$ac_ext <<_ACEOF4205 /* confdefs.h. */4206 _ACEOF4207 cat confdefs.h >>conftest.$ac_ext4208 cat >>conftest.$ac_ext <<_ACEOF4209 /* end confdefs.h. */4210 #include <ac_nonexistent.h>4211 _ACEOF4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&54213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er14214 ac_status=$?4215 grep -v '^ *+' conftest.er1 >conftest.err4216 rm -f conftest.er14217 cat conftest.err >&54218 echo "$as_me:$LINENO: \$? = $ac_status" >&54219 (exit $ac_status); } >/dev/null; then4220 if test -s conftest.err; then4221 ac_cpp_err=$ac_c_preproc_warn_flag4222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag4223 else4224 ac_cpp_err=4225 fi4226 else4227 ac_cpp_err=yes4228 fi4229 if test -z "$ac_cpp_err"; then4230 # Broken: success on invalid input.4231 continue4232 else4233 echo "$as_me: failed program was:" >&54234 sed 's/^/| /' conftest.$ac_ext >&54235 4236 # Passes both tests.4237 ac_preproc_ok=:4238 break4239 fi4240 rm -f conftest.err conftest.$ac_ext4241 4242 done4243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.4244 rm -f conftest.err conftest.$ac_ext4245 if $ac_preproc_ok; then4246 :4247 else4248 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check4249 See \`config.log' for more details." >&54250 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check4251 See \`config.log' for more details." >&2;}4252 { (exit 1); exit 1; }; }4253 fi4254 4255 ac_ext=c4256 ac_cpp='$CPP $CPPFLAGS'4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu4260 4261 4262 echo "$as_me:$LINENO: checking for egrep" >&54263 echo $ECHO_N "checking for egrep... $ECHO_C" >&64264 if test "${ac_cv_prog_egrep+set}" = set; then4265 echo $ECHO_N "(cached) $ECHO_C" >&64266 else4267 if echo a | (grep -E '(a|b)') >/dev/null 2>&14268 then ac_cv_prog_egrep='grep -E'4269 else ac_cv_prog_egrep='egrep'4270 fi4271 fi4272 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&54273 echo "${ECHO_T}$ac_cv_prog_egrep" >&64274 EGREP=$ac_cv_prog_egrep4275 4276 4277 4958 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4278 4959 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 … … 4440 5121 4441 5122 fi 4442 4443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \4454 inttypes.h stdint.h unistd.h4455 do4456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`4457 echo "$as_me:$LINENO: checking for $ac_header" >&54458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&64459 if eval "test \"\${$as_ac_Header+set}\" = set"; then4460 echo $ECHO_N "(cached) $ECHO_C" >&64461 else4462 cat >conftest.$ac_ext <<_ACEOF4463 /* confdefs.h. */4464 _ACEOF4465 cat confdefs.h >>conftest.$ac_ext4466 cat >>conftest.$ac_ext <<_ACEOF4467 /* end confdefs.h. */4468 $ac_includes_default4469 4470 #include <$ac_header>4471 _ACEOF4472 rm -f conftest.$ac_objext4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&54474 (eval $ac_compile) 2>conftest.er14475 ac_status=$?4476 grep -v '^ *+' conftest.er1 >conftest.err4477 rm -f conftest.er14478 cat conftest.err >&54479 echo "$as_me:$LINENO: \$? = $ac_status" >&54480 (exit $ac_status); } &&4481 { ac_try='test -z "$ac_c_werror_flag"4482 || test ! -s conftest.err'4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54484 (eval $ac_try) 2>&54485 ac_status=$?4486 echo "$as_me:$LINENO: \$? = $ac_status" >&54487 (exit $ac_status); }; } &&4488 { ac_try='test -s conftest.$ac_objext'4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54490 (eval $ac_try) 2>&54491 ac_status=$?4492 echo "$as_me:$LINENO: \$? = $ac_status" >&54493 (exit $ac_status); }; }; then4494 eval "$as_ac_Header=yes"4495 else4496 echo "$as_me: failed program was:" >&54497 sed 's/^/| /' conftest.$ac_ext >&54498 4499 eval "$as_ac_Header=no"4500 fi4501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext4502 fi4503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&54504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&64505 if test `eval echo '${'$as_ac_Header'}'` = yes; then4506 cat >>confdefs.h <<_ACEOF4507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 14508 _ACEOF4509 4510 fi4511 4512 done4513 4514 5123 4515 5124 -
orxonox/trunk/configure.ac
r1959 r1971 15 15 16 16 # cheking for libGL 17 AC_CHECK_HEADERS(GL/gl.h ,, 18 [AC_MSG_ERROR([cannot find opengl headers]) ]) 19 17 20 # checking for Unix GL 18 AC_CHECK_LIB([GL], [ glPushMatrix], FOUND_GL=yes)21 AC_CHECK_LIB([GL], [main], FOUND_GL=yes) 19 22 if test "$FOUND_GL" = "yes" ; then 20 23 LIBS="$LIBS -lGL" … … 22 25 else 23 26 echo "We did not find the Linux opengl Library. Checking for Windows Library" 24 AC_CHECK_LIB([opengl32], [ glPushMatrix], FOUND_opengl=yes)25 if test "$FOUND_opengl " = "yes" ; then27 AC_CHECK_LIB([opengl32], [main], FOUND_opengl32=yes, "gl/gl.h") 28 if test "$FOUND_opengl32" = "yes" ; then 26 29 LIBS="$LIBS -lopengl32" 27 30 28 31 else 29 32 echo "------------------" 30 33 echo "opengl not found." … … 36 39 37 40 # cheking for libGLU 41 AC_CHECK_HEADERS(GL/glu.h ,, 42 [AC_MSG_ERROR([cannot find opengl headers]) ]) 43 38 44 AC_CHECK_LIB([GLU], [gluProject], FOUND_GLU=yes) 39 45 if test "$FOUND_GLU" = "yes" ; then … … 42 48 else 43 49 echo "We did not find the Linux GLU Library. Checking for Windows Library" 44 AC_CHECK_LIB([ GLU32], [glPushMatrix], FOUND_GLU32=yes)45 if test "$FOUND_ GLU32" = "yes" ; then50 AC_CHECK_LIB([glu32], [main], FOUND_glu32=yes) 51 if test "$FOUND_glu32" = "yes" ; then 46 52 LIBS="$LIBS -lGLU32" 47 53 … … 54 60 fi 55 61 fi 62 56 63 # FIXME: Replace `main' with a function in `-lOSMesa': 57 64 AC_CHECK_LIB([OSMesa], [main]) … … 62 69 63 70 # cheking for libglut32 71 AC_CHECK_HEADERS(GL/glut.h ,, 72 [AC_MSG_ERROR([cannot find glut headers]) ]) 64 73 AC_CHECK_LIB([glut], [glutInit], FOUND_glut=yes) 65 74 if test "$FOUND_glut" = "yes" ; then … … 68 77 else 69 78 echo "We did not find the Linux glut Library. Checking for Windows Library" 70 AC_CHECK_LIB([glut32], [ glPushMatrix], FOUND_glut32=yes)79 AC_CHECK_LIB([glut32], [main], FOUND_glut32=yes) 71 80 if test "$FOUND_glut32" = "yes" ; then 72 81 LIBS="$LIBS -lglut32"
Note: See TracChangeset
for help on using the changeset viewer.