configure
changeset 494 aa36efce6e78
parent 473 8cecdb44533e
child 511 34300a28ad27
equal deleted inserted replaced
493:a204a86a71f1 494:aa36efce6e78
   143 		echo 	" --target=foo  Use 'foo' as build target."
   143 		echo 	" --target=foo  Use 'foo' as build target."
   144 		echo	"               \"unix\" for unix-like systems (Linux, Cygwin)"
   144 		echo	"               \"unix\" for unix-like systems (Linux, Cygwin)"
   145 		echo	"               \"win32\" for win32 systems (native, mingw or VC++)"
   145 		echo	"               \"win32\" for win32 systems (native, mingw or VC++)"
   146 		echo	"               \"hcs12\" for HCS12 micro-controller"
   146 		echo	"               \"hcs12\" for HCS12 micro-controller"
   147 		echo 	" --can=foo	Use 'foo' as CAN driver"
   147 		echo 	" --can=foo	Use 'foo' as CAN driver"
       
   148 		echo	"               \"anagate_linux\" use AnaGate CAN(duo) driver for linux"	
       
   149 		echo	"               \"anagate_win32\" use AnaGate CAN(duo) driver for win32"				
   148 		echo	"               \"peak_linux\" use Linux build host installed Peak driver and library"
   150 		echo	"               \"peak_linux\" use Linux build host installed Peak driver and library"
   149 		echo	"                 see http://www.peak-system.com/linux/"
   151 		echo	"                 see http://www.peak-system.com/linux/"
   150 		echo	"               \"peak_win32\" use win32 PcanLight Peak driver and library with Cygwin" 
   152 		echo	"               \"peak_win32\" use win32 PcanLight Peak driver and library with Cygwin" 
   151 		echo	"                 see http://www.peak-system.com/themen/download_gb.html"
   153 		echo	"                 see http://www.peak-system.com/themen/download_gb.html"
   152 		echo	"               \"virtual\" use unix pipe based virtual can driver"
   154 		echo	"               \"virtual\" use unix pipe based virtual can driver"
   284 			echo "Choosing installed Peak driver as CAN driver."
   286 			echo "Choosing installed Peak driver as CAN driver."
   285 			SUB_CAN_DRIVER=peak_win32		
   287 			SUB_CAN_DRIVER=peak_win32		
   286 		elif [ -e /usr/lib/libcanlib.so ]; then 
   288 		elif [ -e /usr/lib/libcanlib.so ]; then 
   287 			echo "Choosing installed Kvaser driver as CAN driver. (unix)"
   289 			echo "Choosing installed Kvaser driver as CAN driver. (unix)"
   288 			SUB_CAN_DRIVER=kvaser
   290 			SUB_CAN_DRIVER=kvaser
       
   291 		elif [ -e /usr/local/lib/libAnaGateAPIDLL.so ]; then 
       
   292 			echo "Choosing installed AnaGate driver as CAN driver. (unix)"
       
   293 			SUB_CAN_DRIVER=anagate_linux
   289 		elif [ "$SUB_OS_NAME" = "CYGWIN" -a "$KVASER_DLL_PATH" != "" ]; then
   294 		elif [ "$SUB_OS_NAME" = "CYGWIN" -a "$KVASER_DLL_PATH" != "" ]; then
   290 			echo "Choosing installed Kvaser driver as CAN driver. (cygwin)"
   295 			echo "Choosing installed Kvaser driver as CAN driver. (cygwin)"
   291 			SUB_CAN_DRIVER=kvaser
   296 			SUB_CAN_DRIVER=kvaser
   292 		else
   297 		else
   293 			echo "Choosing virtual CAN driver."
   298 			echo "Choosing virtual CAN driver."
   310 
   315 
   311 # Warn for unstalled peak driver if choosen
   316 # Warn for unstalled peak driver if choosen
   312 if [ "$SUB_CAN_DRIVER" = "peak" ]; then
   317 if [ "$SUB_CAN_DRIVER" = "peak" ]; then
   313 	if [ ! -e /usr/lib/libpcan.so ]; then 
   318 	if [ ! -e /usr/lib/libpcan.so ]; then 
   314 		echo "Peak driver hasn't been installed !"
   319 		echo "Peak driver hasn't been installed !"
       
   320 		exit -1
       
   321 	fi
       
   322 fi
       
   323 
       
   324 # Warn for unstalled peak driver if choosen
       
   325 if [ "$SUB_CAN_DRIVER" = "anagate_linux" ]; then
       
   326 	if [ ! -e /usr/local/lib/libAnaGateAPIDLL.so ]; then 
       
   327 		echo "AnaGateCAN driver hasn't been installed !"
   315 		exit -1
   328 		exit -1
   316 	fi
   329 	fi
   317 fi
   330 fi
   318 
   331 
   319 # Warn for unstalled kvaser driver if choosen
   332 # Warn for unstalled kvaser driver if choosen
   375 
   388 
   376 if [ "$SUB_CAN_DRIVER" = "peak_linux" ]; then
   389 if [ "$SUB_CAN_DRIVER" = "peak_linux" ]; then
   377     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lpcan
   390     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lpcan
   378 fi
   391 fi
   379 
   392 
       
   393 if [ "$SUB_CAN_DRIVER" = "anagate_linux" ]; then
       
   394     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lAnaGateAPIDLL
       
   395     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lAnaCommon
       
   396 fi
       
   397 
       
   398 
   380 if [ "$SUB_CAN_DRIVER" = "vscom" ]; then
   399 if [ "$SUB_CAN_DRIVER" = "vscom" ]; then
   381     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lvs_can_api
   400     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lvs_can_api
       
   401 fi
       
   402 
       
   403 if [ "$SUB_CAN_DRIVER" = "anagate_win32" ]; then
       
   404     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lAnaGateCan
   382 fi
   405 fi
   383 
   406 
   384 PW32DIR=drivers/can_peak_win32
   407 PW32DIR=drivers/can_peak_win32
   385 if [ "$SUB_CAN_DRIVER" = "peak_win32" ]; then
   408 if [ "$SUB_CAN_DRIVER" = "peak_win32" ]; then
   386 	if [ "$PCAN_HEADER" = "" -o "$PCAN_LIB" = "" ]; then
   409 	if [ "$PCAN_HEADER" = "" -o "$PCAN_LIB" = "" ]; then