diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -55,6 +55,7 @@ mandir=${mandir-'${prefix}/share/man'} | |||
55 | shared_ext='.so' | 55 | shared_ext='.so' |
56 | shared=1 | 56 | shared=1 |
57 | solo=0 | 57 | solo=0 |
58 | cover=0 | ||
58 | zprefix=0 | 59 | zprefix=0 |
59 | build64=0 | 60 | build64=0 |
60 | gcc=0 | 61 | gcc=0 |
@@ -85,6 +86,7 @@ case "$1" in | |||
85 | -s* | --shared | --enable-shared) shared=1; shift ;; | 86 | -s* | --shared | --enable-shared) shared=1; shift ;; |
86 | -t | --static) shared=0; shift ;; | 87 | -t | --static) shared=0; shift ;; |
87 | --solo) solo=1; shift ;; | 88 | --solo) solo=1; shift ;; |
89 | --cover) cover=1; shift ;; | ||
88 | -z* | --zprefix) zprefix=1; shift ;; | 90 | -z* | --zprefix) zprefix=1; shift ;; |
89 | -6* | --64) build64=1; shift ;; | 91 | -6* | --64) build64=1; shift ;; |
90 | -a*=* | --archs=*) ARCHS=`echo $1 | sed 's/.*=//'`; shift ;; | 92 | -a*=* | --archs=*) ARCHS=`echo $1 | sed 's/.*=//'`; shift ;; |
@@ -345,6 +347,10 @@ OBJC='$(OBJZ)' | |||
345 | PIC_OBJC='$(PIC_OBJZ)' | 347 | PIC_OBJC='$(PIC_OBJZ)' |
346 | fi | 348 | fi |
347 | 349 | ||
350 | if test $cover -eq 1; then | ||
351 | CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage" | ||
352 | fi | ||
353 | |||
348 | cat > $test.c <<EOF | 354 | cat > $test.c <<EOF |
349 | #include <stdio.h> | 355 | #include <stdio.h> |
350 | #include <stdarg.h> | 356 | #include <stdarg.h> |
@@ -578,7 +584,7 @@ case $CFLAGS in | |||
578 | fi ;; | 584 | fi ;; |
579 | esac | 585 | esac |
580 | 586 | ||
581 | rm -f $test.[co] $test $test$shared_ext | 587 | rm -f $test.[co] $test $test$shared_ext $test.gcno |
582 | 588 | ||
583 | # udpate Makefile | 589 | # udpate Makefile |
584 | sed < Makefile.in " | 590 | sed < Makefile.in " |