Lifted from the libpcap configure script, which adds -g even without
.devel, presumably so that programs linked with libpcap can get
debugging symbols.
Those compilers are for dead OSes (IRIX, Tru64 UNIX); we should probably
do whatever voodoo is needed to get Sun^WOracle C, IBM's C compiler for
AIX, and HP C to build optimized with debug symbols.
dnl If the file .devel exists:
dnl Add some warning flags if the compiler supports them
dnl If an os prototype include exists, symlink os-proto.h to it
+dnl Add -g flags, as appropriate, for various non-gcc-style compilers
dnl
dnl usage:
dnl
case "$host_os" in
irix6*)
- V_CCOPT="$V_CCOPT -n32"
+ # Presumed to be MIPS C.
+ V_CCOPT="$V_CCOPT -n32 -g3"
+ ;;
+
+ irix*)
+ # Presumed to be MIPS C.
+ V_CCOPT="$V_CCOPT -g3"
+ ;;
+
+ osf*)
+ # Presumed to be the DEC C compiler.
+ V_CCOPT="$V_CCOPT -g3"
;;
*)
case "$host_os" in
irix6*)
- V_CCOPT="$V_CCOPT -n32"
+ # Presumed to be MIPS C.
+ V_CCOPT="$V_CCOPT -n32 -g3"
+ ;;
+
+ irix*)
+ # Presumed to be MIPS C.
+ V_CCOPT="$V_CCOPT -g3"
+ ;;
+
+ osf*)
+ # Presumed to be the DEC C compiler.
+ V_CCOPT="$V_CCOPT -g3"
;;
*)