# # Extra make variables for path handling by the base library # # Copyright (C) 2008 Free Software Foundation # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. GNUSTEP_BASE_DOMAIN=@GNUSTEP_BASE_DOMAIN@ GNUSTEP_BASE_RELATIVE_PATHS=@GNUSTEP_BASE_RELATIVE_PATHS@ ifeq ($(GNUSTEP_BASE_RELATIVE_PATHS), yes) ifneq ($(GNUSTEP_BASE_DOMAIN), $(GNUSTEP_INSTALLATION_DOMAIN)) $(warning "Error: GNUSTEP_INSTALLATION_DOMAIN does not match GNUSTEP_BASE_DOMAIN") $(warning " ") $(warning "You can install gnustep-base in one of the four domains: SYSTEM, LOCAL, NETWORK or USER.") $(warning " ") $(warning "gnustep-base was configured to be installed into: $(GNUSTEP_BASE_DOMAIN)") $(warning "but it would now being installed into: $(GNUSTEP_INSTALLATION_DOMAIN)") $(warning "That's not right: they must match.") $(warning " ") $(warning "If you want to install into $(GNUSTEP_BASE_DOMAIN), please use") $(warning " ") $(warning " make install GNUSTEP_INSTALLATION_DOMAIN=$(GNUSTEP_BASE_DOMAIN) [plus any other options you need]") $(warning " ") $(warning "Instead, if you want to install into $(GNUSTEP_INSTALLATION_DOMAIN), please reconfigure") $(warning "gnustep-base by doing") $(warning " ") $(warning " ./configure --with-installation-domain=$(GNUSTEP_INSTALLATION_DOMAIN) [plus any other options you need]") $(warning " ") $(warning "and then recompile and reinstall.") # We used to automatically rerun configure here. Unfortunately we # don't know if the right domain that we should be installing into is # GNUSTEP_BASE_DOMAIN (specified or automatically picked up by # configure) or GNUSTEP_INSTALLATION_DOMAIN (specified or # automatically picked up by make install) so the user really has to # spend two minutes checking this and fixing it herself. $(error "Please fix the installation domain then try again. If you are stuck, contact discuss-gnustep@gnu.org for help.") endif endif