~siretart/vlc/ubuntu

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Reinhard Tartler
  • Date: 2008-09-26 06:45:40 UTC
  • mto: (21.2.1 vlc-0.9.3)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: siretart@tauware.de-20080926064540-0sd8zwmig33ksmy4
Tags: upstream-ubuntu-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Autoconf settings for vlc
2
2
 
3
 
AC_INIT(vlc, 0.9.2)
 
3
AC_INIT(vlc, 0.9.3)
4
4
VERSION_MAJOR="0"
5
5
VERSION_MINOR="9"
6
 
VERSION_REVISION="2"
 
6
VERSION_REVISION="3"
7
7
VERSION_EXTRA=""
8
8
 
9
9
CONFIGURE_LINE="`echo "$0 $ac_configure_args" | sed -e 's/\\\/\\\\\\\/g'`"
1037
1037
    [CFLAGS="${CFLAGS_save} -fomit-frame-pointer"
1038
1038
     AC_TRY_COMPILE([],,ac_cv_c_omit_frame_pointer=yes, ac_cv_c_omit_frame_pointer=no)])
1039
1039
if test "${ac_cv_c_omit_frame_pointer}" != "no"; then
 
1040
 if test "${SYS}" != "darwin"; then
1040
1041
    CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
 
1042
 else
 
1043
    dnl On darwin we explicitely disable it.
 
1044
    CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fno-omit-frame-pointer"
 
1045
 fi
1041
1046
fi
1042
1047
 
1043
1048
dnl Check for Darwin plugin linking flags
1583
1588
fi
1584
1589
 
1585
1590
dnl
 
1591
dnl Allow runing as root (usefull for people runing on embedded platforms)
 
1592
dnl
 
1593
AC_ARG_ENABLE(run-as-root,
 
1594
[  --enable-run-as-root    allow runing VLC as root (default disabled)])
 
1595
AS_IF([test "${enable_run_as_root}" == "yes"],[
 
1596
    AC_DEFINE(ALLOW_RUN_AS_ROOT, 1,
 
1597
              [Define to 1 to allow runing VLC as root (uid 0).])
 
1598
])
 
1599
 
 
1600
dnl
1586
1601
dnl  Test coverage
1587
1602
dnl
1588
1603
AC_ARG_ENABLE(coverage,
2989
3004
      VLC_ADD_CFLAGS([avcodec],[$AVCODEC_CFLAGS])
2990
3005
      VLC_RESTORE_FLAGS
2991
3006
    ],[
2992
 
      AC_MSG_ERROR([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.])
 
3007
      AC_MSG_FAILURE([Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.])
2993
3008
  ])
2994
3009
fi
2995
3010
 
3013
3028
      VLC_ADD_CFLAGS([avformat],[$AVFORMAT_CFLAGS])
3014
3029
      VLC_RESTORE_FLAGS
3015
3030
    ],[
3016
 
      AC_MSG_ERROR([Could not find libavformat or libavutil. Use --disable-avformat to ignore this error.])
 
3031
      AC_MSG_FAILURE([Could not find libavformat or libavutil. Use --disable-avformat to ignore this error.])
3017
3032
  ])
3018
3033
fi
3019
3034
 
3070
3085
          AC_MSG_WARN([Could not find img_resample in libavcodec.])
3071
3086
          if test "${enable_swscale}" != "no"
3072
3087
          then
3073
 
            AC_MSG_ERROR([swscale (and its fallback module imgresample) support will be missing. Use --disable-swscale to ignore this error. (This basically means that you will be missing any good software scaling module and some video chroma converters.)])
 
3088
            AC_MSG_FAILURE([swscale (and its fallback module imgresample) support will be missing. Use --disable-swscale to ignore this error. (This basically means that you will be missing any good software scaling module and some video chroma converters.)])
3074
3089
          fi
3075
3090
        # That sed hack to add -rpath is kind of ugly but at least it fixes
3076
3091
        # detection when linking against a shared libavcodec with