comparison aclocal.m4 @ 460:223736d75acb r21-2-45

Import from CVS: tag r21-2-45
author cvs
date Mon, 13 Aug 2007 11:43:24 +0200
parents abe6d1db359e
children 76d5a3dd827a
comparison
equal deleted inserted replaced
459:9d4fd877b885 460:223736d75acb
86 can_build_shared=yes 86 can_build_shared=yes
87 if test "$XEGCC" = yes; then 87 if test "$XEGCC" = yes; then
88 wl='-Wl,' 88 wl='-Wl,'
89 89
90 case "$xehost_os" in 90 case "$xehost_os" in
91 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*) 91 aix[[3-9]]* | irix[[5-9]]* | osf[[3-9]])
92 # PIC is the default for these OSes. 92 # PIC is the default for these OSes.
93 ;; 93 ;;
94 94
95 aix3* | aix4* | os2*) 95 os2*)
96 # We can build DLLs from non-PIC. 96 # We can build DLLs from non-PIC.
97 ;; 97 ;;
98 amigaos*) 98 amigaos*)
99 # FIXME: we need at least 68020 code to build shared libraries, but 99 # FIXME: we need at least 68020 code to build shared libraries, but
100 # adding the `-m68020' flag to GCC prevents building anything better, 100 # adding the `-m68020' flag to GCC prevents building anything better,
115 # Is there a better link_static_flag that works with the bundled CC? 115 # Is there a better link_static_flag that works with the bundled CC?
116 wl='-Wl,' 116 wl='-Wl,'
117 dll_cflags='+Z' 117 dll_cflags='+Z'
118 ;; 118 ;;
119 119
120 irix5* | irix6*) 120 irix[[5-9]]*)
121 wl='-Wl,' 121 wl='-Wl,'
122 # PIC (with -KPIC) is the default. 122 # PIC (with -KPIC) is the default.
123 ;; 123 ;;
124 124
125 os2*) 125 os2*)
126 # We can build DLLs from non-PIC. 126 # We can build DLLs from non-PIC.
127 ;; 127 ;;
128 128
129 osf3* | osf4*) 129 osf[[3-9]]*)
130 # All OSF/1 code is PIC. 130 # All OSF/1 code is PIC.
131 wl='-Wl,'
132 ;;
133
134 aix[[3-9]]*)
135 # All AIX code is PIC.
131 wl='-Wl,' 136 wl='-Wl,'
132 ;; 137 ;;
133 138
134 sco3.2v5*) 139 sco3.2v5*)
135 dll_cflags='-belf -Kpic' 140 dll_cflags='-belf -Kpic'
241 if test "$XEGCC" = yes; then 246 if test "$XEGCC" = yes; then
242 xcldf="-shared" 247 xcldf="-shared"
243 xldf="-shared" 248 xldf="-shared"
244 else # Not using GCC 249 else # Not using GCC
245 case "$xehost_os" in 250 case "$xehost_os" in
246 aix3* | aix4*) 251 aix[[3-9]]*)
247 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc" 252 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
248 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc" 253 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
249 ;; 254 ;;
250 255
251 freebsd2* | netbsd* | openbsd*) 256 freebsd2* | netbsd* | openbsd*)
260 hpux*) 265 hpux*)
261 xldf="-b +s" 266 xldf="-b +s"
262 xcldf="${wl}-b ${wl}+s" 267 xcldf="${wl}-b ${wl}+s"
263 ;; 268 ;;
264 269
265 irix5* | irix6* | osf3* | osf4*) 270 irix[[5-9]]* | osf[[3-9]]*)
266 xcldf="${wl}-shared" 271 xcldf="${wl}-shared"
267 xldf="-shared" 272 xldf="-shared"
268 ;; 273 ;;
269 274
270 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*) 275 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
413 aix3*) 418 aix3*)
414 dll_ld=$LTLD 419 dll_ld=$LTLD
415 dll_ldflags=$xldf 420 dll_ldflags=$xldf
416 ;; 421 ;;
417 422
418 aix4*) 423 aix[[4-9]]*)
419 dll_ldflags=$xcldf 424 dll_ldflags=$xcldf
420 ;; 425 ;;
421 426
422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 427 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
423 # support. Future versions do this automatically, but an explicit c++rt0.o 428 # support. Future versions do this automatically, but an explicit c++rt0.o
443 hpux*) 448 hpux*)
444 dll_ld=$LTLD 449 dll_ld=$LTLD
445 dll_ldflags=$xldf 450 dll_ldflags=$xldf
446 ;; 451 ;;
447 452
448 irix5* | irix6*) 453 irix[[5-9]]*)
449 dll_ld=$LTLD 454 dll_ld=$LTLD
450 dll_ldflags=$xldf 455 dll_ldflags=$xldf
451 ;; 456 ;;
452 457
453 netbsd*) 458 netbsd*)
530 fi 535 fi
531 fi 536 fi
532 537
533 if test -z "$ld_dynamic_link_flags"; then 538 if test -z "$ld_dynamic_link_flags"; then
534 case "$xehost_os" in 539 case "$xehost_os" in
535 aix3*) 540 aix[[3-9]]*)
536 ld_dynamic_link_flags=
537 ;;
538
539 aix4*)
540 ld_dynamic_link_flags= 541 ld_dynamic_link_flags=
541 ;; 542 ;;
542 543
543 freebsd2.2*) 544 freebsd2.2*)
544 ld_dynamic_link_flags= 545 ld_dynamic_link_flags=
554 555
555 hpux*) 556 hpux*)
556 ld_dynamic_link_flags="${wl}-E" 557 ld_dynamic_link_flags="${wl}-E"
557 ;; 558 ;;
558 559
559 irix5* | irix6*) 560 irix[[5-9]]*)
560 ld_dynamic_link_flags= 561 ld_dynamic_link_flags=
561 ;; 562 ;;
562 563
563 netbsd*) 564 netbsd*)
564 ld_dynamic_link_flags= 565 ld_dynamic_link_flags=