Ticket #18850: patch-configure.ac.diff

File patch-configure.ac.diff, 2.1 KB (added by yattenator@…, 15 years ago)

patch-configure.diff replacement, not for configure but configure.ac

  • configure.ac

    old new  
    946946        AC_MSG_NOTICE([You are running OSX, assuming threadsafe gethostbyname version])
    947947elif test $CYGWIN_OS -eq 1; then
    948948        AC_MSG_NOTICE([Your are building under Cygwin, assuming threadsafe gethostbyname implementation])
    949 fi
    950 
     949else
    951950AC_CHECK_FUNCS([gethostbyname_r],[],
    952951        [
    953952            AC_CHECK_HEADERS([lwres/netdb.h],
     
    960959                    fi
    961960                ])
    962961        ])
     962fi
    963963
    964964AC_CHECK_FUNCS([if_nameindex],[],
    965965        [
     
    23272327if test "x$FFMPEG_OK" = xyes; then
    23282328    if test -n "$FFMPEG_SEARCH_HEADERS" ; then
    23292329        CPPFLAGS="-I$FFMPEG_SEARCH_HEADERS"
    2330         AC_CHECK_HEADER($FFMPEG_SEARCH_HEADERS/ffmpeg/avformat.h,
     2330        AC_CHECK_HEADER($FFMPEG_SEARCH_HEADERS/libavformat/avformat.h,
    23312331                [
    23322332                    FFMPEG_CXXFLAGS="-I$FFMPEG_SEARCH_HEADERS"
    23332333                ],
     
    23402340                ]
    23412341        )
    23422342    else
    2343         AC_CHECK_HEADER(ffmpeg/avformat.h,
     2343        AC_CHECK_HEADER(libavformat/avformat.h,
    23442344            [],
    23452345            [
    23462346                CPPFLAGS="-I$SEARCH_DIR_HEADERS"
    23472347                unset ac_cv_header_ffmpeg_avformat_h
    2348                 AC_CHECK_HEADER($SEARCH_DIR_HEADERS/ffmpeg/avformat.h,
     2348                AC_CHECK_HEADER($SEARCH_DIR_HEADERS/libavformat/avformat.h,
    23492349                    [
    23502350                        FFMPEG_CXXFLAGS="-I$SEARCH_DIR_HEADERS"
    23512351                    ],
     
    24472447            [
    24482448                #define __STDC_CONSTANT_MACROS
    24492449                #include <stdint.h>
    2450                 #include <ffmpeg/avformat.h>
     2450                #include <libavformat/avformat.h>
    24512451            ],
    24522452            [
    24532453                av_register_all();
     
    24622462                    #define __STDC_CONSTANT_MACROS
    24632463                    #include <stdint.h>
    24642464                    extern "C" {
    2465                         #include <ffmpeg/avformat.h>
     2465                        #include <libavformat/avformat.h>
    24662466                    }
    24672467                ],
    24682468                [