diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-07-12 12:31:13 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-07-12 12:31:13 +0000 |
commit | ecde3c9f3e46a78f653829f8b12241dc7fbe9fb2 (patch) | |
tree | 2da90cafcf53ca75af95ae22c8e9269a55447e4b /configure.ac | |
parent | 7329ae3b83a71b6bc9b55c659a582afb307acd08 (diff) | |
download | xine-lib-ecde3c9f3e46a78f653829f8b12241dc7fbe9fb2.tar.gz xine-lib-ecde3c9f3e46a78f653829f8b12241dc7fbe9fb2.tar.bz2 |
- adding support for the Intel compiler icc
- general multipass compilation make targets
CVS patchset: 5149
CVS date: 2003/07/12 12:31:13
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e345e9948..10b465bd3 100644 --- a/configure.ac +++ b/configure.ac @@ -930,6 +930,13 @@ if test "$GCC" = yes; then dnl ANSI_FLAGS="-std=gnu89" AC_SUBST(ANSI_FLAGS) + dnl + dnl Multipass compilation + dnl + AC_TRY_CFLAGS("-fprofile-arcs", PASS1_CFLAGS="$PASS1_CFLAGS -fprofile_arcs",) + AC_TRY_CFLAGS("-fbranch-probabilities", PASS2_CFLAGS="$PASS2_CFLAGS -fbranch-probabilities",) + AC_SUBST(PASS1_CFLAGS) + AC_SUBST(PASS2_CFLAGS) fi dnl Flags not supported by all *cc* variants @@ -937,7 +944,7 @@ AC_TRY_CFLAGS("-Wall", wall="-Wall", wall="") dnl Common cflags for all platforms -CFLAGS="$CFLAGS $wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE" +CFLAGS="$CFLAGS $wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE \$(MULTIPASS_CFLAGS)" DEBUG_CFLAGS="$DEBUG_CFLAGS $wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE" enable_w32dll="no" @@ -960,7 +967,9 @@ case "$host_or_hostalias" in i?86-*-linux* | i386-*-solaris* | i?86-* | k?-* | athlon-* | pentium*) - if test "$GCC" = yes; then + if test "$GCC" = yes -o "${CC##*/}x" = "iccx" ; then + + if test "$GCC" = yes ; then dnl Check for gcc cpu optimization support AC_TRY_CFLAGS("-mcpu=i386", sarchopt="-mcpu", @@ -1031,7 +1040,15 @@ case "$host_or_hostalias" in fi ] fi - + else + dnl we have the Intel compiler + CFLAGS="$CFLAGS -unroll -ipo -ipo_obj -O3" + PASS1_CFLAGS="$PASS1_CFLAGS -prof_genx -prof_dir \$(PWD)/\$(top_builddir)/" + PASS2_CFLAGS="$PASS2_CFLAGS -prof_use -prof_dir \$(PWD)/\$(top_builddir)/" + AC_SUBST(PASS1_CFLAGS) + AC_SUBST(PASS2_CFLAGS) + fi + dnl enable x86 specific parts of the code dnl dnl all of this stuff needs gcc/gas; it uses gnu c compiler extensions |