572 if [ "$enable_dedicated" != "0" ]; then |
572 if [ "$enable_dedicated" != "0" ]; then |
573 log 1 "checking GDI video driver... dedicated server, skipping" |
573 log 1 "checking GDI video driver... dedicated server, skipping" |
574 log 1 "checking dedicated... found" |
574 log 1 "checking dedicated... found" |
575 |
575 |
576 if [ "$enable_network" = "0" ]; then |
576 if [ "$enable_network" = "0" ]; then |
577 log 1 "WARNING: compiling a dedicated server without network is pointless" |
577 log 1 "configure: error: building a dedicated server without network support is pointless" |
578 sleep 5 |
578 exit 1 |
579 fi |
579 fi |
580 else |
580 else |
581 if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ] || [ "$os" = "WINCE" ]; then |
581 if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ] || [ "$os" = "WINCE" ]; then |
582 log 1 "checking GDI video driver... found" |
582 log 1 "checking GDI video driver... found" |
583 else |
583 else |
584 log 1 "checking GDI video driver... not Windows, skipping" |
584 log 1 "checking GDI video driver... not Windows, skipping" |
585 fi |
585 fi |
586 |
586 |
587 if [ -z "$allegro_config" ] && [ -z "$sdl_config" ] && [ "$with_cocoa" = 0 ] && [ "$os" != "MINGW" ] && [ "$os" != "CYGWIN" ] && [ "$os" != "WINCE" ]; then |
587 if [ -z "$allegro_config" ] && [ -z "$sdl_config" ] && [ "$with_cocoa" = 0 ] && [ "$os" != "MINGW" ] && [ "$os" != "CYGWIN" ] && [ "$os" != "WINCE" ]; then |
588 log 1 "WARNING: no video driver found, building dedicated only" |
588 log 1 "configure: error: no video driver development files found" |
589 enable_dedicated="1" |
589 log 1 " If you want a dedicated server use --enable-dedicated as parameter" |
590 sleep 1 |
590 exit 1 |
591 |
|
592 log 1 "checking dedicated... found" |
|
593 else |
591 else |
594 log 1 "checking dedicated... not selected" |
592 log 1 "checking dedicated... not selected" |
595 fi |
593 fi |
596 fi |
594 fi |
597 |
595 |
617 log 1 "checking assert... enabled" |
615 log 1 "checking assert... enabled" |
618 else |
616 else |
619 log 1 "checking assert... disabled" |
617 log 1 "checking assert... disabled" |
620 fi |
618 fi |
621 |
619 |
|
620 pre_detect_with_zlib=$with_zlib |
622 detect_zlib |
621 detect_zlib |
623 |
622 |
624 if [ "$with_zlib" = "0" ] || [ -z "$zlib" ]; then |
623 if [ "$with_zlib" = "0" ] || [ -z "$zlib" ]; then |
625 log 1 "WARNING: zlib was not detected or disabled" |
624 log 1 "WARNING: zlib was not detected or disabled" |
626 log 1 "WARNING: OpenTTD doesn't require zlib, but it does mean many features (like" |
625 log 1 "WARNING: OpenTTD doesn't require zlib, but it does mean many features (like" |
627 log 1 "WARNING: loading most savegames/scenarios, joining most servers, loading" |
626 log 1 "WARNING: loading most savegames/scenarios, joining most servers, loading" |
628 log 1 "WARNING: heightmaps, using PNG or using fonts, ...) will be disabled." |
627 log 1 "WARNING: heightmaps, using PNG or using fonts, ...) will be disabled." |
629 log 1 "WARNING: We strongly suggest you to install zlib." |
628 if [ "$pre_detect_with_zlib" = "0" ]; then |
630 sleep 5 |
629 log 1 "WARNING: We strongly suggest you to install zlib." |
|
630 else |
|
631 log 1 "configure: error: no zlib detected" |
|
632 log 1 " If you want to compile without zlib use --without-zlib as parameter" |
|
633 exit |
|
634 fi |
631 fi |
635 fi |
632 |
636 |
633 detect_png |
637 detect_png |
634 detect_freetype |
638 detect_freetype |
635 detect_fontconfig |
639 detect_fontconfig |