Changeset 1959 in orxonox.OLD for orxonox/trunk/configure
- Timestamp:
- Jun 16, 2004, 5:32:38 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure
r1956 r1959 1321 1321 1322 1322 1323 1324 ac_config_headers="$ac_config_headers config.h"1325 1326 1323 am__api_version="1.7" 1327 1324 ac_aux_dir= … … 1726 1723 1727 1724 1725 ac_config_headers="$ac_config_headers config.h" 1726 1727 1728 1728 # Checks for programs. 1729 1729 ac_ext=cc … … 3283 3283 3284 3284 # Checks for libraries. 3285 # FIXME: Replace `main' with a function in `-lGL': 3286 3287 3288 echo "$as_me:$LINENO: checking for main in -lGL" >&5 3289 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 3290 if test "${ac_cv_lib_GL_main+set}" = set; then 3285 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 3291 3292 echo $ECHO_N "(cached) $ECHO_C" >&6 3292 3293 else 3293 3294 ac_check_lib_save_LIBS=$LIBS 3294 3295 LIBS="-lGL $LIBS" 3296 cat >conftest.$ac_ext <<_ACEOF 3297 /* confdefs.h. */ 3298 _ACEOF 3299 cat confdefs.h >>conftest.$ac_ext 3300 cat >>conftest.$ac_ext <<_ACEOF 3301 /* end confdefs.h. */ 3302 3303 /* Override any gcc2 internal prototype to avoid an error. */ 3304 #ifdef __cplusplus 3305 extern "C" 3306 #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 (); 3310 int 3311 main () 3312 { 3313 glPushMatrix (); 3314 ; 3315 return 0; 3316 } 3317 _ACEOF 3318 rm -f conftest.$ac_objext conftest$ac_exeext 3319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3320 (eval $ac_link) 2>conftest.er1 3321 ac_status=$? 3322 grep -v '^ *+' conftest.er1 >conftest.err 3323 rm -f conftest.er1 3324 cat conftest.err >&5 3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3326 (exit $ac_status); } && 3327 { ac_try='test -z "$ac_c_werror_flag" 3328 || test ! -s conftest.err' 3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3330 (eval $ac_try) 2>&5 3331 ac_status=$? 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); }; } && 3334 { ac_try='test -s conftest$ac_exeext' 3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3336 (eval $ac_try) 2>&5 3337 ac_status=$? 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); }; }; then 3340 ac_cv_lib_GL_glPushMatrix=yes 3341 else 3342 echo "$as_me: failed program was:" >&5 3343 sed 's/^/| /' conftest.$ac_ext >&5 3344 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 3370 /* confdefs.h. */ 3371 _ACEOF 3372 cat confdefs.h >>conftest.$ac_ext 3373 cat >>conftest.$ac_ext <<_ACEOF 3374 /* end confdefs.h. */ 3375 3376 /* Override any gcc2 internal prototype to avoid an error. */ 3377 #ifdef __cplusplus 3378 extern "C" 3379 #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 (); 3383 int 3384 main () 3385 { 3386 glPushMatrix (); 3387 ; 3388 return 0; 3389 } 3390 _ACEOF 3391 rm -f conftest.$ac_objext conftest$ac_exeext 3392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3393 (eval $ac_link) 2>conftest.er1 3394 ac_status=$? 3395 grep -v '^ *+' conftest.er1 >conftest.err 3396 rm -f conftest.er1 3397 cat conftest.err >&5 3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3399 (exit $ac_status); } && 3400 { ac_try='test -z "$ac_c_werror_flag" 3401 || test ! -s conftest.err' 3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3403 (eval $ac_try) 2>&5 3404 ac_status=$? 3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3406 (exit $ac_status); }; } && 3407 { ac_try='test -s conftest$ac_exeext' 3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3409 (eval $ac_try) 2>&5 3410 ac_status=$? 3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); }; }; then 3413 ac_cv_lib_opengl32_glPushMatrix=yes 3414 else 3415 echo "$as_me: failed program was:" >&5 3416 sed 's/^/| /' conftest.$ac_ext >&5 3417 3418 ac_cv_lib_opengl32_glPushMatrix=no 3419 fi 3420 rm -f conftest.err conftest.$ac_objext \ 3421 conftest$ac_exeext conftest.$ac_ext 3422 LIBS=$ac_check_lib_save_LIBS 3423 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 3431 LIBS="$LIBS -lopengl32" 3432 3433 else 3434 echo "------------------" 3435 echo "opengl not found." 3436 echo "please install the opengl package which can be found at http://www.opengl.org" 3437 echo "------------------" 3438 exit -1 3439 fi 3440 fi 3441 3442 # cheking for libGLU 3443 echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 3444 echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 3445 if test "${ac_cv_lib_GLU_gluProject+set}" = set; then 3446 echo $ECHO_N "(cached) $ECHO_C" >&6 3447 else 3448 ac_check_lib_save_LIBS=$LIBS 3449 LIBS="-lGLU $LIBS" 3450 cat >conftest.$ac_ext <<_ACEOF 3451 /* confdefs.h. */ 3452 _ACEOF 3453 cat confdefs.h >>conftest.$ac_ext 3454 cat >>conftest.$ac_ext <<_ACEOF 3455 /* end confdefs.h. */ 3456 3457 /* Override any gcc2 internal prototype to avoid an error. */ 3458 #ifdef __cplusplus 3459 extern "C" 3460 #endif 3461 /* We use char because int might match the return type of a gcc2 3462 builtin and then its argument prototype would still apply. */ 3463 char gluProject (); 3464 int 3465 main () 3466 { 3467 gluProject (); 3468 ; 3469 return 0; 3470 } 3471 _ACEOF 3472 rm -f conftest.$ac_objext conftest$ac_exeext 3473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3474 (eval $ac_link) 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); } && 3481 { ac_try='test -z "$ac_c_werror_flag" 3482 || test ! -s conftest.err' 3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3484 (eval $ac_try) 2>&5 3485 ac_status=$? 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); }; } && 3488 { ac_try='test -s conftest$ac_exeext' 3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3490 (eval $ac_try) 2>&5 3491 ac_status=$? 3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3493 (exit $ac_status); }; }; then 3494 ac_cv_lib_GLU_gluProject=yes 3495 else 3496 echo "$as_me: failed program was:" >&5 3497 sed 's/^/| /' conftest.$ac_ext >&5 3498 3499 ac_cv_lib_GLU_gluProject=no 3500 fi 3501 rm -f conftest.err conftest.$ac_objext \ 3502 conftest$ac_exeext conftest.$ac_ext 3503 LIBS=$ac_check_lib_save_LIBS 3504 fi 3505 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 3506 echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 3507 if test $ac_cv_lib_GLU_gluProject = yes; then 3508 FOUND_GLU=yes 3509 fi 3510 3511 if test "$FOUND_GLU" = "yes" ; then 3512 LIBS="$LIBS -lGLU" 3513 # checking for Windows GLU32 library 3514 else 3515 echo "We did not find the Linux GLU Library. Checking for Windows Library" 3516 echo "$as_me:$LINENO: checking for glPushMatrix in -lGLU32" >&5 3517 echo $ECHO_N "checking for glPushMatrix in -lGLU32... $ECHO_C" >&6 3518 if test "${ac_cv_lib_GLU32_glPushMatrix+set}" = set; then 3519 echo $ECHO_N "(cached) $ECHO_C" >&6 3520 else 3521 ac_check_lib_save_LIBS=$LIBS 3522 LIBS="-lGLU32 $LIBS" 3523 cat >conftest.$ac_ext <<_ACEOF 3524 /* confdefs.h. */ 3525 _ACEOF 3526 cat confdefs.h >>conftest.$ac_ext 3527 cat >>conftest.$ac_ext <<_ACEOF 3528 /* end confdefs.h. */ 3529 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 (); 3537 int 3538 main () 3539 { 3540 glPushMatrix (); 3541 ; 3542 return 0; 3543 } 3544 _ACEOF 3545 rm -f conftest.$ac_objext conftest$ac_exeext 3546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3547 (eval $ac_link) 2>conftest.er1 3548 ac_status=$? 3549 grep -v '^ *+' conftest.er1 >conftest.err 3550 rm -f conftest.er1 3551 cat conftest.err >&5 3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3553 (exit $ac_status); } && 3554 { ac_try='test -z "$ac_c_werror_flag" 3555 || test ! -s conftest.err' 3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3557 (eval $ac_try) 2>&5 3558 ac_status=$? 3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3560 (exit $ac_status); }; } && 3561 { ac_try='test -s conftest$ac_exeext' 3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3563 (eval $ac_try) 2>&5 3564 ac_status=$? 3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 (exit $ac_status); }; }; then 3567 ac_cv_lib_GLU32_glPushMatrix=yes 3568 else 3569 echo "$as_me: failed program was:" >&5 3570 sed 's/^/| /' conftest.$ac_ext >&5 3571 3572 ac_cv_lib_GLU32_glPushMatrix=no 3573 fi 3574 rm -f conftest.err conftest.$ac_objext \ 3575 conftest$ac_exeext conftest.$ac_ext 3576 LIBS=$ac_check_lib_save_LIBS 3577 fi 3578 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU32_glPushMatrix" >&5 3579 echo "${ECHO_T}$ac_cv_lib_GLU32_glPushMatrix" >&6 3580 if test $ac_cv_lib_GLU32_glPushMatrix = yes; then 3581 FOUND_GLU32=yes 3582 fi 3583 3584 if test "$FOUND_GLU32" = "yes" ; then 3585 LIBS="$LIBS -lGLU32" 3586 3587 else 3588 echo "------------------" 3589 echo "GLU library not found." 3590 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 3591 echo "------------------" 3592 exit -1 3593 fi 3594 fi 3595 # FIXME: Replace `main' with a function in `-lOSMesa': 3596 3597 echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5 3598 echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6 3599 if test "${ac_cv_lib_OSMesa_main+set}" = set; then 3600 echo $ECHO_N "(cached) $ECHO_C" >&6 3601 else 3602 ac_check_lib_save_LIBS=$LIBS 3603 LIBS="-lOSMesa $LIBS" 3295 3604 cat >conftest.$ac_ext <<_ACEOF 3296 3605 /* confdefs.h. */ … … 3331 3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3332 3641 (exit $ac_status); }; }; then 3333 ac_cv_lib_ GL_main=yes3642 ac_cv_lib_OSMesa_main=yes 3334 3643 else 3335 3644 echo "$as_me: failed program was:" >&5 3336 3645 sed 's/^/| /' conftest.$ac_ext >&5 3337 3646 3338 ac_cv_lib_ GL_main=no3647 ac_cv_lib_OSMesa_main=no 3339 3648 fi 3340 3649 rm -f conftest.err conftest.$ac_objext \ … … 3342 3651 LIBS=$ac_check_lib_save_LIBS 3343 3652 fi 3344 echo "$as_me:$LINENO: result: $ac_cv_lib_ GL_main" >&53345 echo "${ECHO_T}$ac_cv_lib_ GL_main" >&63346 if test $ac_cv_lib_ GL_main = yes; then3653 echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5 3654 echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6 3655 if test $ac_cv_lib_OSMesa_main = yes; then 3347 3656 cat >>confdefs.h <<_ACEOF 3348 #define HAVE_LIB GL13349 _ACEOF 3350 3351 LIBS="-l GL$LIBS"3352 3353 fi 3354 3355 # FIXME: Replace `main' with a function in `-l GLU':3356 3357 echo "$as_me:$LINENO: checking for main in -l GLU" >&53358 echo $ECHO_N "checking for main in -l GLU... $ECHO_C" >&63359 if test "${ac_cv_lib_ GLU_main+set}" = set; then3657 #define HAVE_LIBOSMESA 1 3658 _ACEOF 3659 3660 LIBS="-lOSMesa $LIBS" 3661 3662 fi 3663 3664 # FIXME: Replace `main' with a function in `-lX11': 3665 3666 echo "$as_me:$LINENO: checking for main in -lX11" >&5 3667 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6 3668 if test "${ac_cv_lib_X11_main+set}" = set; then 3360 3669 echo $ECHO_N "(cached) $ECHO_C" >&6 3361 3670 else 3362 3671 ac_check_lib_save_LIBS=$LIBS 3363 LIBS="-l GLU$LIBS"3672 LIBS="-lX11 $LIBS" 3364 3673 cat >conftest.$ac_ext <<_ACEOF 3365 3674 /* confdefs.h. */ … … 3400 3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3401 3710 (exit $ac_status); }; }; then 3402 ac_cv_lib_ GLU_main=yes3711 ac_cv_lib_X11_main=yes 3403 3712 else 3404 3713 echo "$as_me: failed program was:" >&5 3405 3714 sed 's/^/| /' conftest.$ac_ext >&5 3406 3715 3407 ac_cv_lib_ GLU_main=no3716 ac_cv_lib_X11_main=no 3408 3717 fi 3409 3718 rm -f conftest.err conftest.$ac_objext \ … … 3411 3720 LIBS=$ac_check_lib_save_LIBS 3412 3721 fi 3413 echo "$as_me:$LINENO: result: $ac_cv_lib_ GLU_main" >&53414 echo "${ECHO_T}$ac_cv_lib_ GLU_main" >&63415 if test $ac_cv_lib_ GLU_main = yes; then3722 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 3723 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 3724 if test $ac_cv_lib_X11_main = yes; then 3416 3725 cat >>confdefs.h <<_ACEOF 3417 #define HAVE_LIB GLU13418 _ACEOF 3419 3420 LIBS="-l GLU$LIBS"3421 3422 fi 3423 3424 # FIXME: Replace `main' with a function in `-l OSMesa':3425 3426 echo "$as_me:$LINENO: checking for main in -l OSMesa" >&53427 echo $ECHO_N "checking for main in -l OSMesa... $ECHO_C" >&63428 if test "${ac_cv_lib_ OSMesa_main+set}" = set; then3726 #define HAVE_LIBX11 1 3727 _ACEOF 3728 3729 LIBS="-lX11 $LIBS" 3730 3731 fi 3732 3733 # FIXME: Replace `main' with a function in `-lXt': 3734 3735 echo "$as_me:$LINENO: checking for main in -lXt" >&5 3736 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 3737 if test "${ac_cv_lib_Xt_main+set}" = set; then 3429 3738 echo $ECHO_N "(cached) $ECHO_C" >&6 3430 3739 else 3431 3740 ac_check_lib_save_LIBS=$LIBS 3432 LIBS="-l OSMesa$LIBS"3741 LIBS="-lXt $LIBS" 3433 3742 cat >conftest.$ac_ext <<_ACEOF 3434 3743 /* confdefs.h. */ … … 3469 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3470 3779 (exit $ac_status); }; }; then 3471 ac_cv_lib_ OSMesa_main=yes3780 ac_cv_lib_Xt_main=yes 3472 3781 else 3473 3782 echo "$as_me: failed program was:" >&5 3474 3783 sed 's/^/| /' conftest.$ac_ext >&5 3475 3784 3476 ac_cv_lib_ OSMesa_main=no3785 ac_cv_lib_Xt_main=no 3477 3786 fi 3478 3787 rm -f conftest.err conftest.$ac_objext \ … … 3480 3789 LIBS=$ac_check_lib_save_LIBS 3481 3790 fi 3482 echo "$as_me:$LINENO: result: $ac_cv_lib_ OSMesa_main" >&53483 echo "${ECHO_T}$ac_cv_lib_ OSMesa_main" >&63484 if test $ac_cv_lib_ OSMesa_main = yes; then3791 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 3792 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 3793 if test $ac_cv_lib_Xt_main = yes; then 3485 3794 cat >>confdefs.h <<_ACEOF 3486 #define HAVE_LIB OSMESA13487 _ACEOF 3488 3489 LIBS="-l OSMesa$LIBS"3490 3491 fi 3492 3493 # FIXME: Replace `main' with a function in `-lX11': 3494 3495 echo "$as_me:$LINENO: checking for main in -lX11" >&53496 echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&63497 if test "${ac_cv_lib_ X11_main+set}" = set; then3795 #define HAVE_LIBXT 1 3796 _ACEOF 3797 3798 LIBS="-lXt $LIBS" 3799 3800 fi 3801 3802 3803 # cheking for libglut32 3804 echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5 3805 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6 3806 if test "${ac_cv_lib_glut_glutInit+set}" = set; then 3498 3807 echo $ECHO_N "(cached) $ECHO_C" >&6 3499 3808 else 3500 3809 ac_check_lib_save_LIBS=$LIBS 3501 LIBS="-l X11$LIBS"3810 LIBS="-lglut $LIBS" 3502 3811 cat >conftest.$ac_ext <<_ACEOF 3503 3812 /* confdefs.h. */ … … 3507 3816 /* end confdefs.h. */ 3508 3817 3509 3818 /* Override any gcc2 internal prototype to avoid an error. */ 3819 #ifdef __cplusplus 3820 extern "C" 3821 #endif 3822 /* We use char because int might match the return type of a gcc2 3823 builtin and then its argument prototype would still apply. */ 3824 char glutInit (); 3510 3825 int 3511 3826 main () 3512 3827 { 3513 main();3828 glutInit (); 3514 3829 ; 3515 3830 return 0; … … 3538 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3539 3854 (exit $ac_status); }; }; then 3540 ac_cv_lib_ X11_main=yes3855 ac_cv_lib_glut_glutInit=yes 3541 3856 else 3542 3857 echo "$as_me: failed program was:" >&5 3543 3858 sed 's/^/| /' conftest.$ac_ext >&5 3544 3859 3545 ac_cv_lib_ X11_main=no3860 ac_cv_lib_glut_glutInit=no 3546 3861 fi 3547 3862 rm -f conftest.err conftest.$ac_objext \ … … 3549 3864 LIBS=$ac_check_lib_save_LIBS 3550 3865 fi 3551 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 3552 echo "${ECHO_T}$ac_cv_lib_X11_main" >&6 3553 if test $ac_cv_lib_X11_main = yes; then 3554 cat >>confdefs.h <<_ACEOF 3555 #define HAVE_LIBX11 1 3556 _ACEOF 3557 3558 LIBS="-lX11 $LIBS" 3559 3560 fi 3561 3562 # FIXME: Replace `main' with a function in `-lXt': 3563 3564 echo "$as_me:$LINENO: checking for main in -lXt" >&5 3565 echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6 3566 if test "${ac_cv_lib_Xt_main+set}" = set; then 3866 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5 3867 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6 3868 if test $ac_cv_lib_glut_glutInit = yes; then 3869 FOUND_glut=yes 3870 fi 3871 3872 if test "$FOUND_glut" = "yes" ; then 3873 LIBS="$LIBS -lglut" 3874 # checking for Windows glut32 library 3875 else 3876 echo "We did not find the Linux glut Library. Checking for Windows Library" 3877 echo "$as_me:$LINENO: checking for glPushMatrix in -lglut32" >&5 3878 echo $ECHO_N "checking for glPushMatrix in -lglut32... $ECHO_C" >&6 3879 if test "${ac_cv_lib_glut32_glPushMatrix+set}" = set; then 3567 3880 echo $ECHO_N "(cached) $ECHO_C" >&6 3568 3881 else 3569 3882 ac_check_lib_save_LIBS=$LIBS 3570 LIBS="-l Xt$LIBS"3883 LIBS="-lglut32 $LIBS" 3571 3884 cat >conftest.$ac_ext <<_ACEOF 3572 3885 /* confdefs.h. */ … … 3576 3889 /* end confdefs.h. */ 3577 3890 3578 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 (); 3579 3898 int 3580 3899 main () 3581 3900 { 3582 main();3901 glPushMatrix (); 3583 3902 ; 3584 3903 return 0; … … 3607 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 3927 (exit $ac_status); }; }; then 3609 ac_cv_lib_ Xt_main=yes3928 ac_cv_lib_glut32_glPushMatrix=yes 3610 3929 else 3611 3930 echo "$as_me: failed program was:" >&5 3612 3931 sed 's/^/| /' conftest.$ac_ext >&5 3613 3932 3614 ac_cv_lib_ Xt_main=no3933 ac_cv_lib_glut32_glPushMatrix=no 3615 3934 fi 3616 3935 rm -f conftest.err conftest.$ac_objext \ … … 3618 3937 LIBS=$ac_check_lib_save_LIBS 3619 3938 fi 3620 echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 3621 echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6 3622 if test $ac_cv_lib_Xt_main = yes; then 3623 cat >>confdefs.h <<_ACEOF 3624 #define HAVE_LIBXT 1 3625 _ACEOF 3626 3627 LIBS="-lXt $LIBS" 3628 3629 fi 3630 3631 # FIXME: Replace `main' with a function in `-lglut': 3632 3633 echo "$as_me:$LINENO: checking for main in -lglut" >&5 3634 echo $ECHO_N "checking for main in -lglut... $ECHO_C" >&6 3635 if test "${ac_cv_lib_glut_main+set}" = set; then 3636 echo $ECHO_N "(cached) $ECHO_C" >&6 3637 else 3638 ac_check_lib_save_LIBS=$LIBS 3639 LIBS="-lglut $LIBS" 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 3647 3648 int 3649 main () 3650 { 3651 main (); 3652 ; 3653 return 0; 3654 } 3655 _ACEOF 3656 rm -f conftest.$ac_objext conftest$ac_exeext 3657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3658 (eval $ac_link) 2>conftest.er1 3659 ac_status=$? 3660 grep -v '^ *+' conftest.er1 >conftest.err 3661 rm -f conftest.er1 3662 cat conftest.err >&5 3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3664 (exit $ac_status); } && 3665 { ac_try='test -z "$ac_c_werror_flag" 3666 || test ! -s conftest.err' 3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3668 (eval $ac_try) 2>&5 3669 ac_status=$? 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3671 (exit $ac_status); }; } && 3672 { ac_try='test -s conftest$ac_exeext' 3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3674 (eval $ac_try) 2>&5 3675 ac_status=$? 3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3677 (exit $ac_status); }; }; then 3678 ac_cv_lib_glut_main=yes 3679 else 3680 echo "$as_me: failed program was:" >&5 3681 sed 's/^/| /' conftest.$ac_ext >&5 3682 3683 ac_cv_lib_glut_main=no 3684 fi 3685 rm -f conftest.err conftest.$ac_objext \ 3686 conftest$ac_exeext conftest.$ac_ext 3687 LIBS=$ac_check_lib_save_LIBS 3688 fi 3689 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_main" >&5 3690 echo "${ECHO_T}$ac_cv_lib_glut_main" >&6 3691 if test $ac_cv_lib_glut_main = yes; then 3692 cat >>confdefs.h <<_ACEOF 3693 #define HAVE_LIBGLUT 1 3694 _ACEOF 3695 3696 LIBS="-lglut $LIBS" 3697 3939 echo "$as_me:$LINENO: result: $ac_cv_lib_glut32_glPushMatrix" >&5 3940 echo "${ECHO_T}$ac_cv_lib_glut32_glPushMatrix" >&6 3941 if test $ac_cv_lib_glut32_glPushMatrix = yes; then 3942 FOUND_glut32=yes 3943 fi 3944 3945 if test "$FOUND_glut32" = "yes" ; then 3946 LIBS="$LIBS -lglut32" 3947 else 3948 echo "------------------" 3949 echo "glut library not found." 3950 echo "please install the glut library, which can be found at http://www.xmission.com/~nate/glut.html" 3951 echo "------------------" 3952 exit -1 3953 fi 3698 3954 fi 3699 3955
Note: See TracChangeset
for help on using the changeset viewer.