src/test/resources/golden-sample/configure2

changeset 83
868e0d4b0a57
parent 77
439902ff0af3
equal deleted inserted replaced
82:85f5188acc21 83:868e0d4b0a57
534 # 534 #
535 # TARGETS 535 # TARGETS
536 # 536 #
537 537
538 echo >> "$TEMP_DIR/flags.mk" 538 echo >> "$TEMP_DIR/flags.mk"
539 # Target: dav 539 echo "configuring target: dav"
540 echo "# flags for target dav" >> "$TEMP_DIR/flags.mk" 540 echo "# flags for target dav" >> "$TEMP_DIR/flags.mk"
541 TEMP_CFLAGS= 541 TEMP_CFLAGS=
542 TEMP_CXXFLAGS= 542 TEMP_CXXFLAGS=
543 TEMP_LDFLAGS= 543 TEMP_LDFLAGS=
544 544
586 unset FEATURE_GUI 586 unset FEATURE_GUI
587 fi 587 fi
588 fi 588 fi
589 589
590 # Option: --toolkit 590 # Option: --toolkit
591 if [ -z $OPT_TOOLKIT ]; then 591 if [ -z "$OPT_TOOLKIT" ]; then
592 echo "auto-detecting option 'toolkit'"
592 SAVED_ERROR="$ERROR" 593 SAVED_ERROR="$ERROR"
593 SAVED_DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED" 594 SAVED_DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED"
594 ERROR=1 595 ERROR=1
595 while true 596 while true
596 do 597 do
613 fi 614 fi
614 break 615 break
615 done 616 done
616 if [ $ERROR -ne 0 ]; then 617 if [ $ERROR -ne 0 ]; then
617 SAVED_ERROR=1 618 SAVED_ERROR=1
619 SAVED_DEPENDENCIES_FAILED="option 'toolkit' $SAVED_DEPENDENCIES_FAILED"
618 fi 620 fi
619 ERROR="$SAVED_ERROR" 621 ERROR="$SAVED_ERROR"
620 DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED" 622 DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED"
621 else 623 else
624 echo "checking option toolkit = $OPT_TOOLKIT"
622 if false; then 625 if false; then
623 false 626 false
624 elif [ "$OPT_TOOLKIT" = "gtk3" ]; then 627 elif [ "$OPT_TOOLKIT" = "gtk3" ]; then
625 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options 628 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
626 if checkopt_toolkit_gtk3 ; then 629 if checkopt_toolkit_gtk3 ; then
627 : 630 :
628 else 631 else
629 ERROR=1 632 ERROR=1
633 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
630 fi 634 fi
631 elif [ "$OPT_TOOLKIT" = "cli" ]; then 635 elif [ "$OPT_TOOLKIT" = "cli" ]; then
632 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options 636 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
633 if checkopt_toolkit_cli ; then 637 if checkopt_toolkit_cli ; then
634 : 638 :
635 else 639 else
636 ERROR=1 640 ERROR=1
641 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
637 fi 642 fi
638 elif [ "$OPT_TOOLKIT" = "gtk2" ]; then 643 elif [ "$OPT_TOOLKIT" = "gtk2" ]; then
639 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options 644 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
640 if checkopt_toolkit_gtk2 ; then 645 if checkopt_toolkit_gtk2 ; then
641 : 646 :
642 else 647 else
643 ERROR=1 648 ERROR=1
649 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
644 fi 650 fi
645 elif [ "$OPT_TOOLKIT" = "wpf" ]; then 651 elif [ "$OPT_TOOLKIT" = "wpf" ]; then
646 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options 652 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options
647 if checkopt_toolkit_wpf ; then 653 if checkopt_toolkit_wpf ; then
648 : 654 :
649 else 655 else
650 ERROR=1 656 ERROR=1
657 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
651 fi 658 fi
652 fi 659 fi
653 fi 660 fi
654 661
655 if [ -n "${TEMP_CFLAGS}" -a -n "$lang_c" ]; then 662 if [ -n "${TEMP_CFLAGS}" -a -n "$lang_c" ]; then
677 if [ -n "${TEMP_LDFLAGS}" ]; then 684 if [ -n "${TEMP_LDFLAGS}" ]; then
678 echo "DAV_LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" 685 echo "DAV_LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk"
679 fi 686 fi
680 687
681 echo >> "$TEMP_DIR/flags.mk" 688 echo >> "$TEMP_DIR/flags.mk"
682 # Target 689 echo "configuring global target"
683 echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk" 690 echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk"
684 TEMP_CFLAGS= 691 TEMP_CFLAGS=
685 TEMP_CXXFLAGS= 692 TEMP_CXXFLAGS=
686 TEMP_LDFLAGS= 693 TEMP_LDFLAGS=
687 694

mercurial