X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=6323bfbcb5a8c5c5016995a944609a21e9a5183c;hb=b6a237025d5a50fadf45ef855bd3416b6224ccc2;hp=6aa61775464cd3a55f8899786213ac2484841b7e;hpb=95e561ec3ea257bc19913a77fbc6c07da5f14f72;p=ffmpeg diff --git a/configure b/configure index 6aa61775464..6323bfbcb5a 100755 --- a/configure +++ b/configure @@ -2598,12 +2598,6 @@ echo "License: $license" echo "Creating config.mak and config.h..." echo "# Automatically generated by configure - do not modify!" > config.mak -echo "/* Automatically generated by configure - do not modify! */" > $TMPH -echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH -echo "#define FFMPEG_CONFIG_H" >> $TMPH -echo "#define FFMPEG_CONFIGURATION \"$(c_escape $FFMPEG_CONFIGURATION)\"" >> $TMPH -echo "#define FFMPEG_DATADIR \"$(eval c_escape $datadir)\"" >> $TMPH - echo "ifndef FFMPEG_CONFIG_MAK" >> config.mak echo "FFMPEG_CONFIG_MAK=1" >> config.mak @@ -2701,6 +2695,27 @@ echo "EXTRALIBS=$extralibs" >> config.mak echo "ARCH=$arch" >> config.mak + +echo "/* Automatically generated by configure - do not modify! */" > $TMPH +echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH +echo "#define FFMPEG_CONFIG_H" >> $TMPH +echo "#define FFMPEG_CONFIGURATION \"$(c_escape $FFMPEG_CONFIGURATION)\"" >> $TMPH +echo "#define FFMPEG_DATADIR \"$(eval c_escape $datadir)\"" >> $TMPH + +echo "#define restrict $_restrict" >> $TMPH + +if enabled small || disabled optimizations; then + echo "#define av_always_inline" >> $TMPH +fi + + +# Apparently it's not possible to portably echo a backslash. +enabled asmalign_pot && + printf '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n' >> $TMPH || + printf '#define ASMALIGN(ZEROBITS) ".align 1 << " #ZEROBITS "\\n\\t"\n' >> $TMPH + +echo "#define EXTERN_PREFIX \"${extern_prefix}\"" >> $TMPH + print_config ARCH_ $TMPH config.mak $ARCH_LIST print_config HAVE_ $TMPH config.mak $HAVE_LIST print_config CONFIG_ $TMPH config.mak $CONFIG_LIST \ @@ -2717,20 +2732,6 @@ print_config CONFIG_ $TMPH config.mak $CONFIG_LIST \ $INDEV_LIST \ $OUTDEV_LIST \ -echo "#define restrict $_restrict" >> $TMPH - -if enabled small || disabled optimizations; then - echo "#define av_always_inline" >> $TMPH -fi - - -# Apparently it's not possible to portably echo a backslash. -enabled asmalign_pot && - printf '#define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\\n\\t"\n' >> $TMPH || - printf '#define ASMALIGN(ZEROBITS) ".align 1 << " #ZEROBITS "\\n\\t"\n' >> $TMPH - -echo "#define EXTERN_PREFIX \"${extern_prefix}\"" >> $TMPH - echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH echo "endif # FFMPEG_CONFIG_MAK" >> config.mak @@ -2741,34 +2742,34 @@ cmp -s $TMPH config.h && # build tree in object directory if source path is different from current one if enabled source_path_used; then - DIRS="\ - doc \ - libavcodec \ - libavcodec/$arch \ - libavdevice \ - libavfilter \ - libavformat \ - libavutil \ - libavutil/$arch \ - libpostproc \ - libswscale \ - libswscale/$arch \ - tests \ - tools \ - " - FILES="\ - Makefile \ - common.mak \ - subdir.mak \ - doc/texi2pod.pl \ - libavcodec/Makefile \ - libavdevice/Makefile \ - libavfilter/Makefile \ - libavformat/Makefile \ - libavutil/Makefile \ - libpostproc/Makefile \ - libswscale/Makefile \ - " + DIRS=" + doc + libavcodec + libavcodec/$arch + libavdevice + libavfilter + libavformat + libavutil + libavutil/$arch + libpostproc + libswscale + libswscale/$arch + tests + tools + " + FILES=" + Makefile + common.mak + subdir.mak + doc/texi2pod.pl + libavcodec/Makefile + libavdevice/Makefile + libavfilter/Makefile + libavformat/Makefile + libavutil/Makefile + libpostproc/Makefile + libswscale/Makefile + " for dir in $DIRS ; do mkdir -p $dir done @@ -2796,10 +2797,10 @@ includedir=$incdir Name: $name Description: $comment Version: $version -Requires: $(disabled shared && echo $requires) +Requires: $(enabled shared || echo $requires) Requires.private: $(enabled shared && echo $requires) Conflicts: -Libs: -L\${libdir} -l${shortname} $(disabled shared && echo $libs) +Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs) Libs.private: $(enabled shared && echo $libs) Cflags: -I\${includedir} EOF