~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-04-04 16:14:45 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404161445-n2hw85vfw8mzcbx0
Tags: 4.7.1~beta2-0ubuntu1
* New upstream release, picked from NSPR_4_7_1_BETA2 cvs tag
* bump shlibs requirements
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
dist_bindir='${dist_prefix}/bin'
136
136
dist_includedir='${dist_prefix}/include/nspr'
137
137
dist_libdir='${dist_prefix}/lib'
 
138
dnl If the --includedir option was not specified, add '/nspr' to autoconf's
 
139
dnl default value of includedir.
138
140
if test "${includedir}" = '${prefix}/include'; then
139
141
    includedir='${prefix}/include/nspr'
140
142
fi
235
237
            USE_MDUPDATE=1
236
238
      fi ])
237
239
 
 
240
AC_ARG_ENABLE(cplus,
 
241
    [  --enable-cplus          Enable some c++ api routines],
 
242
    [ if test "$enableval" = "yes"; then
 
243
            USE_CPLUS=1
 
244
      fi]) 
 
245
 
238
246
dnl ========================================================
239
247
dnl = Mac OS X SDK support
240
248
dnl ========================================================
435
443
    AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", echo)
436
444
    unset ac_cv_prog_CC
437
445
    AC_PROG_CC
438
 
    AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", echo)
439
 
    unset ac_cv_prog_CXX
440
 
    AC_PROG_CXX
 
446
    if test -n "$USE_CPLUS"; then
 
447
        AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", echo)
 
448
        unset ac_cv_prog_CXX
 
449
        AC_PROG_CXX
 
450
    fi
441
451
 
442
452
    case "$build:$target" in
443
453
      powerpc-apple-darwin8*:i?86-apple-darwin*)
457
467
    AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", echo)
458
468
 
459
469
else
460
 
    AC_PROG_CXX
461
 
    if test "$CXX" = "cl" -a -z "$CC"; then
462
 
        CC=$CXX
463
 
    else        
464
 
        AC_PROG_CC
 
470
    AC_PROG_CC
 
471
    if test -n "$USE_CPLUS"; then
 
472
        if test "$CC" = "cl" -a -z "$CXX"; then
 
473
            CXX=$CC
 
474
        else        
 
475
            AC_PROG_CXX
 
476
        fi
465
477
    fi
466
478
    AC_PROG_CPP
467
479
    AC_PROG_RANLIB
2443
2455
 
2444
2456
fi # SKIP_LIBRARY_CHECKS
2445
2457
 
2446
 
AC_ARG_ENABLE(cplus,
2447
 
    [  --enable-cplus          Enable some c++ api routines],
2448
 
    [ if test "$enableval" = "yes"; then
2449
 
            USE_CPLUS=1
2450
 
      fi]) 
2451
 
 
2452
2458
AC_ARG_ENABLE(ipv6,
2453
2459
    [  --enable-ipv6           Compile ipv6 support],
2454
2460
    [ if test "$enableval" = "yes"; then