summaryrefslogtreecommitdiff
path: root/cad/opencascade-tutorial/files/patch-configure
blob: bcaa0bbec5849e383bf22eab380ac85a655b982a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- configure.orig	Wed Oct  5 13:45:26 2005
+++ configure	Thu Mar 15 23:27:32 2007
@@ -436,6 +436,8 @@
      case $host in
        Linux*) #ac_station=lin
 	       ac_c_flags="-DLIN -DLININTEL";;
+     FreeBSD*) #ac_station=bsd
+	       ac_c_flags="-DFREEBSD" ;;
         IRIX*) #ac_station=sil
 	       ac_c_flags="-DIRIX" ;;
        SunOS*) #ac_station=sun
@@ -1271,7 +1273,7 @@
 fi
 
 
-LIBS="$LIBS -lm -ldl -lc"
+LIBS="$LIBS -lm -lc"
 
 if test -n "$x_includes"; then
   X_INCLUDES="-I$x_includes"
@@ -1824,7 +1826,7 @@
 
 echo $ac_n "checking for CasCade""... $ac_c" 1>&6
 echo "configure:1813: checking for CasCade" >&5
-LIBOCC="-lTKernel -ldl"
+LIBOCC="-lTKernel"
 ac_occ_includes=NO
 ac_occ_libraries=NO
 occ_libraries=""
@@ -1928,6 +1930,8 @@
 	 LIBSTL="-l$STLPortLib_CC"
     else
 	if test "$host" = "Linux"; then
+	    LIBSTL="-lstlport_gcc"
+	elif test "$host" = "FreeBSD"; then
 	    LIBSTL="-lstlport_gcc"
 	else
 	    LIBSTL="-lstlport_cc"