Mon Feb 29 13:53:58 2016 UTC ()
Support natdynlink on SunOS.  Bump PKGREVISION.


(jperkin)
diff -r1.101 -r1.102 pkgsrc/lang/ocaml/Makefile
diff -r1.92 -r1.93 pkgsrc/lang/ocaml/distinfo
diff -r1.12 -r1.13 pkgsrc/lang/ocaml/patches/patch-configure

cvs diff -r1.101 -r1.102 pkgsrc/lang/ocaml/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/ocaml/Makefile 2016/02/25 14:42:56 1.101
+++ pkgsrc/lang/ocaml/Makefile 2016/02/29 13:53:58 1.102
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.101 2016/02/25 14:42:56 jperkin Exp $ 1# $NetBSD: Makefile,v 1.102 2016/02/29 13:53:58 jperkin Exp $
2 2
3.include "Makefile.common" 3.include "Makefile.common"
4 4
5PKGREVISION= 2 5PKGREVISION= 3
6 6
7#CONFIGURE_ARGS+= -no-tk 7#CONFIGURE_ARGS+= -no-tk
8#CONFIGURE_ARGS+= -cc ${CC} 8#CONFIGURE_ARGS+= -cc ${CC}
9CONFIGURE_ENV+= disable_x11=yes 9CONFIGURE_ENV+= disable_x11=yes
10 10
11BUILD_TARGET= world 11BUILD_TARGET= world
12MAKE_JOBS_SAFE= no 12MAKE_JOBS_SAFE= no
13UNLIMIT_RESOURCES= stacksize 13UNLIMIT_RESOURCES= stacksize
14 14
15USE_GCC_RUNTIME= yes 15USE_GCC_RUNTIME= yes
16 16
17### 17###
18### PLIST components 18### PLIST components
@@ -41,27 +41,28 @@ PLIST_SRC+= ${PKGDIR}/PLIST.opt @@ -41,27 +41,28 @@ PLIST_SRC+= ${PKGDIR}/PLIST.opt
41 empty(MACHINE_PLATFORM:MNetBSD-*-arm) && \ 41 empty(MACHINE_PLATFORM:MNetBSD-*-arm) && \
42 empty(MACHINE_PLATFORM:MNetBSD-*-sparc) 42 empty(MACHINE_PLATFORM:MNetBSD-*-sparc)
43PLIST_SRC+= ${PKGDIR}/PLIST.prof 43PLIST_SRC+= ${PKGDIR}/PLIST.prof
44. endif 44. endif
45.endif 45.endif
46 46
47# XXX This conditional is not complete. It should match the 47# XXX This conditional is not complete. It should match the
48# conditional in ocaml-x.y.z/configure. 48# conditional in ocaml-x.y.z/configure.
49.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") 49.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64")
50. if !empty(MACHINE_PLATFORM:MLinux-*-*) || \ 50. if !empty(MACHINE_PLATFORM:MLinux-*-*) || \
51 !empty(MACHINE_PLATFORM:MFreeBSD-*-*) || \ 51 !empty(MACHINE_PLATFORM:MFreeBSD-*-*) || \
52 !empty(MACHINE_PLATFORM:MDragonFly-*-*) || \ 52 !empty(MACHINE_PLATFORM:MDragonFly-*-*) || \
53 !empty(MACHINE_PLATFORM:MNetBSD-*-*) || \ 53 !empty(MACHINE_PLATFORM:MNetBSD-*-*) || \
54 !empty(MACHINE_PLATFORM:MDarwin-*-*) 54 !empty(MACHINE_PLATFORM:MDarwin-*-*) || \
 55 !empty(MACHINE_PLATFORM:MSunOS-*-*)
55PLIST_SRC+= ${PKGDIR}/PLIST.natdynlink 56PLIST_SRC+= ${PKGDIR}/PLIST.natdynlink
56. endif 57. endif
57.endif 58.endif
58 59
59# Common ocaml files. 60# Common ocaml files.
60PLIST_SRC+= ${PKGDIR}/PLIST 61PLIST_SRC+= ${PKGDIR}/PLIST
61 62
62# This is needed because ${WRKSRC}/build/partial-install.sh uses 63# This is needed because ${WRKSRC}/build/partial-install.sh uses
63# $PWD as part of its script. However, with /bin/sh on SunOS 64# $PWD as part of its script. However, with /bin/sh on SunOS
64# (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is 65# (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is
65# set before the cd takes place and is then passed down. So the end 66# set before the cd takes place and is then passed down. So the end
66# result is when ./build/partial-install.sh is called, PWD is set 67# result is when ./build/partial-install.sh is called, PWD is set
67# to /usr/pkgsrc/devel/ocaml instead of ${WRKSRC}. /bin/ksh, which 68# to /usr/pkgsrc/devel/ocaml instead of ${WRKSRC}. /bin/ksh, which

cvs diff -r1.92 -r1.93 pkgsrc/lang/ocaml/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/ocaml/distinfo 2015/12/29 23:34:52 1.92
+++ pkgsrc/lang/ocaml/distinfo 2016/02/29 13:53:58 1.93
@@ -1,31 +1,31 @@ @@ -1,31 +1,31 @@
1$NetBSD: distinfo,v 1.92 2015/12/29 23:34:52 dholland Exp $ 1$NetBSD: distinfo,v 1.93 2016/02/29 13:53:58 jperkin Exp $
2 2
3SHA1 (ocaml-4.02.3.tar.gz) = e68ffd2b5bb491a6345f46b27675e1361a49b274 3SHA1 (ocaml-4.02.3.tar.gz) = e68ffd2b5bb491a6345f46b27675e1361a49b274
4RMD160 (ocaml-4.02.3.tar.gz) = 3946204b9396a7fb81ae1042ce67a494579c151b 4RMD160 (ocaml-4.02.3.tar.gz) = 3946204b9396a7fb81ae1042ce67a494579c151b
5SHA512 (ocaml-4.02.3.tar.gz) = be69e00abc2503582d7a07440a59db6bc992cce8ed2812bf02de07578760ead2858544013bb1a7a28a3c812b79c2f545cdaef11653b04a39c04a898510c36187 5SHA512 (ocaml-4.02.3.tar.gz) = be69e00abc2503582d7a07440a59db6bc992cce8ed2812bf02de07578760ead2858544013bb1a7a28a3c812b79c2f545cdaef11653b04a39c04a898510c36187
6Size (ocaml-4.02.3.tar.gz) = 3108892 bytes 6Size (ocaml-4.02.3.tar.gz) = 3108892 bytes
7SHA1 (patch-Makefile) = ac116b05dcb4f3f15a9cd6b0e4ae954a9f2102ea 7SHA1 (patch-Makefile) = ac116b05dcb4f3f15a9cd6b0e4ae954a9f2102ea
8SHA1 (patch-asmcomp_asmlink.ml) = db2b387ea17f41a62c2bce53b91f945d5e29a82f 8SHA1 (patch-asmcomp_asmlink.ml) = db2b387ea17f41a62c2bce53b91f945d5e29a82f
9SHA1 (patch-asmcomp_power_emit.mlp) = e734c85547c435954d3899a0975bcaf68e9b88f9 9SHA1 (patch-asmcomp_power_emit.mlp) = e734c85547c435954d3899a0975bcaf68e9b88f9
10SHA1 (patch-asmrun_Makefile) = ecc95df2e7d18f1e4051e365f47ddd53188f2b4f 10SHA1 (patch-asmrun_Makefile) = ecc95df2e7d18f1e4051e365f47ddd53188f2b4f
11SHA1 (patch-asmrun_arm.S) = 4da63658cf7981ba954c24328806cc6dc7a592a0 11SHA1 (patch-asmrun_arm.S) = 4da63658cf7981ba954c24328806cc6dc7a592a0
12SHA1 (patch-asmrun_power-bsd.S) = e682b12e79b974ed460e2088a74566fea6c484ef 12SHA1 (patch-asmrun_power-bsd.S) = e682b12e79b974ed460e2088a74566fea6c484ef
13SHA1 (patch-asmrun_signals_osdep.h) = cf2b316f7fc0cbc25c63776682c08f18861a3a0b 13SHA1 (patch-asmrun_signals_osdep.h) = cf2b316f7fc0cbc25c63776682c08f18861a3a0b
14SHA1 (patch-byterun_Makefile) = eb27cc004d099ce5a2bcf4aed341dd5a2b35967a 14SHA1 (patch-byterun_Makefile) = eb27cc004d099ce5a2bcf4aed341dd5a2b35967a
15SHA1 (patch-byterun_caml_mlvalues.h) = 310e49ecb718825395583ae4eacb91905118886b 15SHA1 (patch-byterun_caml_mlvalues.h) = 310e49ecb718825395583ae4eacb91905118886b
16SHA1 (patch-config_auto__aux_gethostbyaddr.c) = 79159e1b9992ca11920832642b52c6c64717b567 16SHA1 (patch-config_auto__aux_gethostbyaddr.c) = 79159e1b9992ca11920832642b52c6c64717b567
17SHA1 (patch-config_auto__aux_gethostbyname.c) = dfb24714259938c59db0bf28a252d60f72abc421 17SHA1 (patch-config_auto__aux_gethostbyname.c) = dfb24714259938c59db0bf28a252d60f72abc421
18SHA1 (patch-configure) = d79689cf685827dd9ad2ce59ea3a8f63eb3c58a8 18SHA1 (patch-configure) = 2af864c6478404d33d5013d2035057474e56220e
19SHA1 (patch-debugger_Makefile.shared) = 2315c0f771ba2cb0d1f05d898db5023b5b44546b 19SHA1 (patch-debugger_Makefile.shared) = 2315c0f771ba2cb0d1f05d898db5023b5b44546b
20SHA1 (patch-driver_compenv.ml) = c011ba27c8d040c80408af6a4e6dcb5fc0a33902 20SHA1 (patch-driver_compenv.ml) = c011ba27c8d040c80408af6a4e6dcb5fc0a33902
21SHA1 (patch-driver_main.ml) = b843811b36277f5dea71953df74427394ceb2398 21SHA1 (patch-driver_main.ml) = b843811b36277f5dea71953df74427394ceb2398
22SHA1 (patch-driver_main_args.ml) = c921664cb7ef1c44adf795ef33c0c9a6a72bfda7 22SHA1 (patch-driver_main_args.ml) = c921664cb7ef1c44adf795ef33c0c9a6a72bfda7
23SHA1 (patch-driver_main_args.mli) = a70da17d932dda77793c12cdfffb406b24d76b4d 23SHA1 (patch-driver_main_args.mli) = a70da17d932dda77793c12cdfffb406b24d76b4d
24SHA1 (patch-driver_optmain.ml) = dfdaee13dc02661fdebd88366462748e5faeae9b 24SHA1 (patch-driver_optmain.ml) = dfdaee13dc02661fdebd88366462748e5faeae9b
25SHA1 (patch-man_Makefile) = f4fcde662061e7e7e664ec42617f1e37f1fcf214 25SHA1 (patch-man_Makefile) = f4fcde662061e7e7e664ec42617f1e37f1fcf214
26SHA1 (patch-ocamldoc_Makefile) = fe85a5ba0e9f9536ae4f80c0337a8cde9c542862 26SHA1 (patch-ocamldoc_Makefile) = fe85a5ba0e9f9536ae4f80c0337a8cde9c542862
27SHA1 (patch-ocamldoc_odoc__messages.ml) = 77f650a5f34f40b9648a8d5091e9aa31efb5734b 27SHA1 (patch-ocamldoc_odoc__messages.ml) = 77f650a5f34f40b9648a8d5091e9aa31efb5734b
28SHA1 (patch-otherlibs_Makefile) = 839485e6576dcee53420a1bb75f49f7168b12427 28SHA1 (patch-otherlibs_Makefile) = 839485e6576dcee53420a1bb75f49f7168b12427
29SHA1 (patch-otherlibs_Makefile.shared) = 517ef6024fe8ec3cff14e346216753f955189c86 29SHA1 (patch-otherlibs_Makefile.shared) = 517ef6024fe8ec3cff14e346216753f955189c86
30SHA1 (patch-otherlibs_dynlink_Makefile) = eea713c46848e97f8056e4874897be9d599a8e33 30SHA1 (patch-otherlibs_dynlink_Makefile) = eea713c46848e97f8056e4874897be9d599a8e33
31SHA1 (patch-otherlibs_systhreads_Makefile) = 20cfdaa2a3f68a8ff18c7b50efb11c08555663eb 31SHA1 (patch-otherlibs_systhreads_Makefile) = 20cfdaa2a3f68a8ff18c7b50efb11c08555663eb

cvs diff -r1.12 -r1.13 pkgsrc/lang/ocaml/patches/patch-configure (expand / switch to unified diff)

--- pkgsrc/lang/ocaml/patches/patch-configure 2015/08/22 10:45:13 1.12
+++ pkgsrc/lang/ocaml/patches/patch-configure 2016/02/29 13:53:58 1.13
@@ -1,18 +1,19 @@ @@ -1,18 +1,19 @@
1$NetBSD: patch-configure,v 1.12 2015/08/22 10:45:13 jaapb Exp $ 1$NetBSD: patch-configure,v 1.13 2016/02/29 13:53:58 jperkin Exp $
2 2
3Several configure changes to work on and detect NetBSD (and some other OSes) 3Several configure changes to work on and detect NetBSD (and some other OSes)
4 4
5See also: <http://caml.inria.fr/mantis/view.php?id=6900> 5See also: <http://caml.inria.fr/mantis/view.php?id=6900>
 6
6--- configure.orig 2015-05-12 14:46:37.000000000 +0000 7--- configure.orig 2015-05-12 14:46:37.000000000 +0000
7+++ configure 8+++ configure
8@@ -328,11 +328,11 @@ TOOLCHAIN="cc" 9@@ -328,11 +328,11 @@ TOOLCHAIN="cc"
9 case "$bytecc,$target" in 10 case "$bytecc,$target" in
10 cc,*-*-nextstep*) 11 cc,*-*-nextstep*)
11 # GNU C extensions disabled, but __GNUC__ still defined! 12 # GNU C extensions disabled, but __GNUC__ still defined!
12- bytecccompopts="-fno-defer-pop $gcc_warnings -U__GNUC__ -posix" 13- bytecccompopts="-fno-defer-pop $gcc_warnings -U__GNUC__ -posix"
13+ bytecccompopts="$gcc_warnings -U__GNUC__ -posix" 14+ bytecccompopts="$gcc_warnings -U__GNUC__ -posix"
14 bytecclinkopts="-posix";; 15 bytecclinkopts="-posix";;
15 *,*-*-rhapsody*) 16 *,*-*-rhapsody*)
16 # Almost the same as NeXTStep 17 # Almost the same as NeXTStep
17- bytecccompopts="-fno-defer-pop $gcc_warnings -DSHRINKED_GNUC" 18- bytecccompopts="-fno-defer-pop $gcc_warnings -DSHRINKED_GNUC"
18+ bytecccompopts="$gcc_warnings -DSHRINKED_GNUC" 19+ bytecccompopts="$gcc_warnings -DSHRINKED_GNUC"
@@ -103,120 +104,121 @@ See also:  @@ -103,120 +104,121 @@ See also:
103@@ -783,11 +783,7 @@ if test $with_sharedlibs = "yes"; then 104@@ -783,11 +783,7 @@ if test $with_sharedlibs = "yes"; then
104 i[3456]86-*-linux*) natdynlink=true;; 105 i[3456]86-*-linux*) natdynlink=true;;
105 i[3456]86-*-gnu*) natdynlink=true;; 106 i[3456]86-*-gnu*) natdynlink=true;;
106 x86_64-*-linux*) natdynlink=true;; 107 x86_64-*-linux*) natdynlink=true;;
107- i[3456]86-*-darwin[89].*) natdynlink=true;; 108- i[3456]86-*-darwin[89].*) natdynlink=true;;
108- i[3456]86-*-darwin*) 109- i[3456]86-*-darwin*)
109- if test $arch64 == true; then 110- if test $arch64 == true; then
110- natdynlink=true 111- natdynlink=true
111- fi;; 112- fi;;
112+ i[3456]86-*-darwin*) natdynlink=true;; 113+ i[3456]86-*-darwin*) natdynlink=true;;
113 x86_64-*-darwin*) natdynlink=true;; 114 x86_64-*-darwin*) natdynlink=true;;
114 powerpc*-*-linux*) natdynlink=true;; 115 powerpc*-*-linux*) natdynlink=true;;
115 sparc*-*-linux*) natdynlink=true;; 116 sparc*-*-linux*) natdynlink=true;;
116@@ -799,6 +795,8 @@ if test $with_sharedlibs = "yes"; then 117@@ -799,6 +795,9 @@ if test $with_sharedlibs = "yes"; then
117 x86_64-*-openbsd*) natdynlink=true;; 118 x86_64-*-openbsd*) natdynlink=true;;
118 i[3456]86-*-netbsd*) natdynlink=true;; 119 i[3456]86-*-netbsd*) natdynlink=true;;
119 x86_64-*-netbsd*) natdynlink=true;; 120 x86_64-*-netbsd*) natdynlink=true;;
120+ i[3456]86-*-dragonfly*) natdynlink=true;; 121+ i[3456]86-*-dragonfly*) natdynlink=true;;
121+ x86_64-*-dragonfly*) natdynlink=true;; 122+ x86_64-*-dragonfly*) natdynlink=true;;
 123+ *-*-solaris*) natdynlink=true;;
122 i386-*-gnu0.3) natdynlink=true;; 124 i386-*-gnu0.3) natdynlink=true;;
123 i[3456]86-*-haiku*) natdynlink=true;; 125 i[3456]86-*-haiku*) natdynlink=true;;
124 arm*-*-linux*) natdynlink=true;; 126 arm*-*-linux*) natdynlink=true;;
125@@ -827,6 +825,7 @@ case "$target" in 127@@ -827,6 +826,7 @@ case "$target" in
126 sparc*-*-gnu*) arch=sparc; system=gnu;; 128 sparc*-*-gnu*) arch=sparc; system=gnu;;
127 i[3456]86-*-linux*) arch=i386; system=linux_`sh ./runtest elf.c`;; 129 i[3456]86-*-linux*) arch=i386; system=linux_`sh ./runtest elf.c`;;
128 i[3456]86-*-*bsd*) arch=i386; system=bsd_`sh ./runtest elf.c`;; 130 i[3456]86-*-*bsd*) arch=i386; system=bsd_`sh ./runtest elf.c`;;
129+ i[3456]86-*-dragonfly*) arch=i386; system=bsd_`sh ./runtest elf.c`;; 131+ i[3456]86-*-dragonfly*) arch=i386; system=bsd_`sh ./runtest elf.c`;;
130 i[3456]86-*-nextstep*) arch=i386; system=nextstep;; 132 i[3456]86-*-nextstep*) arch=i386; system=nextstep;;
131 i[3456]86-*-solaris*) if $arch64; then 133 i[3456]86-*-solaris*) if $arch64; then
132 arch=amd64; system=solaris 134 arch=amd64; system=solaris
133@@ -836,6 +835,7 @@ case "$target" in 135@@ -836,6 +836,7 @@ case "$target" in
134 i[3456]86-*-haiku*) arch=i386; system=beos;; 136 i[3456]86-*-haiku*) arch=i386; system=beos;;
135 i[3456]86-*-beos*) arch=i386; system=beos;; 137 i[3456]86-*-beos*) arch=i386; system=beos;;
136 i[3456]86-*-cygwin*) arch=i386; system=cygwin;; 138 i[3456]86-*-cygwin*) arch=i386; system=cygwin;;
137+ i[3456]86-*-interix3*) arch=i386; system=interix3;; 139+ i[3456]86-*-interix3*) arch=i386; system=interix3;;
138 i[3456]86-*-darwin*) if $arch64; then 140 i[3456]86-*-darwin*) if $arch64; then
139 arch=amd64; system=macosx 141 arch=amd64; system=macosx
140 else 142 else
141@@ -849,6 +849,7 @@ case "$target" in 143@@ -849,6 +850,7 @@ case "$target" in
142 powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;; 144 powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
143 powerpc-*-darwin*) arch=power; system=rhapsody 145 powerpc-*-darwin*) arch=power; system=rhapsody
144 if $arch64;then model=ppc64;else model=ppc;fi;; 146 if $arch64;then model=ppc64;else model=ppc;fi;;
145+ arm*-*-netbsd) arch=arm; system=netbsd;; 147+ arm*-*-netbsd) arch=arm; system=netbsd;;
146 armv6*-*-linux-gnueabihf) arch=arm; model=armv6; system=linux_eabihf;; 148 armv6*-*-linux-gnueabihf) arch=arm; model=armv6; system=linux_eabihf;;
147 arm*-*-linux-gnueabihf) arch=arm; system=linux_eabihf;; 149 arm*-*-linux-gnueabihf) arch=arm; system=linux_eabihf;;
148 armv7*-*-linux-gnueabi) arch=arm; model=armv7; system=linux_eabi;; 150 armv7*-*-linux-gnueabi) arch=arm; model=armv7; system=linux_eabi;;
149@@ -864,6 +865,8 @@ case "$target" in 151@@ -864,6 +866,8 @@ case "$target" in
150 x86_64-*-gnu*) arch=amd64; system=gnu;; 152 x86_64-*-gnu*) arch=amd64; system=gnu;;
151 x86_64-*-freebsd*) arch=amd64; system=freebsd;; 153 x86_64-*-freebsd*) arch=amd64; system=freebsd;;
152 x86_64-*-netbsd*) arch=amd64; system=netbsd;; 154 x86_64-*-netbsd*) arch=amd64; system=netbsd;;
153+ x86_64-*-dragonfly*) arch=amd64; system=dragonfly;; 155+ x86_64-*-dragonfly*) arch=amd64; system=dragonfly;;
154+ x86_64-*-solaris*) arch=amd64; system=solaris;; 156+ x86_64-*-solaris*) arch=amd64; system=solaris;;
155 x86_64-*-openbsd*) arch=amd64; system=openbsd;; 157 x86_64-*-openbsd*) arch=amd64; system=openbsd;;
156 x86_64-*-darwin*) arch=amd64; system=macosx;; 158 x86_64-*-darwin*) arch=amd64; system=macosx;;
157 x86_64-*-mingw*) arch=amd64; system=mingw;; 159 x86_64-*-mingw*) arch=amd64; system=mingw;;
158@@ -903,7 +906,7 @@ case "$arch,$nativecc,$system,$target" i 160@@ -903,7 +907,7 @@ case "$arch,$nativecc,$system,$target" i
159 if $arch64; then partialld="ld -r -arch ppc64"; fi;; 161 if $arch64; then partialld="ld -r -arch ppc64"; fi;;
160 *,gcc*,cygwin,*) nativecccompopts="$gcc_warnings -U_WIN32";; 162 *,gcc*,cygwin,*) nativecccompopts="$gcc_warnings -U_WIN32";;
161 amd64,gcc*,macosx,*) partialld="ld -r -arch x86_64";; 163 amd64,gcc*,macosx,*) partialld="ld -r -arch x86_64";;
162- amd64,gcc*,solaris,*) partialld="ld -r -m elf_x86_64";; 164- amd64,gcc*,solaris,*) partialld="ld -r -m elf_x86_64";;
163+ amd64,gcc*,solaris,*) partialld="ld -r -64";; 165+ amd64,gcc*,solaris,*) partialld="ld -r -64";;
164 *,gcc*,*,*) nativecccompopts="$gcc_warnings";; 166 *,gcc*,*,*) nativecccompopts="$gcc_warnings";;
165 esac 167 esac
166  168
167@@ -920,7 +923,7 @@ case "$arch,$system" in 169@@ -920,7 +924,7 @@ case "$arch,$system" in
168 amd64,solaris) as="${TOOLPREF}as --64" 170 amd64,solaris) as="${TOOLPREF}as --64"
169 aspp="${TOOLPREF}gcc -m64 -c";; 171 aspp="${TOOLPREF}gcc -m64 -c";;
170 i386,solaris) as="${TOOLPREF}as" 172 i386,solaris) as="${TOOLPREF}as"
171- aspp="/usr/ccs/bin/${TOOLPREF}as -P";; 173- aspp="/usr/ccs/bin/${TOOLPREF}as -P";;
172+ aspp="gcc -traditional -c";; 174+ aspp="gcc -traditional -c";;
173 power,elf) as="${TOOLPREF}as -u -m ppc" 175 power,elf) as="${TOOLPREF}as -u -m ppc"
174 aspp="${TOOLPREF}gcc -c";; 176 aspp="${TOOLPREF}gcc -c";;
175 power,rhapsody) as="${TOOLPREF}as -arch $model" 177 power,rhapsody) as="${TOOLPREF}as -arch $model"
176@@ -961,6 +964,7 @@ case "$arch,$system" in 178@@ -961,6 +965,7 @@ case "$arch,$system" in
177 arm,linux*) profiling='prof';; 179 arm,linux*) profiling='prof';;
178 power,elf) profiling='prof';; 180 power,elf) profiling='prof';;
179 power,bsd*) profiling='prof';; 181 power,bsd*) profiling='prof';;
180+ *,*,dragonfly) profiling='prof';; 182+ *,*,dragonfly) profiling='prof';;
181 *) profiling='noprof';; 183 *) profiling='noprof';;
182 esac 184 esac
183  185
184@@ -1475,6 +1479,8 @@ fi 186@@ -1475,6 +1480,8 @@ fi
185 x11_include="not found" 187 x11_include="not found"
186 x11_link="not found" 188 x11_link="not found"
187  189
188+if test "$disable_x11" != "yes"; then 190+if test "$disable_x11" != "yes"; then
189+ 191+
190 if test -z "$x11_include_dir" -a -z "$x11_lib_dir"; then 192 if test -z "$x11_include_dir" -a -z "$x11_lib_dir"; then
191 if pkg-config --exists x11 2>/dev/null; then 193 if pkg-config --exists x11 2>/dev/null; then
192 x11_include=`pkg-config --cflags x11` 194 x11_include=`pkg-config --cflags x11`
193@@ -1521,6 +1527,7 @@ if test "$x11_include" = "not found"; th 195@@ -1521,6 +1528,7 @@ if test "$x11_include" = "not found"; th
194 /usr/XFree86/include/X11 \ 196 /usr/XFree86/include/X11 \
195 \ 197 \
196 /usr/include \ 198 /usr/include \
197+ /usr/pkg/include \ 199+ /usr/pkg/include \
198 /usr/local/include \ 200 /usr/local/include \
199 /usr/unsupported/include \ 201 /usr/unsupported/include \
200 /usr/athena/include \ 202 /usr/athena/include \
201@@ -1578,6 +1585,7 @@ if test "$x11_include" = "not found"; th 203@@ -1578,6 +1586,7 @@ if test "$x11_include" = "not found"; th
202 \ 204 \
203 /usr/lib64 \ 205 /usr/lib64 \
204 /usr/lib \ 206 /usr/lib \
205+ /usr/pkg/lib \ 207+ /usr/pkg/lib \
206 /usr/local/lib \ 208 /usr/local/lib \
207 /usr/unsupported/lib \ 209 /usr/unsupported/lib \
208 /usr/athena/lib \ 210 /usr/athena/lib \
209@@ -1599,18 +1607,16 @@ if test "$x11_include" = "not found"; th 211@@ -1599,18 +1608,16 @@ if test "$x11_include" = "not found"; th
210 if test $dir = /usr/lib; then 212 if test $dir = /usr/lib; then
211 x11_link="-lX11" 213 x11_link="-lX11"
212 else 214 else
213- x11_libs="-L$dir" 215- x11_libs="-L$dir"
214- case "$target" in 216- case "$target" in
215- *-kfreebsd*-gnu) x11_link="-L$dir -lX11";; 217- *-kfreebsd*-gnu) x11_link="-L$dir -lX11";;
216- *-*-*bsd*) x11_link="-R$dir -L$dir -lX11";; 218- *-*-*bsd*) x11_link="-R$dir -L$dir -lX11";;
217- *) x11_link="-L$dir -lX11";; 219- *) x11_link="-L$dir -lX11";;
218- esac 220- esac
219+ x11_libs="-L$dir ${COMPILER_RPATH_FLAG}$dir" 221+ x11_libs="-L$dir ${COMPILER_RPATH_FLAG}$dir"
220+ x11_link="-L$dir ${COMPILER_RPATH_FLAG}$dir -lX11" 222+ x11_link="-L$dir ${COMPILER_RPATH_FLAG}$dir -lX11"
221 fi 223 fi
222 break 224 break