| 
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -63,6 +63,8 @@ export LD_LIBRARY_PATH="./hack/libs:./hack:$LD_LIBRARY_PATH"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				PRELOAD_LIB="${PRELOAD_LIB:+$PRELOAD_LIB:}./hack/libdfhack.so"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				setarch_arch=$(cat hack/dfhack_setarch.txt || printf i386)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				case "$1" in
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  -g | --gdb)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    shift
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -74,21 +76,21 @@ case "$1" in
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ;;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  -h | --helgrind)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    shift
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    LD_PRELOAD="$PRELOAD_LIB" setarch i386 -R valgrind $DF_HELGRIND_OPTS --tool=helgrind --log-file=helgrind.log ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    LD_PRELOAD="$PRELOAD_LIB" setarch "$setarch_arch" -R valgrind $DF_HELGRIND_OPTS --tool=helgrind --log-file=helgrind.log ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ret=$?
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ;;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  -v | --valgrind)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    shift
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    LD_PRELOAD="$PRELOAD_LIB" setarch i386 -R valgrind $DF_VALGRIND_OPTS --log-file=valgrind.log ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    LD_PRELOAD="$PRELOAD_LIB" setarch "$setarch_arch" -R valgrind $DF_VALGRIND_OPTS --log-file=valgrind.log ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ret=$?
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ;;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  -c | --callgrind)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    shift
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    LD_PRELOAD="$PRELOAD_LIB" setarch i386 -R valgrind $DF_CALLGRIND_OPTS --tool=callgrind --separate-threads=yes --dump-instr=yes --instr-atstart=no --log-file=callgrind.log ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    LD_PRELOAD="$PRELOAD_LIB" setarch "$setarch_arch" -R valgrind $DF_CALLGRIND_OPTS --tool=callgrind --separate-threads=yes --dump-instr=yes --instr-atstart=no --log-file=callgrind.log ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ret=$?
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ;;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  *)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    setarch i386 -R env LD_PRELOAD="$PRELOAD_LIB" ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    setarch "$setarch_arch" -R env LD_PRELOAD="$PRELOAD_LIB" ./libs/Dwarf_Fortress "$@"
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ret=$?
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    ;;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				esac
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |