7206
7237
if test "${with_xulrunner_sdk+set}" = set; then :
7207
7238
withval=$with_xulrunner_sdk;
7208
7239
XULRUNNER_SDK_PREFIX=$with_xulrunner_sdk
7209
GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/plugin -I$XULRUNNER_SDK_PREFIX/include/nspr -I$XULRUNNER_SDK_PREFIX/include/xpcom -I$XULRUNNER_SDK_PREFIX/include/string -I$XULRUNNER_SDK_PREFIX/include/java"
7210
GECKO_LIBS="-L$XULRUNNER_SDK_PREFIX/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
7240
GECKO_CFLAGS="-I$XULRUNNER_SDK_PREFIX/include -I$XULRUNNER_SDK_PREFIX/include/nspr"
7211
7242
# Check whether --enable-new-libxul was given.
7212
7243
if test "${enable_new_libxul+set}" = set; then :
7213
enableval=$enable_new_libxul; usenewlibxul=$enableval
7219
if test $usenewlibxul == yes; then
7220
GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC"
7222
$as_echo "#define HAVE_NEW_XULRUNNER 1" >>confdefs.h
7230
if test "$GECKO_CFLAGS" = ""; then
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7234
$as_echo_n "checking for GECKO... " >&6; }
7236
if test -n "$GECKO_CFLAGS"; then
7237
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7238
elif test -n "$PKG_CONFIG"; then
7239
if test -n "$PKG_CONFIG" && \
7240
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul >= 2.0\""; } >&5
7241
($PKG_CONFIG --exists --print-errors "libxul >= 2.0") 2>&5
7243
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244
test $ac_status = 0; }; then
7245
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "libxul >= 2.0" 2>/dev/null`
7252
if test -n "$GECKO_LIBS"; then
7253
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7254
elif test -n "$PKG_CONFIG"; then
7255
if test -n "$PKG_CONFIG" && \
7256
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul >= 2.0\""; } >&5
7257
($PKG_CONFIG --exists --print-errors "libxul >= 2.0") 2>&5
7259
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260
test $ac_status = 0; }; then
7261
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "libxul >= 2.0" 2>/dev/null`
7271
if test $pkg_failed = yes; then
7273
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7274
_pkg_short_errors_supported=yes
7276
_pkg_short_errors_supported=no
7278
if test $_pkg_short_errors_supported = yes; then
7279
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul >= 2.0" 2>&1`
7281
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul >= 2.0" 2>&1`
7283
# Put the nasty error message in config.log where it belongs
7284
echo "$GECKO_PKG_ERRORS" >&5
7286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287
$as_echo "no" >&6; }
7288
{ $as_echo "$as_me:${as_lineno-$LINENO}: libxul >= 2.0 beta 5 not found, trying another" >&5
7289
$as_echo "$as_me: libxul >= 2.0 beta 5 not found, trying another" >&6;}
7290
elif test $pkg_failed = untried; then
7291
{ $as_echo "$as_me:${as_lineno-$LINENO}: libxul >= 2.0 beta 5 not found, trying another" >&5
7292
$as_echo "$as_me: libxul >= 2.0 beta 5 not found, trying another" >&6;}
7294
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7295
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7297
$as_echo "yes" >&6; }
7298
GECKO_CFLAGS="$GECKO_CFLAGS -DMOZ_NO_MOZALLOC"
7299
$as_echo "#define HAVE_NEW_XULRUNNER 1" >>confdefs.h
7300
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using libxul >= 2.0 beta 5" >&5
7301
$as_echo "$as_me: Using libxul >= 2.0 beta 5" >&6;}
7306
if test "$GECKO_CFLAGS" = ""; then
7309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7310
$as_echo_n "checking for GECKO... " >&6; }
7312
if test -n "$GECKO_CFLAGS"; then
7313
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7314
elif test -n "$PKG_CONFIG"; then
7315
if test -n "$PKG_CONFIG" && \
7316
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul < 1.9.2\""; } >&5
7317
($PKG_CONFIG --exists --print-errors "libxul < 1.9.2") 2>&5
7319
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320
test $ac_status = 0; }; then
7321
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "libxul < 1.9.2" 2>/dev/null`
7328
if test -n "$GECKO_LIBS"; then
7329
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7330
elif test -n "$PKG_CONFIG"; then
7331
if test -n "$PKG_CONFIG" && \
7332
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul < 1.9.2\""; } >&5
7333
($PKG_CONFIG --exists --print-errors "libxul < 1.9.2") 2>&5
7335
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336
test $ac_status = 0; }; then
7337
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "libxul < 1.9.2" 2>/dev/null`
7347
if test $pkg_failed = yes; then
7349
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7350
_pkg_short_errors_supported=yes
7352
_pkg_short_errors_supported=no
7354
if test $_pkg_short_errors_supported = yes; then
7355
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul < 1.9.2" 2>&1`
7357
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul < 1.9.2" 2>&1`
7359
# Put the nasty error message in config.log where it belongs
7360
echo "$GECKO_PKG_ERRORS" >&5
7362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363
$as_echo "no" >&6; }
7364
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxul < 1.9.2 not found, trying another" >&5
7365
$as_echo "$as_me: WARNING: libxul < 1.9.2 not found, trying another" >&2;}
7366
elif test $pkg_failed = untried; then
7367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxul < 1.9.2 not found, trying another" >&5
7368
$as_echo "$as_me: WARNING: libxul < 1.9.2 not found, trying another" >&2;}
7370
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7371
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7373
$as_echo "yes" >&6; }
7374
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using libxul < 1.9.2" >&5
7375
$as_echo "$as_me: Using libxul < 1.9.2" >&6;}
7379
if test "$GECKO_CFLAGS" = ""; then
7382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7383
$as_echo_n "checking for GECKO... " >&6; }
7385
if test -n "$GECKO_CFLAGS"; then
7386
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7387
elif test -n "$PKG_CONFIG"; then
7388
if test -n "$PKG_CONFIG" && \
7389
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul >= 1.9.2\""; } >&5
7390
($PKG_CONFIG --exists --print-errors "libxul >= 1.9.2") 2>&5
7392
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393
test $ac_status = 0; }; then
7394
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "libxul >= 1.9.2" 2>/dev/null`
7401
if test -n "$GECKO_LIBS"; then
7402
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7403
elif test -n "$PKG_CONFIG"; then
7404
if test -n "$PKG_CONFIG" && \
7405
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul >= 1.9.2\""; } >&5
7406
($PKG_CONFIG --exists --print-errors "libxul >= 1.9.2") 2>&5
7408
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7409
test $ac_status = 0; }; then
7410
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "libxul >= 1.9.2" 2>/dev/null`
7420
if test $pkg_failed = yes; then
7422
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7423
_pkg_short_errors_supported=yes
7425
_pkg_short_errors_supported=no
7427
if test $_pkg_short_errors_supported = yes; then
7428
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul >= 1.9.2" 2>&1`
7430
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul >= 1.9.2" 2>&1`
7432
# Put the nasty error message in config.log where it belongs
7433
echo "$GECKO_PKG_ERRORS" >&5
7435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436
$as_echo "no" >&6; }
7437
{ $as_echo "$as_me:${as_lineno-$LINENO}: libxul >= 1.9.2 not found, trying another" >&5
7438
$as_echo "$as_me: libxul >= 1.9.2 not found, trying another" >&6;}
7439
elif test $pkg_failed = untried; then
7440
{ $as_echo "$as_me:${as_lineno-$LINENO}: libxul >= 1.9.2 not found, trying another" >&5
7441
$as_echo "$as_me: libxul >= 1.9.2 not found, trying another" >&6;}
7443
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7444
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446
$as_echo "yes" >&6; }
7448
$as_echo "#define HAVE_NEW_XULRUNNER 1" >>confdefs.h
7449
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using libxul >= 1.9.2" >&5
7450
$as_echo "$as_me: Using libxul >= 1.9.2" >&6;}
7455
if test "$GECKO_CFLAGS" = ""; then
7458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7459
$as_echo_n "checking for GECKO... " >&6; }
7461
if test -n "$GECKO_CFLAGS"; then
7462
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7463
elif test -n "$PKG_CONFIG"; then
7464
if test -n "$PKG_CONFIG" && \
7465
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul-unstable\""; } >&5
7466
($PKG_CONFIG --exists --print-errors "libxul-unstable") 2>&5
7468
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469
test $ac_status = 0; }; then
7470
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "libxul-unstable" 2>/dev/null`
7477
if test -n "$GECKO_LIBS"; then
7478
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7479
elif test -n "$PKG_CONFIG"; then
7480
if test -n "$PKG_CONFIG" && \
7481
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul-unstable\""; } >&5
7482
($PKG_CONFIG --exists --print-errors "libxul-unstable") 2>&5
7484
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7485
test $ac_status = 0; }; then
7486
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "libxul-unstable" 2>/dev/null`
7496
if test $pkg_failed = yes; then
7498
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7499
_pkg_short_errors_supported=yes
7501
_pkg_short_errors_supported=no
7503
if test $_pkg_short_errors_supported = yes; then
7504
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul-unstable" 2>&1`
7506
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul-unstable" 2>&1`
7508
# Put the nasty error message in config.log where it belongs
7509
echo "$GECKO_PKG_ERRORS" >&5
7511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512
$as_echo "no" >&6; }
7513
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxul-unstable not found, trying another" >&5
7514
$as_echo "$as_me: WARNING: libxul-unstable not found, trying another" >&2;}
7515
elif test $pkg_failed = untried; then
7516
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libxul-unstable not found, trying another" >&5
7517
$as_echo "$as_me: WARNING: libxul-unstable not found, trying another" >&2;}
7519
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7520
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7522
$as_echo "yes" >&6; }
7523
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using libxul-unstable" >&5
7524
$as_echo "$as_me: Using libxul-unstable" >&6;}
7529
if test "$GECKO_CFLAGS" = ""; then
7532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7533
$as_echo_n "checking for GECKO... " >&6; }
7535
if test -n "$GECKO_CFLAGS"; then
7536
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7537
elif test -n "$PKG_CONFIG"; then
7538
if test -n "$PKG_CONFIG" && \
7539
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin mozilla-xpcom\""; } >&5
7540
($PKG_CONFIG --exists --print-errors "mozilla-plugin mozilla-xpcom") 2>&5
7542
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543
test $ac_status = 0; }; then
7544
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin mozilla-xpcom" 2>/dev/null`
7551
if test -n "$GECKO_LIBS"; then
7552
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7553
elif test -n "$PKG_CONFIG"; then
7554
if test -n "$PKG_CONFIG" && \
7555
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin mozilla-xpcom\""; } >&5
7556
($PKG_CONFIG --exists --print-errors "mozilla-plugin mozilla-xpcom") 2>&5
7558
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7559
test $ac_status = 0; }; then
7560
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "mozilla-plugin mozilla-xpcom" 2>/dev/null`
7570
if test $pkg_failed = yes; then
7572
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7573
_pkg_short_errors_supported=yes
7575
_pkg_short_errors_supported=no
7577
if test $_pkg_short_errors_supported = yes; then
7578
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mozilla-plugin mozilla-xpcom" 2>&1`
7580
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "mozilla-plugin mozilla-xpcom" 2>&1`
7582
# Put the nasty error message in config.log where it belongs
7583
echo "$GECKO_PKG_ERRORS" >&5
7585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586
$as_echo "no" >&6; }
7587
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mozilla-plugin not found, trying another" >&5
7588
$as_echo "$as_me: WARNING: mozilla-plugin not found, trying another" >&2;}
7589
elif test $pkg_failed = untried; then
7590
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mozilla-plugin not found, trying another" >&5
7591
$as_echo "$as_me: WARNING: mozilla-plugin not found, trying another" >&2;}
7244
enableval=$enable_new_libxul;
7245
$as_echo "#define HAVE_NEW_XULRUNNER 1" >>confdefs.h
7253
if test "$GECKO_CFLAGS" = ""; then
7256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7257
$as_echo_n "checking for GECKO... " >&6; }
7259
if test -n "$GECKO_CFLAGS"; then
7260
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7261
elif test -n "$PKG_CONFIG"; then
7262
if test -n "$PKG_CONFIG" && \
7263
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= 2.0\""; } >&5
7264
($PKG_CONFIG --exists --print-errors "mozilla-plugin >= 2.0") 2>&5
7266
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267
test $ac_status = 0; }; then
7268
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin >= 2.0" 2>/dev/null`
7269
test "x$?" != "x0" && pkg_failed=yes
7276
if test -n "$GECKO_LIBS"; then
7277
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7278
elif test -n "$PKG_CONFIG"; then
7279
if test -n "$PKG_CONFIG" && \
7280
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= 2.0\""; } >&5
7281
($PKG_CONFIG --exists --print-errors "mozilla-plugin >= 2.0") 2>&5
7283
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284
test $ac_status = 0; }; then
7285
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "mozilla-plugin >= 2.0" 2>/dev/null`
7286
test "x$?" != "x0" && pkg_failed=yes
7296
if test $pkg_failed = yes; then
7297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298
$as_echo "no" >&6; }
7300
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7301
_pkg_short_errors_supported=yes
7303
_pkg_short_errors_supported=no
7305
if test $_pkg_short_errors_supported = yes; then
7306
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mozilla-plugin >= 2.0" 2>&1`
7308
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mozilla-plugin >= 2.0" 2>&1`
7310
# Put the nasty error message in config.log where it belongs
7311
echo "$GECKO_PKG_ERRORS" >&5
7313
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mozilla-plugin >= 2.0 not found. Trying another" >&5
7314
$as_echo "$as_me: WARNING: mozilla-plugin >= 2.0 not found. Trying another" >&2;}
7315
elif test $pkg_failed = untried; then
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317
$as_echo "no" >&6; }
7318
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mozilla-plugin >= 2.0 not found. Trying another" >&5
7319
$as_echo "$as_me: WARNING: mozilla-plugin >= 2.0 not found. Trying another" >&2;}
7321
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7322
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7324
$as_echo "yes" >&6; }
7326
$as_echo "#define HAVE_NEW_XULRUNNER 1" >>confdefs.h
7327
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using mozilla" >&5
7328
$as_echo "$as_me: Using mozilla" >&6;}
7333
if test "$GECKO_CFLAGS" = ""; then
7336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7337
$as_echo_n "checking for GECKO... " >&6; }
7339
if test -n "$GECKO_CFLAGS"; then
7340
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7341
elif test -n "$PKG_CONFIG"; then
7342
if test -n "$PKG_CONFIG" && \
7343
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin\""; } >&5
7344
($PKG_CONFIG --exists --print-errors "mozilla-plugin") 2>&5
7346
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347
test $ac_status = 0; }; then
7348
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin" 2>/dev/null`
7349
test "x$?" != "x0" && pkg_failed=yes
7356
if test -n "$GECKO_LIBS"; then
7357
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7358
elif test -n "$PKG_CONFIG"; then
7359
if test -n "$PKG_CONFIG" && \
7360
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin\""; } >&5
7361
($PKG_CONFIG --exists --print-errors "mozilla-plugin") 2>&5
7363
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364
test $ac_status = 0; }; then
7365
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "mozilla-plugin" 2>/dev/null`
7366
test "x$?" != "x0" && pkg_failed=yes
7376
if test $pkg_failed = yes; then
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378
$as_echo "no" >&6; }
7380
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7381
_pkg_short_errors_supported=yes
7383
_pkg_short_errors_supported=no
7385
if test $_pkg_short_errors_supported = yes; then
7386
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mozilla-plugin" 2>&1`
7388
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mozilla-plugin" 2>&1`
7390
# Put the nasty error message in config.log where it belongs
7391
echo "$GECKO_PKG_ERRORS" >&5
7393
as_fn_error $? "mozilla-plugin not found. Try passing --with-xulrunner-sdk" "$LINENO" 5
7394
elif test $pkg_failed = untried; then
7395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396
$as_echo "no" >&6; }
7397
as_fn_error $? "mozilla-plugin not found. Try passing --with-xulrunner-sdk" "$LINENO" 5
7593
7399
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7594
7400
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7603
if test "$GECKO_CFLAGS" = ""; then
7606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7607
$as_echo_n "checking for GECKO... " >&6; }
7609
if test -n "$GECKO_CFLAGS"; then
7610
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7611
elif test -n "$PKG_CONFIG"; then
7612
if test -n "$PKG_CONFIG" && \
7613
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"firefox-plugin firefox-xpcom\""; } >&5
7614
($PKG_CONFIG --exists --print-errors "firefox-plugin firefox-xpcom") 2>&5
7616
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7617
test $ac_status = 0; }; then
7618
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom" 2>/dev/null`
7625
if test -n "$GECKO_LIBS"; then
7626
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7627
elif test -n "$PKG_CONFIG"; then
7628
if test -n "$PKG_CONFIG" && \
7629
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"firefox-plugin firefox-xpcom\""; } >&5
7630
($PKG_CONFIG --exists --print-errors "firefox-plugin firefox-xpcom") 2>&5
7632
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633
test $ac_status = 0; }; then
7634
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom" 2>/dev/null`
7644
if test $pkg_failed = yes; then
7646
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7647
_pkg_short_errors_supported=yes
7649
_pkg_short_errors_supported=no
7651
if test $_pkg_short_errors_supported = yes; then
7652
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "firefox-plugin firefox-xpcom" 2>&1`
7654
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "firefox-plugin firefox-xpcom" 2>&1`
7656
# Put the nasty error message in config.log where it belongs
7657
echo "$GECKO_PKG_ERRORS" >&5
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660
$as_echo "no" >&6; }
7661
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: firefox-plugin not found, trying another" >&5
7662
$as_echo "$as_me: WARNING: firefox-plugin not found, trying another" >&2;}
7663
elif test $pkg_failed = untried; then
7664
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: firefox-plugin not found, trying another" >&5
7665
$as_echo "$as_me: WARNING: firefox-plugin not found, trying another" >&2;}
7667
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7668
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7670
$as_echo "yes" >&6; }
7671
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using firefox" >&5
7672
$as_echo "$as_me: Using firefox" >&6;}
7677
if test "$GECKO_CFLAGS" = ""; then
7680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7681
$as_echo_n "checking for GECKO... " >&6; }
7683
if test -n "$GECKO_CFLAGS"; then
7684
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7685
elif test -n "$PKG_CONFIG"; then
7686
if test -n "$PKG_CONFIG" && \
7687
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"seamonkey-plugin seamonkey-xpcom\""; } >&5
7688
($PKG_CONFIG --exists --print-errors "seamonkey-plugin seamonkey-xpcom") 2>&5
7690
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691
test $ac_status = 0; }; then
7692
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom" 2>/dev/null`
7699
if test -n "$GECKO_LIBS"; then
7700
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7701
elif test -n "$PKG_CONFIG"; then
7702
if test -n "$PKG_CONFIG" && \
7703
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"seamonkey-plugin seamonkey-xpcom\""; } >&5
7704
($PKG_CONFIG --exists --print-errors "seamonkey-plugin seamonkey-xpcom") 2>&5
7706
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707
test $ac_status = 0; }; then
7708
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom" 2>/dev/null`
7718
if test $pkg_failed = yes; then
7720
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7721
_pkg_short_errors_supported=yes
7723
_pkg_short_errors_supported=no
7725
if test $_pkg_short_errors_supported = yes; then
7726
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "seamonkey-plugin seamonkey-xpcom" 2>&1`
7728
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "seamonkey-plugin seamonkey-xpcom" 2>&1`
7730
# Put the nasty error message in config.log where it belongs
7731
echo "$GECKO_PKG_ERRORS" >&5
7733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734
$as_echo "no" >&6; }
7735
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seamokey-plugin not found, trying another" >&5
7736
$as_echo "$as_me: WARNING: seamokey-plugin not found, trying another" >&2;}
7737
elif test $pkg_failed = untried; then
7738
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seamokey-plugin not found, trying another" >&5
7739
$as_echo "$as_me: WARNING: seamokey-plugin not found, trying another" >&2;}
7741
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7742
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7744
$as_echo "yes" >&6; }
7745
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using seamonkey" >&5
7746
$as_echo "$as_me: Using seamonkey" >&6;}
7751
if test "$GECKO_CFLAGS" = ""; then
7754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7755
$as_echo_n "checking for GECKO... " >&6; }
7757
if test -n "$GECKO_CFLAGS"; then
7758
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7759
elif test -n "$PKG_CONFIG"; then
7760
if test -n "$PKG_CONFIG" && \
7761
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-plugin xulrunner-xpcom\""; } >&5
7762
($PKG_CONFIG --exists --print-errors "xulrunner-plugin xulrunner-xpcom") 2>&5
7764
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765
test $ac_status = 0; }; then
7766
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom" 2>/dev/null`
7773
if test -n "$GECKO_LIBS"; then
7774
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7775
elif test -n "$PKG_CONFIG"; then
7776
if test -n "$PKG_CONFIG" && \
7777
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xulrunner-plugin xulrunner-xpcom\""; } >&5
7778
($PKG_CONFIG --exists --print-errors "xulrunner-plugin xulrunner-xpcom") 2>&5
7780
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781
test $ac_status = 0; }; then
7782
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom" 2>/dev/null`
7792
if test $pkg_failed = yes; then
7794
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7795
_pkg_short_errors_supported=yes
7797
_pkg_short_errors_supported=no
7799
if test $_pkg_short_errors_supported = yes; then
7800
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xulrunner-plugin xulrunner-xpcom" 2>&1`
7802
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xulrunner-plugin xulrunner-xpcom" 2>&1`
7804
# Put the nasty error message in config.log where it belongs
7805
echo "$GECKO_PKG_ERRORS" >&5
7807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808
$as_echo "no" >&6; }
7809
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xulrunner-plugin not found, trying another" >&5
7810
$as_echo "$as_me: WARNING: xulrunner-plugin not found, trying another" >&2;}
7811
elif test $pkg_failed = untried; then
7812
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xulrunner-plugin not found, trying another" >&5
7813
$as_echo "$as_me: WARNING: xulrunner-plugin not found, trying another" >&2;}
7815
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7816
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7818
$as_echo "yes" >&6; }
7819
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using xulrunner" >&5
7820
$as_echo "$as_me: Using xulrunner" >&6;}
7825
if test "$GECKO_CFLAGS" = ""; then
7828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GECKO" >&5
7829
$as_echo_n "checking for GECKO... " >&6; }
7831
if test -n "$GECKO_CFLAGS"; then
7832
pkg_cv_GECKO_CFLAGS="$GECKO_CFLAGS"
7833
elif test -n "$PKG_CONFIG"; then
7834
if test -n "$PKG_CONFIG" && \
7835
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iceape-plugin iceape-xpcom\""; } >&5
7836
($PKG_CONFIG --exists --print-errors "iceape-plugin iceape-xpcom") 2>&5
7838
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839
test $ac_status = 0; }; then
7840
pkg_cv_GECKO_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom" 2>/dev/null`
7847
if test -n "$GECKO_LIBS"; then
7848
pkg_cv_GECKO_LIBS="$GECKO_LIBS"
7849
elif test -n "$PKG_CONFIG"; then
7850
if test -n "$PKG_CONFIG" && \
7851
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"iceape-plugin iceape-xpcom\""; } >&5
7852
($PKG_CONFIG --exists --print-errors "iceape-plugin iceape-xpcom") 2>&5
7854
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855
test $ac_status = 0; }; then
7856
pkg_cv_GECKO_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom" 2>/dev/null`
7866
if test $pkg_failed = yes; then
7868
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7869
_pkg_short_errors_supported=yes
7871
_pkg_short_errors_supported=no
7873
if test $_pkg_short_errors_supported = yes; then
7874
GECKO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "iceape-plugin iceape-xpcom" 2>&1`
7876
GECKO_PKG_ERRORS=`$PKG_CONFIG --print-errors "iceape-plugin iceape-xpcom" 2>&1`
7878
# Put the nasty error message in config.log where it belongs
7879
echo "$GECKO_PKG_ERRORS" >&5
7881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882
$as_echo "no" >&6; }
7883
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: iceape-plugin not found, trying another" >&5
7884
$as_echo "$as_me: WARNING: iceape-plugin not found, trying another" >&2;}
7885
elif test $pkg_failed = untried; then
7886
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: iceape-plugin not found, trying another" >&5
7887
$as_echo "$as_me: WARNING: iceape-plugin not found, trying another" >&2;}
7889
GECKO_CFLAGS=$pkg_cv_GECKO_CFLAGS
7890
GECKO_LIBS=$pkg_cv_GECKO_LIBS
7891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7892
$as_echo "yes" >&6; }
7893
{ $as_echo "$as_me:${as_lineno-$LINENO}: Using iceape" >&5
7894
$as_echo "$as_me: Using iceape" >&6;}
7901
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR" >&5
8439
7978
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8440
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7979
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8441
7980
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8443
7982
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8444
as_fn_error "conditional \"AMDEP\" was never defined.
8445
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8447
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8448
as_fn_error "conditional \"am__fastdepCC\" was never defined.
8449
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8451
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8452
as_fn_error "conditional \"am__fastdepCC\" was never defined.
8453
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8455
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8456
as_fn_error "conditional \"am__fastdepCC\" was never defined.
7983
as_fn_error $? "conditional \"AMDEP\" was never defined.
7984
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7986
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7987
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7988
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7990
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7991
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7992
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7994
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7995
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8457
7996
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8459
7998
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8460
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
8461
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8463
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8464
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8465
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8467
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8468
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8469
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8471
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8472
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8473
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8475
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8476
as_fn_error "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
7999
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8000
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8002
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8003
as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8004
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8006
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8007
as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8008
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8010
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8011
as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8012
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8014
if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
8015
as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
8477
8016
Usually this means the macro was only invoked conditionally." "$LINENO" 5
8480
: ${CONFIG_STATUS=./config.status}
8019
: "${CONFIG_STATUS=./config.status}"
8481
8020
ac_write_fail=0
8482
8021
ac_clean_files_save=$ac_clean_files
8483
8022
ac_clean_files="$ac_clean_files $CONFIG_STATUS"