Ignore:
Timestamp:
May 19, 2016 10:38:47 AM (8 years ago)
Author:
riza
Message:

Re #1917 (misc): Replace obsolete command (since autoconf 2) on aconfigure.ac.

Thanks to Alexander Traud for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r5303 r5310  
    1 AC_INIT(pjproject,2.x) 
     1AC_INIT([pjproject],[2.x]) 
    22 
    33host_orig="$host" 
     
    3939AC_PROG_CC 
    4040AC_PROG_CXX 
    41 AC_LANG_C 
     41AC_LANG([C]) 
    4242 
    4343AC_PROG_RANLIB 
     
    181181dnl # --disable-floating-point option 
    182182AC_ARG_ENABLE(floating-point, 
    183               AC_HELP_STRING([--disable-floating-point], 
     183              AS_HELP_STRING([--disable-floating-point], 
    184184                             [Disable floating point where possible]), 
    185185              [if test "$enable_floating_point" = "no"; then 
     
    413413AC_MSG_CHECKING([ioqueue backend]) 
    414414AC_ARG_ENABLE(epoll, 
    415               AC_HELP_STRING([--enable-epoll], 
     415              AS_HELP_STRING([--enable-epoll], 
    416416                             [Use /dev/epoll ioqueue on Linux (experimental)]), 
    417417              [ 
     
    429429AC_SUBST(ac_shared_libraries) 
    430430AC_ARG_ENABLE(shared, 
    431               AC_HELP_STRING([--enable-shared], 
     431              AS_HELP_STRING([--enable-shared], 
    432432                             [Build shared libraries]), 
    433433              [if test "$enable_shared" = "yes"; then 
     
    484484AC_SUBST(ac_external_speex,0) 
    485485AC_ARG_WITH(external-speex, 
    486     AC_HELP_STRING([--with-external-speex], 
     486    AS_HELP_STRING([--with-external-speex], 
    487487                   [Use external Speex development files, not the one in "third_party" directory. When this option is set, make sure that Speex is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 
    488488    [ 
     
    506506AC_SUBST(ac_external_gsm,0) 
    507507AC_ARG_WITH(external-gsm, 
    508     AC_HELP_STRING([--with-external-gsm], 
     508    AS_HELP_STRING([--with-external-gsm], 
    509509                   [Use external GSM codec library, not the one in "third_party" directory. When this option is set, make sure that the GSM include/lib files are accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 
    510510    [ 
     
    542542AC_SUBST(ac_external_srtp,0) 
    543543AC_ARG_WITH(external-srtp, 
    544     AC_HELP_STRING([--with-external-srtp], 
     544    AS_HELP_STRING([--with-external-srtp], 
    545545                   [Use external SRTP development files, not the one in "third_party" directory. When this option is set, make sure that SRTP is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 
    546546    [ 
     
    572572AC_SUBST(ac_pjmedia_resample,libresample) 
    573573AC_ARG_ENABLE(resample, 
    574               AC_HELP_STRING([--disable-resample], 
     574              AS_HELP_STRING([--disable-resample], 
    575575                             [Disable resampling implementations]), 
    576576              [if test "$enable_resample" = "no"; then 
     
    583583AC_SUBST(ac_pjmedia_snd) 
    584584AC_ARG_ENABLE(sound, 
    585               AC_HELP_STRING([--disable-sound], 
     585              AS_HELP_STRING([--disable-sound], 
    586586                             [Exclude sound (i.e. use null sound)]), 
    587587              [if test "$enable_sound" = "no"; then 
     
    594594AC_SUBST(ac_external_pa,0) 
    595595AC_ARG_WITH(external-pa, 
    596     AC_HELP_STRING([--with-external-pa], 
     596    AS_HELP_STRING([--with-external-pa], 
    597597                   [Use external PortAudio development files, not the one in "third_party" directory. When this option is set, make sure that PortAudio is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), 
    598598    [ 
     
    672672        AC_SUBST(ac_pa_use_oss,1) 
    673673        AC_ARG_ENABLE(oss, 
    674                       AC_HELP_STRING([--disable-oss], 
     674                      AS_HELP_STRING([--disable-oss], 
    675675                                     [Disable OSS audio (default: not disabled)]), 
    676676                      [ 
     
    688688dnl # --disable-video option 
    689689AC_ARG_ENABLE(video, 
    690               AC_HELP_STRING([--disable-video], 
     690              AS_HELP_STRING([--disable-video], 
    691691                             [Disable video feature]), 
    692692              [if test "$enable_video" = "no"; then 
     
    770770 
    771771AC_ARG_ENABLE(ext_sound, 
    772               AC_HELP_STRING([--enable-ext-sound], 
     772              AS_HELP_STRING([--enable-ext-sound], 
    773773                             [PJMEDIA will not provide any sound device backend]), 
    774774              [if test "$enable_ext_sound" = "yes"; then 
     
    781781AC_SUBST(ac_no_small_filter) 
    782782AC_ARG_ENABLE(small-filter, 
    783               AC_HELP_STRING([--disable-small-filter], 
     783              AS_HELP_STRING([--disable-small-filter], 
    784784                             [Exclude small filter in resampling]), 
    785785              [if test "$enable_small_filter" = "no"; then 
     
    792792AC_SUBST(ac_no_large_filter) 
    793793AC_ARG_ENABLE(large-filter, 
    794               AC_HELP_STRING([--disable-large-filter], 
     794              AS_HELP_STRING([--disable-large-filter], 
    795795                             [Exclude large filter in resampling]), 
    796796              [if test "$enable_large_filter" = "no"; then 
     
    803803AC_SUBST(ac_no_speex_aec) 
    804804AC_ARG_ENABLE(speex-aec, 
    805               AC_HELP_STRING([--disable-speex-aec], 
     805              AS_HELP_STRING([--disable-speex-aec], 
    806806                             [Exclude Speex Acoustic Echo Canceller/AEC]), 
    807807              [if test "$enable_speex_aec" = "no"; then 
     
    814814AC_SUBST(ac_no_g711_codec) 
    815815AC_ARG_ENABLE(g711-codec, 
    816               AC_HELP_STRING([--disable-g711-codec], 
     816              AS_HELP_STRING([--disable-g711-codec], 
    817817                             [Exclude G.711 codecs from the build]), 
    818818              [if test "$enable_g711_codec" = "no"; then 
     
    827827AC_SUBST(ac_no_l16_codec) 
    828828AC_ARG_ENABLE(l16-codec, 
    829               AC_HELP_STRING([--disable-l16-codec], 
     829              AS_HELP_STRING([--disable-l16-codec], 
    830830                             [Exclude Linear/L16 codec family from the build]), 
    831831              [if test "$enable_l16_codec" = "no"; then 
     
    840840AC_SUBST(ac_no_gsm_codec) 
    841841AC_ARG_ENABLE(gsm-codec, 
    842               AC_HELP_STRING([--disable-gsm-codec], 
     842              AS_HELP_STRING([--disable-gsm-codec], 
    843843                             [Exclude GSM codec in the build]), 
    844844              [if test "$enable_gsm_codec" = "no"; then 
     
    852852AC_SUBST(ac_no_g722_codec) 
    853853AC_ARG_ENABLE(g722-codec, 
    854               AC_HELP_STRING([--disable-g722-codec], 
     854              AS_HELP_STRING([--disable-g722-codec], 
    855855                             [Exclude G.722 codec in the build]), 
    856856              [if test "$enable_g722_codec" = "no"; then 
     
    864864AC_SUBST(ac_no_g7221_codec) 
    865865AC_ARG_ENABLE(g7221-codec, 
    866               AC_HELP_STRING([--disable-g7221-codec], 
     866              AS_HELP_STRING([--disable-g7221-codec], 
    867867                             [Exclude G.7221 codec in the build]), 
    868868              [if test "$enable_g7221_codec" = "no"; then 
     
    876876AC_SUBST(ac_no_speex_codec) 
    877877AC_ARG_ENABLE(speex-codec, 
    878               AC_HELP_STRING([--disable-speex-codec], 
     878              AS_HELP_STRING([--disable-speex-codec], 
    879879                             [Exclude Speex codecs in the build]), 
    880880              [if test "$enable_speex_codec" = "no"; then 
     
    888888AC_SUBST(ac_no_ilbc_codec) 
    889889AC_ARG_ENABLE(ilbc-codec, 
    890               AC_HELP_STRING([--disable-ilbc-codec], 
     890              AS_HELP_STRING([--disable-ilbc-codec], 
    891891                             [Exclude iLBC codec in the build]), 
    892892              [if test "$enable_ilbc_codec" = "no"; then 
     
    899899dnl # Include libsamplerate 
    900900AC_ARG_ENABLE(libsamplerate, 
    901            AC_HELP_STRING([--enable-libsamplerate], 
     901           AS_HELP_STRING([--enable-libsamplerate], 
    902902                    [Link with libsamplerate when available.]), 
    903903           [ 
     
    913913AC_SUBST(ac_resample_dll) 
    914914AC_ARG_ENABLE(resample_dll, 
    915               AC_HELP_STRING([--enable-resample-dll], 
     915              AS_HELP_STRING([--enable-resample-dll], 
    916916                             [Build libresample as shared library]), 
    917917              [if test "$enable_resample_dll" = "yes"; then 
     
    924924dnl # SDL alt prefix 
    925925AC_ARG_WITH(sdl, 
    926     AC_HELP_STRING([--with-sdl=DIR], 
     926    AS_HELP_STRING([--with-sdl=DIR], 
    927927                   [Specify alternate libSDL prefix]), 
    928928    [], 
     
    937937dnl # SDL 
    938938AC_ARG_ENABLE(sdl, 
    939               AC_HELP_STRING([--disable-sdl], 
     939              AS_HELP_STRING([--disable-sdl], 
    940940                             [Disable SDL (default: not disabled)]), 
    941941              [ 
     
    969969 
    970970AC_ARG_WITH(ffmpeg, 
    971     AC_HELP_STRING([--with-ffmpeg=DIR], 
     971    AS_HELP_STRING([--with-ffmpeg=DIR], 
    972972                   [Specify alternate FFMPEG prefix]), 
    973973    [], 
     
    982982dnl # FFMPEG stuffs 
    983983AC_ARG_ENABLE(ffmpeg, 
    984               AC_HELP_STRING([--disable-ffmpeg], 
     984              AS_HELP_STRING([--disable-ffmpeg], 
    985985                             [Disable ffmpeg (default: not disabled)]), 
    986986              [ 
     
    11071107dnl # Video for Linux 2 
    11081108AC_ARG_ENABLE(v4l2, 
    1109               AC_HELP_STRING([--disable-v4l2], 
     1109              AS_HELP_STRING([--disable-v4l2], 
    11101110                             [Disable Video4Linux2 (default: not disabled)]), 
    11111111              [ 
     
    11281128dnl # OpenH264 alt prefix 
    11291129AC_ARG_WITH(openh264, 
    1130             AC_HELP_STRING([--with-openh264=DIR], 
     1130            AS_HELP_STRING([--with-openh264=DIR], 
    11311131                           [Specify alternate OpenH264 prefix]), 
    11321132            [], 
     
    11431143AC_SUBST(ac_openh264_ldflags) 
    11441144AC_ARG_ENABLE(openh264, 
    1145               AC_HELP_STRING([--disable-openh264], 
     1145              AS_HELP_STRING([--disable-openh264], 
    11461146                             [Disable OpenH264 (default: not disabled)]), 
    11471147              [ 
     
    11931193dnl # libyuv alt prefix 
    11941194AC_ARG_WITH(libyuv, 
    1195             AC_HELP_STRING([--with-libyuv=DIR], 
     1195            AS_HELP_STRING([--with-libyuv=DIR], 
    11961196                           [Specify alternate libyuv prefix]), 
    11971197            [], 
     
    12081208AC_SUBST(ac_libyuv_ldflags) 
    12091209AC_ARG_ENABLE(libyuv, 
    1210               AC_HELP_STRING([--disable-libyuv], 
     1210              AS_HELP_STRING([--disable-libyuv], 
    12111211                             [Exclude libyuv in the build]), 
    12121212              [if test "$enable_libyuv" = "no"; then 
     
    12701270dnl # WebRtc alt prefix 
    12711271AC_ARG_WITH(webrtc, 
    1272             AC_HELP_STRING([--with-webrtc=DIR], 
     1272            AS_HELP_STRING([--with-webrtc=DIR], 
    12731273                           [Specify alternate WebRtc prefix]), 
    12741274            [], 
     
    12851285AC_SUBST(ac_webrtc_ldflags) 
    12861286AC_ARG_ENABLE(webrtc, 
    1287               AC_HELP_STRING([--disable-webrtc], 
     1287              AS_HELP_STRING([--disable-webrtc], 
    12881288                             [Exclude webrtc in the build]), 
    12891289              [if test "$enable_webrtc" = "no"; then 
     
    13481348dnl # 
    13491349AC_ARG_ENABLE(ipp, 
    1350     AC_HELP_STRING([--enable-ipp], 
     1350    AS_HELP_STRING([--enable-ipp], 
    13511351                   [Enable Intel IPP support. Specify the Intel IPP package and samples location using IPPROOT and IPPSAMPLES env var or with --with-ipp and --with-ipp-samples options]), 
    13521352    [], 
     
    13551355 
    13561356AC_ARG_WITH(ipp, 
    1357     AC_HELP_STRING([--with-ipp=DIR], 
     1357    AS_HELP_STRING([--with-ipp=DIR], 
    13581358                   [Specify the Intel IPP location]), 
    13591359    [], 
     
    13621362 
    13631363AC_ARG_WITH(ipp-samples, 
    1364     AC_HELP_STRING([--with-ipp-samples=DIR], 
     1364    AS_HELP_STRING([--with-ipp-samples=DIR], 
    13651365                   [Specify the Intel IPP samples location]), 
    13661366    [], 
     
    13691369 
    13701370AC_ARG_WITH(ipp-arch, 
    1371     AC_HELP_STRING([--with-ipp-arch=ARCH], 
     1371    AS_HELP_STRING([--with-ipp-arch=ARCH], 
    13721372                   [Specify the Intel IPP ARCH suffix, e.g. "64" or "em64t. Default is blank for IA32"]), 
    13731373    [], 
     
    15871587dnl # SSL alt prefix 
    15881588AC_ARG_WITH(ssl, 
    1589     AC_HELP_STRING([--with-ssl=DIR], 
     1589    AS_HELP_STRING([--with-ssl=DIR], 
    15901590                   [Specify alternate libssl prefix]), 
    15911591    [], 
     
    16011601AC_SUBST(ac_no_ssl) 
    16021602AC_ARG_ENABLE(ssl, 
    1603               AC_HELP_STRING([--disable-ssl], 
     1603              AS_HELP_STRING([--disable-ssl], 
    16041604                             [Exclude SSL support the build (default: autodetect)]) 
    16051605              , 
     
    16351635dnl # Obsolete option --with-opencore-amrnb 
    16361636AC_ARG_WITH(opencore-amrnb, 
    1637     AC_HELP_STRING([--with-opencore-amrnb=DIR], 
     1637    AS_HELP_STRING([--with-opencore-amrnb=DIR], 
    16381638                   [This option is obsolete and replaced by --with-opencore-amr=DIR]), 
    16391639    [AC_MSG_ERROR(This option is obsolete and replaced by --with-opencore-amr=DIR)], 
     
    16431643dnl # opencore-amr alt prefix 
    16441644AC_ARG_WITH(opencore-amr, 
    1645     AC_HELP_STRING([--with-opencore-amr=DIR], 
     1645    AS_HELP_STRING([--with-opencore-amr=DIR], 
    16461646                   [Specify alternate libopencore-amr prefix]), 
    16471647    [], 
     
    16561656dnl # vo-amrwbenc alt prefix 
    16571657AC_ARG_WITH(opencore-amrwbenc, 
    1658     AC_HELP_STRING([--with-opencore-amrwbenc=DIR], 
     1658    AS_HELP_STRING([--with-opencore-amrwbenc=DIR], 
    16591659                   [Specify alternate libvo-amrwbenc prefix]), 
    16601660    [], 
     
    16721672AC_SUBST(ac_no_opencore_amrwb) 
    16731673AC_ARG_ENABLE(opencore_amr, 
    1674               AC_HELP_STRING([--disable-opencore-amr], 
     1674              AS_HELP_STRING([--disable-opencore-amr], 
    16751675                             [Exclude OpenCORE AMR support from the build (default: autodetect)]) 
    16761676              , 
     
    17271727dnl # SILK prefix 
    17281728AC_ARG_WITH(silk, 
    1729     AC_HELP_STRING([--with-silk=DIR], 
     1729    AS_HELP_STRING([--with-silk=DIR], 
    17301730                   [Specify alternate SILK prefix]), 
    17311731    [], 
     
    17411741AC_SUBST(ac_no_silk) 
    17421742AC_ARG_ENABLE(silk, 
    1743               AC_HELP_STRING([--disable-silk], 
     1743              AS_HELP_STRING([--disable-silk], 
    17441744                             [Exclude SILK support from the build (default: autodetect)]) 
    17451745              , 
     
    17791779dnl # OPUS prefix 
    17801780AC_ARG_WITH(opus, 
    1781     AC_HELP_STRING([--with-opus=DIR], 
     1781    AS_HELP_STRING([--with-opus=DIR], 
    17821782                   [Specify alternate OPUS prefix]), 
    17831783    [], 
     
    17881788AC_SUBST(ac_no_opus) 
    17891789AC_ARG_ENABLE(opus, 
    1790               AC_HELP_STRING([--disable-opus], 
     1790              AS_HELP_STRING([--disable-opus], 
    17911791                             [Exclude OPUS support from the build (default: autodetect)]) 
    17921792              , 
     
    19031903 
    19041904ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'` 
    1905 AC_OUTPUT() 
     1905AC_OUTPUT 
    19061906 
    19071907 
Note: See TracChangeset for help on using the changeset viewer.