Add support for --prefix= flag to ./configure
This commit is contained in:
		
							parent
							
								
									220be99359
								
							
						
					
					
						commit
						05081df9c6
					
				
					 1 changed files with 17 additions and 1 deletions
				
			
		
							
								
								
									
										18
									
								
								configure
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								configure
									
										
									
									
										vendored
									
									
								
							|  | @ -151,11 +151,27 @@ INSTALL		= /usr/bin/install | |||
| EOF | ||||
| } | ||||
| 
 | ||||
| parse_opt() { | ||||
|     local _IFS="$IFS" | ||||
| 
 | ||||
|     IFS="=" | ||||
| 
 | ||||
|     set -- $1 | ||||
| 
 | ||||
|     echo $2 | ||||
| 
 | ||||
|     IFS="$_IFS" | ||||
| } | ||||
| 
 | ||||
| for arg in $@; do | ||||
|     case $arg in | ||||
|         "--enable-debug") | ||||
|         --enable-debug) | ||||
|             DEBUG=1 | ||||
|         ;; | ||||
| 
 | ||||
|         --prefix=*) | ||||
|             PREFIX="`parse_opt "$arg"`" | ||||
|         ;; | ||||
|     esac | ||||
| done | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue