506 |
506 |
507 print_check_msg "$dep_checked_openssl" "no\n" |
507 print_check_msg "$dep_checked_openssl" "no\n" |
508 dep_checked_openssl=1 |
508 dep_checked_openssl=1 |
509 return 0 |
509 return 0 |
510 } |
510 } |
|
511 dependency_error_libadwaita() |
|
512 { |
|
513 print_check_msg "$dep_checked_libadwaita" "checking for libadwaita... " |
|
514 # dependency libadwaita |
|
515 while true |
|
516 do |
|
517 if [ -z "$PKG_CONFIG" ]; then |
|
518 break |
|
519 fi |
|
520 if test_pkg_config "libadwaita-1" "" "" "" ; then |
|
521 TEMP_CFLAGS="$TEMP_CFLAGS `"$PKG_CONFIG" --cflags libadwaita-1`" |
|
522 TEMP_LDFLAGS="$TEMP_LDFLAGS `"$PKG_CONFIG" --libs libadwaita-1`" |
|
523 else |
|
524 break |
|
525 fi |
|
526 TEMP_CFLAGS="$TEMP_CFLAGS -DUI_GTK4 -DUI_LIBADWAITA" |
|
527 TEMP_LDFLAGS="$TEMP_LDFLAGS -lpthread" |
|
528 print_check_msg "$dep_checked_libadwaita" "yes\n" |
|
529 dep_checked_libadwaita=1 |
|
530 return 1 |
|
531 done |
|
532 |
|
533 print_check_msg "$dep_checked_libadwaita" "no\n" |
|
534 dep_checked_libadwaita=1 |
|
535 return 0 |
|
536 } |
511 dependency_error_motif() |
537 dependency_error_motif() |
512 { |
538 { |
513 print_check_msg "$dep_checked_motif" "checking for motif... " |
539 print_check_msg "$dep_checked_motif" "checking for motif... " |
514 # dependency motif platform="bsd" |
540 # dependency motif platform="bsd" |
515 while true |
541 while true |
976 DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED" |
1017 DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED" |
977 else |
1018 else |
978 echo "checking option toolkit = $OPT_TOOLKIT" |
1019 echo "checking option toolkit = $OPT_TOOLKIT" |
979 if false; then |
1020 if false; then |
980 false |
1021 false |
|
1022 elif [ "$OPT_TOOLKIT" = "libadwaita" ]; then |
|
1023 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options |
|
1024 if checkopt_toolkit_libadwaita ; then |
|
1025 : |
|
1026 else |
|
1027 ERROR=1 |
|
1028 DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED" |
|
1029 fi |
981 elif [ "$OPT_TOOLKIT" = "gtk4" ]; then |
1030 elif [ "$OPT_TOOLKIT" = "gtk4" ]; then |
982 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options |
1031 echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options |
983 if checkopt_toolkit_gtk4 ; then |
1032 if checkopt_toolkit_gtk4 ; then |
984 : |
1033 : |
985 else |
1034 else |