PAC_ARG_CC_G

Add debugging flags for the C compiler

Synopsis

PAC_ARG_CC_G

Output Effect

Adds -g to COPTIONS and exports COPTIONS. Sets and exports the variable enable_g_simple so that subsidiary configures will not add another -g.

Notes

--enable-g should be used for all internal debugging modes if possible. Use the enable_val that enable_g is set to to pass particular values, and ignore any values that are not recognized (some other configure may have used them. Of course, if you need extra values, you must add code to extract values from enable_g.

For example, to look for a particular keyword, you could use

 SaveIFS="$IFS"
 IFS=","
 for key in $enable_g ; do
     case $key in 
         mem) # add code for memory debugging 
         ;;
         *)   # ignore all other values
         ;;
     esac
 done
 IFS="$SaveIFS"