<commit_before>#
# Configure script
#
#   used by VLCKit.xcodeproj

if test "x$SYMROOT" = "x"; then
    echo " This script is bound to be launched by VLCKit.xcodeproj, not you"
    exit 1
fi

if test "$ACTION" = "clean"; then
    rm -Rf $VLC_BUILD_DIR
    exit 0
fi

# Construct the vlc_build_dir
mkdir -p $VLC_BUILD_DIR
cd $VLC_BUILD_DIR

# Construct the argument list
echo "Building for $ARCHS with sdk=\"$SDKROOT\" in $VLC_BUILD_DIR"

args="--disable-nls $args"

# Mac OS X related options
args="--disable-macosx $args" # Disable old gui/macosx
args="--disable-macosx-vlc-app $args" # Don't build old vlc.app

args="--with-macosx-version-min=10.6 $args"

# optional modules
args="--enable-merge-ffmpeg $args"
args="--enable-faad $args"
args="--enable-flac $args"
args="--enable-theora $args"
args="--enable-shout $args"
args="--enable-twolame $args"
args="--enable-realrtsp $args"
args="--enable-libass $args"
args="--enable-macosx-audio $args"
args="--enable-macosx-dialog-provider $args"
args="--enable-macosx-eyetv $args"
args="--enable-macosx-qtkit $args"
args="--enable-macosx-vout $args"

# disabled stuff
args="--disable-growl $args"
args="--disable-caca $args"
args="--disable-ncurses $args"
args="--disable-httpd $args"
args="--disable-vlm $args"
args="--disable-skins2 $args"
args="--disable-glx $args"
args="--disable-xvideo $args"
args="--disable-xcb $args"
args="--disable-sdl $args"
args="--disable-sdl-image $args"
args="--disable-visual $args"
args="--disable-samplerate $args"

if test "x$SDKROOT" != "x"
then
    args="--with-macosx-sdk=$SDKROOT $args"
fi

# Debug Flags
if test "$CONFIGURATION" = "Debug"; then
    args="--enable-debug $args"
fi

# 64 bits switches
for arch in $ARCHS; do
    this_args="$args"

    # where to install
    this_args="--prefix=${VLC_BUILD_DIR}/$arch/vlc_install_dir $this_args"

    input="$VLC_SRC_DIR/configure"
    output="$arch/Makefile"
    if test -e ${output} && test ${output} -nt ${input}; then
        echo "No need to re-run configure for $arch"
        continue;
    fi

    # Construct the vlc_build_dir/$arch
    mkdir -p $arch
    cd $arch

    echo "Running [$arch] configure $this_args"
    if test $arch = "x86_64"; then
        export CFLAGS="-m64 -arch x86_64"
        export CXXFLAGS="-m64 -arch x86_64"
        export OBJCFLAGS="-m64 -arch x86_64"
        export CPPFLAGS="-m64 -arch x86_64"
        this_args="--build=x86_64-apple-darwin10 --with-contrib=$VLC_SRC_DIR/contrib/x86_64-apple-darwin10 $this_args"
        export PATH=$VLC_SRC_DIR/extras/tools/build/bin:$VLC_SRC_DIR/contrib/x86_64-apple-darwin10/bin:$PATH
        export PKG_CONFIG_PATH=$VLC_SRC_DIR/contrib/x86_64-apple-darwin10/lib/pkgconfig
    fi
    if test $arch = "i386"; then
        export CFLAGS="-m32 -arch i386"
        export CXXFLAGS="-m32 -arch i386"
        export OBJCFLAGS="-m32 -arch i386"
        export CPPFLAGS="-m32 -arch i386"
        this_args="--build=i686-apple-darwin9 --with-contrib=$VLC_SRC_DIR/contrib/i686-apple-darwin9 $this_args"
    fi
    if test $arch = "ppc"; then
        export CFLAGS="-m32 -arch ppc"
        export CXXFLAGS="-m32 -arch ppc"
        export OBJCFLAGS="-m32 -arch ppc"
        export CPPFLAGS="-m32 -arch ppc"
        this_args="--build=powerpc-apple-darwin9 --with-contrib=$VLC_SRC_DIR/contrib/powerpc-apple-darwin9 $this_args"
    fi

    $VLC_SRC_DIR/configure $this_args
    err=$?<commit_msg>Configure: removed outdated configure flag<commit_after>#
# Configure script
#
#   used by VLCKit.xcodeproj

if test "x$SYMROOT" = "x"; then
    echo " This script is bound to be launched by VLCKit.xcodeproj, not you"
    exit 1
fi

if test "$ACTION" = "clean"; then
    rm -Rf $VLC_BUILD_DIR
    exit 0
fi

# Construct the vlc_build_dir
mkdir -p $VLC_BUILD_DIR
cd $VLC_BUILD_DIR

# Construct the argument list
echo "Building for $ARCHS with sdk=\"$SDKROOT\" in $VLC_BUILD_DIR"

args="--disable-nls $args"

# Mac OS X related options
args="--disable-macosx $args" # Disable old gui/macosx
args="--disable-macosx-vlc-app $args" # Don't build old vlc.app

args="--with-macosx-version-min=10.6 $args"

# optional modules
args="--enable-merge-ffmpeg $args"
args="--enable-faad $args"
args="--enable-flac $args"
args="--enable-theora $args"
args="--enable-shout $args"
args="--enable-twolame $args"
args="--enable-realrtsp $args"
args="--enable-libass $args"
args="--enable-macosx-audio $args"
args="--enable-macosx-dialog-provider $args"
args="--enable-macosx-eyetv $args"
args="--enable-macosx-qtkit $args"
args="--enable-macosx-vout $args"

# disabled stuff
args="--disable-growl $args"
args="--disable-caca $args"
args="--disable-ncurses $args"
args="--disable-httpd $args"
args="--disable-vlm $args"
args="--disable-skins2 $args"
args="--disable-glx $args"
args="--disable-xvideo $args"
args="--disable-xcb $args"
args="--disable-sdl $args"
args="--disable-sdl-image $args"
args="--disable-samplerate $args"

if test "x$SDKROOT" != "x"
then
    args="--with-macosx-sdk=$SDKROOT $args"
fi

# Debug Flags
if test "$CONFIGURATION" = "Debug"; then
    args="--enable-debug $args"
fi

# 64 bits switches
for arch in $ARCHS; do
    this_args="$args"

    # where to install
    this_args="--prefix=${VLC_BUILD_DIR}/$arch/vlc_install_dir $this_args"

    input="$VLC_SRC_DIR/configure"
    output="$arch/Makefile"
    if test -e ${output} && test ${output} -nt ${input}; then
        echo "No need to re-run configure for $arch"
        continue;
    fi

    # Construct the vlc_build_dir/$arch
    mkdir -p $arch
    cd $arch

    if test $arch = "x86_64"; then
        export CFLAGS="-m64 -arch x86_64"
        export CXXFLAGS="-m64 -arch x86_64"
        export OBJCFLAGS="-m64 -arch x86_64"
        export CPPFLAGS="-m64 -arch x86_64"
        this_args="--build=x86_64-apple-darwin10 --with-contrib=$VLC_SRC_DIR/contrib/x86_64-apple-darwin10 $this_args"
        export PATH=$VLC_SRC_DIR/extras/tools/build/bin:$VLC_SRC_DIR/contrib/x86_64-apple-darwin10/bin:$PATH
        export PKG_CONFIG_PATH=$VLC_SRC_DIR/contrib/x86_64-apple-darwin10/lib/pkgconfig
    fi
    if test $arch = "i386"; then
        export CFLAGS="-m32 -arch i386"
        export CXXFLAGS="-m32 -arch i386"
        export OBJCFLAGS="-m32 -arch i386"
        export CPPFLAGS="-m32 -arch i386"
        this_args="--build=i686-apple-darwin9 --with-contrib=$VLC_SRC_DIR/contrib/i686-apple-darwin9 $this_args"
    fi
    if test $arch = "ppc"; then
        export CFLAGS="-m32 -arch ppc"
        export CXXFLAGS="-m32 -arch ppc"
        export OBJCFLAGS="-m32 -arch ppc"
        export CPPFLAGS="-m32 -arch ppc"
        this_args="--build=powerpc-apple-darwin9 --with-contrib=$VLC_SRC_DIR/contrib/powerpc-apple-darwin9 $this_args"
    fi
    echo "Running [$arch] configure $this_args"

    $VLC_SRC_DIR/configure $this_args
    err=$?
{'fraction_non_alphanumeric': 0.15445836403831983, 'fraction_numerical': 0.029771554900515845, 'mean_word_length': 3.372422680412371, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '168373', 'n_tokens_mistral': 2687, 'n_tokens_neox': 2532, 'n_words': 563}