# To get ANSI C, we need to use c89, and ld doesn't exist
# You can override this with Configure -Dcc=gcc -Dld=ld.
case "$cc" in
-'') cc='c89' ;;
+'') cc='c99' ;;
esac
case "$ld" in
-'') ld='c89' ;;
+'') ld='c99' ;;
esac
# -DMAXSIG=39 maximum signal number
# -DEBCDIC should come from Configure and need not be mentioned here.
# Prepend your favorites with Configure -Dccflags=your_favorites
case "$ccflags" in
-'') ccflags='-2 -Wc,XPLINK -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC' ;;
-*) ccflags="$ccflags -2 -Wc,XPLINK -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC" ;;
+'') ccflags='-qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qhaltonmsg=3296:4108 -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -D_POSIX_SOURCE=1' ;;
+*) ccflags='$ccflags -qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qhaltonmsg=3296:4108 -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -D_POSIX_SOURCE=1' ;;
esac
# Turning on optimization breaks perl.
# To link via definition side decks we need the dll option
# You can override this with Configure -Ucccdlflags or somesuch.
case "$cccdlflags" in
-'') cccdlflags='-W 0,dll' ;;
+'') cccdlflags='-qxplink -qdll' ;;
esac
case "$so" in
# information at the end of the executable (=> smaller binaries).
# Override this option with -Dldflags='whatever else you wanted'.
case "$ldflags" in
-'') ldflags='-Wl,EDIT=NO -Wl,XPLINK,dll' ;;
+'') ldflags='-qxplink -qdll' ;;
esac
# In order to build with dynamic be sure to specify:
;;
esac
libperl="libperl.$so"
- ccflags="$ccflags -D_SHR_ENVIRON -DPERL_EXTERNAL_GLOB -Wc,dll"
- cccdlflags='-c -Wc,XPLINK,dll,EXPORTALL'
+ ccflags="$ccflags -D_SHR_ENVIRON -DPERL_EXTERNAL_GLOB -qexportall -qdll -qxplink"
+ cccdlflags='-c -qexportall -qxplink -qdll'
# The following will need to be modified for the installed libperl.x.
# The modification to Config.pm is done by the installperl script after the build and test.
- ccdlflags="-W l,XPLINK,dll `pwd`/libperl.x"
- lddlflags="-W l,XPLINK,dll `pwd`/libperl.x"
+ ccdlflags="-qxplink -qdll `pwd`/libperl.x"
+ lddlflags="-qxplink -qdll `pwd`/libperl.x"
;;
esac
# even on static builds using LIBPATH should be OK.
#
# Note that Makefile.SH employs a bare yacc command to generate
-# perly.[hc] and a2p.[hc], hence you may wish to:
+# perly.[hc], hence you may wish to:
#
# alias yacc='myyacc'
#
# sprintf() seems to get things right(er).
gconvert_preference=sprintf
-cat >config.arch<<'__CONFIG_ARCH__'
-# The '-W 0,float(ieee)' cannot be used during Configure as ldflags.
-
-ccflags="$ccflags -W 0,float(ieee)"
-
-__CONFIG_ARCH__
-
# Configure gets these wrong for some reason.
d_gethostbyaddr_r='undef'
d_gethostbyname_r='undef'
# (C++ but C99 math agrees)
# XXX: Configure scan for proper behavior
d_nan='undef'
+
+# Configures says this exists, but it doesn't work properly. See
+# <54DCE073.4010100@khwilliamson.com>
+d_dir_dd_fd='undef'