Revision 523ef551 configure

View differences:

configure
2598 2598
echo "Creating config.mak and config.h..."
2599 2599

  
2600 2600
echo "# Automatically generated by configure - do not modify!" > config.mak
2601
echo "/* Automatically generated by configure - do not modify! */" > $TMPH
2602
echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH
2603
echo "#define FFMPEG_CONFIG_H" >> $TMPH
2604
echo "#define FFMPEG_CONFIGURATION \"$(c_escape $FFMPEG_CONFIGURATION)\"" >> $TMPH
2605
echo "#define FFMPEG_DATADIR \"$(eval c_escape $datadir)\"" >> $TMPH
2606

  
2607 2601
echo "ifndef FFMPEG_CONFIG_MAK" >> config.mak
2608 2602
echo "FFMPEG_CONFIG_MAK=1" >> config.mak
2609 2603

  
......
2701 2695

  
2702 2696
echo "ARCH=$arch" >> config.mak
2703 2697

  
2698

  
2699
echo "/* Automatically generated by configure - do not modify! */" > $TMPH
2700
echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH
2701
echo "#define FFMPEG_CONFIG_H" >> $TMPH
2702
echo "#define FFMPEG_CONFIGURATION \"$(c_escape $FFMPEG_CONFIGURATION)\"" >> $TMPH
2703
echo "#define FFMPEG_DATADIR \"$(eval c_escape $datadir)\"" >> $TMPH
2704

  
2705
echo "#define restrict $_restrict" >> $TMPH
2706

  
2707
if enabled small || disabled optimizations; then
2708
    echo "#define av_always_inline"  >> $TMPH
2709
fi
2710

  
2711

  
2712
# Apparently it's not possible to portably echo a backslash.
2713
enabled asmalign_pot &&
2714
    printf '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n' >> $TMPH ||
2715
    printf '#define ASMALIGN(ZEROBITS) ".align 1 << " #ZEROBITS "\\n\\t"\n' >> $TMPH
2716

  
2717
echo "#define EXTERN_PREFIX \"${extern_prefix}\"" >> $TMPH
2718

  
2704 2719
print_config ARCH_   $TMPH config.mak $ARCH_LIST
2705 2720
print_config HAVE_   $TMPH config.mak $HAVE_LIST
2706 2721
print_config CONFIG_ $TMPH config.mak $CONFIG_LIST       \
......
2717 2732
                                      $INDEV_LIST        \
2718 2733
                                      $OUTDEV_LIST       \
2719 2734

  
2720
echo "#define restrict $_restrict" >> $TMPH
2721

  
2722
if enabled small || disabled optimizations; then
2723
    echo "#define av_always_inline"  >> $TMPH
2724
fi
2725

  
2726

  
2727
# Apparently it's not possible to portably echo a backslash.
2728
enabled asmalign_pot &&
2729
    printf '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n' >> $TMPH ||
2730
    printf '#define ASMALIGN(ZEROBITS) ".align 1 << " #ZEROBITS "\\n\\t"\n' >> $TMPH
2731

  
2732
echo "#define EXTERN_PREFIX \"${extern_prefix}\"" >> $TMPH
2733

  
2734 2735
echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH
2735 2736
echo "endif # FFMPEG_CONFIG_MAK" >> config.mak
2736 2737

  

Also available in: Unified diff