~ubuntu-branches/ubuntu/karmic/pilot-link/karmic

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2007-02-14 23:30:59 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070214233059-znxrekb2mgjr0mgd
Tags: 0.12.2-1
* New upstream release
 - Closes: #410152 "pilot-link: udev rules need updating"
* debian/control: add Build-Depends: libbluetooth2-dev
 - add bluetooth support

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
dnl Initialize maintainer mode
6
6
AM_MAINTAINER_MODE
7
7
 
 
8
dnl Run all of the sane intltool tests
 
9
dnl IT_PROG_INTLTOOL
 
10
 
8
11
AC_PREFIX_DEFAULT(/usr/local)
9
12
 
10
13
dnl ******************************
18
21
dnl ******************************
19
22
PILOT_LINK_VERS=0
20
23
PILOT_LINK_MAJOR=12
21
 
PILOT_LINK_MINOR=1
 
24
PILOT_LINK_MINOR=2
22
25
PILOT_LINK_PATCH=
23
26
 
24
27
AC_SUBST(PILOT_LINK_VERS)
80
83
AC_PROG_CC
81
84
AC_PROG_INSTALL(install ginstall)
82
85
AC_PROG_F77(g77 g77-3.2 g77-3.3 fl32 f77 fort77 xlf f90 xlf90)
83
 
AC_PROG_LIBTOOL
 
86
AM_PROG_LIBTOOL
84
87
AC_PROG_YACC
85
88
 
86
89
 
219
222
dnl ******************************
220
223
if test "x$enable_conduits" != "xno"; then
221
224
        have_png=no
222
 
        msg_png=no
223
225
 
224
226
        AC_ARG_WITH(libpng,
225
227
                [  --with-libpng           Prefix where libpng is installed])
251
253
                        AC_MSG_RESULT($have_png)
252
254
                        if test "$have_png" = yes; then
253
255
                                AC_DEFINE(HAVE_PNG, 1, [Define if we have PNG support])
254
 
                                msg_png=yes
 
256
                                have_png=yes
255
257
                        fi
256
258
                fi
257
259
        fi
260
262
        CPPFLAGS="$save_CPPFLAGS"
261
263
        LDFLAGS="$save_LDFLAGS"
262
264
else
263
 
        msg_png="none"
 
265
        have_png="none"
264
266
        PNG_CFLAGS=
265
267
        PNG_LIBS=
266
268
fi
337
339
AM_CONDITIONAL(WITH_DARWINUSB, test x$usb_type = xdarwin)
338
340
AC_SUBST(usb_libs)
339
341
 
 
342
dnl ******************************
 
343
dnl BlueZ Support
 
344
dnl ******************************
 
345
have_bluez=no
 
346
use_bluez=no
 
347
msg_bluez=no
 
348
 
 
349
PKG_CHECK_MODULES(BLUEZ, bluez, have_bluez=yes, AC_MSG_RESULT(no))
 
350
 
 
351
AC_MSG_CHECKING([for BlueZ bluetooth support])
 
352
AC_ARG_WITH(bluez,
 
353
                AC_HELP_STRING([--with-bluez],
 
354
                        [Enable usage of BlueZ]),,
 
355
                use_bluez=auto)
 
356
if test "x$use_bluez" != "xno"; then
 
357
        if test "x$have_bluez" = xno && test "x$use_bluez" = xyes; then
 
358
                AC_MSG_ERROR([BlueZ explicitly requested but no support found])
 
359
        fi
 
360
        if test "x$have_bluez" = xyes; then
 
361
                AC_DEFINE(HAVE_BLUEZ, 1, [Define if we have BlueZ bluetooth support])
 
362
                AC_MSG_RESULT([enabled])
 
363
                msg_bluez="yes"
 
364
        else
 
365
                AC_MSG_RESULT([not found])
 
366
        fi
 
367
fi
 
368
 
 
369
AM_CONDITIONAL(WITH_BLUEZ, test x$have_bluez = "xyes")
 
370
 
340
371
 
341
372
dnl *********************************
342
373
dnl Check for popt (use internal if needed)
470
501
dnl Perl
471
502
dnl ******************************
472
503
use_perl=false
473
 
msg_perl=no
 
504
#msg_perl=no
474
505
 
475
506
AC_ARG_WITH(perl,    [  --with-perl=perlexec    use Perl                    [[default=no]]],
476
507
        , with_perl=no)
503
534
fi
504
535
 
505
536
AM_CONDITIONAL(WITH_PERL, $use_perl)
506
 
if $use_perl; then
507
 
        msg_perl=yes
508
 
fi
 
537
#if $use_perl; then
 
538
#       msg_perl=yes
 
539
#fi
509
540
AC_SUBST(PERL)
510
541
 
511
542
 
513
544
dnl Java
514
545
dnl ******************************
515
546
use_java=false
516
 
msg_java=no
 
547
# msg_java=no
517
548
 
518
549
AC_ARG_WITH(java,     [  --with-java=jdkbase     use Java                    [[default=no]]],
519
550
        , with_java=no)
539
570
 
540
571
 
541
572
if $use_java; then
542
 
        msg_java=yes
 
573
#       msg_java=yes
543
574
        JAVA_VERSION=`java -version 2>&1 | grep '^java version' | awk -F\" '{print $2}'`
544
575
fi
545
576
 
553
584
dnl ******************************
554
585
dnl TCL
555
586
dnl ******************************
556
 
msg_tcl=no
557
587
PILOT_LINK_PATH_TCLCONFIG
558
588
if $use_tcl; then
559
589
        PILOT_LINK_LOAD_TCLCONFIG
572
602
AC_SUBST(WISH_PROG)
573
603
 
574
604
AM_CONDITIONAL(WITH_TCL, $use_tcl)
575
 
if $use_tcl; then
576
 
        msg_tcl=yes
577
 
fi
578
605
 
579
606
 
580
607
dnl ******************************
581
608
dnl Python
582
609
dnl ******************************
583
610
use_python=false
584
 
msg_python=no
585
 
 
586
611
AC_ARG_WITH(python,   [  --with-python=pybase    use Python,                 [[default=no]]],
587
612
        , with_python=no)
588
613
 
592
617
                AM_CHECK_PYTHON
593
618
        fi
594
619
 
595
 
        if test "x$PYTHON_H" = "x"; then
 
620
        if test "x$PYTHON_H" = "xyes"; then
596
621
                AC_SUBST(PYTHON_VERSION)
597
622
                AC_SUBST(PYTHON_CFLAGS)
598
623
                AC_SUBST(PYTHON_LIBS)
599
624
                AC_SUBST(PYTHON_H)
600
625
 
601
 
                msg_python=yes
 
626
                use_python=true
602
627
        else
603
 
                msg_python=no
604
628
                PYTHON_VERSION=''
605
629
        fi
606
630
fi
613
637
dnl *************************************
614
638
dnl ElectricFence (optional)
615
639
dnl *************************************
616
 
use_efence=false
617
 
msg_efence=no
618
 
 
 
640
use_efence=no
619
641
AC_ARG_WITH(efence, [  --with-efence           use ElectricFence,          [[default=no]]],
620
642
        , with_efence=no)
621
643
 
624
646
        if test "$ac_cv_lib_efence_malloc" = yes; then
625
647
                use_efence=true
626
648
        else
627
 
                use_efence=false
628
649
                echo "Unable to locate ElectricFence malloc() debugging library!"
629
650
                echo "Please download from ftp://ftp.perens.com/pub/ElectricFence/"
630
651
                echo "You may also try omitting --with-efence when running configure."
633
654
        fi
634
655
fi
635
656
 
636
 
if $use_efence; then
637
 
        msg_efence=yes
638
 
else
639
 
        msg_efence=no
640
 
fi
641
 
 
642
657
 
643
658
dnl *************************************
644
659
dnl Runtime debugging
779
794
  Build for host.......... : $host
780
795
  Extra Warnings.......... : $set_compile_warnings
781
796
  Direct USB support...... : $msg_usb
 
797
  BlueZ support........... : $msg_bluez
782
798
  Thread-safe libpisock... : $msg_threads
783
 
  ElectricFence checks.... : $msg_efence
 
799
  ElectricFence checks.... : $use_efence
784
800
  CPPFLAGS................ : $CPPFLAGS
785
801
  CFLAGS.................. : $CFLAGS
786
802
 
797
813
 
798
814
  External Language Support
799
815
  -------------------------.
800
 
  TCL support............. : $msg_tcl   $TCL_VERSION
801
 
  Java support............ : $msg_java  $JAVA_VERSION
802
 
  Python support.......... : $msg_python $PYTHON_VERSION
803
 
  Perl support............ : $msg_perl  $PERL_VERSION
 
816
  TCL support............. : $use_tcl   $TCL_VERSION
 
817
  Java support............ : $use_java  $JAVA_VERSION
 
818
  Python support.......... : $use_python        $PYTHON_VERSION
 
819
  Perl support............ : $use_perl  $PERL_VERSION
804
820
])
805
821
 
806
822
if [[ x"$PL_FROM_CVS" = xyes ]]; then