Diff of /trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 117 by harbaum, Thu Sep 17 07:33:13 2009 UTC revision 246 by harbaum, Tue Jan 19 20:26:37 2010 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated by GNU Autoconf 2.61 for GPXView 0.8.10.  # Generated by GNU Autoconf 2.61 for GPXView 0.9.2.
4  #  #
5  # Report bugs to <till@harbaum.org>.  # Report bugs to <till@harbaum.org>.
6  #  #
# Line 574  SHELL=${CONFIG_SHELL-/bin/sh} Line 574  SHELL=${CONFIG_SHELL-/bin/sh}
574  # Identity of this package.  # Identity of this package.
575  PACKAGE_NAME='GPXView'  PACKAGE_NAME='GPXView'
576  PACKAGE_TARNAME='gpxview'  PACKAGE_TARNAME='gpxview'
577  PACKAGE_VERSION='0.8.10'  PACKAGE_VERSION='0.9.2'
578  PACKAGE_STRING='GPXView 0.8.10'  PACKAGE_STRING='GPXView 0.9.2'
579  PACKAGE_BUGREPORT='till@harbaum.org'  PACKAGE_BUGREPORT='till@harbaum.org'
580    
581  ac_unique_file="src/main.c"  ac_unique_file="src/main.c"
582    # Factoring default headers for most tests.
583    ac_includes_default="\
584    #include <stdio.h>
585    #ifdef HAVE_SYS_TYPES_H
586    # include <sys/types.h>
587    #endif
588    #ifdef HAVE_SYS_STAT_H
589    # include <sys/stat.h>
590    #endif
591    #ifdef STDC_HEADERS
592    # include <stdlib.h>
593    # include <stddef.h>
594    #else
595    # ifdef HAVE_STDLIB_H
596    #  include <stdlib.h>
597    # endif
598    #endif
599    #ifdef HAVE_STRING_H
600    # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601    #  include <memory.h>
602    # endif
603    # include <string.h>
604    #endif
605    #ifdef HAVE_STRINGS_H
606    # include <strings.h>
607    #endif
608    #ifdef HAVE_INTTYPES_H
609    # include <inttypes.h>
610    #endif
611    #ifdef HAVE_STDINT_H
612    # include <stdint.h>
613    #endif
614    #ifdef HAVE_UNISTD_H
615    # include <unistd.h>
616    #endif"
617    
618  ac_subst_vars='SHELL  ac_subst_vars='SHELL
619  PATH_SEPARATOR  PATH_SEPARATOR
620  PACKAGE_NAME  PACKAGE_NAME
# Line 634  gnome_vfs_module_CFLAGS Line 670  gnome_vfs_module_CFLAGS
670  gnome_vfs_module_LIBS  gnome_vfs_module_LIBS
671  libxml2_CFLAGS  libxml2_CFLAGS
672  libxml2_LIBS  libxml2_LIBS
673    libcurl_CFLAGS
674    libcurl_LIBS
675    CPP
676    GREP
677    EGREP
678  libsoup24_CFLAGS  libsoup24_CFLAGS
679  libsoup24_LIBS  libsoup24_LIBS
680  libsoup22_CFLAGS  libsoup22_CFLAGS
# Line 656  gpsbt_CFLAGS Line 697  gpsbt_CFLAGS
697  gpsbt_LIBS  gpsbt_LIBS
698  liblocation_CFLAGS  liblocation_CFLAGS
699  liblocation_LIBS  liblocation_LIBS
700    MAEMO_VERSION_MAJOR
701  gtk_CFLAGS  gtk_CFLAGS
702  gtk_LIBS  gtk_LIBS
703  gnome2_CFLAGS  gnome2_CFLAGS
# Line 679  gnome_vfs_module_CFLAGS Line 721  gnome_vfs_module_CFLAGS
721  gnome_vfs_module_LIBS  gnome_vfs_module_LIBS
722  libxml2_CFLAGS  libxml2_CFLAGS
723  libxml2_LIBS  libxml2_LIBS
724    libcurl_CFLAGS
725    libcurl_LIBS
726    CPP
727  libsoup24_CFLAGS  libsoup24_CFLAGS
728  libsoup24_LIBS  libsoup24_LIBS
729  libsoup22_CFLAGS  libsoup22_CFLAGS
# Line 1207  if test "$ac_init_help" = "long"; then Line 1252  if test "$ac_init_help" = "long"; then
1252    # Omit some internal or obsolete options to make the list less imposing.    # Omit some internal or obsolete options to make the list less imposing.
1253    # This message is too long to be a string in the A/UX 3.1 sh.    # This message is too long to be a string in the A/UX 3.1 sh.
1254    cat <<_ACEOF    cat <<_ACEOF
1255  \`configure' configures GPXView 0.8.10 to adapt to many kinds of systems.  \`configure' configures GPXView 0.9.2 to adapt to many kinds of systems.
1256    
1257  Usage: $0 [OPTION]... [VAR=VALUE]...  Usage: $0 [OPTION]... [VAR=VALUE]...
1258    
# Line 1268  fi Line 1313  fi
1313    
1314  if test -n "$ac_init_help"; then  if test -n "$ac_init_help"; then
1315    case $ac_init_help in    case $ac_init_help in
1316       short | recursive ) echo "Configuration of GPXView 0.8.10:";;       short | recursive ) echo "Configuration of GPXView 0.9.2:";;
1317     esac     esac
1318    cat <<\_ACEOF    cat <<\_ACEOF
1319    
# Line 1289  Some influential environment variables: Line 1334  Some influential environment variables:
1334                C compiler flags for libxml2, overriding pkg-config                C compiler flags for libxml2, overriding pkg-config
1335    libxml2_LIBS    libxml2_LIBS
1336                linker flags for libxml2, overriding pkg-config                linker flags for libxml2, overriding pkg-config
1337      libcurl_CFLAGS
1338                  C compiler flags for libcurl, overriding pkg-config
1339      libcurl_LIBS
1340                  linker flags for libcurl, overriding pkg-config
1341      CPP         C preprocessor
1342    libsoup24_CFLAGS    libsoup24_CFLAGS
1343                C compiler flags for libsoup24, overriding pkg-config                C compiler flags for libsoup24, overriding pkg-config
1344    libsoup24_LIBS    libsoup24_LIBS
# Line 1399  fi Line 1449  fi
1449  test -n "$ac_init_help" && exit $ac_status  test -n "$ac_init_help" && exit $ac_status
1450  if $ac_init_version; then  if $ac_init_version; then
1451    cat <<\_ACEOF    cat <<\_ACEOF
1452  GPXView configure 0.8.10  GPXView configure 0.9.2
1453  generated by GNU Autoconf 2.61  generated by GNU Autoconf 2.61
1454    
1455  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# Line 1413  cat >config.log <<_ACEOF Line 1463  cat >config.log <<_ACEOF
1463  This file contains any messages produced by compilers while  This file contains any messages produced by compilers while
1464  running configure, to aid debugging if configure makes a mistake.  running configure, to aid debugging if configure makes a mistake.
1465    
1466  It was created by GPXView $as_me 0.8.10, which was  It was created by GPXView $as_me 0.9.2, which was
1467  generated by GNU Autoconf 2.61.  Invocation command line was  generated by GNU Autoconf 2.61.  Invocation command line was
1468    
1469    $ $0 $@    $ $0 $@
# Line 3143  echo "${ECHO_T}yes" >&6; } Line 3193  echo "${ECHO_T}yes" >&6; }
3193  fi  fi
3194  CFLAGS="$CFLAGS $libxml2_CFLAGS"  CFLAGS="$CFLAGS $libxml2_CFLAGS"
3195  LIBS="$LIBS $libxml2_LIBS"  LIBS="$LIBS $libxml2_LIBS"
3196  # check for libsoup  
3197    # check for libcurl
3198    
3199  pkg_failed=no  pkg_failed=no
3200  { echo "$as_me:$LINENO: checking for libsoup24" >&5  { echo "$as_me:$LINENO: checking for libcurl" >&5
3201  echo $ECHO_N "checking for libsoup24... $ECHO_C" >&6; }  echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
3202    
3203  if test -n "$PKG_CONFIG"; then  if test -n "$PKG_CONFIG"; then
3204      if test -n "$libsoup24_CFLAGS"; then      if test -n "$libcurl_CFLAGS"; then
3205          pkg_cv_libsoup24_CFLAGS="$libsoup24_CFLAGS"          pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
3206      else      else
3207          if test -n "$PKG_CONFIG" && \          if test -n "$PKG_CONFIG" && \
3208      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
3209    ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5    ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
3210    ac_status=$?    ac_status=$?
3211    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212    (exit $ac_status); }; then    (exit $ac_status); }; then
3213    pkg_cv_libsoup24_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`    pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
3214  else  else
3215    pkg_failed=yes    pkg_failed=yes
3216  fi  fi
# Line 3168  else Line 3219  else
3219          pkg_failed=untried          pkg_failed=untried
3220  fi  fi
3221  if test -n "$PKG_CONFIG"; then  if test -n "$PKG_CONFIG"; then
3222      if test -n "$libsoup24_LIBS"; then      if test -n "$libcurl_LIBS"; then
3223          pkg_cv_libsoup24_LIBS="$libsoup24_LIBS"          pkg_cv_libcurl_LIBS="$libcurl_LIBS"
3224      else      else
3225          if test -n "$PKG_CONFIG" && \          if test -n "$PKG_CONFIG" && \
3226      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
3227    ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5    ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
3228    ac_status=$?    ac_status=$?
3229    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230    (exit $ac_status); }; then    (exit $ac_status); }; then
3231    pkg_cv_libsoup24_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`    pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
3232  else  else
3233    pkg_failed=yes    pkg_failed=yes
3234  fi  fi
# Line 3196  else Line 3247  else
3247          _pkg_short_errors_supported=no          _pkg_short_errors_supported=no
3248  fi  fi
3249          if test $_pkg_short_errors_supported = yes; then          if test $_pkg_short_errors_supported = yes; then
3250                  libsoup24_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`                  libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
3251          else          else
3252                  libsoup24_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`                  libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
3253          fi          fi
3254          # Put the nasty error message in config.log where it belongs          # Put the nasty error message in config.log where it belongs
3255          echo "$libsoup24_PKG_ERRORS" >&5          echo "$libcurl_PKG_ERRORS" >&5
3256    
3257          { echo "$as_me:$LINENO: result: no" >&5          { echo "$as_me:$LINENO: result: no" >&5
3258  echo "${ECHO_T}no" >&6; }  echo "${ECHO_T}no" >&6; }
3259                    { { echo "$as_me:$LINENO: error: libcurl missing" >&5
3260    echo "$as_me: error: libcurl missing" >&2;}
3261       { (exit 1); exit 1; }; }
3262    elif test $pkg_failed = untried; then
3263            { { echo "$as_me:$LINENO: error: libcurl missing" >&5
3264    echo "$as_me: error: libcurl missing" >&2;}
3265       { (exit 1); exit 1; }; }
3266    else
3267            libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
3268            libcurl_LIBS=$pkg_cv_libcurl_LIBS
3269            { echo "$as_me:$LINENO: result: yes" >&5
3270    echo "${ECHO_T}yes" >&6; }
3271            :
3272    fi
3273    CFLAGS="$CFLAGS $libcurl_CFLAGS"
3274    LIBS="$LIBS $libcurl_LIBS"
3275    
3276    # check for libespeak (consider moving this to maemo5)
3277    
3278  pkg_failed=no  ac_ext=c
3279  { echo "$as_me:$LINENO: checking for libsoup22" >&5  ac_cpp='$CPP $CPPFLAGS'
3280  echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283    { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3284    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3285    # On Suns, sometimes $CPP names a directory.
3286    if test -n "$CPP" && test -d "$CPP"; then
3287      CPP=
3288    fi
3289    if test -z "$CPP"; then
3290      if test "${ac_cv_prog_CPP+set}" = set; then
3291      echo $ECHO_N "(cached) $ECHO_C" >&6
3292    else
3293          # Double quotes because CPP needs to be expanded
3294        for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3295        do
3296          ac_preproc_ok=false
3297    for ac_c_preproc_warn_flag in '' yes
3298    do
3299      # Use a header file that comes with gcc, so configuring glibc
3300      # with a fresh cross-compiler works.
3301      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3302      # <limits.h> exists even on freestanding compilers.
3303      # On the NeXT, cc -E runs the code through the compiler's parser,
3304      # not just through cpp. "Syntax error" is here to catch this case.
3305      cat >conftest.$ac_ext <<_ACEOF
3306    /* confdefs.h.  */
3307    _ACEOF
3308    cat confdefs.h >>conftest.$ac_ext
3309    cat >>conftest.$ac_ext <<_ACEOF
3310    /* end confdefs.h.  */
3311    #ifdef __STDC__
3312    # include <limits.h>
3313    #else
3314    # include <assert.h>
3315    #endif
3316                         Syntax error
3317    _ACEOF
3318    if { (ac_try="$ac_cpp conftest.$ac_ext"
3319    case "(($ac_try" in
3320      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321      *) ac_try_echo=$ac_try;;
3322    esac
3323    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325      ac_status=$?
3326      grep -v '^ *+' conftest.er1 >conftest.err
3327      rm -f conftest.er1
3328      cat conftest.err >&5
3329      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330      (exit $ac_status); } >/dev/null && {
3331             test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3332             test ! -s conftest.err
3333           }; then
3334      :
3335    else
3336      echo "$as_me: failed program was:" >&5
3337    sed 's/^/| /' conftest.$ac_ext >&5
3338    
3339  if test -n "$PKG_CONFIG"; then    # Broken: fails on valid input.
3340      if test -n "$libsoup22_CFLAGS"; then  continue
3341          pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"  fi
3342      else  
3343          if test -n "$PKG_CONFIG" && \  rm -f conftest.err conftest.$ac_ext
3344      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5  
3345    ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5    # OK, works on sane cases.  Now check whether nonexistent headers
3346      # can be detected and how.
3347      cat >conftest.$ac_ext <<_ACEOF
3348    /* confdefs.h.  */
3349    _ACEOF
3350    cat confdefs.h >>conftest.$ac_ext
3351    cat >>conftest.$ac_ext <<_ACEOF
3352    /* end confdefs.h.  */
3353    #include <ac_nonexistent.h>
3354    _ACEOF
3355    if { (ac_try="$ac_cpp conftest.$ac_ext"
3356    case "(($ac_try" in
3357      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358      *) ac_try_echo=$ac_try;;
3359    esac
3360    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362    ac_status=$?    ac_status=$?
3363      grep -v '^ *+' conftest.er1 >conftest.err
3364      rm -f conftest.er1
3365      cat conftest.err >&5
3366    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367    (exit $ac_status); }; then    (exit $ac_status); } >/dev/null && {
3368    pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3369             test ! -s conftest.err
3370           }; then
3371      # Broken: success on invalid input.
3372    continue
3373  else  else
3374    pkg_failed=yes    echo "$as_me: failed program was:" >&5
3375    sed 's/^/| /' conftest.$ac_ext >&5
3376    
3377      # Passes both tests.
3378    ac_preproc_ok=:
3379    break
3380  fi  fi
3381      fi  
3382    rm -f conftest.err conftest.$ac_ext
3383    
3384    done
3385    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3386    rm -f conftest.err conftest.$ac_ext
3387    if $ac_preproc_ok; then
3388      break
3389    fi
3390    
3391        done
3392        ac_cv_prog_CPP=$CPP
3393    
3394    fi
3395      CPP=$ac_cv_prog_CPP
3396  else  else
3397          pkg_failed=untried    ac_cv_prog_CPP=$CPP
3398  fi  fi
3399  if test -n "$PKG_CONFIG"; then  { echo "$as_me:$LINENO: result: $CPP" >&5
3400      if test -n "$libsoup22_LIBS"; then  echo "${ECHO_T}$CPP" >&6; }
3401          pkg_cv_libsoup22_LIBS="$libsoup22_LIBS"  ac_preproc_ok=false
3402      else  for ac_c_preproc_warn_flag in '' yes
3403          if test -n "$PKG_CONFIG" && \  do
3404      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5    # Use a header file that comes with gcc, so configuring glibc
3405    ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5    # with a fresh cross-compiler works.
3406      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3407      # <limits.h> exists even on freestanding compilers.
3408      # On the NeXT, cc -E runs the code through the compiler's parser,
3409      # not just through cpp. "Syntax error" is here to catch this case.
3410      cat >conftest.$ac_ext <<_ACEOF
3411    /* confdefs.h.  */
3412    _ACEOF
3413    cat confdefs.h >>conftest.$ac_ext
3414    cat >>conftest.$ac_ext <<_ACEOF
3415    /* end confdefs.h.  */
3416    #ifdef __STDC__
3417    # include <limits.h>
3418    #else
3419    # include <assert.h>
3420    #endif
3421                         Syntax error
3422    _ACEOF
3423    if { (ac_try="$ac_cpp conftest.$ac_ext"
3424    case "(($ac_try" in
3425      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426      *) ac_try_echo=$ac_try;;
3427    esac
3428    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430    ac_status=$?    ac_status=$?
3431      grep -v '^ *+' conftest.er1 >conftest.err
3432      rm -f conftest.er1
3433      cat conftest.err >&5
3434    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435    (exit $ac_status); }; then    (exit $ac_status); } >/dev/null && {
3436    pkg_cv_libsoup22_LIBS=`$PKG_CONFIG --libs "libsoup-2.2" 2>/dev/null`           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3437             test ! -s conftest.err
3438           }; then
3439      :
3440  else  else
3441    pkg_failed=yes    echo "$as_me: failed program was:" >&5
3442    sed 's/^/| /' conftest.$ac_ext >&5
3443    
3444      # Broken: fails on valid input.
3445    continue
3446  fi  fi
3447      fi  
3448    rm -f conftest.err conftest.$ac_ext
3449    
3450      # OK, works on sane cases.  Now check whether nonexistent headers
3451      # can be detected and how.
3452      cat >conftest.$ac_ext <<_ACEOF
3453    /* confdefs.h.  */
3454    _ACEOF
3455    cat confdefs.h >>conftest.$ac_ext
3456    cat >>conftest.$ac_ext <<_ACEOF
3457    /* end confdefs.h.  */
3458    #include <ac_nonexistent.h>
3459    _ACEOF
3460    if { (ac_try="$ac_cpp conftest.$ac_ext"
3461    case "(($ac_try" in
3462      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463      *) ac_try_echo=$ac_try;;
3464    esac
3465    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3467      ac_status=$?
3468      grep -v '^ *+' conftest.er1 >conftest.err
3469      rm -f conftest.er1
3470      cat conftest.err >&5
3471      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472      (exit $ac_status); } >/dev/null && {
3473             test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3474             test ! -s conftest.err
3475           }; then
3476      # Broken: success on invalid input.
3477    continue
3478  else  else
3479          pkg_failed=untried    echo "$as_me: failed program was:" >&5
3480    sed 's/^/| /' conftest.$ac_ext >&5
3481    
3482      # Passes both tests.
3483    ac_preproc_ok=:
3484    break
3485  fi  fi
3486    
3487    rm -f conftest.err conftest.$ac_ext
3488    
3489    done
3490    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491    rm -f conftest.err conftest.$ac_ext
3492    if $ac_preproc_ok; then
3493      :
3494    else
3495      { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3496    See \`config.log' for more details." >&5
3497    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3498    See \`config.log' for more details." >&2;}
3499       { (exit 1); exit 1; }; }
3500    fi
3501    
3502    ac_ext=c
3503    ac_cpp='$CPP $CPPFLAGS'
3504    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507    
 if test $pkg_failed = yes; then  
3508    
3509  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then  { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3510          _pkg_short_errors_supported=yes  echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3511    if test "${ac_cv_path_GREP+set}" = set; then
3512      echo $ECHO_N "(cached) $ECHO_C" >&6
3513  else  else
3514          _pkg_short_errors_supported=no    # Extract the first word of "grep ggrep" to use in msg output
3515  fi  if test -z "$GREP"; then
3516          if test $_pkg_short_errors_supported = yes; then  set dummy grep ggrep; ac_prog_name=$2
3517                  libsoup22_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.2"`  if test "${ac_cv_path_GREP+set}" = set; then
3518          else    echo $ECHO_N "(cached) $ECHO_C" >&6
3519                  libsoup22_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.2"`  else
3520          fi    ac_path_GREP_found=false
3521          # Put the nasty error message in config.log where it belongs  # Loop through the user's path and test for each of PROGNAME-LIST
3522          echo "$libsoup22_PKG_ERRORS" >&5  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523    for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3524    do
3525      IFS=$as_save_IFS
3526      test -z "$as_dir" && as_dir=.
3527      for ac_prog in grep ggrep; do
3528      for ac_exec_ext in '' $ac_executable_extensions; do
3529        ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3530        { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3531        # Check for GNU ac_path_GREP and select it if it is found.
3532      # Check for GNU $ac_path_GREP
3533    case `"$ac_path_GREP" --version 2>&1` in
3534    *GNU*)
3535      ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3536    *)
3537      ac_count=0
3538      echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3539      while :
3540      do
3541        cat "conftest.in" "conftest.in" >"conftest.tmp"
3542        mv "conftest.tmp" "conftest.in"
3543        cp "conftest.in" "conftest.nl"
3544        echo 'GREP' >> "conftest.nl"
3545        "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3546        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3547        ac_count=`expr $ac_count + 1`
3548        if test $ac_count -gt ${ac_path_GREP_max-0}; then
3549          # Best one so far, save it but keep looking for a better one
3550          ac_cv_path_GREP="$ac_path_GREP"
3551          ac_path_GREP_max=$ac_count
3552        fi
3553        # 10*(2^10) chars as input seems more than enough
3554        test $ac_count -gt 10 && break
3555      done
3556      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3557    esac
3558    
         { echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6; }  
3559    
3560      { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5      $ac_path_GREP_found && break 3
3561  echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}    done
3562    done
3563    
3564  elif test $pkg_failed = untried; then  done
3565    IFS=$as_save_IFS
3566    
     { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5  
 echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}  
3567    
3568  else  fi
         libsoup22_CFLAGS=$pkg_cv_libsoup22_CFLAGS  
         libsoup22_LIBS=$pkg_cv_libsoup22_LIBS  
         { echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6; }  
3569    
3570      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"  GREP="$ac_cv_path_GREP"
3571      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"  if test -z "$GREP"; then
3572      LIBS="$LIBS $libsoup22_LIBS"    { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3573    echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3574       { (exit 1); exit 1; }; }
3575    fi
3576    
3577    else
3578      ac_cv_path_GREP=$GREP
3579  fi  fi
3580    
 elif test $pkg_failed = untried; then  
3581    
3582    fi
3583    { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3584    echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3585     GREP="$ac_cv_path_GREP"
3586    
 pkg_failed=no  
 { echo "$as_me:$LINENO: checking for libsoup22" >&5  
 echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }  
3587    
3588  if test -n "$PKG_CONFIG"; then  { echo "$as_me:$LINENO: checking for egrep" >&5
3589      if test -n "$libsoup22_CFLAGS"; then  echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3590          pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"  if test "${ac_cv_path_EGREP+set}" = set; then
3591      else    echo $ECHO_N "(cached) $ECHO_C" >&6
         if test -n "$PKG_CONFIG" && \  
     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5  
   ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
   pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`  
3592  else  else
3593    pkg_failed=yes    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3594  fi     then ac_cv_path_EGREP="$GREP -E"
3595      fi     else
3596         # Extract the first word of "egrep" to use in msg output
3597    if test -z "$EGREP"; then
3598    set dummy egrep; ac_prog_name=$2
3599    if test "${ac_cv_path_EGREP+set}" = set; then
3600      echo $ECHO_N "(cached) $ECHO_C" >&6
3601  else  else
3602          pkg_failed=untried    ac_path_EGREP_found=false
3603  fi  # Loop through the user's path and test for each of PROGNAME-LIST
3604  if test -n "$PKG_CONFIG"; then  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605      if test -n "$libsoup22_LIBS"; then  for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3606    do
3607      IFS=$as_save_IFS
3608      test -z "$as_dir" && as_dir=.
3609      for ac_prog in egrep; do
3610      for ac_exec_ext in '' $ac_executable_extensions; do
3611        ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3612        { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3613        # Check for GNU ac_path_EGREP and select it if it is found.
3614      # Check for GNU $ac_path_EGREP
3615    case `"$ac_path_EGREP" --version 2>&1` in
3616    *GNU*)
3617      ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3618    *)
3619      ac_count=0
3620      echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3621      while :
3622      do
3623        cat "conftest.in" "conftest.in" >"conftest.tmp"
3624        mv "conftest.tmp" "conftest.in"
3625        cp "conftest.in" "conftest.nl"
3626        echo 'EGREP' >> "conftest.nl"
3627        "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3628        diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3629        ac_count=`expr $ac_count + 1`
3630        if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3631          # Best one so far, save it but keep looking for a better one
3632          ac_cv_path_EGREP="$ac_path_EGREP"
3633          ac_path_EGREP_max=$ac_count
3634        fi
3635        # 10*(2^10) chars as input seems more than enough
3636        test $ac_count -gt 10 && break
3637      done
3638      rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3639    esac
3640    
3641    
3642        $ac_path_EGREP_found && break 3
3643      done
3644    done
3645    
3646    done
3647    IFS=$as_save_IFS
3648    
3649    
3650    fi
3651    
3652    EGREP="$ac_cv_path_EGREP"
3653    if test -z "$EGREP"; then
3654      { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3655    echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3656       { (exit 1); exit 1; }; }
3657    fi
3658    
3659    else
3660      ac_cv_path_EGREP=$EGREP
3661    fi
3662    
3663    
3664       fi
3665    fi
3666    { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3667    echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3668     EGREP="$ac_cv_path_EGREP"
3669    
3670    
3671    { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3672    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3673    if test "${ac_cv_header_stdc+set}" = set; then
3674      echo $ECHO_N "(cached) $ECHO_C" >&6
3675    else
3676      cat >conftest.$ac_ext <<_ACEOF
3677    /* confdefs.h.  */
3678    _ACEOF
3679    cat confdefs.h >>conftest.$ac_ext
3680    cat >>conftest.$ac_ext <<_ACEOF
3681    /* end confdefs.h.  */
3682    #include <stdlib.h>
3683    #include <stdarg.h>
3684    #include <string.h>
3685    #include <float.h>
3686    
3687    int
3688    main ()
3689    {
3690    
3691      ;
3692      return 0;
3693    }
3694    _ACEOF
3695    rm -f conftest.$ac_objext
3696    if { (ac_try="$ac_compile"
3697    case "(($ac_try" in
3698      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699      *) ac_try_echo=$ac_try;;
3700    esac
3701    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702      (eval "$ac_compile") 2>conftest.er1
3703      ac_status=$?
3704      grep -v '^ *+' conftest.er1 >conftest.err
3705      rm -f conftest.er1
3706      cat conftest.err >&5
3707      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708      (exit $ac_status); } && {
3709             test -z "$ac_c_werror_flag" ||
3710             test ! -s conftest.err
3711           } && test -s conftest.$ac_objext; then
3712      ac_cv_header_stdc=yes
3713    else
3714      echo "$as_me: failed program was:" >&5
3715    sed 's/^/| /' conftest.$ac_ext >&5
3716    
3717            ac_cv_header_stdc=no
3718    fi
3719    
3720    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721    
3722    if test $ac_cv_header_stdc = yes; then
3723      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3724      cat >conftest.$ac_ext <<_ACEOF
3725    /* confdefs.h.  */
3726    _ACEOF
3727    cat confdefs.h >>conftest.$ac_ext
3728    cat >>conftest.$ac_ext <<_ACEOF
3729    /* end confdefs.h.  */
3730    #include <string.h>
3731    
3732    _ACEOF
3733    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734      $EGREP "memchr" >/dev/null 2>&1; then
3735      :
3736    else
3737      ac_cv_header_stdc=no
3738    fi
3739    rm -f conftest*
3740    
3741    fi
3742    
3743    if test $ac_cv_header_stdc = yes; then
3744      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3745      cat >conftest.$ac_ext <<_ACEOF
3746    /* confdefs.h.  */
3747    _ACEOF
3748    cat confdefs.h >>conftest.$ac_ext
3749    cat >>conftest.$ac_ext <<_ACEOF
3750    /* end confdefs.h.  */
3751    #include <stdlib.h>
3752    
3753    _ACEOF
3754    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755      $EGREP "free" >/dev/null 2>&1; then
3756      :
3757    else
3758      ac_cv_header_stdc=no
3759    fi
3760    rm -f conftest*
3761    
3762    fi
3763    
3764    if test $ac_cv_header_stdc = yes; then
3765      # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3766      if test "$cross_compiling" = yes; then
3767      :
3768    else
3769      cat >conftest.$ac_ext <<_ACEOF
3770    /* confdefs.h.  */
3771    _ACEOF
3772    cat confdefs.h >>conftest.$ac_ext
3773    cat >>conftest.$ac_ext <<_ACEOF
3774    /* end confdefs.h.  */
3775    #include <ctype.h>
3776    #include <stdlib.h>
3777    #if ((' ' & 0x0FF) == 0x020)
3778    # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3779    # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3780    #else
3781    # define ISLOWER(c) \
3782                       (('a' <= (c) && (c) <= 'i') \
3783                         || ('j' <= (c) && (c) <= 'r') \
3784                         || ('s' <= (c) && (c) <= 'z'))
3785    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3786    #endif
3787    
3788    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3789    int
3790    main ()
3791    {
3792      int i;
3793      for (i = 0; i < 256; i++)
3794        if (XOR (islower (i), ISLOWER (i))
3795            || toupper (i) != TOUPPER (i))
3796          return 2;
3797      return 0;
3798    }
3799    _ACEOF
3800    rm -f conftest$ac_exeext
3801    if { (ac_try="$ac_link"
3802    case "(($ac_try" in
3803      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804      *) ac_try_echo=$ac_try;;
3805    esac
3806    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807      (eval "$ac_link") 2>&5
3808      ac_status=$?
3809      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3811      { (case "(($ac_try" in
3812      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813      *) ac_try_echo=$ac_try;;
3814    esac
3815    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816      (eval "$ac_try") 2>&5
3817      ac_status=$?
3818      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819      (exit $ac_status); }; }; then
3820      :
3821    else
3822      echo "$as_me: program exited with status $ac_status" >&5
3823    echo "$as_me: failed program was:" >&5
3824    sed 's/^/| /' conftest.$ac_ext >&5
3825    
3826    ( exit $ac_status )
3827    ac_cv_header_stdc=no
3828    fi
3829    rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3830    fi
3831    
3832    
3833    fi
3834    fi
3835    { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3836    echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3837    if test $ac_cv_header_stdc = yes; then
3838    
3839    cat >>confdefs.h <<\_ACEOF
3840    #define STDC_HEADERS 1
3841    _ACEOF
3842    
3843    fi
3844    
3845    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3846    
3847    
3848    
3849    
3850    
3851    
3852    
3853    
3854    
3855    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3856                      inttypes.h stdint.h unistd.h
3857    do
3858    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3859    { echo "$as_me:$LINENO: checking for $ac_header" >&5
3860    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3861    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3862      echo $ECHO_N "(cached) $ECHO_C" >&6
3863    else
3864      cat >conftest.$ac_ext <<_ACEOF
3865    /* confdefs.h.  */
3866    _ACEOF
3867    cat confdefs.h >>conftest.$ac_ext
3868    cat >>conftest.$ac_ext <<_ACEOF
3869    /* end confdefs.h.  */
3870    $ac_includes_default
3871    
3872    #include <$ac_header>
3873    _ACEOF
3874    rm -f conftest.$ac_objext
3875    if { (ac_try="$ac_compile"
3876    case "(($ac_try" in
3877      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878      *) ac_try_echo=$ac_try;;
3879    esac
3880    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881      (eval "$ac_compile") 2>conftest.er1
3882      ac_status=$?
3883      grep -v '^ *+' conftest.er1 >conftest.err
3884      rm -f conftest.er1
3885      cat conftest.err >&5
3886      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887      (exit $ac_status); } && {
3888             test -z "$ac_c_werror_flag" ||
3889             test ! -s conftest.err
3890           } && test -s conftest.$ac_objext; then
3891      eval "$as_ac_Header=yes"
3892    else
3893      echo "$as_me: failed program was:" >&5
3894    sed 's/^/| /' conftest.$ac_ext >&5
3895    
3896            eval "$as_ac_Header=no"
3897    fi
3898    
3899    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900    fi
3901    ac_res=`eval echo '${'$as_ac_Header'}'`
3902                   { echo "$as_me:$LINENO: result: $ac_res" >&5
3903    echo "${ECHO_T}$ac_res" >&6; }
3904    if test `eval echo '${'$as_ac_Header'}'` = yes; then
3905      cat >>confdefs.h <<_ACEOF
3906    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3907    _ACEOF
3908    
3909    fi
3910    
3911    done
3912    
3913    
3914    
3915    for ac_header in espeak/speak_lib.h
3916    do
3917    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3918    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3919      { echo "$as_me:$LINENO: checking for $ac_header" >&5
3920    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3921    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3922      echo $ECHO_N "(cached) $ECHO_C" >&6
3923    fi
3924    ac_res=`eval echo '${'$as_ac_Header'}'`
3925                   { echo "$as_me:$LINENO: result: $ac_res" >&5
3926    echo "${ECHO_T}$ac_res" >&6; }
3927    else
3928      # Is the header compilable?
3929    { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3930    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3931    cat >conftest.$ac_ext <<_ACEOF
3932    /* confdefs.h.  */
3933    _ACEOF
3934    cat confdefs.h >>conftest.$ac_ext
3935    cat >>conftest.$ac_ext <<_ACEOF
3936    /* end confdefs.h.  */
3937    $ac_includes_default
3938    #include <$ac_header>
3939    _ACEOF
3940    rm -f conftest.$ac_objext
3941    if { (ac_try="$ac_compile"
3942    case "(($ac_try" in
3943      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944      *) ac_try_echo=$ac_try;;
3945    esac
3946    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947      (eval "$ac_compile") 2>conftest.er1
3948      ac_status=$?
3949      grep -v '^ *+' conftest.er1 >conftest.err
3950      rm -f conftest.er1
3951      cat conftest.err >&5
3952      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953      (exit $ac_status); } && {
3954             test -z "$ac_c_werror_flag" ||
3955             test ! -s conftest.err
3956           } && test -s conftest.$ac_objext; then
3957      ac_header_compiler=yes
3958    else
3959      echo "$as_me: failed program was:" >&5
3960    sed 's/^/| /' conftest.$ac_ext >&5
3961    
3962            ac_header_compiler=no
3963    fi
3964    
3965    rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966    { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3967    echo "${ECHO_T}$ac_header_compiler" >&6; }
3968    
3969    # Is the header present?
3970    { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3971    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3972    cat >conftest.$ac_ext <<_ACEOF
3973    /* confdefs.h.  */
3974    _ACEOF
3975    cat confdefs.h >>conftest.$ac_ext
3976    cat >>conftest.$ac_ext <<_ACEOF
3977    /* end confdefs.h.  */
3978    #include <$ac_header>
3979    _ACEOF
3980    if { (ac_try="$ac_cpp conftest.$ac_ext"
3981    case "(($ac_try" in
3982      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983      *) ac_try_echo=$ac_try;;
3984    esac
3985    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986      (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3987      ac_status=$?
3988      grep -v '^ *+' conftest.er1 >conftest.err
3989      rm -f conftest.er1
3990      cat conftest.err >&5
3991      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992      (exit $ac_status); } >/dev/null && {
3993             test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3994             test ! -s conftest.err
3995           }; then
3996      ac_header_preproc=yes
3997    else
3998      echo "$as_me: failed program was:" >&5
3999    sed 's/^/| /' conftest.$ac_ext >&5
4000    
4001      ac_header_preproc=no
4002    fi
4003    
4004    rm -f conftest.err conftest.$ac_ext
4005    { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4006    echo "${ECHO_T}$ac_header_preproc" >&6; }
4007    
4008    # So?  What about this header?
4009    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4010      yes:no: )
4011        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4012    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4013        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4014    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4015        ac_header_preproc=yes
4016        ;;
4017      no:yes:* )
4018        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4019    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4020        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4021    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4022        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4023    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4024        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4025    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4026        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4027    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4028        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4029    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4030        ( cat <<\_ASBOX
4031    ## ------------------------------- ##
4032    ## Report this to till@harbaum.org ##
4033    ## ------------------------------- ##
4034    _ASBOX
4035         ) | sed "s/^/$as_me: WARNING:     /" >&2
4036        ;;
4037    esac
4038    { echo "$as_me:$LINENO: checking for $ac_header" >&5
4039    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4040    if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4041      echo $ECHO_N "(cached) $ECHO_C" >&6
4042    else
4043      eval "$as_ac_Header=\$ac_header_preproc"
4044    fi
4045    ac_res=`eval echo '${'$as_ac_Header'}'`
4046                   { echo "$as_me:$LINENO: result: $ac_res" >&5
4047    echo "${ECHO_T}$ac_res" >&6; }
4048    
4049    fi
4050    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4051      cat >>confdefs.h <<_ACEOF
4052    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4053    _ACEOF
4054    
4055    CFLAGS="$CFLAGS -DESPEAK"
4056    LIBS="$LIBS -lespeak"
4057    
4058    fi
4059    
4060    done
4061    
4062    
4063    # check for libsoup
4064    
4065    pkg_failed=no
4066    { echo "$as_me:$LINENO: checking for libsoup24" >&5
4067    echo $ECHO_N "checking for libsoup24... $ECHO_C" >&6; }
4068    
4069    if test -n "$PKG_CONFIG"; then
4070        if test -n "$libsoup24_CFLAGS"; then
4071            pkg_cv_libsoup24_CFLAGS="$libsoup24_CFLAGS"
4072        else
4073            if test -n "$PKG_CONFIG" && \
4074        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
4075      ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
4076      ac_status=$?
4077      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078      (exit $ac_status); }; then
4079      pkg_cv_libsoup24_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
4080    else
4081      pkg_failed=yes
4082    fi
4083        fi
4084    else
4085            pkg_failed=untried
4086    fi
4087    if test -n "$PKG_CONFIG"; then
4088        if test -n "$libsoup24_LIBS"; then
4089            pkg_cv_libsoup24_LIBS="$libsoup24_LIBS"
4090        else
4091            if test -n "$PKG_CONFIG" && \
4092        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
4093      ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
4094      ac_status=$?
4095      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096      (exit $ac_status); }; then
4097      pkg_cv_libsoup24_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
4098    else
4099      pkg_failed=yes
4100    fi
4101        fi
4102    else
4103            pkg_failed=untried
4104    fi
4105    
4106    
4107    
4108    if test $pkg_failed = yes; then
4109    
4110    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4111            _pkg_short_errors_supported=yes
4112    else
4113            _pkg_short_errors_supported=no
4114    fi
4115            if test $_pkg_short_errors_supported = yes; then
4116                    libsoup24_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
4117            else
4118                    libsoup24_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
4119            fi
4120            # Put the nasty error message in config.log where it belongs
4121            echo "$libsoup24_PKG_ERRORS" >&5
4122    
4123            { echo "$as_me:$LINENO: result: no" >&5
4124    echo "${ECHO_T}no" >&6; }
4125    
4126    
4127    pkg_failed=no
4128    { echo "$as_me:$LINENO: checking for libsoup22" >&5
4129    echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }
4130    
4131    if test -n "$PKG_CONFIG"; then
4132        if test -n "$libsoup22_CFLAGS"; then
4133            pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"
4134        else
4135            if test -n "$PKG_CONFIG" && \
4136        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5
4137      ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5
4138      ac_status=$?
4139      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140      (exit $ac_status); }; then
4141      pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`
4142    else
4143      pkg_failed=yes
4144    fi
4145        fi
4146    else
4147            pkg_failed=untried
4148    fi
4149    if test -n "$PKG_CONFIG"; then
4150        if test -n "$libsoup22_LIBS"; then
4151            pkg_cv_libsoup22_LIBS="$libsoup22_LIBS"
4152        else
4153            if test -n "$PKG_CONFIG" && \
4154        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5
4155      ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5
4156      ac_status=$?
4157      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158      (exit $ac_status); }; then
4159      pkg_cv_libsoup22_LIBS=`$PKG_CONFIG --libs "libsoup-2.2" 2>/dev/null`
4160    else
4161      pkg_failed=yes
4162    fi
4163        fi
4164    else
4165            pkg_failed=untried
4166    fi
4167    
4168    
4169    
4170    if test $pkg_failed = yes; then
4171    
4172    if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4173            _pkg_short_errors_supported=yes
4174    else
4175            _pkg_short_errors_supported=no
4176    fi
4177            if test $_pkg_short_errors_supported = yes; then
4178                    libsoup22_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.2"`
4179            else
4180                    libsoup22_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.2"`
4181            fi
4182            # Put the nasty error message in config.log where it belongs
4183            echo "$libsoup22_PKG_ERRORS" >&5
4184    
4185            { echo "$as_me:$LINENO: result: no" >&5
4186    echo "${ECHO_T}no" >&6; }
4187    
4188        { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5
4189    echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}
4190    
4191    elif test $pkg_failed = untried; then
4192    
4193        { echo "$as_me:$LINENO: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&5
4194    echo "$as_me: WARNING: libsoup-2.4/2.2 missing, disabling internal map" >&6;}
4195    
4196    else
4197            libsoup22_CFLAGS=$pkg_cv_libsoup22_CFLAGS
4198            libsoup22_LIBS=$pkg_cv_libsoup22_LIBS
4199            { echo "$as_me:$LINENO: result: yes" >&5
4200    echo "${ECHO_T}yes" >&6; }
4201    
4202        EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
4203        CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"
4204        LIBS="$LIBS $libsoup22_LIBS"
4205    
4206    fi
4207    
4208    elif test $pkg_failed = untried; then
4209    
4210    
4211    pkg_failed=no
4212    { echo "$as_me:$LINENO: checking for libsoup22" >&5
4213    echo $ECHO_N "checking for libsoup22... $ECHO_C" >&6; }
4214    
4215    if test -n "$PKG_CONFIG"; then
4216        if test -n "$libsoup22_CFLAGS"; then
4217            pkg_cv_libsoup22_CFLAGS="$libsoup22_CFLAGS"
4218        else
4219            if test -n "$PKG_CONFIG" && \
4220        { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.2\"") >&5
4221      ($PKG_CONFIG --exists --print-errors "libsoup-2.2") 2>&5
4222      ac_status=$?
4223      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224      (exit $ac_status); }; then
4225      pkg_cv_libsoup22_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.2" 2>/dev/null`
4226    else
4227      pkg_failed=yes
4228    fi
4229        fi
4230    else
4231            pkg_failed=untried
4232    fi
4233    if test -n "$PKG_CONFIG"; then
4234        if test -n "$libsoup22_LIBS"; then
4235          pkg_cv_libsoup22_LIBS="$libsoup22_LIBS"          pkg_cv_libsoup22_LIBS="$libsoup22_LIBS"
4236      else      else
4237          if test -n "$PKG_CONFIG" && \          if test -n "$PKG_CONFIG" && \
# Line 4315  echo "$as_me: Configuring for Maemo $VER Line 5232  echo "$as_me: Configuring for Maemo $VER
5232      MAJOR=`echo $VERSION | cut -b1 -`      MAJOR=`echo $VERSION | cut -b1 -`
5233      CFLAGS="$CFLAGS -DMAEMO_VERSION_MAJOR=$MAJOR"      CFLAGS="$CFLAGS -DMAEMO_VERSION_MAJOR=$MAJOR"
5234    
5235        MAEMO_VERSION_MAJOR=$MAJOR
5236    
5237    
5238  else  else
5239    
5240      { { echo "$as_me:$LINENO: error: maemo-version not found" >&5      { { echo "$as_me:$LINENO: error: maemo-version not found" >&5
# Line 4323  echo "$as_me: error: maemo-version not f Line 5243  echo "$as_me: error: maemo-version not f
5243    
5244  fi  fi
5245    
   # maemo uses dbus for ipc with maemo mapper  
   EXTRA_OBJS="$EXTRA_OBJS mm_poi.o dbus.o"  
   
5246    INSTALL_PLATTFORM="install-maemo"    INSTALL_PLATTFORM="install-maemo"
5247    
5248    # fremantle uses icons of 48x48 pixels for the app installer    # fremantle uses icons of 48x48 pixels for the app installer,
5249      # older versions used 26x26
5250    if [ "$MAJOR" == "5" ]; then    if [ "$MAJOR" == "5" ]; then
5251       ICONNAME=gpxview.48.png       ICONNAME=48x48/gpxview.png
5252         datarootdir=/opt
5253    else    else
5254       ICONNAME=gpxview.26.png       ICONNAME=26x26/gpxview.png
5255         { echo "$as_me:$LINENO: Enabling Maemo Mapper support" >&5
5256    echo "$as_me: Enabling Maemo Mapper support" >&6;}
5257    fi    fi
5258    
5259      CFLAGS="$CFLAGS -DENABLE_MAEMO_MAPPER"
5260      EXTRA_OBJS="$EXTRA_OBJS mm_poi.o"
5261    
5262      # maemo uses dbus for ipc with maemo mapper
5263      EXTRA_OBJS="$EXTRA_OBJS dbus.o"
5264    
5265    { echo "$as_me:$LINENO: Using application installer icon \"$ICONNAME\"" >&5    { echo "$as_me:$LINENO: Using application installer icon \"$ICONNAME\"" >&5
5266  echo "$as_me: Using application installer icon \"$ICONNAME\"" >&6;}  echo "$as_me: Using application installer icon \"$ICONNAME\"" >&6;}
5267    
# Line 4345  XB-Maemo-Icon-26: Line 5272  XB-Maemo-Icon-26:
5272    
5273    # generate base64 icon, remove first and last line    # generate base64 icon, remove first and last line
5274    # and add a space before each line    # and add a space before each line
5275    ICON="$ICON`uuencode -m data/$ICONNAME $ICONNAME | sed '1d;$d;s/^/ /' -`"    ICON="$ICON`uuencode -m data/icons/$ICONNAME $ICONNAME | sed '1d;$d;s/^/ /' -`"
5276    
5277    
5278  else  else
# Line 4353  else Line 5280  else
5280    { echo "$as_me:$LINENO: result: no" >&5    { echo "$as_me:$LINENO: result: no" >&5
5281  echo "${ECHO_T}no" >&6; }  echo "${ECHO_T}no" >&6; }
5282    
5283      EXTRA_OBJS="$EXTRA_OBJS bct.o"
5284      CFLAGS="$CFLAGS -DBCT"
5285    
5286    # check for gtk+-2.0    # check for gtk+-2.0
5287    
5288  pkg_failed=no  pkg_failed=no
# Line 4949  exec 6>&1 Line 5879  exec 6>&1
5879  # report actual input values of CONFIG_FILES etc. instead of their  # report actual input values of CONFIG_FILES etc. instead of their
5880  # values after options handling.  # values after options handling.
5881  ac_log="  ac_log="
5882  This file was extended by GPXView $as_me 0.8.10, which was  This file was extended by GPXView $as_me 0.9.2, which was
5883  generated by GNU Autoconf 2.61.  Invocation command line was  generated by GNU Autoconf 2.61.  Invocation command line was
5884    
5885    CONFIG_FILES    = $CONFIG_FILES    CONFIG_FILES    = $CONFIG_FILES
# Line 4992  Report bugs to <bug-autoconf@gnu.org>." Line 5922  Report bugs to <bug-autoconf@gnu.org>."
5922  _ACEOF  _ACEOF
5923  cat >>$CONFIG_STATUS <<_ACEOF  cat >>$CONFIG_STATUS <<_ACEOF
5924  ac_cs_version="\\  ac_cs_version="\\
5925  GPXView config.status 0.8.10  GPXView config.status 0.9.2
5926  configured by $0, generated by GNU Autoconf 2.61,  configured by $0, generated by GNU Autoconf 2.61,
5927    with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"    with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5928    
# Line 5210  gnome_vfs_module_CFLAGS!$gnome_vfs_modul Line 6140  gnome_vfs_module_CFLAGS!$gnome_vfs_modul
6140  gnome_vfs_module_LIBS!$gnome_vfs_module_LIBS$ac_delim  gnome_vfs_module_LIBS!$gnome_vfs_module_LIBS$ac_delim
6141  libxml2_CFLAGS!$libxml2_CFLAGS$ac_delim  libxml2_CFLAGS!$libxml2_CFLAGS$ac_delim
6142  libxml2_LIBS!$libxml2_LIBS$ac_delim  libxml2_LIBS!$libxml2_LIBS$ac_delim
6143    libcurl_CFLAGS!$libcurl_CFLAGS$ac_delim
6144    libcurl_LIBS!$libcurl_LIBS$ac_delim
6145    CPP!$CPP$ac_delim
6146    GREP!$GREP$ac_delim
6147    EGREP!$EGREP$ac_delim
6148  libsoup24_CFLAGS!$libsoup24_CFLAGS$ac_delim  libsoup24_CFLAGS!$libsoup24_CFLAGS$ac_delim
6149  libsoup24_LIBS!$libsoup24_LIBS$ac_delim  libsoup24_LIBS!$libsoup24_LIBS$ac_delim
6150  libsoup22_CFLAGS!$libsoup22_CFLAGS$ac_delim  libsoup22_CFLAGS!$libsoup22_CFLAGS$ac_delim
# Line 5232  gpsbt_CFLAGS!$gpsbt_CFLAGS$ac_delim Line 6167  gpsbt_CFLAGS!$gpsbt_CFLAGS$ac_delim
6167  gpsbt_LIBS!$gpsbt_LIBS$ac_delim  gpsbt_LIBS!$gpsbt_LIBS$ac_delim
6168  liblocation_CFLAGS!$liblocation_CFLAGS$ac_delim  liblocation_CFLAGS!$liblocation_CFLAGS$ac_delim
6169  liblocation_LIBS!$liblocation_LIBS$ac_delim  liblocation_LIBS!$liblocation_LIBS$ac_delim
6170    MAEMO_VERSION_MAJOR!$MAEMO_VERSION_MAJOR$ac_delim
6171  gtk_CFLAGS!$gtk_CFLAGS$ac_delim  gtk_CFLAGS!$gtk_CFLAGS$ac_delim
6172  gtk_LIBS!$gtk_LIBS$ac_delim  gtk_LIBS!$gtk_LIBS$ac_delim
6173  gnome2_CFLAGS!$gnome2_CFLAGS$ac_delim  gnome2_CFLAGS!$gnome2_CFLAGS$ac_delim
# Line 5243  LIBOBJS!$LIBOBJS$ac_delim Line 6179  LIBOBJS!$LIBOBJS$ac_delim
6179  LTLIBOBJS!$LTLIBOBJS$ac_delim  LTLIBOBJS!$LTLIBOBJS$ac_delim
6180  _ACEOF  _ACEOF
6181    
6182    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
6183      break      break
6184    elif $ac_last_try; then    elif $ac_last_try; then
6185      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5

Legend:
Removed from v.117  
changed lines
  Added in v.246