home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 2001 January / CT_SW0101.ISO / pc / software / kommunik / ftp / kmago112.tgz / kmago112.tar / kmago-1.1.2 / configure < prev    next >
Text File  |  2001-04-19  |  221KB  |  7,821 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_default_prefix=${KDEDIR:-/usr/local/kde}
  15. ac_help="$ac_help
  16.   --disable-fast-perl     disable fast Makefile generation (needs perl)"
  17. ac_help="$ac_help
  18.   --enable-debug          enables debug symbols [default=no]"
  19. ac_help="$ac_help
  20.   --disable-debug         disables debug output and debug symbols [default=no]"
  21. ac_help="$ac_help
  22.   --enable-strict         compiles with strict compiler options (may not work!)"
  23. ac_help="$ac_help
  24.   --enable-profile        creates profiling infos [default=no]"
  25. ac_help="$ac_help
  26.   --enable-final          build size optimized apps (experimental - needs lots of memory)"
  27. ac_help="$ac_help
  28.   --disable-closure       don't delay template instantiation"
  29. ac_help="$ac_help
  30.   --enable-shared[=PKGS]  build shared libraries [default=yes]"
  31. ac_help="$ac_help
  32.   --enable-static[=PKGS]  build static libraries [default=no]"
  33. ac_help="$ac_help
  34.   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
  35. ac_help="$ac_help
  36.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  37. ac_help="$ac_help
  38.   --disable-libtool-lock  avoid locking (might break parallel builds)"
  39. ac_help="$ac_help
  40.   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
  41. ac_help="$ac_help
  42.   --enable-mt             link to threaded Qt (experimental)"
  43. ac_help="$ac_help
  44.   --with-extra-includes=DIR
  45.                           adds non standard include paths"
  46. ac_help="$ac_help
  47.   --with-extra-libs=DIR   adds non standard library paths"
  48. ac_help="$ac_help
  49.   --with-qt-dir=DIR       where the root of Qt is installed "
  50. ac_help="$ac_help
  51.   --with-qt-includes=DIR  where the Qt includes are. "
  52. ac_help="$ac_help
  53.   --with-qt-libraries=DIR where the Qt library is installed."
  54. ac_help="$ac_help
  55.   --disable-rpath         do not use the rpath feature of ld"
  56. ac_help="$ac_help
  57.   --disable-path-check    don't try to find out, where to install"
  58. ac_help="$ac_help
  59.   --disable-kio          disable KDE I/O based retriever"
  60. ac_help="$ac_help
  61.   --disable-wget         disable wget based retriever"
  62. ac_help="$ac_help
  63.   --enable-dmalloc       compile and link with dmalloc"
  64.  
  65. # Initialize some variables set by options.
  66. # The variables have the same names as the options, with
  67. # dashes changed to underlines.
  68. build=NONE
  69. cache_file=./config.cache
  70. exec_prefix=NONE
  71. host=NONE
  72. no_create=
  73. nonopt=NONE
  74. no_recursion=
  75. prefix=NONE
  76. program_prefix=NONE
  77. program_suffix=NONE
  78. program_transform_name=s,x,x,
  79. silent=
  80. site=
  81. srcdir=
  82. target=NONE
  83. verbose=
  84. x_includes=NONE
  85. x_libraries=NONE
  86. bindir='${exec_prefix}/bin'
  87. sbindir='${exec_prefix}/sbin'
  88. libexecdir='${exec_prefix}/libexec'
  89. datadir='${prefix}/share'
  90. sysconfdir='${prefix}/etc'
  91. sharedstatedir='${prefix}/com'
  92. localstatedir='${prefix}/var'
  93. libdir='${exec_prefix}/lib'
  94. includedir='${prefix}/include'
  95. oldincludedir='/usr/include'
  96. infodir='${prefix}/info'
  97. mandir='${prefix}/man'
  98.  
  99. # Initialize some other variables.
  100. subdirs=
  101. MFLAGS= MAKEFLAGS=
  102. SHELL=${CONFIG_SHELL-/bin/sh}
  103. # Maximum number of lines to put in a shell here document.
  104. ac_max_here_lines=12
  105.  
  106. ac_prev=
  107. for ac_option
  108. do
  109.  
  110.   # If the previous option needs an argument, assign it.
  111.   if test -n "$ac_prev"; then
  112.     eval "$ac_prev=\$ac_option"
  113.     ac_prev=
  114.     continue
  115.   fi
  116.  
  117.   case "$ac_option" in
  118.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  119.   *) ac_optarg= ;;
  120.   esac
  121.  
  122.   # Accept the important Cygnus configure options, so we can diagnose typos.
  123.  
  124.   case "$ac_option" in
  125.  
  126.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  127.     ac_prev=bindir ;;
  128.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  129.     bindir="$ac_optarg" ;;
  130.  
  131.   -build | --build | --buil | --bui | --bu)
  132.     ac_prev=build ;;
  133.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  134.     build="$ac_optarg" ;;
  135.  
  136.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  137.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  138.     ac_prev=cache_file ;;
  139.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  140.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  141.     cache_file="$ac_optarg" ;;
  142.  
  143.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  144.     ac_prev=datadir ;;
  145.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  146.   | --da=*)
  147.     datadir="$ac_optarg" ;;
  148.  
  149.   -disable-* | --disable-*)
  150.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  151.     # Reject names that are not valid shell variable names.
  152.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  153.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  154.     fi
  155.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  156.     eval "enable_${ac_feature}=no" ;;
  157.  
  158.   -enable-* | --enable-*)
  159.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  160.     # Reject names that are not valid shell variable names.
  161.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  162.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  163.     fi
  164.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  165.     case "$ac_option" in
  166.       *=*) ;;
  167.       *) ac_optarg=yes ;;
  168.     esac
  169.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  170.  
  171.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  172.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  173.   | --exec | --exe | --ex)
  174.     ac_prev=exec_prefix ;;
  175.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  176.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  177.   | --exec=* | --exe=* | --ex=*)
  178.     exec_prefix="$ac_optarg" ;;
  179.  
  180.   -gas | --gas | --ga | --g)
  181.     # Obsolete; use --with-gas.
  182.     with_gas=yes ;;
  183.  
  184.   -help | --help | --hel | --he)
  185.     # Omit some internal or obsolete options to make the list less imposing.
  186.     # This message is too long to be a string in the A/UX 3.1 sh.
  187.     cat << EOF
  188. Usage: configure [options] [host]
  189. Options: [defaults in brackets after descriptions]
  190. Configuration:
  191.   --cache-file=FILE       cache test results in FILE
  192.   --help                  print this message
  193.   --no-create             do not create output files
  194.   --quiet, --silent       do not print \`checking...' messages
  195.   --version               print the version of autoconf that created configure
  196. Directory and file names:
  197.   --prefix=PREFIX         install architecture-independent files in PREFIX
  198.                           [$ac_default_prefix]
  199.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  200.                           [same as prefix]
  201.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  202.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  203.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  204.   --datadir=DIR           read-only architecture-independent data in DIR
  205.                           [PREFIX/share]
  206.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  207.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  208.                           [PREFIX/com]
  209.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  210.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  211.   --includedir=DIR        C header files in DIR [PREFIX/include]
  212.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  213.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  214.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  215.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  216.   --program-prefix=PREFIX prepend PREFIX to installed program names
  217.   --program-suffix=SUFFIX append SUFFIX to installed program names
  218.   --program-transform-name=PROGRAM
  219.                           run sed PROGRAM on installed program names
  220. EOF
  221.     cat << EOF
  222. Host type:
  223.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  224.   --host=HOST             configure for HOST [guessed]
  225.   --target=TARGET         configure for TARGET [TARGET=HOST]
  226. Features and packages:
  227.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  228.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  229.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  230.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  231.   --x-includes=DIR        X include files are in DIR
  232.   --x-libraries=DIR       X library files are in DIR
  233. EOF
  234.     if test -n "$ac_help"; then
  235.       echo "--enable and --with options recognized:$ac_help"
  236.     fi
  237.     exit 0 ;;
  238.  
  239.   -host | --host | --hos | --ho)
  240.     ac_prev=host ;;
  241.   -host=* | --host=* | --hos=* | --ho=*)
  242.     host="$ac_optarg" ;;
  243.  
  244.   -includedir | --includedir | --includedi | --included | --include \
  245.   | --includ | --inclu | --incl | --inc)
  246.     ac_prev=includedir ;;
  247.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  248.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  249.     includedir="$ac_optarg" ;;
  250.  
  251.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  252.     ac_prev=infodir ;;
  253.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  254.     infodir="$ac_optarg" ;;
  255.  
  256.   -libdir | --libdir | --libdi | --libd)
  257.     ac_prev=libdir ;;
  258.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  259.     libdir="$ac_optarg" ;;
  260.  
  261.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  262.   | --libexe | --libex | --libe)
  263.     ac_prev=libexecdir ;;
  264.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  265.   | --libexe=* | --libex=* | --libe=*)
  266.     libexecdir="$ac_optarg" ;;
  267.  
  268.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  269.   | --localstate | --localstat | --localsta | --localst \
  270.   | --locals | --local | --loca | --loc | --lo)
  271.     ac_prev=localstatedir ;;
  272.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  273.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  274.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  275.     localstatedir="$ac_optarg" ;;
  276.  
  277.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  278.     ac_prev=mandir ;;
  279.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  280.     mandir="$ac_optarg" ;;
  281.  
  282.   -nfp | --nfp | --nf)
  283.     # Obsolete; use --without-fp.
  284.     with_fp=no ;;
  285.  
  286.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  287.   | --no-cr | --no-c)
  288.     no_create=yes ;;
  289.  
  290.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  291.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  292.     no_recursion=yes ;;
  293.  
  294.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  295.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  296.   | --oldin | --oldi | --old | --ol | --o)
  297.     ac_prev=oldincludedir ;;
  298.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  299.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  300.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  301.     oldincludedir="$ac_optarg" ;;
  302.  
  303.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  304.     ac_prev=prefix ;;
  305.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  306.     prefix="$ac_optarg" ;;
  307.  
  308.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  309.   | --program-pre | --program-pr | --program-p)
  310.     ac_prev=program_prefix ;;
  311.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  312.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  313.     program_prefix="$ac_optarg" ;;
  314.  
  315.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  316.   | --program-suf | --program-su | --program-s)
  317.     ac_prev=program_suffix ;;
  318.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  319.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  320.     program_suffix="$ac_optarg" ;;
  321.  
  322.   -program-transform-name | --program-transform-name \
  323.   | --program-transform-nam | --program-transform-na \
  324.   | --program-transform-n | --program-transform- \
  325.   | --program-transform | --program-transfor \
  326.   | --program-transfo | --program-transf \
  327.   | --program-trans | --program-tran \
  328.   | --progr-tra | --program-tr | --program-t)
  329.     ac_prev=program_transform_name ;;
  330.   -program-transform-name=* | --program-transform-name=* \
  331.   | --program-transform-nam=* | --program-transform-na=* \
  332.   | --program-transform-n=* | --program-transform-=* \
  333.   | --program-transform=* | --program-transfor=* \
  334.   | --program-transfo=* | --program-transf=* \
  335.   | --program-trans=* | --program-tran=* \
  336.   | --progr-tra=* | --program-tr=* | --program-t=*)
  337.     program_transform_name="$ac_optarg" ;;
  338.  
  339.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  340.   | -silent | --silent | --silen | --sile | --sil)
  341.     silent=yes ;;
  342.  
  343.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  344.     ac_prev=sbindir ;;
  345.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  346.   | --sbi=* | --sb=*)
  347.     sbindir="$ac_optarg" ;;
  348.  
  349.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  350.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  351.   | --sharedst | --shareds | --shared | --share | --shar \
  352.   | --sha | --sh)
  353.     ac_prev=sharedstatedir ;;
  354.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  355.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  356.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  357.   | --sha=* | --sh=*)
  358.     sharedstatedir="$ac_optarg" ;;
  359.  
  360.   -site | --site | --sit)
  361.     ac_prev=site ;;
  362.   -site=* | --site=* | --sit=*)
  363.     site="$ac_optarg" ;;
  364.  
  365.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  366.     ac_prev=srcdir ;;
  367.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  368.     srcdir="$ac_optarg" ;;
  369.  
  370.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  371.   | --syscon | --sysco | --sysc | --sys | --sy)
  372.     ac_prev=sysconfdir ;;
  373.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  374.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  375.     sysconfdir="$ac_optarg" ;;
  376.  
  377.   -target | --target | --targe | --targ | --tar | --ta | --t)
  378.     ac_prev=target ;;
  379.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  380.     target="$ac_optarg" ;;
  381.  
  382.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  383.     verbose=yes ;;
  384.  
  385.   -version | --version | --versio | --versi | --vers)
  386.     echo "configure generated by autoconf version 2.13"
  387.     exit 0 ;;
  388.  
  389.   -with-* | --with-*)
  390.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  391.     # Reject names that are not valid shell variable names.
  392.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  393.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  394.     fi
  395.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  396.     case "$ac_option" in
  397.       *=*) ;;
  398.       *) ac_optarg=yes ;;
  399.     esac
  400.     eval "with_${ac_package}='$ac_optarg'" ;;
  401.  
  402.   -without-* | --without-*)
  403.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  404.     # Reject names that are not valid shell variable names.
  405.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  406.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  407.     fi
  408.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  409.     eval "with_${ac_package}=no" ;;
  410.  
  411.   --x)
  412.     # Obsolete; use --with-x.
  413.     with_x=yes ;;
  414.  
  415.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  416.   | --x-incl | --x-inc | --x-in | --x-i)
  417.     ac_prev=x_includes ;;
  418.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  419.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  420.     x_includes="$ac_optarg" ;;
  421.  
  422.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  423.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  424.     ac_prev=x_libraries ;;
  425.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  426.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  427.     x_libraries="$ac_optarg" ;;
  428.  
  429.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  430.     ;;
  431.  
  432.   *)
  433.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  434.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  435.     fi
  436.     if test "x$nonopt" != xNONE; then
  437.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  438.     fi
  439.     nonopt="$ac_option"
  440.     ;;
  441.  
  442.   esac
  443. done
  444.  
  445. if test -n "$ac_prev"; then
  446.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  447. fi
  448.  
  449. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  450.  
  451. # File descriptor usage:
  452. # 0 standard input
  453. # 1 file creation
  454. # 2 errors and warnings
  455. # 3 some systems may open it to /dev/tty
  456. # 4 used on the Kubota Titan
  457. # 6 checking for... messages and results
  458. # 5 compiler messages saved in config.log
  459. if test "$silent" = yes; then
  460.   exec 6>/dev/null
  461. else
  462.   exec 6>&1
  463. fi
  464. exec 5>./config.log
  465.  
  466. echo "\
  467. This file contains any messages produced by compilers while
  468. running configure, to aid debugging if configure makes a mistake.
  469. " 1>&5
  470.  
  471. # Strip out --no-create and --no-recursion so they do not pile up.
  472. # Also quote any args containing shell metacharacters.
  473. ac_configure_args=
  474. for ac_arg
  475. do
  476.   case "$ac_arg" in
  477.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  478.   | --no-cr | --no-c) ;;
  479.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  480.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  481.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  482.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  483.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  484.   esac
  485. done
  486.  
  487. # NLS nuisances.
  488. # Only set these to C if already set.  These must not be set unconditionally
  489. # because not all systems understand e.g. LANG=C (notably SCO).
  490. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  491. # Non-C LC_CTYPE values break the ctype check.
  492. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  493. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  494. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  495. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  496.  
  497. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  498. rm -rf conftest* confdefs.h
  499. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  500. echo > confdefs.h
  501.  
  502. # A filename unique to this package, relative to the directory that
  503. # configure is in, which we can look for to find out if srcdir is correct.
  504. ac_unique_file=acinclude.m4
  505.  
  506. # Find the source files, if location was not specified.
  507. if test -z "$srcdir"; then
  508.   ac_srcdir_defaulted=yes
  509.   # Try the directory containing this script, then its parent.
  510.   ac_prog=$0
  511.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  512.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  513.   srcdir=$ac_confdir
  514.   if test ! -r $srcdir/$ac_unique_file; then
  515.     srcdir=..
  516.   fi
  517. else
  518.   ac_srcdir_defaulted=no
  519. fi
  520. if test ! -r $srcdir/$ac_unique_file; then
  521.   if test "$ac_srcdir_defaulted" = yes; then
  522.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  523.   else
  524.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  525.   fi
  526. fi
  527. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  528.  
  529. # Prefer explicitly selected file to automatically selected ones.
  530. if test -z "$CONFIG_SITE"; then
  531.   if test "x$prefix" != xNONE; then
  532.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  533.   else
  534.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  535.   fi
  536. fi
  537. for ac_site_file in $CONFIG_SITE; do
  538.   if test -r "$ac_site_file"; then
  539.     echo "loading site script $ac_site_file"
  540.     . "$ac_site_file"
  541.   fi
  542. done
  543.  
  544. if test -r "$cache_file"; then
  545.   echo "loading cache $cache_file"
  546.   . $cache_file
  547. else
  548.   echo "creating cache $cache_file"
  549.   > $cache_file
  550. fi
  551.  
  552. ac_ext=c
  553. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  554. ac_cpp='$CPP $CPPFLAGS'
  555. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  556. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  557. cross_compiling=$ac_cv_prog_cc_cross
  558.  
  559. ac_exeext=
  560. ac_objext=o
  561. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  562.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  563.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  564.     ac_n= ac_c='
  565. ' ac_t='    '
  566.   else
  567.     ac_n=-n ac_c= ac_t=
  568.   fi
  569. else
  570.   ac_n= ac_c='\c' ac_t=
  571. fi
  572.  
  573.  
  574. ac_aux_dir=
  575. for ac_dir in admin $srcdir/admin; do
  576.   if test -f $ac_dir/install-sh; then
  577.     ac_aux_dir=$ac_dir
  578.     ac_install_sh="$ac_aux_dir/install-sh -c"
  579.     break
  580.   elif test -f $ac_dir/install.sh; then
  581.     ac_aux_dir=$ac_dir
  582.     ac_install_sh="$ac_aux_dir/install.sh -c"
  583.     break
  584.   fi
  585. done
  586. if test -z "$ac_aux_dir"; then
  587.   { echo "configure: error: can not find install-sh or install.sh in admin $srcdir/admin" 1>&2; exit 1; }
  588. fi
  589. ac_config_guess=$ac_aux_dir/config.guess
  590. ac_config_sub=$ac_aux_dir/config.sub
  591. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  592.  
  593.  
  594.  
  595. # Do some error checking and defaulting for the host and target type.
  596. # The inputs are:
  597. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  598. #
  599. # The rules are:
  600. # 1. You are not allowed to specify --host, --target, and nonopt at the
  601. #    same time.
  602. # 2. Host defaults to nonopt.
  603. # 3. If nonopt is not specified, then host defaults to the current host,
  604. #    as determined by config.guess.
  605. # 4. Target and build default to nonopt.
  606. # 5. If nonopt is not specified, then target and build default to host.
  607.  
  608. # The aliases save the names the user supplied, while $host etc.
  609. # will get canonicalized.
  610. case $host---$target---$nonopt in
  611. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  612. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  613. esac
  614.  
  615.  
  616. # Make sure we can run config.sub.
  617. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  618. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  619. fi
  620.  
  621. echo $ac_n "checking host system type""... $ac_c" 1>&6
  622. echo "configure:623: checking host system type" >&5
  623.  
  624. host_alias=$host
  625. case "$host_alias" in
  626. NONE)
  627.   case $nonopt in
  628.   NONE)
  629.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  630.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  631.     fi ;;
  632.   *) host_alias=$nonopt ;;
  633.   esac ;;
  634. esac
  635.  
  636. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  637. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  638. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  639. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  640. echo "$ac_t""$host" 1>&6
  641.  
  642. echo $ac_n "checking target system type""... $ac_c" 1>&6
  643. echo "configure:644: checking target system type" >&5
  644.  
  645. target_alias=$target
  646. case "$target_alias" in
  647. NONE)
  648.   case $nonopt in
  649.   NONE) target_alias=$host_alias ;;
  650.   *) target_alias=$nonopt ;;
  651.   esac ;;
  652. esac
  653.  
  654. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  655. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  656. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  657. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  658. echo "$ac_t""$target" 1>&6
  659.  
  660. echo $ac_n "checking build system type""... $ac_c" 1>&6
  661. echo "configure:662: checking build system type" >&5
  662.  
  663. build_alias=$build
  664. case "$build_alias" in
  665. NONE)
  666.   case $nonopt in
  667.   NONE) build_alias=$host_alias ;;
  668.   *) build_alias=$nonopt ;;
  669.   esac ;;
  670. esac
  671.  
  672. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  673. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  674. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  675. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  676. echo "$ac_t""$build" 1>&6
  677.  
  678. test "$host_alias" != "$target_alias" &&
  679.   test "$program_prefix$program_suffix$program_transform_name" = \
  680.     NONENONEs,x,x, &&
  681.   program_prefix=${target_alias}-
  682.  
  683. if test "$program_transform_name" = s,x,x,; then
  684.   program_transform_name=
  685. else
  686.   # Double any \ or $.  echo might interpret backslashes.
  687.   cat <<\EOF_SED > conftestsed
  688. s,\\,\\\\,g; s,\$,$$,g
  689. EOF_SED
  690.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  691.   rm -f conftestsed
  692. fi
  693. test "$program_prefix" != NONE &&
  694.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  695. # Use a double $ so make ignores it.
  696. test "$program_suffix" != NONE &&
  697.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  698.  
  699. # sed with no file args requires a program.
  700. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  701.  
  702.  
  703.  
  704.     
  705.           test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
  706.   test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
  707.   test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
  708.   # Find a good install program.  We prefer a C program (faster),
  709. # so one script is as good as another.  But avoid the broken or
  710. # incompatible versions:
  711. # SysV /etc/install, /usr/sbin/install
  712. # SunOS /usr/etc/install
  713. # IRIX /sbin/install
  714. # AIX /bin/install
  715. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  716. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  717. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  718. # ./install, which can be erroneously created by make from ./install.sh.
  719. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  720. echo "configure:721: checking for a BSD compatible install" >&5
  721. if test -z "$INSTALL"; then
  722. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  723.   echo $ac_n "(cached) $ac_c" 1>&6
  724. else
  725.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  726.   for ac_dir in $PATH; do
  727.     # Account for people who put trailing slashes in PATH elements.
  728.     case "$ac_dir/" in
  729.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  730.     *)
  731.       # OSF1 and SCO ODT 3.0 have their own names for install.
  732.       # Don't use installbsd from OSF since it installs stuff as root
  733.       # by default.
  734.       for ac_prog in ginstall scoinst install; do
  735.         if test -f $ac_dir/$ac_prog; then
  736.       if test $ac_prog = install &&
  737.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  738.         # AIX install.  It has an incompatible calling convention.
  739.         :
  740.       else
  741.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  742.         break 2
  743.       fi
  744.     fi
  745.       done
  746.       ;;
  747.     esac
  748.   done
  749.   IFS="$ac_save_IFS"
  750.  
  751. fi
  752.   if test "${ac_cv_path_install+set}" = set; then
  753.     INSTALL="$ac_cv_path_install"
  754.   else
  755.     # As a last resort, use the slow shell script.  We don't cache a
  756.     # path for INSTALL within a source directory, because that will
  757.     # break other packages using the cache if that directory is
  758.     # removed, or if the path is relative.
  759.     INSTALL="$ac_install_sh"
  760.   fi
  761. fi
  762. echo "$ac_t""$INSTALL" 1>&6
  763.  
  764. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  765. # It thinks the first close brace ends the variable substitution.
  766. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  767.  
  768. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  769.  
  770. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  771.  
  772.  
  773.   if test -z "$kde_save_INSTALL_given" ; then
  774.     # OK, user hasn't given any INSTALL, autoconf found one for us
  775.     # now we test, if it supports the -p flag
  776.     echo $ac_n "checking for -p flag to install""... $ac_c" 1>&6
  777. echo "configure:778: checking for -p flag to install" >&5
  778.     rm -f confinst.$$.* > /dev/null 2>&1
  779.     echo "Testtest" > confinst.$$.orig
  780.     ac_res=no
  781.     if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
  782.       if test -f confinst.$$.new ; then
  783.         # OK, -p seems to do no harm to install
  784.     INSTALL="${INSTALL} -p"
  785.     ac_res=yes
  786.       fi
  787.     fi
  788.     rm -f confinst.$$.*
  789.     echo "$ac_t""$ac_res" 1>&6
  790.   fi
  791.                                                       
  792.   if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
  793.     INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
  794.   fi
  795.   if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
  796.     INSTALL_SCRIPT='${INSTALL}'
  797.   fi
  798.  
  799. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  800. echo "configure:801: checking whether build environment is sane" >&5
  801. # Just in case
  802. sleep 1
  803. echo timestamp > conftestfile
  804. # Do `set' in a subshell so we don't clobber the current shell's
  805. # arguments.  Must try -L first in case configure is actually a
  806. # symlink; some systems play weird games with the mod time of symlinks
  807. # (eg FreeBSD returns the mod time of the symlink's containing
  808. # directory).
  809. if (
  810.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  811.    if test "$*" = "X"; then
  812.       # -L didn't work.
  813.       set X `ls -t $srcdir/configure conftestfile`
  814.    fi
  815.    if test "$*" != "X $srcdir/configure conftestfile" \
  816.       && test "$*" != "X conftestfile $srcdir/configure"; then
  817.  
  818.       # If neither matched, then we have a broken ls.  This can happen
  819.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  820.       # broken ls alias from the environment.  This has actually
  821.       # happened.  Such a system could not be considered "sane".
  822.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  823. alias in your environment" 1>&2; exit 1; }
  824.    fi
  825.  
  826.    test "$2" = conftestfile
  827.    )
  828. then
  829.    # Ok.
  830.    :
  831. else
  832.    { echo "configure: error: newly created file is older than distributed files!
  833. Check your system clock" 1>&2; exit 1; }
  834. fi
  835. rm -f conftest*
  836. echo "$ac_t""yes" 1>&6
  837. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  838. echo "configure:839: checking whether ${MAKE-make} sets \${MAKE}" >&5
  839. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  840. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  841.   echo $ac_n "(cached) $ac_c" 1>&6
  842. else
  843.   cat > conftestmake <<\EOF
  844. all:
  845.     @echo 'ac_maketemp="${MAKE}"'
  846. EOF
  847. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  848. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  849. if test -n "$ac_maketemp"; then
  850.   eval ac_cv_prog_make_${ac_make}_set=yes
  851. else
  852.   eval ac_cv_prog_make_${ac_make}_set=no
  853. fi
  854. rm -f conftestmake
  855. fi
  856. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  857.   echo "$ac_t""yes" 1>&6
  858.   SET_MAKE=
  859. else
  860.   echo "$ac_t""no" 1>&6
  861.   SET_MAKE="MAKE=${MAKE-make}"
  862. fi
  863.  
  864.  
  865. PACKAGE=kmago
  866.  
  867. VERSION=1.1.2
  868.  
  869. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  870.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  871. fi
  872. cat >> confdefs.h <<EOF
  873. #define PACKAGE "$PACKAGE"
  874. EOF
  875.  
  876. cat >> confdefs.h <<EOF
  877. #define VERSION "$VERSION"
  878. EOF
  879.  
  880.  
  881.  
  882. missing_dir=`cd $ac_aux_dir && pwd`
  883. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  884. echo "configure:885: checking for working aclocal" >&5
  885. # Run test in a subshell; some versions of sh will print an error if
  886. # an executable is not found, even if stderr is redirected.
  887. # Redirect stdin to placate older versions of autoconf.  Sigh.
  888. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  889.    ACLOCAL=aclocal
  890.    echo "$ac_t""found" 1>&6
  891. else
  892.    ACLOCAL="$missing_dir/missing aclocal"
  893.    echo "$ac_t""missing" 1>&6
  894. fi
  895.  
  896. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  897. echo "configure:898: checking for working autoconf" >&5
  898. # Run test in a subshell; some versions of sh will print an error if
  899. # an executable is not found, even if stderr is redirected.
  900. # Redirect stdin to placate older versions of autoconf.  Sigh.
  901. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  902.    AUTOCONF=autoconf
  903.    echo "$ac_t""found" 1>&6
  904. else
  905.    AUTOCONF="$missing_dir/missing autoconf"
  906.    echo "$ac_t""missing" 1>&6
  907. fi
  908.  
  909. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  910. echo "configure:911: checking for working automake" >&5
  911. # Run test in a subshell; some versions of sh will print an error if
  912. # an executable is not found, even if stderr is redirected.
  913. # Redirect stdin to placate older versions of autoconf.  Sigh.
  914. if (automake --version) < /dev/null > /dev/null 2>&1; then
  915.    AUTOMAKE=automake
  916.    echo "$ac_t""found" 1>&6
  917. else
  918.    AUTOMAKE="$missing_dir/missing automake"
  919.    echo "$ac_t""missing" 1>&6
  920. fi
  921.  
  922. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  923. echo "configure:924: checking for working autoheader" >&5
  924. # Run test in a subshell; some versions of sh will print an error if
  925. # an executable is not found, even if stderr is redirected.
  926. # Redirect stdin to placate older versions of autoconf.  Sigh.
  927. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  928.    AUTOHEADER=autoheader
  929.    echo "$ac_t""found" 1>&6
  930. else
  931.    AUTOHEADER="$missing_dir/missing autoheader"
  932.    echo "$ac_t""missing" 1>&6
  933. fi
  934.  
  935. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  936. echo "configure:937: checking for working makeinfo" >&5
  937. # Run test in a subshell; some versions of sh will print an error if
  938. # an executable is not found, even if stderr is redirected.
  939. # Redirect stdin to placate older versions of autoconf.  Sigh.
  940. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  941.    MAKEINFO=makeinfo
  942.    echo "$ac_t""found" 1>&6
  943. else
  944.    MAKEINFO="$missing_dir/missing makeinfo"
  945.    echo "$ac_t""missing" 1>&6
  946. fi
  947.  
  948.  
  949.  
  950.   unset CDPATH
  951.     
  952.  
  953.   if test "x$prefix" = "xNONE"; then
  954.     prefix=$ac_default_prefix
  955.     ac_configure_args="$ac_configure_args --prefix $prefix"
  956.   fi
  957.   
  958.     # Check whether --enable-fast-perl or --disable-fast-perl was given.
  959. if test "${enable_fast_perl+set}" = set; then
  960.   enableval="$enable_fast_perl"
  961.   with_fast_perl=$enableval
  962. else
  963.   with_fast_perl=yes
  964. fi
  965.  
  966.  
  967.   
  968.   val=
  969.   if test -f $srcdir/configure.files ; then
  970.     val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
  971.   fi
  972.   CONF_FILES=
  973.   if test -n "$val" ; then
  974.     for i in $val ; do
  975.       CONF_FILES="$CONF_FILES $i"
  976.     done
  977.   fi
  978.   
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.     
  987.   
  988.   
  989.   
  990.  
  991.   # Check whether --enable-debug or --disable-debug was given.
  992. if test "${enable_debug+set}" = set; then
  993.   enableval="$enable_debug"
  994.   
  995.    if test $enableval = "no";      then
  996.        kde_use_debug_code="no"
  997.        kde_use_debug_define=yes
  998.      else
  999.        kde_use_debug_code="yes"
  1000.        kde_use_debug_define=no
  1001.    fi
  1002.   
  1003. else
  1004.   kde_use_debug_code="no"
  1005.       kde_use_debug_define=no
  1006.     
  1007. fi
  1008.  
  1009.     # Check whether --enable-dummyoption or --disable-dummyoption was given.
  1010. if test "${enable_dummyoption+set}" = set; then
  1011.   enableval="$enable_dummyoption"
  1012.   :
  1013. fi
  1014.  
  1015.  
  1016.   # Check whether --enable-strict or --disable-strict was given.
  1017. if test "${enable_strict+set}" = set; then
  1018.   enableval="$enable_strict"
  1019.   
  1020.     if test $enableval = "no"; then
  1021.          kde_use_strict_options="no"
  1022.        else
  1023.          kde_use_strict_options="yes"
  1024.     fi
  1025.    
  1026. else
  1027.   kde_use_strict_options="no"
  1028. fi
  1029.  
  1030.  
  1031.   # Check whether --enable-profile or --disable-profile was given.
  1032. if test "${enable_profile+set}" = set; then
  1033.   enableval="$enable_profile"
  1034.   kde_use_profiling=$enableval
  1035. else
  1036.   kde_use_profiling="no"
  1037.   
  1038. fi
  1039.  
  1040.  
  1041.   echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6
  1042. echo "configure:1043: checking for a C-Compiler" >&5
  1043.     echo "$ac_t""$CC" 1>&6
  1044.  
  1045.   if test -z "$CC"; then # Extract the first word of "gcc", so it can be a program name with args.
  1046. set dummy gcc; ac_word=$2
  1047. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1048. echo "configure:1049: checking for $ac_word" >&5
  1049. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1050.   echo $ac_n "(cached) $ac_c" 1>&6
  1051. else
  1052.   if test -n "$CC"; then
  1053.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1054. else
  1055.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1056.   ac_dummy="$PATH"
  1057.   for ac_dir in $ac_dummy; do
  1058.     test -z "$ac_dir" && ac_dir=.
  1059.     if test -f $ac_dir/$ac_word; then
  1060.       ac_cv_prog_CC="gcc"
  1061.       break
  1062.     fi
  1063.   done
  1064.   IFS="$ac_save_ifs"
  1065. fi
  1066. fi
  1067. CC="$ac_cv_prog_CC"
  1068. if test -n "$CC"; then
  1069.   echo "$ac_t""$CC" 1>&6
  1070. else
  1071.   echo "$ac_t""no" 1>&6
  1072. fi
  1073.  fi
  1074.   if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.
  1075. set dummy cc; ac_word=$2
  1076. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1077. echo "configure:1078: checking for $ac_word" >&5
  1078. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1079.   echo $ac_n "(cached) $ac_c" 1>&6
  1080. else
  1081.   if test -n "$CC"; then
  1082.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1083. else
  1084.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1085.   ac_prog_rejected=no
  1086.   ac_dummy="$PATH"
  1087.   for ac_dir in $ac_dummy; do
  1088.     test -z "$ac_dir" && ac_dir=.
  1089.     if test -f $ac_dir/$ac_word; then
  1090.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1091.         ac_prog_rejected=yes
  1092.     continue
  1093.       fi
  1094.       ac_cv_prog_CC="cc"
  1095.       break
  1096.     fi
  1097.   done
  1098.   IFS="$ac_save_ifs"
  1099. if test $ac_prog_rejected = yes; then
  1100.   # We found a bogon in the path, so make sure we never use it.
  1101.   set dummy $ac_cv_prog_CC
  1102.   shift
  1103.   if test $# -gt 0; then
  1104.     # We chose a different compiler from the bogus one.
  1105.     # However, it has the same basename, so the bogon will be chosen
  1106.     # first if we set CC to just the basename; use the full file name.
  1107.     shift
  1108.     set dummy "$ac_dir/$ac_word" "$@"
  1109.     shift
  1110.     ac_cv_prog_CC="$@"
  1111.   fi
  1112. fi
  1113. fi
  1114. fi
  1115. CC="$ac_cv_prog_CC"
  1116. if test -n "$CC"; then
  1117.   echo "$ac_t""$CC" 1>&6
  1118. else
  1119.   echo "$ac_t""no" 1>&6
  1120. fi
  1121.  fi
  1122.   if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args.
  1123. set dummy xlc; ac_word=$2
  1124. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1125. echo "configure:1126: checking for $ac_word" >&5
  1126. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1127.   echo $ac_n "(cached) $ac_c" 1>&6
  1128. else
  1129.   if test -n "$CC"; then
  1130.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1131. else
  1132.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1133.   ac_dummy="$PATH"
  1134.   for ac_dir in $ac_dummy; do
  1135.     test -z "$ac_dir" && ac_dir=.
  1136.     if test -f $ac_dir/$ac_word; then
  1137.       ac_cv_prog_CC="xlc"
  1138.       break
  1139.     fi
  1140.   done
  1141.   IFS="$ac_save_ifs"
  1142. fi
  1143. fi
  1144. CC="$ac_cv_prog_CC"
  1145. if test -n "$CC"; then
  1146.   echo "$ac_t""$CC" 1>&6
  1147. else
  1148.   echo "$ac_t""no" 1>&6
  1149. fi
  1150.  fi
  1151.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1152.  
  1153.   echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1154. echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1155.  
  1156. ac_ext=c
  1157. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1158. ac_cpp='$CPP $CPPFLAGS'
  1159. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1160. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1161. cross_compiling=$ac_cv_prog_cc_cross
  1162.  
  1163. cat > conftest.$ac_ext << EOF
  1164.  
  1165. #line 1166 "configure"
  1166. #include "confdefs.h"
  1167.  
  1168. main(){return(0);}
  1169. EOF
  1170. if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1171.   ac_cv_prog_cc_works=yes
  1172.   # If we can't run a trivial program, we are probably using a cross compiler.
  1173.   if (./conftest; exit) 2>/dev/null; then
  1174.     ac_cv_prog_cc_cross=no
  1175.   else
  1176.     ac_cv_prog_cc_cross=yes
  1177.   fi
  1178. else
  1179.   echo "configure: failed program was:" >&5
  1180.   cat conftest.$ac_ext >&5
  1181.   ac_cv_prog_cc_works=no
  1182. fi
  1183. rm -fr conftest*
  1184. ac_ext=c
  1185. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1186. ac_cpp='$CPP $CPPFLAGS'
  1187. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1188. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1189. cross_compiling=$ac_cv_prog_cc_cross
  1190.  
  1191. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1192. if test $ac_cv_prog_cc_works = no; then
  1193.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1194. fi
  1195. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1196. echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1197. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1198. cross_compiling=$ac_cv_prog_cc_cross
  1199.  
  1200.   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1201. echo "configure:1202: checking whether we are using GNU C" >&5
  1202. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1203.   echo $ac_n "(cached) $ac_c" 1>&6
  1204. else
  1205.   cat > conftest.c <<EOF
  1206. #ifdef __GNUC__
  1207.   yes;
  1208. #endif
  1209. EOF
  1210. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1211.   ac_cv_prog_gcc=yes
  1212. else
  1213.   ac_cv_prog_gcc=no
  1214. fi
  1215. fi
  1216.  
  1217. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1218.  
  1219.   if test $ac_cv_prog_gcc = yes; then
  1220.     GCC=yes
  1221.   else
  1222.     GCC=
  1223.   fi
  1224.  
  1225.   USER_CFLAGS=$CFLAGS
  1226.   CFLAGS=
  1227.  
  1228.   if test -z "$CFLAGS"; then
  1229.     if test "$kde_use_debug_code" = "yes"; then
  1230.       echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1231. echo "configure:1232: checking whether ${CC-cc} accepts -g" >&5
  1232. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1233.   echo $ac_n "(cached) $ac_c" 1>&6
  1234. else
  1235.   echo 'void f(){}' > conftest.c
  1236. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1237.   ac_cv_prog_cc_g=yes
  1238. else
  1239.   ac_cv_prog_cc_g=no
  1240. fi
  1241. rm -f conftest*
  1242.  
  1243. fi
  1244.  
  1245. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1246.       if test $ac_cv_prog_cc_g = yes; then
  1247.     CFLAGS="-g"
  1248.     case $host in
  1249.        *-*-linux-gnu)    
  1250.            CFLAGS="$CFLAGS -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE -D_BSD_SOURCE"
  1251.          ;;
  1252.         esac
  1253.       fi
  1254.     else
  1255.       if test "$GCC" = "yes"; then
  1256.         CFLAGS="-O2"
  1257.       else
  1258.         CFLAGS=""
  1259.       fi
  1260.       if test "$kde_use_debug_define" = "yes"; then
  1261.         CFLAGS="$CFLAGS -DNDEBUG"
  1262.                               fi
  1263.     fi
  1264.  
  1265.     if test "$kde_use_profiling" = yes; then
  1266.        echo $ac_n "checking whether ${CC-cc} accepts -pg""... $ac_c" 1>&6
  1267. echo "configure:1268: checking whether ${CC-cc} accepts -pg" >&5
  1268. if eval "test \"`echo '$''{'kde_cv_prog_cc_pg'+set}'`\" = set"; then
  1269.   echo $ac_n "(cached) $ac_c" 1>&6
  1270. else
  1271.   echo 'void f(){}' > conftest.c
  1272.    if test -z "`${CC-cc} -pg -c conftest.c 2>&1`"; then
  1273.      kde_cv_prog_cc_pg=yes
  1274.    else
  1275.      kde_cv_prog_cc_pg=no
  1276.    fi
  1277.    rm -f conftest*
  1278.  
  1279. fi
  1280.  
  1281. echo "$ac_t""$kde_cv_prog_cc_pg" 1>&6
  1282.       if test "$kde_cv_prog_cc_pg" = yes; then
  1283.         CFLAGS="$CFLAGS -pg"
  1284.       fi
  1285.     fi
  1286.  
  1287.     if test "$GCC" = "yes"; then
  1288.      CFLAGS="$CFLAGS"
  1289.  
  1290.      if test "$kde_use_strict_options" = "yes"; then
  1291.     CFLAGS="$CFLAGS -W -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
  1292.      fi
  1293.     fi
  1294.  
  1295.   fi
  1296.  
  1297.   case "$host" in
  1298.   *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";;
  1299.   *-*-sysv5uw7*) CFLAGS="$CFLAGS -D_UNIXWARE7";;
  1300.   esac
  1301.  
  1302.   if test -n "$USER_CFLAGS"; then
  1303.     CFLAGS="$CFLAGS $USER_CFLAGS"
  1304.   fi
  1305.  
  1306.   if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
  1307.      LDFLAGS=""
  1308.   fi
  1309.  
  1310.  
  1311.  
  1312.   echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1313. echo "configure:1314: checking how to run the C preprocessor" >&5
  1314.   # On Suns, sometimes $CPP names a directory.
  1315.   if test -n "$CPP" && test -d "$CPP"; then
  1316.     CPP=
  1317.   fi
  1318.   if test -z "$CPP"; then
  1319.   if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1320.   echo $ac_n "(cached) $ac_c" 1>&6
  1321. else
  1322.     # This must be in double quotes, not single quotes, because CPP may get
  1323.     # substituted into the Makefile and "${CC-cc}" will confuse make.
  1324.     CPP="${CC-cc} -E"
  1325.     # On the NeXT, cc -E runs the code through the compiler's parser,
  1326.     # not just through cpp.
  1327.             cat > conftest.$ac_ext <<EOF
  1328. #line 1329 "configure"
  1329. #include "confdefs.h"
  1330. #include <assert.h>
  1331.     Syntax Error
  1332. EOF
  1333. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1334. { (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1335. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1336. if test -z "$ac_err"; then
  1337.   :
  1338. else
  1339.   echo "$ac_err" >&5
  1340.   echo "configure: failed program was:" >&5
  1341.   cat conftest.$ac_ext >&5
  1342.   rm -rf conftest*
  1343.   CPP="${CC-cc} -E -traditional-cpp"
  1344.     cat > conftest.$ac_ext <<EOF
  1345. #line 1346 "configure"
  1346. #include "confdefs.h"
  1347. #include <assert.h>
  1348.     Syntax Error
  1349. EOF
  1350. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1351. { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1352. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1353. if test -z "$ac_err"; then
  1354.   :
  1355. else
  1356.   echo "$ac_err" >&5
  1357.   echo "configure: failed program was:" >&5
  1358.   cat conftest.$ac_ext >&5
  1359.   rm -rf conftest*
  1360.   CPP=/lib/cpp
  1361. fi
  1362. rm -f conftest*
  1363. fi
  1364. rm -f conftest*
  1365.     ac_cv_prog_CPP="$CPP"
  1366. fi
  1367.     CPP="$ac_cv_prog_CPP"
  1368.   else
  1369.     ac_cv_prog_CPP="$CPP"
  1370.   fi
  1371.   echo "$ac_t""$CPP" 1>&6
  1372.   
  1373.  
  1374.   echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6
  1375. echo "configure:1376: checking for a C++-Compiler" >&5
  1376.     echo "$ac_t""$CXX" 1>&6
  1377.  
  1378.   if test -z "$CXX"; then # Extract the first word of "g++", so it can be a program name with args.
  1379. set dummy g++; ac_word=$2
  1380. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1381. echo "configure:1382: checking for $ac_word" >&5
  1382. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1383.   echo $ac_n "(cached) $ac_c" 1>&6
  1384. else
  1385.   if test -n "$CXX"; then
  1386.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1387. else
  1388.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1389.   ac_dummy="$PATH"
  1390.   for ac_dir in $ac_dummy; do
  1391.     test -z "$ac_dir" && ac_dir=.
  1392.     if test -f $ac_dir/$ac_word; then
  1393.       ac_cv_prog_CXX="g++"
  1394.       break
  1395.     fi
  1396.   done
  1397.   IFS="$ac_save_ifs"
  1398. fi
  1399. fi
  1400. CXX="$ac_cv_prog_CXX"
  1401. if test -n "$CXX"; then
  1402.   echo "$ac_t""$CXX" 1>&6
  1403. else
  1404.   echo "$ac_t""no" 1>&6
  1405. fi
  1406.  fi
  1407.   if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
  1408. set dummy CC; ac_word=$2
  1409. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1410. echo "configure:1411: checking for $ac_word" >&5
  1411. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1412.   echo $ac_n "(cached) $ac_c" 1>&6
  1413. else
  1414.   if test -n "$CXX"; then
  1415.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1416. else
  1417.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1418.   ac_dummy="$PATH"
  1419.   for ac_dir in $ac_dummy; do
  1420.     test -z "$ac_dir" && ac_dir=.
  1421.     if test -f $ac_dir/$ac_word; then
  1422.       ac_cv_prog_CXX="CC"
  1423.       break
  1424.     fi
  1425.   done
  1426.   IFS="$ac_save_ifs"
  1427. fi
  1428. fi
  1429. CXX="$ac_cv_prog_CXX"
  1430. if test -n "$CXX"; then
  1431.   echo "$ac_t""$CXX" 1>&6
  1432. else
  1433.   echo "$ac_t""no" 1>&6
  1434. fi
  1435.  fi
  1436.   if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
  1437. set dummy xlC; ac_word=$2
  1438. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1439. echo "configure:1440: checking for $ac_word" >&5
  1440. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1441.   echo $ac_n "(cached) $ac_c" 1>&6
  1442. else
  1443.   if test -n "$CXX"; then
  1444.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1445. else
  1446.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1447.   ac_dummy="$PATH"
  1448.   for ac_dir in $ac_dummy; do
  1449.     test -z "$ac_dir" && ac_dir=.
  1450.     if test -f $ac_dir/$ac_word; then
  1451.       ac_cv_prog_CXX="xlC"
  1452.       break
  1453.     fi
  1454.   done
  1455.   IFS="$ac_save_ifs"
  1456. fi
  1457. fi
  1458. CXX="$ac_cv_prog_CXX"
  1459. if test -n "$CXX"; then
  1460.   echo "$ac_t""$CXX" 1>&6
  1461. else
  1462.   echo "$ac_t""no" 1>&6
  1463. fi
  1464.  fi
  1465.   if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
  1466. set dummy DCC; ac_word=$2
  1467. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1468. echo "configure:1469: checking for $ac_word" >&5
  1469. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1470.   echo $ac_n "(cached) $ac_c" 1>&6
  1471. else
  1472.   if test -n "$CXX"; then
  1473.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1474. else
  1475.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1476.   ac_dummy="$PATH"
  1477.   for ac_dir in $ac_dummy; do
  1478.     test -z "$ac_dir" && ac_dir=.
  1479.     if test -f $ac_dir/$ac_word; then
  1480.       ac_cv_prog_CXX="DCC"
  1481.       break
  1482.     fi
  1483.   done
  1484.   IFS="$ac_save_ifs"
  1485. fi
  1486. fi
  1487. CXX="$ac_cv_prog_CXX"
  1488. if test -n "$CXX"; then
  1489.   echo "$ac_t""$CXX" 1>&6
  1490. else
  1491.   echo "$ac_t""no" 1>&6
  1492. fi
  1493.  fi
  1494.   test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; }
  1495.  
  1496.   echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1497. echo "configure:1498: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1498.  
  1499.  
  1500. ac_ext=C
  1501. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1502. ac_cpp='$CXXCPP $CPPFLAGS'
  1503. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1504. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1505. cross_compiling=$ac_cv_prog_cxx_cross
  1506.  
  1507. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1508.  
  1509.  
  1510.  
  1511. cat > conftest.$ac_ext << EOF
  1512.  
  1513. #line 1514 "configure"
  1514. #include "confdefs.h"
  1515.  
  1516. int main(){return(0);}
  1517. EOF
  1518. if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1519.   ac_cv_prog_cxx_works=yes
  1520.   # If we can't run a trivial program, we are probably using a cross compiler.
  1521.   if (./conftest; exit) 2>/dev/null; then
  1522.     ac_cv_prog_cxx_cross=no
  1523.   else
  1524.     ac_cv_prog_cxx_cross=yes
  1525.   fi
  1526. else
  1527.   echo "configure: failed program was:" >&5
  1528.   cat conftest.$ac_ext >&5
  1529.   ac_cv_prog_cxx_works=no
  1530. fi
  1531. rm -fr conftest*
  1532. ac_ext=c
  1533. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1534. ac_cpp='$CPP $CPPFLAGS'
  1535. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1536. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1537. cross_compiling=$ac_cv_prog_cc_cross
  1538.  
  1539. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1540. if test $ac_cv_prog_cxx_works = no; then
  1541.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1542. fi
  1543. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1544. echo "configure:1545: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1545. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1546. cross_compiling=$ac_cv_prog_cxx_cross
  1547.  
  1548.   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1549. echo "configure:1550: checking whether we are using GNU C++" >&5
  1550. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1551.   echo $ac_n "(cached) $ac_c" 1>&6
  1552. else
  1553.   cat > conftest.C <<EOF
  1554. #ifdef __GNUC__
  1555.   yes;
  1556. #endif
  1557. EOF
  1558. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1559.   ac_cv_prog_gxx=yes
  1560. else
  1561.   ac_cv_prog_gxx=no
  1562. fi
  1563. fi
  1564.  
  1565. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1566.  
  1567.   if test $ac_cv_prog_gxx = yes; then
  1568.     GXX=yes
  1569.   fi
  1570.  
  1571.   USER_CXXFLAGS=$CXXFLAGS
  1572.   CXXFLAGS=""
  1573.  
  1574.   if test -z "$CXXFLAGS"; then
  1575.     if test "$kde_use_debug_code" = "yes"; then
  1576.       echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1577. echo "configure:1578: checking whether ${CXX-g++} accepts -g" >&5
  1578. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1579.   echo $ac_n "(cached) $ac_c" 1>&6
  1580. else
  1581.   echo 'void f(){}' > conftest.cc
  1582. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1583.   ac_cv_prog_cxx_g=yes
  1584. else
  1585.   ac_cv_prog_cxx_g=no
  1586. fi
  1587. rm -f conftest*
  1588.  
  1589. fi
  1590.  
  1591. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1592.       if test $ac_cv_prog_cxx_g = yes; then
  1593.         CXXFLAGS="-g"
  1594.     case $host in         *-*-linux-gnu)
  1595.            CXXFLAGS="$CXXFLAGS -ansi -D_XOPEN_SOURCE -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion"
  1596.          ;;
  1597.         esac
  1598.       fi
  1599.     else
  1600.       if test "$GXX" = "yes"; then
  1601.          CXXFLAGS="-O2"
  1602.       fi
  1603.       if test "$kde_use_debug_define" = "yes"; then
  1604.          CXXFLAGS="$CXXFLAGS -DNDEBUG"
  1605.       fi
  1606.     fi
  1607.  
  1608.     if test "$kde_use_profiling" = yes; then
  1609.        echo $ac_n "checking whether ${CXX-g++} accepts -pg""... $ac_c" 1>&6
  1610. echo "configure:1611: checking whether ${CXX-g++} accepts -pg" >&5
  1611. if eval "test \"`echo '$''{'kde_cv_prog_cxx_pg'+set}'`\" = set"; then
  1612.   echo $ac_n "(cached) $ac_c" 1>&6
  1613. else
  1614.   echo 'void f(){}' > conftest.cc
  1615.    if test -z "`${CXX-g++} -pg -c conftest.cc 2>&1`"; then
  1616.      kde_cv_prog_cxx_pg=yes
  1617.    else
  1618.      kde_cv_prog_cxx_pg=no
  1619.    fi
  1620.   rm -f conftest*
  1621.  
  1622. fi
  1623.  
  1624. echo "$ac_t""$kde_cv_prog_cxx_pg" 1>&6
  1625.       if test "$kde_cv_prog_cxx_pg" = yes; then
  1626.         CXXFLAGS="$CXXFLAGS -pg"
  1627.       fi
  1628.     fi
  1629.     
  1630.     
  1631.  
  1632. echo $ac_n "checking whether $CXX supports -fno-exceptions""... $ac_c" 1>&6
  1633. echo "configure:1634: checking whether $CXX supports -fno-exceptions" >&5
  1634. kde_cache=`echo fno-exceptions | sed 'y%.=/+-%___p_%'`
  1635. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  1636.   echo $ac_n "(cached) $ac_c" 1>&6
  1637. else
  1638.   
  1639. echo 'int main() { return 0; }' >conftest.cc
  1640. eval "kde_cv_prog_cxx_$kde_cache=no"
  1641. if test -z "`$CXX -fno-exceptions -c conftest.cc 2>&1`"; then
  1642.   if test -z "`$CXX -fno-exceptions -o conftest conftest.o 2>&1`"; then
  1643.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  1644.   fi
  1645. fi
  1646. rm -f conftest*
  1647.  
  1648. fi
  1649.  
  1650. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  1651.  echo "$ac_t""yes" 1>&6
  1652.  :
  1653.  
  1654.       CXXFLAGS="$CXXFLAGS -fno-exceptions"
  1655.     
  1656. else
  1657.  echo "$ac_t""no" 1>&6
  1658.  :
  1659.  
  1660. fi
  1661.  
  1662.       
  1663.  
  1664.     
  1665.  
  1666. echo $ac_n "checking whether $CXX supports -fno-check-new""... $ac_c" 1>&6
  1667. echo "configure:1668: checking whether $CXX supports -fno-check-new" >&5
  1668. kde_cache=`echo fno-check-new | sed 'y%.=/+-%___p_%'`
  1669. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  1670.   echo $ac_n "(cached) $ac_c" 1>&6
  1671. else
  1672.   
  1673. echo 'int main() { return 0; }' >conftest.cc
  1674. eval "kde_cv_prog_cxx_$kde_cache=no"
  1675. if test -z "`$CXX -fno-check-new -c conftest.cc 2>&1`"; then
  1676.   if test -z "`$CXX -fno-check-new -o conftest conftest.o 2>&1`"; then
  1677.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  1678.   fi
  1679. fi
  1680. rm -f conftest*
  1681.  
  1682. fi
  1683.  
  1684. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  1685.  echo "$ac_t""yes" 1>&6
  1686.  :
  1687.  
  1688.       CXXFLAGS="$CXXFLAGS -fno-check-new"
  1689.     
  1690. else
  1691.  echo "$ac_t""no" 1>&6
  1692.  :
  1693.  
  1694. fi
  1695.  
  1696.  
  1697.     if test "$GXX" = "yes"; then
  1698.        CXXFLAGS="$CXXFLAGS"
  1699.  
  1700.        if test true || test "$kde_use_debug_code" = "yes"; then
  1701.      CXXFLAGS="$CXXFLAGS -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
  1702.  
  1703.          
  1704.  
  1705. echo $ac_n "checking whether $CXX supports -Wno-long-long""... $ac_c" 1>&6
  1706. echo "configure:1707: checking whether $CXX supports -Wno-long-long" >&5
  1707. kde_cache=`echo Wno-long-long | sed 'y%.=/+-%___p_%'`
  1708. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  1709.   echo $ac_n "(cached) $ac_c" 1>&6
  1710. else
  1711.   
  1712. echo 'int main() { return 0; }' >conftest.cc
  1713. eval "kde_cv_prog_cxx_$kde_cache=no"
  1714. if test -z "`$CXX -Wno-long-long -c conftest.cc 2>&1`"; then
  1715.   if test -z "`$CXX -Wno-long-long -o conftest conftest.o 2>&1`"; then
  1716.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  1717.   fi
  1718. fi
  1719. rm -f conftest*
  1720.  
  1721. fi
  1722.  
  1723. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  1724.  echo "$ac_t""yes" 1>&6
  1725.  :
  1726.  
  1727.        CXXFLAGS="$CXXFLAGS -Wno-long-long"
  1728.      
  1729. else
  1730.  echo "$ac_t""no" 1>&6
  1731.  :
  1732.  
  1733. fi
  1734.  
  1735.          
  1736.  
  1737. echo $ac_n "checking whether $CXX supports -Wnon-virtual-dtor""... $ac_c" 1>&6
  1738. echo "configure:1739: checking whether $CXX supports -Wnon-virtual-dtor" >&5
  1739. kde_cache=`echo Wnon-virtual-dtor | sed 'y%.=/+-%___p_%'`
  1740. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  1741.   echo $ac_n "(cached) $ac_c" 1>&6
  1742. else
  1743.   
  1744. echo 'int main() { return 0; }' >conftest.cc
  1745. eval "kde_cv_prog_cxx_$kde_cache=no"
  1746. if test -z "`$CXX -Wnon-virtual-dtor -c conftest.cc 2>&1`"; then
  1747.   if test -z "`$CXX -Wnon-virtual-dtor -o conftest conftest.o 2>&1`"; then
  1748.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  1749.   fi
  1750. fi
  1751. rm -f conftest*
  1752.  
  1753. fi
  1754.  
  1755. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  1756.  echo "$ac_t""yes" 1>&6
  1757.  :
  1758.  
  1759.            CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
  1760.          
  1761. else
  1762.  echo "$ac_t""no" 1>&6
  1763.  :
  1764.  
  1765. fi
  1766.  
  1767.          
  1768.  
  1769. echo $ac_n "checking whether $CXX supports -fno-builtin""... $ac_c" 1>&6
  1770. echo "configure:1771: checking whether $CXX supports -fno-builtin" >&5
  1771. kde_cache=`echo fno-builtin | sed 'y%.=/+-%___p_%'`
  1772. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  1773.   echo $ac_n "(cached) $ac_c" 1>&6
  1774. else
  1775.   
  1776. echo 'int main() { return 0; }' >conftest.cc
  1777. eval "kde_cv_prog_cxx_$kde_cache=no"
  1778. if test -z "`$CXX -fno-builtin -c conftest.cc 2>&1`"; then
  1779.   if test -z "`$CXX -fno-builtin -o conftest conftest.o 2>&1`"; then
  1780.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  1781.   fi
  1782. fi
  1783. rm -f conftest*
  1784.  
  1785. fi
  1786.  
  1787. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  1788.  echo "$ac_t""yes" 1>&6
  1789.  :
  1790.  
  1791.            CXXFLAGS="$CXXFLAGS -fno-builtin"
  1792.          
  1793. else
  1794.  echo "$ac_t""no" 1>&6
  1795.  :
  1796.  
  1797. fi
  1798.  
  1799.     
  1800.        fi
  1801.  
  1802.        if test "$kde_use_strict_options" = "yes"; then
  1803.     CXXFLAGS="$CXXFLAGS -Wcast-qual -Wbad-function-cast -Wshadow -Wcast-align"
  1804.        fi
  1805.  
  1806.        if test "$kde_very_strict" = "yes"; then
  1807.          CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wredundant-decls -Wconversion"
  1808.        fi
  1809.     fi
  1810.   fi
  1811.  
  1812.     
  1813.  
  1814. echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6
  1815. echo "configure:1816: checking whether $CXX supports -fexceptions" >&5
  1816. kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`
  1817. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  1818.   echo $ac_n "(cached) $ac_c" 1>&6
  1819. else
  1820.   
  1821. echo 'int main() { return 0; }' >conftest.cc
  1822. eval "kde_cv_prog_cxx_$kde_cache=no"
  1823. if test -z "`$CXX -fexceptions -c conftest.cc 2>&1`"; then
  1824.   if test -z "`$CXX -fexceptions -o conftest conftest.o 2>&1`"; then
  1825.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  1826.   fi
  1827. fi
  1828. rm -f conftest*
  1829.  
  1830. fi
  1831.  
  1832. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  1833.  echo "$ac_t""yes" 1>&6
  1834.  :
  1835.  
  1836.       USE_EXCEPTIONS="-fexceptions"
  1837.     
  1838. else
  1839.  echo "$ac_t""no" 1>&6
  1840.  :
  1841.  USE_EXCEPTIONS=
  1842.     
  1843. fi
  1844.  
  1845.     
  1846.  
  1847.     
  1848.  
  1849. echo $ac_n "checking whether $CXX supports -frtti""... $ac_c" 1>&6
  1850. echo "configure:1851: checking whether $CXX supports -frtti" >&5
  1851. kde_cache=`echo frtti | sed 'y%.=/+-%___p_%'`
  1852. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  1853.   echo $ac_n "(cached) $ac_c" 1>&6
  1854. else
  1855.   
  1856. echo 'int main() { return 0; }' >conftest.cc
  1857. eval "kde_cv_prog_cxx_$kde_cache=no"
  1858. if test -z "`$CXX -frtti -c conftest.cc 2>&1`"; then
  1859.   if test -z "`$CXX -frtti -o conftest conftest.o 2>&1`"; then
  1860.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  1861.   fi
  1862. fi
  1863. rm -f conftest*
  1864.  
  1865. fi
  1866.  
  1867. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  1868.  echo "$ac_t""yes" 1>&6
  1869.  :
  1870.  
  1871.       USE_RTTI="-frtti"
  1872.     
  1873. else
  1874.  echo "$ac_t""no" 1>&6
  1875.  :
  1876.  USE_RTTI=
  1877.     
  1878. fi
  1879.  
  1880.     
  1881.  
  1882.     case "$host" in
  1883.       *-*-irix*)  test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS" ;;
  1884.       *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";;
  1885.       *-*-sysv5uw7*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE7";;
  1886.       *-*-solaris*) 
  1887.         if test "$GXX" = yes; then
  1888.           libstdcpp=`gcc -print-file-name=libstdc++.so`
  1889.           if test ! -f $libstdcpp; then
  1890.              { echo "configure: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" 1>&2; exit 1; }
  1891.           fi
  1892.         fi
  1893.         ;;
  1894.     esac
  1895.  
  1896.     if test -n "$USER_CXXFLAGS"; then
  1897.        CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
  1898.     fi
  1899.  
  1900.       __val=$CXX
  1901.   __forbid=" -fno-rtti -rpath "
  1902.   if test -n "$__val"; then
  1903.     __new=""
  1904.     ac_save_IFS=$IFS
  1905.     IFS="     "
  1906.     for i in $__val; do
  1907.       case "$__forbid" in
  1908.         *" $i "*) echo "configure: warning: found forbidden $i in CXX, removing it" 1>&2 ;;
  1909.     *) # Careful to not add spaces, where there were none, because otherwise
  1910.        # libtool gets confused, if we change e.g. CXX
  1911.        if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
  1912.       esac
  1913.     done
  1914.     IFS=$ac_save_IFS
  1915.     CXX=$__new
  1916.   fi
  1917.  
  1918.   __val=$CXXFLAGS
  1919.   __forbid=" -fno-rtti -rpath "
  1920.   if test -n "$__val"; then
  1921.     __new=""
  1922.     ac_save_IFS=$IFS
  1923.     IFS="     "
  1924.     for i in $__val; do
  1925.       case "$__forbid" in
  1926.         *" $i "*) echo "configure: warning: found forbidden $i in CXXFLAGS, removing it" 1>&2 ;;
  1927.     *) # Careful to not add spaces, where there were none, because otherwise
  1928.        # libtool gets confused, if we change e.g. CXX
  1929.        if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
  1930.       esac
  1931.     done
  1932.     IFS=$ac_save_IFS
  1933.     CXXFLAGS=$__new
  1934.   fi
  1935.  
  1936.  
  1937.  
  1938.     echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  1939. echo "configure:1940: checking how to run the C++ preprocessor" >&5
  1940.     if test -z "$CXXCPP"; then
  1941.       if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  1942.   echo $ac_n "(cached) $ac_c" 1>&6
  1943. else
  1944.   
  1945.                    ac_ext=C
  1946. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1947. ac_cpp='$CXXCPP $CPPFLAGS'
  1948. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1949. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1950. cross_compiling=$ac_cv_prog_cxx_cross
  1951.  
  1952. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1953.  
  1954.          CXXCPP="${CXX-g++} -E"
  1955.          cat > conftest.$ac_ext <<EOF
  1956. #line 1957 "configure"
  1957. #include "confdefs.h"
  1958. #include <stdlib.h>
  1959. EOF
  1960. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1961. { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1962. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1963. if test -z "$ac_err"; then
  1964.   :
  1965. else
  1966.   echo "$ac_err" >&5
  1967.   echo "configure: failed program was:" >&5
  1968.   cat conftest.$ac_ext >&5
  1969.   rm -rf conftest*
  1970.   CXXCPP=/lib/cpp
  1971. fi
  1972. rm -f conftest*
  1973.          ac_cv_prog_CXXCPP="$CXXCPP"
  1974.          ac_ext=c
  1975. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1976. ac_cpp='$CPP $CPPFLAGS'
  1977. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1978. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1979. cross_compiling=$ac_cv_prog_cc_cross
  1980.      
  1981. fi
  1982.      CXXCPP="$ac_cv_prog_CXXCPP"
  1983.     fi
  1984.     echo "$ac_t""$CXXCPP" 1>&6
  1985.     
  1986.     # the following is to allow programs, that are known to
  1987.     # have problems when compiled with -O2
  1988.     if test -n "$CXXFLAGS"; then
  1989.       kde_safe_IFS=$IFS
  1990.       IFS=" "
  1991.       NOOPT_CXXFLAGS=""
  1992.       for i in $CXXFLAGS; do
  1993.         case $i in
  1994.           -O*)
  1995.                 ;;
  1996.           *)
  1997.                 NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i"
  1998.                 ;;
  1999.         esac
  2000.       done
  2001.       IFS=$kde_safe_IFS
  2002.     fi
  2003.     
  2004.  
  2005.     
  2006.   # Check whether --enable-final or --disable-final was given.
  2007. if test "${enable_final+set}" = set; then
  2008.   enableval="$enable_final"
  2009.   kde_use_final=$enableval
  2010. else
  2011.   kde_use_final=no
  2012. fi
  2013.  
  2014.  
  2015.   
  2016.   REPO=""
  2017.   NOREPO=""
  2018.  
  2019.   
  2020.  
  2021. echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6
  2022. echo "configure:2023: checking whether $CXX supports -frepo" >&5
  2023. kde_cache=`echo frepo | sed 'y%.=/+-%___p_%'`
  2024. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  2025.   echo $ac_n "(cached) $ac_c" 1>&6
  2026. else
  2027.   
  2028. echo 'int main() { return 0; }' >conftest.cc
  2029. eval "kde_cv_prog_cxx_$kde_cache=no"
  2030. if test -z "`$CXX -frepo -c conftest.cc 2>&1`"; then
  2031.   if test -z "`$CXX -frepo -o conftest conftest.o 2>&1`"; then
  2032.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  2033.   fi
  2034. fi
  2035. rm -f conftest*
  2036.  
  2037. fi
  2038.  
  2039. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  2040.  echo "$ac_t""yes" 1>&6
  2041.  :
  2042.  
  2043.      REPO="-frepo"
  2044.      NOREPO="-fno-repo"
  2045.    
  2046. else
  2047.  echo "$ac_t""no" 1>&6
  2048.  :
  2049.  
  2050. fi
  2051.  
  2052.  
  2053.   if test -z "$REPO"; then
  2054.   
  2055.  
  2056. echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6
  2057. echo "configure:2058: checking whether $CXX supports -instances=explicit" >&5
  2058. kde_cache=`echo instances=explicit | sed 'y%.=/+-%___p_%'`
  2059. if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
  2060.   echo $ac_n "(cached) $ac_c" 1>&6
  2061. else
  2062.   
  2063. echo 'int main() { return 0; }' >conftest.cc
  2064. eval "kde_cv_prog_cxx_$kde_cache=no"
  2065. if test -z "`$CXX -instances=explicit -c conftest.cc 2>&1`"; then
  2066.   if test -z "`$CXX -instances=explicit -o conftest conftest.o 2>&1`"; then
  2067.     eval "kde_cv_prog_cxx_$kde_cache=yes"
  2068.   fi
  2069. fi
  2070. rm -f conftest*
  2071.  
  2072. fi
  2073.  
  2074. if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
  2075.  echo "$ac_t""yes" 1>&6
  2076.  :
  2077.  
  2078.      REPO="-instances=explicit"
  2079.      NOREPO="-instances=extern"
  2080.   
  2081. else
  2082.  echo "$ac_t""no" 1>&6
  2083.  :
  2084.  
  2085. fi
  2086.  
  2087.   fi
  2088.  
  2089.   if test -n "$REPO"; then
  2090.      cat >> confdefs.h <<EOF
  2091. #define HAVE_TEMPLATE_REPOSITORY 1
  2092. EOF
  2093.  
  2094.      
  2095.   fi
  2096.  
  2097.   
  2098.   
  2099.  
  2100.   if test "x$kde_use_final" = "xyes"; then
  2101.       KDE_USE_FINAL_TRUE=""
  2102.       KDE_USE_FINAL_FALSE="#"
  2103.    else
  2104.       KDE_USE_FINAL_TRUE="#"
  2105.       KDE_USE_FINAL_FALSE=""
  2106.   fi
  2107.   
  2108.   
  2109.  
  2110.   # Check whether --enable-closure or --disable-closure was given.
  2111. if test "${enable_closure+set}" = set; then
  2112.   enableval="$enable_closure"
  2113.   kde_use_closure=$enableval
  2114. else
  2115.   kde_use_closure=yes
  2116. fi
  2117.  
  2118.  
  2119.   if test "x$kde_use_closure" = "xyes"; then
  2120.        KDE_USE_CLOSURE_TRUE=""
  2121.        KDE_USE_CLOSURE_FALSE="#"
  2122. #       CXXFLAGS="$CXXFLAGS $REPO"
  2123.   else
  2124.        KDE_USE_CLOSURE_TRUE="#"
  2125.        KDE_USE_CLOSURE_FALSE=""
  2126.   fi
  2127.   
  2128.   
  2129.  
  2130.  
  2131.     
  2132.  
  2133.     KDE_CXXFLAGS=
  2134.     
  2135.  
  2136. # Check whether --enable-shared or --disable-shared was given.
  2137. if test "${enable_shared+set}" = set; then
  2138.   enableval="$enable_shared"
  2139.   p=${PACKAGE-default}
  2140. case "$enableval" in
  2141. yes) enable_shared=yes ;;
  2142. no) enable_shared=no ;;
  2143. *)
  2144.   enable_shared=no
  2145.   # Look at the argument we got.  We use all the common list separators.
  2146.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2147.   for pkg in $enableval; do
  2148.     if test "X$pkg" = "X$p"; then
  2149.       enable_shared=yes
  2150.     fi
  2151.   done
  2152.   IFS="$ac_save_ifs"
  2153.   ;;
  2154. esac
  2155. else
  2156.   enable_shared=yes
  2157. fi
  2158.  
  2159. # Check whether --enable-static or --disable-static was given.
  2160. if test "${enable_static+set}" = set; then
  2161.   enableval="$enable_static"
  2162.   p=${PACKAGE-default}
  2163. case "$enableval" in
  2164. yes) enable_static=yes ;;
  2165. no) enable_static=no ;;
  2166. *)
  2167.   enable_static=no
  2168.   # Look at the argument we got.  We use all the common list separators.
  2169.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2170.   for pkg in $enableval; do
  2171.     if test "X$pkg" = "X$p"; then
  2172.       enable_static=yes
  2173.     fi
  2174.   done
  2175.   IFS="$ac_save_ifs"
  2176.   ;;
  2177. esac
  2178. else
  2179.   enable_static=no
  2180. fi
  2181.  
  2182. # Check whether --enable-fast-install or --disable-fast-install was given.
  2183. if test "${enable_fast_install+set}" = set; then
  2184.   enableval="$enable_fast_install"
  2185.   p=${PACKAGE-default}
  2186. case "$enableval" in
  2187. yes) enable_fast_install=yes ;;
  2188. no) enable_fast_install=no ;;
  2189. *)
  2190.   enable_fast_install=no
  2191.   # Look at the argument we got.  We use all the common list separators.
  2192.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2193.   for pkg in $enableval; do
  2194.     if test "X$pkg" = "X$p"; then
  2195.       enable_fast_install=yes
  2196.     fi
  2197.   done
  2198.   IFS="$ac_save_ifs"
  2199.   ;;
  2200. esac
  2201. else
  2202.   enable_fast_install=yes
  2203. fi
  2204.  
  2205. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  2206. if test "${with_gnu_ld+set}" = set; then
  2207.   withval="$with_gnu_ld"
  2208.   test "$withval" = no || with_gnu_ld=yes
  2209. else
  2210.   with_gnu_ld=no
  2211. fi
  2212.  
  2213. ac_prog=ld
  2214. if test "$GCC" = yes; then
  2215.   # Check if gcc -print-prog-name=ld gives a path.
  2216.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  2217. echo "configure:2218: checking for ld used by GCC" >&5
  2218.   case $host in
  2219.   *-*-mingw*)
  2220.     # gcc leaves a trailing carriage return which upsets mingw
  2221.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2222.   *)
  2223.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2224.   esac
  2225.   case "$ac_prog" in
  2226.     # Accept absolute paths.
  2227.     [\\/]* | [A-Za-z]:[\\/]*)
  2228.       re_direlt='/[^/][^/]*/\.\./'
  2229.       # Canonicalize the path of ld
  2230.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  2231.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2232.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  2233.       done
  2234.       test -z "$LD" && LD="$ac_prog"
  2235.       ;;
  2236.   "")
  2237.     # If it fails, then pretend we aren't using GCC.
  2238.     ac_prog=ld
  2239.     ;;
  2240.   *)
  2241.     # If it is relative, then search for the first ld in PATH.
  2242.     with_gnu_ld=unknown
  2243.     ;;
  2244.   esac
  2245. elif test "$with_gnu_ld" = yes; then
  2246.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  2247. echo "configure:2248: checking for GNU ld" >&5
  2248. else
  2249.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  2250. echo "configure:2251: checking for non-GNU ld" >&5
  2251. fi
  2252. if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  2253.   echo $ac_n "(cached) $ac_c" 1>&6
  2254. else
  2255.   if test -z "$LD"; then
  2256.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  2257.   for ac_dir in $PATH; do
  2258.     test -z "$ac_dir" && ac_dir=.
  2259.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2260.       lt_cv_path_LD="$ac_dir/$ac_prog"
  2261.       # Check to see if the program is GNU ld.  I'd rather use --version,
  2262.       # but apparently some GNU ld's only accept -v.
  2263.       # Break only if it was the GNU/non-GNU ld that we prefer.
  2264.       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  2265.     test "$with_gnu_ld" != no && break
  2266.       else
  2267.     test "$with_gnu_ld" != yes && break
  2268.       fi
  2269.     fi
  2270.   done
  2271.   IFS="$ac_save_ifs"
  2272. else
  2273.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2274. fi
  2275. fi
  2276.  
  2277. LD="$lt_cv_path_LD"
  2278. if test -n "$LD"; then
  2279.   echo "$ac_t""$LD" 1>&6
  2280. else
  2281.   echo "$ac_t""no" 1>&6
  2282. fi
  2283. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  2284. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  2285. echo "configure:2286: checking if the linker ($LD) is GNU ld" >&5
  2286. if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  2287.   echo $ac_n "(cached) $ac_c" 1>&6
  2288. else
  2289.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2290. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  2291.   lt_cv_prog_gnu_ld=yes
  2292. else
  2293.   lt_cv_prog_gnu_ld=no
  2294. fi
  2295. fi
  2296.  
  2297. echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  2298. with_gnu_ld=$lt_cv_prog_gnu_ld
  2299.  
  2300.  
  2301. echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  2302. echo "configure:2303: checking for $LD option to reload object files" >&5
  2303. if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  2304.   echo $ac_n "(cached) $ac_c" 1>&6
  2305. else
  2306.   lt_cv_ld_reload_flag='-r'
  2307. fi
  2308.  
  2309. echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  2310. reload_flag=$lt_cv_ld_reload_flag
  2311. test -n "$reload_flag" && reload_flag=" $reload_flag"
  2312.  
  2313. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  2314. echo "configure:2315: checking for BSD-compatible nm" >&5
  2315. if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  2316.   echo $ac_n "(cached) $ac_c" 1>&6
  2317. else
  2318.   if test -n "$NM"; then
  2319.   # Let the user override the test.
  2320.   lt_cv_path_NM="$NM"
  2321. else
  2322.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  2323.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2324.     test -z "$ac_dir" && ac_dir=.
  2325.     tmp_nm=$ac_dir/${ac_tool_prefix}nm
  2326.     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  2327.       # Check to see if the nm accepts a BSD-compat flag.
  2328.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2329.       #   nm: unknown option "B" ignored
  2330.       # Tru64's nm complains that /dev/null is an invalid object file
  2331.       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  2332.     lt_cv_path_NM="$tmp_nm -B"
  2333.     break
  2334.       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  2335.     lt_cv_path_NM="$tmp_nm -p"
  2336.     break
  2337.       else
  2338.     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2339.     continue # so that we can try to find one that supports BSD flags
  2340.       fi
  2341.     fi
  2342.   done
  2343.   IFS="$ac_save_ifs"
  2344.   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2345. fi
  2346. fi
  2347.  
  2348. NM="$lt_cv_path_NM"
  2349. echo "$ac_t""$NM" 1>&6
  2350.  
  2351. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  2352. echo "configure:2353: checking whether ln -s works" >&5
  2353. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  2354.   echo $ac_n "(cached) $ac_c" 1>&6
  2355. else
  2356.   rm -f conftestdata
  2357. if ln -s X conftestdata 2>/dev/null
  2358. then
  2359.   rm -f conftestdata
  2360.   ac_cv_prog_LN_S="ln -s"
  2361. else
  2362.   ac_cv_prog_LN_S=ln
  2363. fi
  2364. fi
  2365. LN_S="$ac_cv_prog_LN_S"
  2366. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  2367.   echo "$ac_t""yes" 1>&6
  2368. else
  2369.   echo "$ac_t""no" 1>&6
  2370. fi
  2371.  
  2372. echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  2373. echo "configure:2374: checking how to recognise dependant libraries" >&5
  2374. if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  2375.   echo $ac_n "(cached) $ac_c" 1>&6
  2376. else
  2377.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  2378. lt_cv_file_magic_test_file=
  2379. lt_cv_deplibs_check_method='unknown'
  2380. # Need to set the preceding variable on all platforms that support
  2381. # interlibrary dependencies.
  2382. # 'none' -- dependencies not supported.
  2383. # `unknown' -- same as none, but documents that we really don't know.
  2384. # 'pass_all' -- all dependencies passed with no checks.
  2385. # 'test_compile' -- check by making test program.
  2386. # 'file_magic [regex]' -- check by looking for files in library path
  2387. # which responds to the $file_magic_cmd with a given egrep regex.
  2388. # If you have `file' or equivalent on your system and you're not sure
  2389. # whether `pass_all' will *always* work, you probably want this one.
  2390.  
  2391. case "$host_os" in
  2392. aix4*)
  2393.   lt_cv_deplibs_check_method=pass_all
  2394.   ;;
  2395.  
  2396. beos*)
  2397.   lt_cv_deplibs_check_method=pass_all
  2398.   ;;
  2399.  
  2400. bsdi4*)
  2401.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  2402.     lt_cv_file_magic_cmd='/usr/bin/file -L'
  2403.   lt_cv_file_magic_test_file=/shlib/libc.so
  2404.   ;;
  2405.  
  2406. cygwin* | mingw* |pw32*)
  2407.   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2408.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  2409.   ;;
  2410.  
  2411. darwin* | rhapsody*)
  2412.   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  2413.   lt_cv_file_magic_cmd=/usr/bin/file
  2414.   lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  2415.   ;;
  2416.  
  2417. freebsd* )
  2418.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2419.     case "$host_cpu" in
  2420.     i*86 )
  2421.       # Not sure whether the presence of OpenBSD here was a mistake.
  2422.       # Let's accept both of them until this is cleared up.
  2423.             lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  2424.             lt_cv_file_magic_cmd=/usr/bin/file
  2425.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2426.       ;;
  2427.     esac
  2428.   else
  2429.     lt_cv_deplibs_check_method=pass_all
  2430.   fi
  2431.   ;;
  2432.  
  2433. gnu*)
  2434.   lt_cv_deplibs_check_method=pass_all
  2435.   ;;
  2436.  
  2437. hpux10.20*|hpux11*)
  2438.   # TODO:  Does this work for hpux-11 too?
  2439.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  2440.     lt_cv_file_magic_cmd=/usr/bin/file
  2441.   lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2442.   ;;
  2443.  
  2444. irix5* | irix6*)
  2445.   case "$host_os" in
  2446.   irix5*)
  2447.     # this will be overridden with pass_all, but let us keep it just in case
  2448.     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  2449.     ;;
  2450.   *)
  2451.     case "$LD" in
  2452.     *-32|*"-32 ") libmagic=32-bit;;
  2453.     *-n32|*"-n32 ") libmagic=N32;;
  2454.     *-64|*"-64 ") libmagic=64-bit;;
  2455.     *) libmagic=never-match;;
  2456.     esac
  2457.     # this will be overridden with pass_all, but let us keep it just in case
  2458.         lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  2459.         ;;
  2460.   esac
  2461.   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  2462.   lt_cv_deplibs_check_method=pass_all
  2463.   ;;
  2464.  
  2465. # This must be Linux ELF.
  2466. linux-gnu*)
  2467.   case "$host_cpu" in
  2468.   alpha* | i*86 | powerpc* | sparc* | ia64* | s390* )
  2469.     lt_cv_deplibs_check_method=pass_all ;;
  2470.   *)
  2471.     # glibc up to 2.1.1 does not perform some relocations on ARM
  2472.         lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  2473.       esac
  2474.   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  2475.   ;;
  2476.  
  2477. netbsd*)
  2478.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2479.     lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
  2480.   else
  2481.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  2482.   fi
  2483.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  2484.   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2485.   ;;
  2486.  
  2487. openbsd* )
  2488.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2489.     case "$host_cpu" in
  2490.     i*86 )
  2491.             lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
  2492.             lt_cv_file_magic_cmd=/usr/bin/file
  2493.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2494.       ;;
  2495.     esac
  2496.   else
  2497.     lt_cv_deplibs_check_method=pass_all
  2498.   fi
  2499.   ;;
  2500.  
  2501. newsos6)
  2502.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  2503.   lt_cv_file_magic_cmd=/usr/bin/file
  2504.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2505.   ;;
  2506.  
  2507. osf3* | osf4* | osf5*)
  2508.   # this will be overridden with pass_all, but let us keep it just in case
  2509.   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  2510.   lt_cv_file_magic_test_file=/shlib/libc.so
  2511.   lt_cv_deplibs_check_method=pass_all
  2512.   ;;
  2513.  
  2514. sco3.2v5*)
  2515.   lt_cv_deplibs_check_method=pass_all
  2516.   ;;
  2517.  
  2518. solaris*)
  2519.   lt_cv_deplibs_check_method=pass_all
  2520.   lt_cv_file_magic_test_file=/lib/libc.so
  2521.   ;;
  2522.  
  2523. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2524.   case "$host_vendor" in
  2525.   ncr)
  2526.     lt_cv_deplibs_check_method=pass_all
  2527.     ;;
  2528.   motorola)
  2529.         lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  2530.         lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2531.     ;;
  2532.   esac
  2533.   ;;
  2534. esac
  2535.  
  2536. fi
  2537.  
  2538. echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  2539. file_magic_cmd=$lt_cv_file_magic_cmd
  2540. deplibs_check_method=$lt_cv_deplibs_check_method
  2541.  
  2542. if test $host != $build; then
  2543.   ac_tool_prefix=${host_alias}-
  2544. else
  2545.   ac_tool_prefix=
  2546. fi
  2547.  
  2548. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  2549.  
  2550. # Only perform the check for file, if the check method requires it
  2551. case "$deplibs_check_method" in
  2552. file_magic*)
  2553.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  2554.     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  2555. echo "configure:2556: checking for ${ac_tool_prefix}file" >&5
  2556. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  2557.   echo $ac_n "(cached) $ac_c" 1>&6
  2558. else
  2559.   case "$MAGIC_CMD" in
  2560.   /*)
  2561.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2562.   ;;
  2563.   ?:/*)
  2564.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2565.   ;;
  2566.   *)
  2567.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  2568.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  2569.   ac_dummy="/usr/bin:$PATH"
  2570.   for ac_dir in $ac_dummy; do
  2571.     test -z "$ac_dir" && ac_dir=.
  2572.     if test -f $ac_dir/${ac_tool_prefix}file; then
  2573.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  2574.       if test -n "$file_magic_test_file"; then
  2575.     case "$deplibs_check_method" in
  2576.     "file_magic "*)
  2577.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2578.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2579.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2580.         egrep "$file_magic_regex" > /dev/null; then
  2581.         :
  2582.       else
  2583.         cat <<EOF 1>&2
  2584.  
  2585. *** Warning: the command libtool uses to detect shared libraries,
  2586. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2587. *** The result is that libtool may fail to recognize shared libraries
  2588. *** as such.  This will affect the creation of libtool libraries that
  2589. *** depend on shared libraries, but programs linked with such libtool
  2590. *** libraries will work regardless of this problem.  Nevertheless, you
  2591. *** may want to report the problem to your system manager and/or to
  2592. *** bug-libtool@gnu.org
  2593.  
  2594. EOF
  2595.       fi ;;
  2596.     esac
  2597.       fi
  2598.       break
  2599.     fi
  2600.   done
  2601.   IFS="$ac_save_ifs"
  2602.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  2603.   ;;
  2604. esac
  2605. fi
  2606.  
  2607. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2608. if test -n "$MAGIC_CMD"; then
  2609.   echo "$ac_t""$MAGIC_CMD" 1>&6
  2610. else
  2611.   echo "$ac_t""no" 1>&6
  2612. fi
  2613.  
  2614. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2615.   if test -n "$ac_tool_prefix"; then
  2616.     echo $ac_n "checking for file""... $ac_c" 1>&6
  2617. echo "configure:2618: checking for file" >&5
  2618. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  2619.   echo $ac_n "(cached) $ac_c" 1>&6
  2620. else
  2621.   case "$MAGIC_CMD" in
  2622.   /*)
  2623.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2624.   ;;
  2625.   ?:/*)
  2626.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2627.   ;;
  2628.   *)
  2629.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  2630.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  2631.   ac_dummy="/usr/bin:$PATH"
  2632.   for ac_dir in $ac_dummy; do
  2633.     test -z "$ac_dir" && ac_dir=.
  2634.     if test -f $ac_dir/file; then
  2635.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  2636.       if test -n "$file_magic_test_file"; then
  2637.     case "$deplibs_check_method" in
  2638.     "file_magic "*)
  2639.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2640.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2641.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2642.         egrep "$file_magic_regex" > /dev/null; then
  2643.         :
  2644.       else
  2645.         cat <<EOF 1>&2
  2646.  
  2647. *** Warning: the command libtool uses to detect shared libraries,
  2648. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2649. *** The result is that libtool may fail to recognize shared libraries
  2650. *** as such.  This will affect the creation of libtool libraries that
  2651. *** depend on shared libraries, but programs linked with such libtool
  2652. *** libraries will work regardless of this problem.  Nevertheless, you
  2653. *** may want to report the problem to your system manager and/or to
  2654. *** bug-libtool@gnu.org
  2655.  
  2656. EOF
  2657.       fi ;;
  2658.     esac
  2659.       fi
  2660.       break
  2661.     fi
  2662.   done
  2663.   IFS="$ac_save_ifs"
  2664.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  2665.   ;;
  2666. esac
  2667. fi
  2668.  
  2669. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2670. if test -n "$MAGIC_CMD"; then
  2671.   echo "$ac_t""$MAGIC_CMD" 1>&6
  2672. else
  2673.   echo "$ac_t""no" 1>&6
  2674. fi
  2675.  
  2676.   else
  2677.     MAGIC_CMD=:
  2678.   fi
  2679. fi
  2680.  
  2681.   fi
  2682.   ;;
  2683. esac
  2684.  
  2685. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2686. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2687. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2688. echo "configure:2689: checking for $ac_word" >&5
  2689. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2690.   echo $ac_n "(cached) $ac_c" 1>&6
  2691. else
  2692.   if test -n "$RANLIB"; then
  2693.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2694. else
  2695.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2696.   ac_dummy="$PATH"
  2697.   for ac_dir in $ac_dummy; do
  2698.     test -z "$ac_dir" && ac_dir=.
  2699.     if test -f $ac_dir/$ac_word; then
  2700.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2701.       break
  2702.     fi
  2703.   done
  2704.   IFS="$ac_save_ifs"
  2705. fi
  2706. fi
  2707. RANLIB="$ac_cv_prog_RANLIB"
  2708. if test -n "$RANLIB"; then
  2709.   echo "$ac_t""$RANLIB" 1>&6
  2710. else
  2711.   echo "$ac_t""no" 1>&6
  2712. fi
  2713.  
  2714.  
  2715. if test -z "$ac_cv_prog_RANLIB"; then
  2716. if test -n "$ac_tool_prefix"; then
  2717.   # Extract the first word of "ranlib", so it can be a program name with args.
  2718. set dummy ranlib; ac_word=$2
  2719. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2720. echo "configure:2721: checking for $ac_word" >&5
  2721. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2722.   echo $ac_n "(cached) $ac_c" 1>&6
  2723. else
  2724.   if test -n "$RANLIB"; then
  2725.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2726. else
  2727.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2728.   ac_dummy="$PATH"
  2729.   for ac_dir in $ac_dummy; do
  2730.     test -z "$ac_dir" && ac_dir=.
  2731.     if test -f $ac_dir/$ac_word; then
  2732.       ac_cv_prog_RANLIB="ranlib"
  2733.       break
  2734.     fi
  2735.   done
  2736.   IFS="$ac_save_ifs"
  2737.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2738. fi
  2739. fi
  2740. RANLIB="$ac_cv_prog_RANLIB"
  2741. if test -n "$RANLIB"; then
  2742.   echo "$ac_t""$RANLIB" 1>&6
  2743. else
  2744.   echo "$ac_t""no" 1>&6
  2745. fi
  2746.  
  2747. else
  2748.   RANLIB=":"
  2749. fi
  2750. fi
  2751.  
  2752. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2753. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2754. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2755. echo "configure:2756: checking for $ac_word" >&5
  2756. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2757.   echo $ac_n "(cached) $ac_c" 1>&6
  2758. else
  2759.   if test -n "$STRIP"; then
  2760.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2761. else
  2762.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2763.   ac_dummy="$PATH"
  2764.   for ac_dir in $ac_dummy; do
  2765.     test -z "$ac_dir" && ac_dir=.
  2766.     if test -f $ac_dir/$ac_word; then
  2767.       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2768.       break
  2769.     fi
  2770.   done
  2771.   IFS="$ac_save_ifs"
  2772. fi
  2773. fi
  2774. STRIP="$ac_cv_prog_STRIP"
  2775. if test -n "$STRIP"; then
  2776.   echo "$ac_t""$STRIP" 1>&6
  2777. else
  2778.   echo "$ac_t""no" 1>&6
  2779. fi
  2780.  
  2781.  
  2782. if test -z "$ac_cv_prog_STRIP"; then
  2783. if test -n "$ac_tool_prefix"; then
  2784.   # Extract the first word of "strip", so it can be a program name with args.
  2785. set dummy strip; ac_word=$2
  2786. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2787. echo "configure:2788: checking for $ac_word" >&5
  2788. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2789.   echo $ac_n "(cached) $ac_c" 1>&6
  2790. else
  2791.   if test -n "$STRIP"; then
  2792.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2793. else
  2794.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2795.   ac_dummy="$PATH"
  2796.   for ac_dir in $ac_dummy; do
  2797.     test -z "$ac_dir" && ac_dir=.
  2798.     if test -f $ac_dir/$ac_word; then
  2799.       ac_cv_prog_STRIP="strip"
  2800.       break
  2801.     fi
  2802.   done
  2803.   IFS="$ac_save_ifs"
  2804.   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  2805. fi
  2806. fi
  2807. STRIP="$ac_cv_prog_STRIP"
  2808. if test -n "$STRIP"; then
  2809.   echo "$ac_t""$STRIP" 1>&6
  2810. else
  2811.   echo "$ac_t""no" 1>&6
  2812. fi
  2813.  
  2814. else
  2815.   STRIP=":"
  2816. fi
  2817. fi
  2818.  
  2819.  
  2820. # Check for any special flags to pass to ltconfig.
  2821. libtool_flags="--cache-file=$cache_file"
  2822. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  2823. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  2824. test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  2825. test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
  2826. test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  2827. libtool_flags="$libtool_flags --enable-dlopen"
  2828.  
  2829. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2830. if test "${enable_libtool_lock+set}" = set; then
  2831.   enableval="$enable_libtool_lock"
  2832.   :
  2833. fi
  2834.  
  2835. test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  2836. test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  2837.  
  2838. # Check whether --with-pic or --without-pic was given.
  2839. if test "${with_pic+set}" = set; then
  2840.   withval="$with_pic"
  2841.   pic_mode="$withval"
  2842. else
  2843.   pic_mode=default
  2844. fi
  2845.  
  2846. test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  2847. test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  2848.  
  2849. # Some flags need to be propagated to the compiler or linker for good
  2850. # libtool support.
  2851. case "$host" in
  2852. *-*-irix6*)
  2853.   # Find out which ABI we are using.
  2854.   echo '#line 2855 "configure"' > conftest.$ac_ext
  2855.   if { (eval echo configure:2856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2856.     case "`/usr/bin/file conftest.$ac_objext`" in
  2857.     *32-bit*)
  2858.       LD="${LD-ld} -32"
  2859.       ;;
  2860.     *N32*)
  2861.       LD="${LD-ld} -n32"
  2862.       ;;
  2863.     *64-bit*)
  2864.       LD="${LD-ld} -64"
  2865.       ;;
  2866.     esac
  2867.   fi
  2868.   rm -rf conftest*
  2869.   ;;
  2870.  
  2871. *-*-sco3.2v5*)
  2872.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2873.   SAVE_CFLAGS="$CFLAGS"
  2874.   CFLAGS="$CFLAGS -belf"
  2875.   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  2876. echo "configure:2877: checking whether the C compiler needs -belf" >&5
  2877. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  2878.   echo $ac_n "(cached) $ac_c" 1>&6
  2879. else
  2880.   
  2881.      ac_ext=c
  2882. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2883. ac_cpp='$CPP $CPPFLAGS'
  2884. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2885. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2886. cross_compiling=$ac_cv_prog_cc_cross
  2887.  
  2888.      cat > conftest.$ac_ext <<EOF
  2889. #line 2890 "configure"
  2890. #include "confdefs.h"
  2891.  
  2892. int main() {
  2893.  
  2894. ; return 0; }
  2895. EOF
  2896. if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2897.   rm -rf conftest*
  2898.   lt_cv_cc_needs_belf=yes
  2899. else
  2900.   echo "configure: failed program was:" >&5
  2901.   cat conftest.$ac_ext >&5
  2902.   rm -rf conftest*
  2903.   lt_cv_cc_needs_belf=no
  2904. fi
  2905. rm -f conftest*
  2906.      ac_ext=c
  2907. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2908. ac_cpp='$CPP $CPPFLAGS'
  2909. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2910. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2911. cross_compiling=$ac_cv_prog_cc_cross
  2912.  
  2913. fi
  2914.  
  2915. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  2916.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2917.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2918.     CFLAGS="$SAVE_CFLAGS"
  2919.   fi
  2920.   ;;
  2921.  
  2922.  
  2923. esac
  2924.  
  2925.  
  2926. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  2927. echo "configure:2928: checking for Cygwin environment" >&5
  2928. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  2929.   echo $ac_n "(cached) $ac_c" 1>&6
  2930. else
  2931.   cat > conftest.$ac_ext <<EOF
  2932. #line 2933 "configure"
  2933. #include "confdefs.h"
  2934.  
  2935. int main() {
  2936.  
  2937. #ifndef __CYGWIN__
  2938. #define __CYGWIN__ __CYGWIN32__
  2939. #endif
  2940. return __CYGWIN__;
  2941. ; return 0; }
  2942. EOF
  2943. if { (eval echo configure:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2944.   rm -rf conftest*
  2945.   ac_cv_cygwin=yes
  2946. else
  2947.   echo "configure: failed program was:" >&5
  2948.   cat conftest.$ac_ext >&5
  2949.   rm -rf conftest*
  2950.   ac_cv_cygwin=no
  2951. fi
  2952. rm -f conftest*
  2953. rm -f conftest*
  2954. fi
  2955.  
  2956. echo "$ac_t""$ac_cv_cygwin" 1>&6
  2957. CYGWIN=
  2958. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  2959. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  2960. echo "configure:2961: checking for mingw32 environment" >&5
  2961. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  2962.   echo $ac_n "(cached) $ac_c" 1>&6
  2963. else
  2964.   cat > conftest.$ac_ext <<EOF
  2965. #line 2966 "configure"
  2966. #include "confdefs.h"
  2967.  
  2968. int main() {
  2969. return __MINGW32__;
  2970. ; return 0; }
  2971. EOF
  2972. if { (eval echo configure:2973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2973.   rm -rf conftest*
  2974.   ac_cv_mingw32=yes
  2975. else
  2976.   echo "configure: failed program was:" >&5
  2977.   cat conftest.$ac_ext >&5
  2978.   rm -rf conftest*
  2979.   ac_cv_mingw32=no
  2980. fi
  2981. rm -f conftest*
  2982. rm -f conftest*
  2983. fi
  2984.  
  2985. echo "$ac_t""$ac_cv_mingw32" 1>&6
  2986. MINGW32=
  2987. test "$ac_cv_mingw32" = yes && MINGW32=yes
  2988.  
  2989. # Save cache, so that ltconfig can load it
  2990. cat > confcache <<\EOF
  2991. # This file is a shell script that caches the results of configure
  2992. # tests run on this system so they can be shared between configure
  2993. # scripts and configure runs.  It is not useful on other systems.
  2994. # If it contains results you don't want to keep, you may remove or edit it.
  2995. #
  2996. # By default, configure uses ./config.cache as the cache file,
  2997. # creating it if it does not exist already.  You can give configure
  2998. # the --cache-file=FILE option to use a different cache file; that is
  2999. # what configure does when it calls configure scripts in
  3000. # subdirectories, so they share the cache.
  3001. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3002. # config.status only pays attention to the cache file if you give it the
  3003. # --recheck option to rerun configure.
  3004. #
  3005. EOF
  3006. # The following way of writing the cache mishandles newlines in values,
  3007. # but we know of no workaround that is simple, portable, and efficient.
  3008. # So, don't put newlines in cache variables' values.
  3009. # Ultrix sh set writes to stderr and can't be redirected directly,
  3010. # and sets the high bit in the cache file unless we assign to the vars.
  3011. (set) 2>&1 |
  3012.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3013.   *ac_space=\ *)
  3014.     # `set' does not quote correctly, so add quotes (double-quote substitution
  3015.     # turns \\\\ into \\, and sed turns \\ into \).
  3016.     sed -n \
  3017.       -e "s/'/'\\\\''/g" \
  3018.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3019.     ;;
  3020.   *)
  3021.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  3022.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3023.     ;;
  3024.   esac >> confcache
  3025. if cmp -s $cache_file confcache; then
  3026.   :
  3027. else
  3028.   if test -w $cache_file; then
  3029.     echo "updating cache $cache_file"
  3030.     cat confcache > $cache_file
  3031.   else
  3032.     echo "not updating unwritable cache $cache_file"
  3033.   fi
  3034. fi
  3035. rm -f confcache
  3036.  
  3037.  
  3038. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  3039. AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  3040. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  3041. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  3042. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  3043. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  3044. deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
  3045. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  3046. $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
  3047. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  3048.  
  3049. # Reload cache, that may have been modified by ltconfig
  3050. if test -r "$cache_file"; then
  3051.   echo "loading cache $cache_file"
  3052.   . $cache_file
  3053. else
  3054.   echo "creating cache $cache_file"
  3055.   > $cache_file
  3056. fi
  3057.  
  3058.  
  3059. # This can be used to rebuild libtool when needed
  3060. LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
  3061.  
  3062. # Always use our own libtool.
  3063. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  3064.  
  3065. # Redirect the config.log output again, so that the ltconfig log is not
  3066. # clobbered by the next message.
  3067. exec 5>>./config.log
  3068.  
  3069.  
  3070.  
  3071. LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
  3072. lt_save_CC="$CC"
  3073. lt_save_CFLAGS="$CFLAGS"
  3074. AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
  3075. MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  3076. LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
  3077. AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
  3078. objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
  3079. deplibs_check_method="$deplibs_check_method" \
  3080. file_magic_cmd="$file_magic_cmd" \
  3081. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
  3082. --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
  3083. || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
  3084. CC="$lt_save_CC"
  3085. CFLAGS="$lt_save_CFLAGS"
  3086.  
  3087. # Redirect the config.log output again, so that the ltconfig log is not
  3088. # clobbered by the next message.
  3089. exec 5>>./config.log
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099. ac_ext=c
  3100. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3101. ac_cpp='$CPP $CPPFLAGS'
  3102. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3103. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3104. cross_compiling=$ac_cv_prog_cc_cross
  3105.  
  3106. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  3107. echo "configure:3108: checking for object suffix" >&5
  3108. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  3109.   echo $ac_n "(cached) $ac_c" 1>&6
  3110. else
  3111.   rm -f conftest*
  3112. echo 'int i = 1;' > conftest.$ac_ext
  3113. if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3114.   for ac_file in conftest.*; do
  3115.     case $ac_file in
  3116.     *.c) ;;
  3117.     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  3118.     esac
  3119.   done
  3120. else
  3121.   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  3122. fi
  3123. rm -f conftest*
  3124. fi
  3125.  
  3126. echo "$ac_t""$ac_cv_objext" 1>&6
  3127. OBJEXT=$ac_cv_objext
  3128. ac_objext=$ac_cv_objext
  3129.  
  3130.  
  3131.  
  3132. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  3133. echo "configure:3134: checking for executable suffix" >&5
  3134. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  3135.   echo $ac_n "(cached) $ac_c" 1>&6
  3136. else
  3137.   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  3138.   ac_cv_exeext=.exe
  3139. else
  3140.   rm -f conftest*
  3141.   echo 'int main () { return 0; }' > conftest.$ac_ext
  3142.   ac_cv_exeext=
  3143.   if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3144.     for file in conftest.*; do
  3145.       case $file in
  3146.       *.c | *.o | *.obj) ;;
  3147.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  3148.       esac
  3149.     done
  3150.   else
  3151.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  3152.   fi
  3153.   rm -f conftest*
  3154.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  3155. fi
  3156. fi
  3157.  
  3158. EXEEXT=""
  3159. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  3160. echo "$ac_t""${ac_cv_exeext}" 1>&6
  3161. ac_exeext=$EXEEXT
  3162.  
  3163. ac_ext=c
  3164. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3165. ac_cpp='$CPP $CPPFLAGS'
  3166. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3167. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3168. cross_compiling=$ac_cv_prog_cc_cross
  3169.  
  3170.  
  3171.   
  3172.  
  3173.   
  3174.      
  3175.      
  3176.  
  3177.  
  3178. LIBTOOL_SHELL="/bin/sh ./libtool"
  3179. #  LIBTOOL="$LIBTOOL --silent"
  3180. KDE_PLUGIN="-avoid-version -module -no-undefined"
  3181.  
  3182.  
  3183.  
  3184.  
  3185.     
  3186.     # Extract the first word of "msgfmt", so it can be a program name with args.
  3187. set dummy msgfmt; ac_word=$2
  3188. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3189. echo "configure:3190: checking for $ac_word" >&5
  3190. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3191.   echo $ac_n "(cached) $ac_c" 1>&6
  3192. else
  3193.   case "$MSGFMT" in
  3194.   /*)
  3195.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3196.   ;;
  3197.   *)
  3198.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3199.   for ac_dir in $PATH; do
  3200.     test -z "$ac_dir" && ac_dir=.
  3201.     if test -f $ac_dir/$ac_word; then
  3202.       if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
  3203.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3204.     break
  3205.       fi
  3206.     fi
  3207.   done
  3208.   IFS="$ac_save_ifs"
  3209.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3210.   ;;
  3211. esac
  3212. fi
  3213. MSGFMT="$ac_cv_path_MSGFMT"
  3214. if test -n "$MSGFMT"; then
  3215.   echo "$ac_t""$MSGFMT" 1>&6
  3216. else
  3217.   echo "$ac_t""no" 1>&6
  3218. fi
  3219.  
  3220.     # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3221. set dummy gmsgfmt; ac_word=$2
  3222. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3223. echo "configure:3224: checking for $ac_word" >&5
  3224. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3225.   echo $ac_n "(cached) $ac_c" 1>&6
  3226. else
  3227.   case "$GMSGFMT" in
  3228.   /*)
  3229.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3230.   ;;
  3231.   ?:/*)             
  3232.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
  3233.   ;;
  3234.   *)
  3235.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  3236.   ac_dummy="$PATH"
  3237.   for ac_dir in $ac_dummy; do 
  3238.     test -z "$ac_dir" && ac_dir=.
  3239.     if test -f $ac_dir/$ac_word; then
  3240.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3241.       break
  3242.     fi
  3243.   done
  3244.   IFS="$ac_save_ifs"
  3245.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3246.   ;;
  3247. esac
  3248. fi
  3249. GMSGFMT="$ac_cv_path_GMSGFMT"
  3250. if test -n "$GMSGFMT"; then
  3251.   echo "$ac_t""$GMSGFMT" 1>&6
  3252. else
  3253.   echo "$ac_t""no" 1>&6
  3254. fi
  3255.  
  3256.  
  3257.      if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
  3258.         echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
  3259.         GMSGFMT=":"
  3260.       fi
  3261.       MSGFMT=$GMSGFMT
  3262.       
  3263.       
  3264.  
  3265.       # Extract the first word of "xgettext", so it can be a program name with args.
  3266. set dummy xgettext; ac_word=$2
  3267. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3268. echo "configure:3269: checking for $ac_word" >&5
  3269. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3270.   echo $ac_n "(cached) $ac_c" 1>&6
  3271. else
  3272.   case "$XGETTEXT" in
  3273.   /*)
  3274.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3275.   ;;
  3276.   *)
  3277.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3278.   for ac_dir in $PATH; do
  3279.     test -z "$ac_dir" && ac_dir=.
  3280.     if test -f $ac_dir/$ac_word; then
  3281.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3282.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3283.     break
  3284.       fi
  3285.     fi
  3286.   done
  3287.   IFS="$ac_save_ifs"
  3288.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3289.   ;;
  3290. esac
  3291. fi
  3292. XGETTEXT="$ac_cv_path_XGETTEXT"
  3293. if test -n "$XGETTEXT"; then
  3294.   echo "$ac_t""$XGETTEXT" 1>&6
  3295. else
  3296.   echo "$ac_t""no" 1>&6
  3297. fi
  3298.  
  3299.  
  3300.             if test "$XGETTEXT" != ":"; then
  3301.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  3302.       : ;
  3303.     else
  3304.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  3305.       XGETTEXT=":"
  3306.     fi
  3307.       fi
  3308.      
  3309.  
  3310.   
  3311.  
  3312.  
  3313.    ac_ext=c
  3314. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3315. ac_cpp='$CPP $CPPFLAGS'
  3316. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3317. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3318. cross_compiling=$ac_cv_prog_cc_cross
  3319.  
  3320.       echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
  3321. echo "configure:3322: checking for main in -lcompat" >&5
  3322. ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
  3323. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3324.   echo $ac_n "(cached) $ac_c" 1>&6
  3325. else
  3326.   ac_save_LIBS="$LIBS"
  3327. LIBS="-lcompat  $LIBS"
  3328. cat > conftest.$ac_ext <<EOF
  3329. #line 3330 "configure"
  3330. #include "confdefs.h"
  3331.  
  3332. int main() {
  3333. main()
  3334. ; return 0; }
  3335. EOF
  3336. if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3337.   rm -rf conftest*
  3338.   eval "ac_cv_lib_$ac_lib_var=yes"
  3339. else
  3340.   echo "configure: failed program was:" >&5
  3341.   cat conftest.$ac_ext >&5
  3342.   rm -rf conftest*
  3343.   eval "ac_cv_lib_$ac_lib_var=no"
  3344. fi
  3345. rm -f conftest*
  3346. LIBS="$ac_save_LIBS"
  3347.  
  3348. fi
  3349. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3350.   echo "$ac_t""yes" 1>&6
  3351.   LIBCOMPAT="-lcompat"
  3352. else
  3353.   echo "$ac_t""no" 1>&6
  3354. fi
  3355.     
  3356.    kde_have_crypt=
  3357.    echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
  3358. echo "configure:3359: checking for crypt in -lcrypt" >&5
  3359. ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
  3360. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3361.   echo $ac_n "(cached) $ac_c" 1>&6
  3362. else
  3363.   ac_save_LIBS="$LIBS"
  3364. LIBS="-lcrypt  $LIBS"
  3365. cat > conftest.$ac_ext <<EOF
  3366. #line 3367 "configure"
  3367. #include "confdefs.h"
  3368. /* Override any gcc2 internal prototype to avoid an error.  */
  3369. /* We use char because int might match the return type of a gcc2
  3370.     builtin and then its argument prototype would still apply.  */
  3371. char crypt();
  3372.  
  3373. int main() {
  3374. crypt()
  3375. ; return 0; }
  3376. EOF
  3377. if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3378.   rm -rf conftest*
  3379.   eval "ac_cv_lib_$ac_lib_var=yes"
  3380. else
  3381.   echo "configure: failed program was:" >&5
  3382.   cat conftest.$ac_ext >&5
  3383.   rm -rf conftest*
  3384.   eval "ac_cv_lib_$ac_lib_var=no"
  3385. fi
  3386. rm -f conftest*
  3387. LIBS="$ac_save_LIBS"
  3388.  
  3389. fi
  3390. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3391.   echo "$ac_t""yes" 1>&6
  3392.   LIBCRYPT="-lcrypt"; kde_have_crypt=yes
  3393. else
  3394.   echo "$ac_t""no" 1>&6
  3395. echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
  3396. echo "configure:3397: checking for crypt in -lc" >&5
  3397. ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
  3398. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3399.   echo $ac_n "(cached) $ac_c" 1>&6
  3400. else
  3401.   ac_save_LIBS="$LIBS"
  3402. LIBS="-lc  $LIBS"
  3403. cat > conftest.$ac_ext <<EOF
  3404. #line 3405 "configure"
  3405. #include "confdefs.h"
  3406. /* Override any gcc2 internal prototype to avoid an error.  */
  3407. /* We use char because int might match the return type of a gcc2
  3408.     builtin and then its argument prototype would still apply.  */
  3409. char crypt();
  3410.  
  3411. int main() {
  3412. crypt()
  3413. ; return 0; }
  3414. EOF
  3415. if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3416.   rm -rf conftest*
  3417.   eval "ac_cv_lib_$ac_lib_var=yes"
  3418. else
  3419.   echo "configure: failed program was:" >&5
  3420.   cat conftest.$ac_ext >&5
  3421.   rm -rf conftest*
  3422.   eval "ac_cv_lib_$ac_lib_var=no"
  3423. fi
  3424. rm -f conftest*
  3425. LIBS="$ac_save_LIBS"
  3426.  
  3427. fi
  3428. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3429.   echo "$ac_t""yes" 1>&6
  3430.   kde_have_crypt=yes
  3431. else
  3432.   echo "$ac_t""no" 1>&6
  3433.  
  3434.         echo "configure: warning: you have no crypt in either libcrypt or libc.
  3435. You should install libcrypt from another source or configure with PAM
  3436. support" 1>&2
  3437.     kde_have_crypt=no
  3438.       
  3439. fi
  3440.  
  3441. fi
  3442.  
  3443.    
  3444.    if test $kde_have_crypt = yes; then
  3445.       cat >> confdefs.h <<EOF
  3446. #define HAVE_CRYPT 1
  3447. EOF
  3448.  
  3449.    fi
  3450.    echo $ac_n "checking for the third argument of getsockname""... $ac_c" 1>&6
  3451. echo "configure:3452: checking for the third argument of getsockname" >&5
  3452. if eval "test \"`echo '$''{'ac_cv_ksize_t'+set}'`\" = set"; then
  3453.   echo $ac_n "(cached) $ac_c" 1>&6
  3454. else
  3455.   
  3456.  ac_ext=C
  3457. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3458. ac_cpp='$CXXCPP $CPPFLAGS'
  3459. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3460. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3461. cross_compiling=$ac_cv_prog_cxx_cross
  3462.  
  3463. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3464.  
  3465.  
  3466. cat > conftest.$ac_ext <<EOF
  3467. #line 3468 "configure"
  3468. #include "confdefs.h"
  3469.  
  3470. #include <sys/types.h>
  3471. #include <sys/socket.h>
  3472.  
  3473. int main() {
  3474.  
  3475. socklen_t a=0;
  3476. getsockname(0,(struct sockaddr*)0, &a);
  3477.  
  3478. ; return 0; }
  3479. EOF
  3480. if { (eval echo configure:3481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3481.   rm -rf conftest*
  3482.   ac_cv_ksize_t=socklen_t
  3483. else
  3484.   echo "configure: failed program was:" >&5
  3485.   cat conftest.$ac_ext >&5
  3486.   rm -rf conftest*
  3487.   ac_cv_ksize_t=
  3488. fi
  3489. rm -f conftest*
  3490. if test -z "$ac_cv_ksize_t"; then
  3491. ac_safe_cxxflags="$CXXFLAGS"
  3492. if test "$GCC" = "yes"; then
  3493.   CXXFLAGS="-Werror $CXXFLAGS"
  3494. fi
  3495. cat > conftest.$ac_ext <<EOF
  3496. #line 3497 "configure"
  3497. #include "confdefs.h"
  3498.  
  3499. #include <sys/types.h>
  3500. #include <sys/socket.h>
  3501.  
  3502. int main() {
  3503.  
  3504. int a=0;
  3505. getsockname(0,(struct sockaddr*)0, &a);
  3506.  
  3507. ; return 0; }
  3508. EOF
  3509. if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3510.   rm -rf conftest*
  3511.   ac_cv_ksize_t=int
  3512. else
  3513.   echo "configure: failed program was:" >&5
  3514.   cat conftest.$ac_ext >&5
  3515.   rm -rf conftest*
  3516.   ac_cv_ksize_t=size_t
  3517. fi
  3518. rm -f conftest*
  3519. CXXFLAGS="$ac_safe_cxxflags"
  3520. fi
  3521. ac_ext=c
  3522. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3523. ac_cpp='$CPP $CPPFLAGS'
  3524. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3525. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3526. cross_compiling=$ac_cv_prog_cc_cross
  3527.  
  3528.  
  3529. fi
  3530.  
  3531.  
  3532. if test -z "$ac_cv_ksize_t"; then
  3533.   ac_cv_ksize_t=int
  3534. fi
  3535.  
  3536. echo "$ac_t""$ac_cv_ksize_t" 1>&6
  3537. cat >> confdefs.h <<EOF
  3538. #define ksize_t $ac_cv_ksize_t
  3539. EOF
  3540.  
  3541.  
  3542.  
  3543.    ac_ext=c
  3544. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  3545. ac_cpp='$CPP $CPPFLAGS'
  3546. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  3547. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  3548. cross_compiling=$ac_cv_prog_cc_cross
  3549.  
  3550.    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3551. echo "configure:3552: checking for dnet_ntoa in -ldnet" >&5
  3552. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3553. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3554.   echo $ac_n "(cached) $ac_c" 1>&6
  3555. else
  3556.   ac_save_LIBS="$LIBS"
  3557. LIBS="-ldnet  $LIBS"
  3558. cat > conftest.$ac_ext <<EOF
  3559. #line 3560 "configure"
  3560. #include "confdefs.h"
  3561. /* Override any gcc2 internal prototype to avoid an error.  */
  3562. /* We use char because int might match the return type of a gcc2
  3563.     builtin and then its argument prototype would still apply.  */
  3564. char dnet_ntoa();
  3565.  
  3566. int main() {
  3567. dnet_ntoa()
  3568. ; return 0; }
  3569. EOF
  3570. if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3571.   rm -rf conftest*
  3572.   eval "ac_cv_lib_$ac_lib_var=yes"
  3573. else
  3574.   echo "configure: failed program was:" >&5
  3575.   cat conftest.$ac_ext >&5
  3576.   rm -rf conftest*
  3577.   eval "ac_cv_lib_$ac_lib_var=no"
  3578. fi
  3579. rm -f conftest*
  3580. LIBS="$ac_save_LIBS"
  3581.  
  3582. fi
  3583. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3584.   echo "$ac_t""yes" 1>&6
  3585.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3586. else
  3587.   echo "$ac_t""no" 1>&6
  3588. fi
  3589.  
  3590.    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3591.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3592. echo "configure:3593: checking for dnet_ntoa in -ldnet_stub" >&5
  3593. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3594. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3595.   echo $ac_n "(cached) $ac_c" 1>&6
  3596. else
  3597.   ac_save_LIBS="$LIBS"
  3598. LIBS="-ldnet_stub  $LIBS"
  3599. cat > conftest.$ac_ext <<EOF
  3600. #line 3601 "configure"
  3601. #include "confdefs.h"
  3602. /* Override any gcc2 internal prototype to avoid an error.  */
  3603. /* We use char because int might match the return type of a gcc2
  3604.     builtin and then its argument prototype would still apply.  */
  3605. char dnet_ntoa();
  3606.  
  3607. int main() {
  3608. dnet_ntoa()
  3609. ; return 0; }
  3610. EOF
  3611. if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3612.   rm -rf conftest*
  3613.   eval "ac_cv_lib_$ac_lib_var=yes"
  3614. else
  3615.   echo "configure: failed program was:" >&5
  3616.   cat conftest.$ac_ext >&5
  3617.   rm -rf conftest*
  3618.   eval "ac_cv_lib_$ac_lib_var=no"
  3619. fi
  3620. rm -f conftest*
  3621. LIBS="$ac_save_LIBS"
  3622.  
  3623. fi
  3624. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3625.   echo "$ac_t""yes" 1>&6
  3626.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3627. else
  3628.   echo "$ac_t""no" 1>&6
  3629. fi
  3630.  
  3631.    fi
  3632.    echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
  3633. echo "configure:3634: checking for inet_ntoa" >&5
  3634. if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
  3635.   echo $ac_n "(cached) $ac_c" 1>&6
  3636. else
  3637.   cat > conftest.$ac_ext <<EOF
  3638. #line 3639 "configure"
  3639. #include "confdefs.h"
  3640. /* System header to define __stub macros and hopefully few prototypes,
  3641.     which can conflict with char inet_ntoa(); below.  */
  3642. #include <assert.h>
  3643. /* Override any gcc2 internal prototype to avoid an error.  */
  3644. /* We use char because int might match the return type of a gcc2
  3645.     builtin and then its argument prototype would still apply.  */
  3646. char inet_ntoa();
  3647.  
  3648. int main() {
  3649.  
  3650. /* The GNU C library defines this for functions which it implements
  3651.     to always fail with ENOSYS.  Some functions are actually named
  3652.     something starting with __ and the normal name is an alias.  */
  3653. #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
  3654. choke me
  3655. #else
  3656. inet_ntoa();
  3657. #endif
  3658.  
  3659. ; return 0; }
  3660. EOF
  3661. if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3662.   rm -rf conftest*
  3663.   eval "ac_cv_func_inet_ntoa=yes"
  3664. else
  3665.   echo "configure: failed program was:" >&5
  3666.   cat conftest.$ac_ext >&5
  3667.   rm -rf conftest*
  3668.   eval "ac_cv_func_inet_ntoa=no"
  3669. fi
  3670. rm -f conftest*
  3671. fi
  3672.  
  3673. if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
  3674.   echo "$ac_t""yes" 1>&6
  3675.   :
  3676. else
  3677.   echo "$ac_t""no" 1>&6
  3678. fi
  3679.  
  3680.    if test $ac_cv_func_inet_ntoa = no; then
  3681.      echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
  3682. echo "configure:3683: checking for inet_ntoa in -lnsl" >&5
  3683. ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
  3684. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3685.   echo $ac_n "(cached) $ac_c" 1>&6
  3686. else
  3687.   ac_save_LIBS="$LIBS"
  3688. LIBS="-lnsl  $LIBS"
  3689. cat > conftest.$ac_ext <<EOF
  3690. #line 3691 "configure"
  3691. #include "confdefs.h"
  3692. /* Override any gcc2 internal prototype to avoid an error.  */
  3693. /* We use char because int might match the return type of a gcc2
  3694.     builtin and then its argument prototype would still apply.  */
  3695. char inet_ntoa();
  3696.  
  3697. int main() {
  3698. inet_ntoa()
  3699. ; return 0; }
  3700. EOF
  3701. if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3702.   rm -rf conftest*
  3703.   eval "ac_cv_lib_$ac_lib_var=yes"
  3704. else
  3705.   echo "configure: failed program was:" >&5
  3706.   cat conftest.$ac_ext >&5
  3707.   rm -rf conftest*
  3708.   eval "ac_cv_lib_$ac_lib_var=no"
  3709. fi
  3710. rm -f conftest*
  3711. LIBS="$ac_save_LIBS"
  3712.  
  3713. fi
  3714. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3715.   echo "$ac_t""yes" 1>&6
  3716.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3717. else
  3718.   echo "$ac_t""no" 1>&6
  3719. fi
  3720.  
  3721.    fi
  3722.    echo $ac_n "checking for connect""... $ac_c" 1>&6
  3723. echo "configure:3724: checking for connect" >&5
  3724. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  3725.   echo $ac_n "(cached) $ac_c" 1>&6
  3726. else
  3727.   cat > conftest.$ac_ext <<EOF
  3728. #line 3729 "configure"
  3729. #include "confdefs.h"
  3730. /* System header to define __stub macros and hopefully few prototypes,
  3731.     which can conflict with char connect(); below.  */
  3732. #include <assert.h>
  3733. /* Override any gcc2 internal prototype to avoid an error.  */
  3734. /* We use char because int might match the return type of a gcc2
  3735.     builtin and then its argument prototype would still apply.  */
  3736. char connect();
  3737.  
  3738. int main() {
  3739.  
  3740. /* The GNU C library defines this for functions which it implements
  3741.     to always fail with ENOSYS.  Some functions are actually named
  3742.     something starting with __ and the normal name is an alias.  */
  3743. #if defined (__stub_connect) || defined (__stub___connect)
  3744. choke me
  3745. #else
  3746. connect();
  3747. #endif
  3748.  
  3749. ; return 0; }
  3750. EOF
  3751. if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3752.   rm -rf conftest*
  3753.   eval "ac_cv_func_connect=yes"
  3754. else
  3755.   echo "configure: failed program was:" >&5
  3756.   cat conftest.$ac_ext >&5
  3757.   rm -rf conftest*
  3758.   eval "ac_cv_func_connect=no"
  3759. fi
  3760. rm -f conftest*
  3761. fi
  3762.  
  3763. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3764.   echo "$ac_t""yes" 1>&6
  3765.   :
  3766. else
  3767.   echo "$ac_t""no" 1>&6
  3768. fi
  3769.  
  3770.    if test $ac_cv_func_connect = no; then
  3771.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3772. echo "configure:3773: checking for connect in -lsocket" >&5
  3773. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3774. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3775.   echo $ac_n "(cached) $ac_c" 1>&6
  3776. else
  3777.   ac_save_LIBS="$LIBS"
  3778. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3779. cat > conftest.$ac_ext <<EOF
  3780. #line 3781 "configure"
  3781. #include "confdefs.h"
  3782. /* Override any gcc2 internal prototype to avoid an error.  */
  3783. /* We use char because int might match the return type of a gcc2
  3784.     builtin and then its argument prototype would still apply.  */
  3785. char connect();
  3786.  
  3787. int main() {
  3788. connect()
  3789. ; return 0; }
  3790. EOF
  3791. if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3792.   rm -rf conftest*
  3793.   eval "ac_cv_lib_$ac_lib_var=yes"
  3794. else
  3795.   echo "configure: failed program was:" >&5
  3796.   cat conftest.$ac_ext >&5
  3797.   rm -rf conftest*
  3798.   eval "ac_cv_lib_$ac_lib_var=no"
  3799. fi
  3800. rm -f conftest*
  3801. LIBS="$ac_save_LIBS"
  3802.  
  3803. fi
  3804. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3805.   echo "$ac_t""yes" 1>&6
  3806.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3807. else
  3808.   echo "$ac_t""no" 1>&6
  3809. fi
  3810.  
  3811.    fi
  3812.  
  3813.    echo $ac_n "checking for remove""... $ac_c" 1>&6
  3814. echo "configure:3815: checking for remove" >&5
  3815. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  3816.   echo $ac_n "(cached) $ac_c" 1>&6
  3817. else
  3818.   cat > conftest.$ac_ext <<EOF
  3819. #line 3820 "configure"
  3820. #include "confdefs.h"
  3821. /* System header to define __stub macros and hopefully few prototypes,
  3822.     which can conflict with char remove(); below.  */
  3823. #include <assert.h>
  3824. /* Override any gcc2 internal prototype to avoid an error.  */
  3825. /* We use char because int might match the return type of a gcc2
  3826.     builtin and then its argument prototype would still apply.  */
  3827. char remove();
  3828.  
  3829. int main() {
  3830.  
  3831. /* The GNU C library defines this for functions which it implements
  3832.     to always fail with ENOSYS.  Some functions are actually named
  3833.     something starting with __ and the normal name is an alias.  */
  3834. #if defined (__stub_remove) || defined (__stub___remove)
  3835. choke me
  3836. #else
  3837. remove();
  3838. #endif
  3839.  
  3840. ; return 0; }
  3841. EOF
  3842. if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3843.   rm -rf conftest*
  3844.   eval "ac_cv_func_remove=yes"
  3845. else
  3846.   echo "configure: failed program was:" >&5
  3847.   cat conftest.$ac_ext >&5
  3848.   rm -rf conftest*
  3849.   eval "ac_cv_func_remove=no"
  3850. fi
  3851. rm -f conftest*
  3852. fi
  3853.  
  3854. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3855.   echo "$ac_t""yes" 1>&6
  3856.   :
  3857. else
  3858.   echo "$ac_t""no" 1>&6
  3859. fi
  3860.  
  3861.    if test $ac_cv_func_remove = no; then
  3862.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3863. echo "configure:3864: checking for remove in -lposix" >&5
  3864. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3865. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3866.   echo $ac_n "(cached) $ac_c" 1>&6
  3867. else
  3868.   ac_save_LIBS="$LIBS"
  3869. LIBS="-lposix  $LIBS"
  3870. cat > conftest.$ac_ext <<EOF
  3871. #line 3872 "configure"
  3872. #include "confdefs.h"
  3873. /* Override any gcc2 internal prototype to avoid an error.  */
  3874. /* We use char because int might match the return type of a gcc2
  3875.     builtin and then its argument prototype would still apply.  */
  3876. char remove();
  3877.  
  3878. int main() {
  3879. remove()
  3880. ; return 0; }
  3881. EOF
  3882. if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3883.   rm -rf conftest*
  3884.   eval "ac_cv_lib_$ac_lib_var=yes"
  3885. else
  3886.   echo "configure: failed program was:" >&5
  3887.   cat conftest.$ac_ext >&5
  3888.   rm -rf conftest*
  3889.   eval "ac_cv_lib_$ac_lib_var=no"
  3890. fi
  3891. rm -f conftest*
  3892. LIBS="$ac_save_LIBS"
  3893.  
  3894. fi
  3895. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3896.   echo "$ac_t""yes" 1>&6
  3897.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3898. else
  3899.   echo "$ac_t""no" 1>&6
  3900. fi
  3901.  
  3902.    fi
  3903.  
  3904.    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3905.    echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3906. echo "configure:3907: checking for shmat" >&5
  3907. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  3908.   echo $ac_n "(cached) $ac_c" 1>&6
  3909. else
  3910.   cat > conftest.$ac_ext <<EOF
  3911. #line 3912 "configure"
  3912. #include "confdefs.h"
  3913. /* System header to define __stub macros and hopefully few prototypes,
  3914.     which can conflict with char shmat(); below.  */
  3915. #include <assert.h>
  3916. /* Override any gcc2 internal prototype to avoid an error.  */
  3917. /* We use char because int might match the return type of a gcc2
  3918.     builtin and then its argument prototype would still apply.  */
  3919. char shmat();
  3920.  
  3921. int main() {
  3922.  
  3923. /* The GNU C library defines this for functions which it implements
  3924.     to always fail with ENOSYS.  Some functions are actually named
  3925.     something starting with __ and the normal name is an alias.  */
  3926. #if defined (__stub_shmat) || defined (__stub___shmat)
  3927. choke me
  3928. #else
  3929. shmat();
  3930. #endif
  3931.  
  3932. ; return 0; }
  3933. EOF
  3934. if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3935.   rm -rf conftest*
  3936.   eval "ac_cv_func_shmat=yes"
  3937. else
  3938.   echo "configure: failed program was:" >&5
  3939.   cat conftest.$ac_ext >&5
  3940.   rm -rf conftest*
  3941.   eval "ac_cv_func_shmat=no"
  3942. fi
  3943. rm -f conftest*
  3944. fi
  3945.  
  3946. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3947.   echo "$ac_t""yes" 1>&6
  3948.   :
  3949. else
  3950.   echo "$ac_t""no" 1>&6
  3951. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3952. echo "configure:3953: checking for shmat in -lipc" >&5
  3953. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3954. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3955.   echo $ac_n "(cached) $ac_c" 1>&6
  3956. else
  3957.   ac_save_LIBS="$LIBS"
  3958. LIBS="-lipc  $LIBS"
  3959. cat > conftest.$ac_ext <<EOF
  3960. #line 3961 "configure"
  3961. #include "confdefs.h"
  3962. /* Override any gcc2 internal prototype to avoid an error.  */
  3963. /* We use char because int might match the return type of a gcc2
  3964.     builtin and then its argument prototype would still apply.  */
  3965. char shmat();
  3966.  
  3967. int main() {
  3968. shmat()
  3969. ; return 0; }
  3970. EOF
  3971. if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3972.   rm -rf conftest*
  3973.   eval "ac_cv_lib_$ac_lib_var=yes"
  3974. else
  3975.   echo "configure: failed program was:" >&5
  3976.   cat conftest.$ac_ext >&5
  3977.   rm -rf conftest*
  3978.   eval "ac_cv_lib_$ac_lib_var=no"
  3979. fi
  3980. rm -f conftest*
  3981. LIBS="$ac_save_LIBS"
  3982.  
  3983. fi
  3984. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3985.   echo "$ac_t""yes" 1>&6
  3986.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3987. else
  3988.   echo "$ac_t""no" 1>&6
  3989. fi
  3990.  
  3991. fi
  3992.  
  3993.    
  3994.    # Solaris 2.6 needs -lresolv for res_init
  3995.    echo $ac_n "checking for res_init""... $ac_c" 1>&6
  3996. echo "configure:3997: checking for res_init" >&5
  3997. if eval "test \"`echo '$''{'ac_cv_func_res_init'+set}'`\" = set"; then
  3998.   echo $ac_n "(cached) $ac_c" 1>&6
  3999. else
  4000.   cat > conftest.$ac_ext <<EOF
  4001. #line 4002 "configure"
  4002. #include "confdefs.h"
  4003. /* System header to define __stub macros and hopefully few prototypes,
  4004.     which can conflict with char res_init(); below.  */
  4005. #include <assert.h>
  4006. /* Override any gcc2 internal prototype to avoid an error.  */
  4007. /* We use char because int might match the return type of a gcc2
  4008.     builtin and then its argument prototype would still apply.  */
  4009. char res_init();
  4010.  
  4011. int main() {
  4012.  
  4013. /* The GNU C library defines this for functions which it implements
  4014.     to always fail with ENOSYS.  Some functions are actually named
  4015.     something starting with __ and the normal name is an alias.  */
  4016. #if defined (__stub_res_init) || defined (__stub___res_init)
  4017. choke me
  4018. #else
  4019. res_init();
  4020. #endif
  4021.  
  4022. ; return 0; }
  4023. EOF
  4024. if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4025.   rm -rf conftest*
  4026.   eval "ac_cv_func_res_init=yes"
  4027. else
  4028.   echo "configure: failed program was:" >&5
  4029.   cat conftest.$ac_ext >&5
  4030.   rm -rf conftest*
  4031.   eval "ac_cv_func_res_init=no"
  4032. fi
  4033. rm -f conftest*
  4034. fi
  4035.  
  4036. if eval "test \"`echo '$ac_cv_func_'res_init`\" = yes"; then
  4037.   echo "$ac_t""yes" 1>&6
  4038.   :
  4039. else
  4040.   echo "$ac_t""no" 1>&6
  4041. echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6
  4042. echo "configure:4043: checking for res_init in -lresolv" >&5
  4043. ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'`
  4044. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4045.   echo $ac_n "(cached) $ac_c" 1>&6
  4046. else
  4047.   ac_save_LIBS="$LIBS"
  4048. LIBS="-lresolv  $LIBS"
  4049. cat > conftest.$ac_ext <<EOF
  4050. #line 4051 "configure"
  4051. #include "confdefs.h"
  4052. /* Override any gcc2 internal prototype to avoid an error.  */
  4053. /* We use char because int might match the return type of a gcc2
  4054.     builtin and then its argument prototype would still apply.  */
  4055. char res_init();
  4056.  
  4057. int main() {
  4058. res_init()
  4059. ; return 0; }
  4060. EOF
  4061. if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4062.   rm -rf conftest*
  4063.   eval "ac_cv_lib_$ac_lib_var=yes"
  4064. else
  4065.   echo "configure: failed program was:" >&5
  4066.   cat conftest.$ac_ext >&5
  4067.   rm -rf conftest*
  4068.   eval "ac_cv_lib_$ac_lib_var=no"
  4069. fi
  4070. rm -f conftest*
  4071. LIBS="$ac_save_LIBS"
  4072.  
  4073. fi
  4074. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4075.   echo "$ac_t""yes" 1>&6
  4076.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lresolv"
  4077. else
  4078.   echo "$ac_t""no" 1>&6
  4079. fi
  4080.  
  4081. fi
  4082.  
  4083.  
  4084.    LIBSOCKET="$X_EXTRA_LIBS"
  4085.    
  4086.    
  4087.    echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6
  4088. echo "configure:4089: checking for killpg in -lucb" >&5
  4089. ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'`
  4090. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4091.   echo $ac_n "(cached) $ac_c" 1>&6
  4092. else
  4093.   ac_save_LIBS="$LIBS"
  4094. LIBS="-lucb  $LIBS"
  4095. cat > conftest.$ac_ext <<EOF
  4096. #line 4097 "configure"
  4097. #include "confdefs.h"
  4098. /* Override any gcc2 internal prototype to avoid an error.  */
  4099. /* We use char because int might match the return type of a gcc2
  4100.     builtin and then its argument prototype would still apply.  */
  4101. char killpg();
  4102.  
  4103. int main() {
  4104. killpg()
  4105. ; return 0; }
  4106. EOF
  4107. if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4108.   rm -rf conftest*
  4109.   eval "ac_cv_lib_$ac_lib_var=yes"
  4110. else
  4111.   echo "configure: failed program was:" >&5
  4112.   cat conftest.$ac_ext >&5
  4113.   rm -rf conftest*
  4114.   eval "ac_cv_lib_$ac_lib_var=no"
  4115. fi
  4116. rm -f conftest*
  4117. LIBS="$ac_save_LIBS"
  4118.  
  4119. fi
  4120. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4121.   echo "$ac_t""yes" 1>&6
  4122.   LIBUCB="-lucb"
  4123. else
  4124.   echo "$ac_t""no" 1>&6
  4125. fi
  4126.     
  4127.  
  4128.    case $host in     *-*-lynxos* )
  4129.         echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6
  4130. echo "configure:4131: checking LynxOS header file wrappers" >&5
  4131.         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
  4132.         echo "$ac_t""disabled" 1>&6
  4133.         echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
  4134. echo "configure:4135: checking for gethostbyname in -lbsd" >&5
  4135. ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
  4136. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4137.   echo $ac_n "(cached) $ac_c" 1>&6
  4138. else
  4139.   ac_save_LIBS="$LIBS"
  4140. LIBS="-lbsd  $LIBS"
  4141. cat > conftest.$ac_ext <<EOF
  4142. #line 4143 "configure"
  4143. #include "confdefs.h"
  4144. /* Override any gcc2 internal prototype to avoid an error.  */
  4145. /* We use char because int might match the return type of a gcc2
  4146.     builtin and then its argument prototype would still apply.  */
  4147. char gethostbyname();
  4148.  
  4149. int main() {
  4150. gethostbyname()
  4151. ; return 0; }
  4152. EOF
  4153. if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4154.   rm -rf conftest*
  4155.   eval "ac_cv_lib_$ac_lib_var=yes"
  4156. else
  4157.   echo "configure: failed program was:" >&5
  4158.   cat conftest.$ac_ext >&5
  4159.   rm -rf conftest*
  4160.   eval "ac_cv_lib_$ac_lib_var=no"
  4161. fi
  4162. rm -f conftest*
  4163. LIBS="$ac_save_LIBS"
  4164.  
  4165. fi
  4166. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4167.   echo "$ac_t""yes" 1>&6
  4168.   LIBSOCKET="-lbsd"
  4169. else
  4170.   echo "$ac_t""no" 1>&6
  4171. fi
  4172.           ;;
  4173.     esac
  4174.  
  4175.      echo $ac_n "checking size of int""... $ac_c" 1>&6
  4176. echo "configure:4177: checking size of int" >&5
  4177. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  4178.   echo $ac_n "(cached) $ac_c" 1>&6
  4179. else
  4180.   if test "$cross_compiling" = yes; then
  4181.   ac_cv_sizeof_int=4
  4182. else
  4183.   cat > conftest.$ac_ext <<EOF
  4184. #line 4185 "configure"
  4185. #include "confdefs.h"
  4186. #include <stdio.h>
  4187. main()
  4188. {
  4189.   FILE *f=fopen("conftestval", "w");
  4190.   if (!f) exit(1);
  4191.   fprintf(f, "%d\n", sizeof(int));
  4192.   exit(0);
  4193. }
  4194. EOF
  4195. if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4196. then
  4197.   ac_cv_sizeof_int=`cat conftestval`
  4198. else
  4199.   echo "configure: failed program was:" >&5
  4200.   cat conftest.$ac_ext >&5
  4201.   rm -fr conftest*
  4202.   ac_cv_sizeof_int=0
  4203. fi
  4204. rm -fr conftest*
  4205. fi
  4206.  
  4207. fi
  4208. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  4209. cat >> confdefs.h <<EOF
  4210. #define SIZEOF_INT $ac_cv_sizeof_int
  4211. EOF
  4212.  
  4213.   echo $ac_n "checking size of long""... $ac_c" 1>&6
  4214. echo "configure:4215: checking size of long" >&5
  4215. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  4216.   echo $ac_n "(cached) $ac_c" 1>&6
  4217. else
  4218.   if test "$cross_compiling" = yes; then
  4219.   ac_cv_sizeof_long=4
  4220. else
  4221.   cat > conftest.$ac_ext <<EOF
  4222. #line 4223 "configure"
  4223. #include "confdefs.h"
  4224. #include <stdio.h>
  4225. main()
  4226. {
  4227.   FILE *f=fopen("conftestval", "w");
  4228.   if (!f) exit(1);
  4229.   fprintf(f, "%d\n", sizeof(long));
  4230.   exit(0);
  4231. }
  4232. EOF
  4233. if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4234. then
  4235.   ac_cv_sizeof_long=`cat conftestval`
  4236. else
  4237.   echo "configure: failed program was:" >&5
  4238.   cat conftest.$ac_ext >&5
  4239.   rm -fr conftest*
  4240.   ac_cv_sizeof_long=0
  4241. fi
  4242. rm -fr conftest*
  4243. fi
  4244.  
  4245. fi
  4246. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  4247. cat >> confdefs.h <<EOF
  4248. #define SIZEOF_LONG $ac_cv_sizeof_long
  4249. EOF
  4250.  
  4251.   echo $ac_n "checking size of char *""... $ac_c" 1>&6
  4252. echo "configure:4253: checking size of char *" >&5
  4253. if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
  4254.   echo $ac_n "(cached) $ac_c" 1>&6
  4255. else
  4256.   if test "$cross_compiling" = yes; then
  4257.   ac_cv_sizeof_char_p=4
  4258. else
  4259.   cat > conftest.$ac_ext <<EOF
  4260. #line 4261 "configure"
  4261. #include "confdefs.h"
  4262. #include <stdio.h>
  4263. main()
  4264. {
  4265.   FILE *f=fopen("conftestval", "w");
  4266.   if (!f) exit(1);
  4267.   fprintf(f, "%d\n", sizeof(char *));
  4268.   exit(0);
  4269. }
  4270. EOF
  4271. if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4272. then
  4273.   ac_cv_sizeof_char_p=`cat conftestval`
  4274. else
  4275.   echo "configure: failed program was:" >&5
  4276.   cat conftest.$ac_ext >&5
  4277.   rm -fr conftest*
  4278.   ac_cv_sizeof_char_p=0
  4279. fi
  4280. rm -fr conftest*
  4281. fi
  4282.  
  4283. fi
  4284. echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
  4285. cat >> confdefs.h <<EOF
  4286. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  4287. EOF
  4288.  
  4289.  
  4290.    
  4291. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  4292. echo "configure:4293: checking for dlopen in -ldl" >&5
  4293. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  4294. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4295.   echo $ac_n "(cached) $ac_c" 1>&6
  4296. else
  4297.   ac_save_LIBS="$LIBS"
  4298. LIBS="-ldl  $LIBS"
  4299. cat > conftest.$ac_ext <<EOF
  4300. #line 4301 "configure"
  4301. #include "confdefs.h"
  4302. /* Override any gcc2 internal prototype to avoid an error.  */
  4303. /* We use char because int might match the return type of a gcc2
  4304.     builtin and then its argument prototype would still apply.  */
  4305. char dlopen();
  4306.  
  4307. int main() {
  4308. dlopen()
  4309. ; return 0; }
  4310. EOF
  4311. if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4312.   rm -rf conftest*
  4313.   eval "ac_cv_lib_$ac_lib_var=yes"
  4314. else
  4315.   echo "configure: failed program was:" >&5
  4316.   cat conftest.$ac_ext >&5
  4317.   rm -rf conftest*
  4318.   eval "ac_cv_lib_$ac_lib_var=no"
  4319. fi
  4320. rm -f conftest*
  4321. LIBS="$ac_save_LIBS"
  4322.  
  4323. fi
  4324. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4325.   echo "$ac_t""yes" 1>&6
  4326.   
  4327. LIBDL="-ldl"
  4328. ac_cv_have_dlfcn=yes
  4329.  
  4330. else
  4331.   echo "$ac_t""no" 1>&6
  4332. fi
  4333.  
  4334.  
  4335. echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6
  4336. echo "configure:4337: checking for shl_unload in -ldld" >&5
  4337. ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'`
  4338. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4339.   echo $ac_n "(cached) $ac_c" 1>&6
  4340. else
  4341.   ac_save_LIBS="$LIBS"
  4342. LIBS="-ldld  $LIBS"
  4343. cat > conftest.$ac_ext <<EOF
  4344. #line 4345 "configure"
  4345. #include "confdefs.h"
  4346. /* Override any gcc2 internal prototype to avoid an error.  */
  4347. /* We use char because int might match the return type of a gcc2
  4348.     builtin and then its argument prototype would still apply.  */
  4349. char shl_unload();
  4350.  
  4351. int main() {
  4352. shl_unload()
  4353. ; return 0; }
  4354. EOF
  4355. if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4356.   rm -rf conftest*
  4357.   eval "ac_cv_lib_$ac_lib_var=yes"
  4358. else
  4359.   echo "configure: failed program was:" >&5
  4360.   cat conftest.$ac_ext >&5
  4361.   rm -rf conftest*
  4362.   eval "ac_cv_lib_$ac_lib_var=no"
  4363. fi
  4364. rm -f conftest*
  4365. LIBS="$ac_save_LIBS"
  4366.  
  4367. fi
  4368. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4369.   echo "$ac_t""yes" 1>&6
  4370.   
  4371. LIBDL="-ldld"
  4372. ac_cv_have_shload=yes
  4373.  
  4374. else
  4375.   echo "$ac_t""no" 1>&6
  4376. fi
  4377.  
  4378.  
  4379.  
  4380.  
  4381.  
  4382.  
  4383. echo $ac_n "checking for extra includes""... $ac_c" 1>&6
  4384. echo "configure:4385: checking for extra includes" >&5
  4385. # Check whether --with-extra-includes or --without-extra-includes was given.
  4386. if test "${with_extra_includes+set}" = set; then
  4387.   withval="$with_extra_includes"
  4388.   kde_use_extra_includes="$withval"
  4389. else
  4390.   kde_use_extra_includes=NONE
  4391.  
  4392. fi
  4393.  
  4394. kde_extra_includes=
  4395. if test -n "$kde_use_extra_includes" && \
  4396.    test "$kde_use_extra_includes" != "NONE"; then
  4397.  
  4398.    ac_save_ifs=$IFS
  4399.    IFS=':'
  4400.    for dir in $kde_use_extra_includes; do
  4401.      kde_extra_includes="$kde_extra_includes $dir"
  4402.      USER_INCLUDES="$USER_INCLUDES -I$dir"
  4403.    done
  4404.    IFS=$ac_save_ifs
  4405.    kde_use_extra_includes="added"
  4406. else
  4407.    kde_use_extra_includes="no"
  4408. fi
  4409.  
  4410.  
  4411. echo "$ac_t""$kde_use_extra_includes" 1>&6
  4412.  
  4413. kde_extra_libs=
  4414. echo $ac_n "checking for extra libs""... $ac_c" 1>&6
  4415. echo "configure:4416: checking for extra libs" >&5
  4416. # Check whether --with-extra-libs or --without-extra-libs was given.
  4417. if test "${with_extra_libs+set}" = set; then
  4418.   withval="$with_extra_libs"
  4419.   kde_use_extra_libs=$withval
  4420. else
  4421.   kde_use_extra_libs=NONE
  4422.  
  4423. fi
  4424.  
  4425. if test -n "$kde_use_extra_libs" && \
  4426.    test "$kde_use_extra_libs" != "NONE"; then
  4427.  
  4428.    ac_save_ifs=$IFS
  4429.    IFS=':'
  4430.    for dir in $kde_use_extra_libs; do
  4431.      kde_extra_libs="$kde_extra_libs $dir"
  4432.      KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
  4433.      USER_LDFLAGS="$USER_LDFLAGS -L$dir"
  4434.    done
  4435.    IFS=$ac_save_ifs
  4436.    kde_use_extra_libs="added"
  4437. else
  4438.    kde_use_extra_libs="no"
  4439. fi
  4440.  
  4441.  
  4442.  
  4443. echo "$ac_t""$kde_use_extra_libs" 1>&6
  4444.  
  4445.  
  4446.  
  4447.  
  4448. echo $ac_n "checking for libz""... $ac_c" 1>&6
  4449. echo "configure:4450: checking for libz" >&5
  4450. if eval "test \"`echo '$''{'ac_cv_lib_z'+set}'`\" = set"; then
  4451.   echo $ac_n "(cached) $ac_c" 1>&6
  4452. else
  4453.   
  4454. ac_ext=c
  4455. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4456. ac_cpp='$CPP $CPPFLAGS'
  4457. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4458. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4459. cross_compiling=$ac_cv_prog_cc_cross
  4460.  
  4461. kde_save_LIBS="$LIBS"
  4462. LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
  4463. kde_save_CFLAGS="$CFLAGS"
  4464. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  4465. cat > conftest.$ac_ext <<EOF
  4466. #line 4467 "configure"
  4467. #include "confdefs.h"
  4468.  
  4469. #include<zlib.h>
  4470.  
  4471. int main() {
  4472. return (zlibVersion() == ZLIB_VERSION); 
  4473. ; return 0; }
  4474. EOF
  4475. if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4476.   rm -rf conftest*
  4477.   eval "ac_cv_lib_z='-lz'"
  4478. else
  4479.   echo "configure: failed program was:" >&5
  4480.   cat conftest.$ac_ext >&5
  4481.   rm -rf conftest*
  4482.   eval "ac_cv_lib_z=no"
  4483. fi
  4484. rm -f conftest*
  4485. LIBS="$kde_save_LIBS"
  4486. CFLAGS="$kde_save_CFLAGS"
  4487.  
  4488. fi
  4489. if test ! "$ac_cv_lib_z" = no; then
  4490.   cat >> confdefs.h <<EOF
  4491. #define HAVE_LIBZ 1
  4492. EOF
  4493.  
  4494.   LIBZ="$ac_cv_lib_z"
  4495.   
  4496.   echo "$ac_t""$ac_cv_lib_z" 1>&6
  4497. else
  4498.   { echo "configure: error: not found. Check your installation and look into config.log" 1>&2; exit 1; }
  4499.   LIBZ=""
  4500.   
  4501. fi
  4502.  
  4503.  
  4504. echo $ac_n "checking for X""... $ac_c" 1>&6
  4505. echo "configure:4506: checking for X" >&5
  4506.  
  4507. ac_ext=c
  4508. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4509. ac_cpp='$CPP $CPPFLAGS'
  4510. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4511. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4512. cross_compiling=$ac_cv_prog_cc_cross
  4513.  
  4514. if eval "test \"`echo '$''{'kde_cv_have_x'+set}'`\" = set"; then
  4515.   echo $ac_n "(cached) $ac_c" 1>&6
  4516. else
  4517.   # One or both of the vars are not set, and there is no cached value.
  4518. if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
  4519.    kde_x_includes=NO
  4520. else
  4521.    kde_x_includes=$x_includes
  4522. fi
  4523. if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
  4524.    kde_x_libraries=NO
  4525. else
  4526.    kde_x_libraries=$x_libraries
  4527. fi
  4528.  
  4529. # below we use the standard autoconf calls
  4530. ac_x_libraries=$kde_x_libraries
  4531. ac_x_includes=$kde_x_includes
  4532.  
  4533. if test "$ac_x_includes" = NO; then
  4534.   # Guess where to find include files, by looking for this one X11 .h file.
  4535.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  4536.  
  4537.   # First, try using that file with no special directory specified.
  4538. cat > conftest.$ac_ext <<EOF
  4539. #line 4540 "configure"
  4540. #include "confdefs.h"
  4541. #include <$x_direct_test_include>
  4542. EOF
  4543. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4544. { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4545. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4546. if test -z "$ac_err"; then
  4547.   rm -rf conftest*
  4548.   # We can compile using X headers with no special include directory.
  4549. ac_x_includes=
  4550. else
  4551.   echo "$ac_err" >&5
  4552.   echo "configure: failed program was:" >&5
  4553.   cat conftest.$ac_ext >&5
  4554.   rm -rf conftest*
  4555.   # Look for the header file in a standard set of common directories.
  4556. # Check X11 before X11Rn because it is often a symlink to the current release.
  4557.   for ac_dir in               \
  4558.     /usr/X11/include          \
  4559.     /usr/X11R6/include        \
  4560.     /usr/X11R5/include        \
  4561.     /usr/X11R4/include        \
  4562.                               \
  4563.     /usr/include/X11          \
  4564.     /usr/include/X11R6        \
  4565.     /usr/include/X11R5        \
  4566.     /usr/include/X11R4        \
  4567.                               \
  4568.     /usr/local/X11/include    \
  4569.     /usr/local/X11R6/include  \
  4570.     /usr/local/X11R5/include  \
  4571.     /usr/local/X11R4/include  \
  4572.                               \
  4573.     /usr/local/include/X11    \
  4574.     /usr/local/include/X11R6  \
  4575.     /usr/local/include/X11R5  \
  4576.     /usr/local/include/X11R4  \
  4577.                               \
  4578.     /usr/X386/include         \
  4579.     /usr/x386/include         \
  4580.     /usr/XFree86/include/X11  \
  4581.                               \
  4582.     /usr/include              \
  4583.     /usr/local/include        \
  4584.     /usr/unsupported/include  \
  4585.     /usr/athena/include       \
  4586.     /usr/local/x11r5/include  \
  4587.     /usr/lpp/Xamples/include  \
  4588.                               \
  4589.     /usr/openwin/include      \
  4590.     /usr/openwin/share/include \
  4591.     ; \
  4592.   do
  4593.     if test -r "$ac_dir/$x_direct_test_include"; then
  4594.       ac_x_includes=$ac_dir
  4595.       break
  4596.     fi
  4597.   done
  4598. fi
  4599. rm -f conftest*
  4600. fi # $ac_x_includes = NO
  4601.  
  4602. if test "$ac_x_libraries" = NO; then
  4603.   # Check for the libraries.
  4604.  
  4605.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  4606.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  4607.  
  4608.   # See if we find them without any special options.
  4609.   # Don't add to $LIBS permanently.
  4610.   ac_save_LIBS="$LIBS"
  4611.   LIBS="-l$x_direct_test_library $LIBS"
  4612. cat > conftest.$ac_ext <<EOF
  4613. #line 4614 "configure"
  4614. #include "confdefs.h"
  4615.  
  4616. int main() {
  4617. ${x_direct_test_function}()
  4618. ; return 0; }
  4619. EOF
  4620. if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4621.   rm -rf conftest*
  4622.   LIBS="$ac_save_LIBS"
  4623. # We can link X programs with no special library path.
  4624. ac_x_libraries=
  4625. else
  4626.   echo "configure: failed program was:" >&5
  4627.   cat conftest.$ac_ext >&5
  4628.   rm -rf conftest*
  4629.   LIBS="$ac_save_LIBS"
  4630. # First see if replacing the include by lib works.
  4631. # Check X11 before X11Rn because it is often a symlink to the current release.
  4632. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  4633.     /usr/X11/lib          \
  4634.     /usr/X11R6/lib        \
  4635.     /usr/X11R5/lib        \
  4636.     /usr/X11R4/lib        \
  4637.                           \
  4638.     /usr/lib/X11          \
  4639.     /usr/lib/X11R6        \
  4640.     /usr/lib/X11R5        \
  4641.     /usr/lib/X11R4        \
  4642.                           \
  4643.     /usr/local/X11/lib    \
  4644.     /usr/local/X11R6/lib  \
  4645.     /usr/local/X11R5/lib  \
  4646.     /usr/local/X11R4/lib  \
  4647.                           \
  4648.     /usr/local/lib/X11    \
  4649.     /usr/local/lib/X11R6  \
  4650.     /usr/local/lib/X11R5  \
  4651.     /usr/local/lib/X11R4  \
  4652.                           \
  4653.     /usr/X386/lib         \
  4654.     /usr/x386/lib         \
  4655.     /usr/XFree86/lib/X11  \
  4656.                           \
  4657.     /usr/lib              \
  4658.     /usr/local/lib        \
  4659.     /usr/unsupported/lib  \
  4660.     /usr/athena/lib       \
  4661.     /usr/local/x11r5/lib  \
  4662.     /usr/lpp/Xamples/lib  \
  4663.     /lib/usr/lib/X11      \
  4664.                           \
  4665.     /usr/openwin/lib      \
  4666.     /usr/openwin/share/lib \
  4667.     ; \
  4668. do
  4669.   for ac_extension in a so sl; do
  4670.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  4671.       ac_x_libraries=$ac_dir
  4672.       break 2
  4673.     fi
  4674.   done
  4675. done
  4676. fi
  4677. rm -f conftest*
  4678. fi # $ac_x_libraries = NO
  4679.  
  4680. case "$host" in
  4681. mips-sgi-irix6*)
  4682.   ;;
  4683. *)
  4684.   rm -fr conftestdir
  4685. if mkdir conftestdir; then
  4686.   cd conftestdir
  4687.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  4688.   cat > Imakefile <<'EOF'
  4689. acfindx:
  4690.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  4691. EOF
  4692.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  4693.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4694.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  4695.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  4696.     for ac_extension in a so sl; do
  4697.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  4698.         test -f $ac_im_libdir/libX11.$ac_extension; then
  4699.         ac_im_usrlibdir=$ac_im_libdir; break
  4700.       fi
  4701.     done
  4702.     # Screen out bogus values from the imake configuration.  They are
  4703.     # bogus both because they are the default anyway, and because
  4704.     # using them would break gcc on systems where it needs fixed includes.
  4705.     case "$ac_im_incroot" in
  4706.     /usr/include) ;;
  4707.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  4708.     esac
  4709.     case "$ac_im_usrlibdir" in
  4710.     /usr/lib | /lib) ;;
  4711.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  4712.     esac
  4713.   fi
  4714.   cd ..
  4715.   rm -fr conftestdir
  4716. fi
  4717.  
  4718.   if test -z "$ac_x_includes"; then
  4719.     ac_x_includes="."
  4720.   fi
  4721.   if test -z "$ac_x_libraries"; then
  4722.     ac_x_libraries="/usr/lib"
  4723.   fi
  4724. esac
  4725. #from now on we use our own again
  4726.  
  4727. # when the user already gave --x-includes, we ignore
  4728. # what the standard autoconf macros told us.
  4729. if test "$kde_x_includes" = NO; then
  4730.   kde_x_includes=$ac_x_includes
  4731. fi
  4732.  
  4733. # for --x-libraries too
  4734. if test "$kde_x_libraries" = NO; then
  4735.   kde_x_libraries=$ac_x_libraries
  4736. fi
  4737.  
  4738. if test "$kde_x_includes" = NO; then
  4739.   { echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; }
  4740. fi
  4741.  
  4742. if test "$kde_x_libraries" = NO; then
  4743.   { echo "configure: error: Can't find X libraries. Please check your installation and add the correct paths!" 1>&2; exit 1; }
  4744. fi
  4745.  
  4746. # Record where we found X for the cache.
  4747. kde_cv_have_x="have_x=yes \
  4748.          kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
  4749.  
  4750. fi
  4751. eval "$kde_cv_have_x"
  4752.  
  4753. if test "$have_x" != yes; then
  4754.   echo "$ac_t""$have_x" 1>&6
  4755.   no_x=yes
  4756. else
  4757.   echo "$ac_t""libraries $kde_x_libraries, headers $kde_x_includes" 1>&6
  4758. fi
  4759.  
  4760. if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
  4761.   X_INCLUDES=""
  4762.   x_includes=".";  else
  4763.   x_includes=$kde_x_includes
  4764.   X_INCLUDES="-I$x_includes"
  4765. fi
  4766.  
  4767. if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
  4768.   X_LDFLAGS=""
  4769.   x_libraries="/usr/lib";  else
  4770.   x_libraries=$kde_x_libraries
  4771.   X_LDFLAGS="-L$x_libraries"
  4772. fi
  4773. all_includes="$X_INCLUDES"
  4774. all_libraries="$X_LDFLAGS"
  4775.  
  4776.  
  4777.  
  4778.  
  4779.  
  4780.  
  4781. # Check for libraries that X11R6 Xt/Xaw programs need.
  4782. ac_save_LDFLAGS="$LDFLAGS"
  4783. LDFLAGS="$LDFLAGS $X_LDFLAGS"
  4784. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  4785. # check for ICE first), but we must link in the order -lSM -lICE or
  4786. # we get undefined symbols.  So assume we have SM if we have ICE.
  4787. # These have to be linked with before -lX11, unlike the other
  4788. # libraries we check for below, so use a different variable.
  4789. #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  4790. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  4791. echo "configure:4792: checking for IceConnectionNumber in -lICE" >&5
  4792. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  4793. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4794.   echo $ac_n "(cached) $ac_c" 1>&6
  4795. else
  4796.   ac_save_LIBS="$LIBS"
  4797. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  4798. cat > conftest.$ac_ext <<EOF
  4799. #line 4800 "configure"
  4800. #include "confdefs.h"
  4801. /* Override any gcc2 internal prototype to avoid an error.  */
  4802. /* We use char because int might match the return type of a gcc2
  4803.     builtin and then its argument prototype would still apply.  */
  4804. char IceConnectionNumber();
  4805.  
  4806. int main() {
  4807. IceConnectionNumber()
  4808. ; return 0; }
  4809. EOF
  4810. if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4811.   rm -rf conftest*
  4812.   eval "ac_cv_lib_$ac_lib_var=yes"
  4813. else
  4814.   echo "configure: failed program was:" >&5
  4815.   cat conftest.$ac_ext >&5
  4816.   rm -rf conftest*
  4817.   eval "ac_cv_lib_$ac_lib_var=no"
  4818. fi
  4819. rm -f conftest*
  4820. LIBS="$ac_save_LIBS"
  4821.  
  4822. fi
  4823. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4824.   echo "$ac_t""yes" 1>&6
  4825.   LIBSM="-lSM -lICE"
  4826. else
  4827.   echo "$ac_t""no" 1>&6
  4828. fi
  4829.  
  4830.  
  4831. LDFLAGS="$ac_save_LDFLAGS"
  4832.  
  4833.  
  4834.  
  4835. LIB_X11='-lX11 $(LIBSOCKET)'
  4836.  
  4837.  
  4838. echo $ac_n "checking for libXext""... $ac_c" 1>&6
  4839. echo "configure:4840: checking for libXext" >&5
  4840. if eval "test \"`echo '$''{'kde_cv_have_libXext'+set}'`\" = set"; then
  4841.   echo $ac_n "(cached) $ac_c" 1>&6
  4842. else
  4843.   
  4844. kde_ldflags_safe="$LDFLAGS"
  4845. kde_libs_safe="$LIBS"
  4846.  
  4847. LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
  4848. LIBS="-lXext -lX11 $LIBSOCKET"
  4849.  
  4850. cat > conftest.$ac_ext <<EOF
  4851. #line 4852 "configure"
  4852. #include "confdefs.h"
  4853.  
  4854. #include <stdio.h>
  4855.  
  4856. int main() {
  4857.  
  4858. printf("hello Xext\n");
  4859.  
  4860. ; return 0; }
  4861. EOF
  4862. if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4863.   rm -rf conftest*
  4864.   kde_cv_have_libXext=yes
  4865. else
  4866.   echo "configure: failed program was:" >&5
  4867.   cat conftest.$ac_ext >&5
  4868.   rm -rf conftest*
  4869.   kde_cv_have_libXext=no
  4870.    
  4871. fi
  4872. rm -f conftest*
  4873.  
  4874. LDFLAGS=$kde_ldflags_safe
  4875. LIBS=$kde_libs_safe
  4876.  
  4877. fi
  4878.  
  4879.  
  4880. echo "$ac_t""$kde_cv_have_libXext" 1>&6
  4881.  
  4882. if test "$kde_cv_have_libXext" = "no"; then
  4883.   { echo "configure: error: We need a working libXext to proceed. Since configure
  4884. can't find it itself, we stop here assuming that make wouldn't find
  4885. them either." 1>&2; exit 1; }
  4886. fi
  4887.  
  4888.  
  4889.  
  4890.  
  4891. if test -z ""; then
  4892.   kde_qtver=2
  4893.   kde_qtsubver=1
  4894. else
  4895.   kde_qtsubver=`echo "" | sed -e 's#[0-9]\+\.\([0-9]\+\).*#\1#'`
  4896.   # following is the check if subversion isn¥t found in passed argument
  4897.   if test "$kde_qtsubver" = ""; then
  4898.     kde_qtsubver=1
  4899.   fi
  4900.   kde_qtver=`echo "" | sed -e 's#^\([0-9]\+\)\..*#\1#'`
  4901.   if test "$kde_qtver" = "1"; then
  4902.     kde_qtsubver=42
  4903.   else
  4904.    # this is the version number fallback to 2.1, unless major version is 1 or 2
  4905.    if test "$kde_qtver" != "2"; then
  4906.     kde_qtver=2
  4907.     kde_qtsubver=1
  4908.    fi
  4909.   fi
  4910. fi
  4911.  
  4912. if test -z ""; then
  4913.   if test $kde_qtver = 2; then
  4914.     if test $kde_qtsubver -gt 0; then
  4915.       kde_qt_minversion=">= Qt 2.2.2"
  4916.     else
  4917.       kde_qt_minversion=">= Qt 2.0.2"
  4918.     fi
  4919.   else
  4920.     kde_qt_minversion=">= 1.42 and < 2.0"
  4921.   fi
  4922. else
  4923.    kde_qt_minversion=
  4924. fi
  4925.  
  4926. if test -z ""; then
  4927.    if test $kde_qtver = 2; then
  4928.     if test $kde_qtsubver -gt 0; then
  4929.       kde_qt_verstring="QT_VERSION >= 222"
  4930.     else
  4931.       kde_qt_verstring="QT_VERSION >= 200"
  4932.     fi
  4933.    else
  4934.     kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
  4935.   fi
  4936. else
  4937.    kde_qt_verstring=
  4938. fi
  4939.  
  4940. if test $kde_qtver = 2; then
  4941.    kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
  4942. else
  4943.    kde_qt_dirs="$QTDIR /usr/lib/qt"
  4944. fi
  4945.  
  4946.  
  4947.  
  4948.  
  4949. echo $ac_n "checking for libpng""... $ac_c" 1>&6
  4950. echo "configure:4951: checking for libpng" >&5
  4951. if eval "test \"`echo '$''{'ac_cv_lib_png'+set}'`\" = set"; then
  4952.   echo $ac_n "(cached) $ac_c" 1>&6
  4953. else
  4954.   
  4955. kde_save_LIBS="$LIBS"
  4956. LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
  4957. kde_save_CFLAGS="$CFLAGS"
  4958. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  4959. ac_ext=c
  4960. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4961. ac_cpp='$CPP $CPPFLAGS'
  4962. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4963. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4964. cross_compiling=$ac_cv_prog_cc_cross
  4965.  
  4966. cat > conftest.$ac_ext <<EOF
  4967. #line 4968 "configure"
  4968. #include "confdefs.h"
  4969.     
  4970.     #include<png.h>
  4971.     
  4972. int main() {
  4973.  
  4974.     png_structp png_ptr = png_create_read_struct(  /* image ptr */
  4975.         PNG_LIBPNG_VER_STRING, 0, 0, 0 );
  4976.     return( png_ptr != 0 );
  4977.     
  4978. ; return 0; }
  4979. EOF
  4980. if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4981.   rm -rf conftest*
  4982.   eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
  4983. else
  4984.   echo "configure: failed program was:" >&5
  4985.   cat conftest.$ac_ext >&5
  4986.   rm -rf conftest*
  4987.   eval "ac_cv_lib_png=no"
  4988.  
  4989. fi
  4990. rm -f conftest*
  4991. LIBS="$kde_save_LIBS"
  4992. CFLAGS="$kde_save_CFLAGS"
  4993.  
  4994. fi
  4995. if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
  4996.   cat >> confdefs.h <<EOF
  4997. #define HAVE_LIBPNG 1
  4998. EOF
  4999.  
  5000.   LIBPNG="$ac_cv_lib_png"
  5001.   
  5002.   echo "$ac_t""$ac_cv_lib_png" 1>&6
  5003. else
  5004.   echo "$ac_t""no" 1>&6
  5005.   LIBPNG=""
  5006.   
  5007. fi
  5008.  
  5009.  
  5010.  
  5011. echo $ac_n "checking for libjpeg6b""... $ac_c" 1>&6
  5012. echo "configure:5013: checking for libjpeg6b" >&5
  5013. if eval "test \"`echo '$''{'ac_cv_lib_jpeg_6b'+set}'`\" = set"; then
  5014.   echo $ac_n "(cached) $ac_c" 1>&6
  5015. else
  5016.   
  5017. ac_ext=c
  5018. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5019. ac_cpp='$CPP $CPPFLAGS'
  5020. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5021. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5022. cross_compiling=$ac_cv_prog_cc_cross
  5023.  
  5024. ac_save_LIBS="$LIBS"
  5025. LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
  5026. ac_save_CFLAGS="$CFLAGS"
  5027. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  5028. cat > conftest.$ac_ext <<EOF
  5029. #line 5030 "configure"
  5030. #include "confdefs.h"
  5031. /* Override any gcc2 internal prototype to avoid an error.  */
  5032. struct jpeg_decompress_struct;
  5033. typedef struct jpeg_decompress_struct * j_decompress_ptr;
  5034. typedef int size_t;
  5035. #ifdef __cplusplus
  5036. extern "C" {
  5037. #endif
  5038.     void jpeg_CreateDecompress(j_decompress_ptr cinfo,
  5039.                                     int version, size_t structsize);
  5040. #ifdef __cplusplus
  5041. }
  5042. #endif
  5043. /* We use char because int might match the return type of a gcc2
  5044.     builtin and then its argument prototype would still apply.  */
  5045.  
  5046. int main() {
  5047. jpeg_CreateDecompress(0L, 0, 0);
  5048. ; return 0; }
  5049. EOF
  5050. if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5051.   rm -rf conftest*
  5052.   eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
  5053. else
  5054.   echo "configure: failed program was:" >&5
  5055.   cat conftest.$ac_ext >&5
  5056.   rm -rf conftest*
  5057.   eval "ac_cv_lib_jpeg_6b=no"
  5058. fi
  5059. rm -f conftest*
  5060. LIBS="$ac_save_LIBS"
  5061. CFLAGS="$ac_save_CFLAGS"
  5062.  
  5063. fi
  5064.  
  5065.  
  5066. if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
  5067.   LIBJPEG="$ac_cv_lib_jpeg_6b"
  5068.   echo "$ac_t""$ac_cv_lib_jpeg_6b" 1>&6
  5069. else
  5070.   echo "$ac_t""no" 1>&6
  5071.   
  5072. echo $ac_n "checking for libjpeg""... $ac_c" 1>&6
  5073. echo "configure:5074: checking for libjpeg" >&5
  5074. if eval "test \"`echo '$''{'ac_cv_lib_jpeg_normal'+set}'`\" = set"; then
  5075.   echo $ac_n "(cached) $ac_c" 1>&6
  5076. else
  5077.   
  5078. ac_ext=c
  5079. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5080. ac_cpp='$CPP $CPPFLAGS'
  5081. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5082. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5083. cross_compiling=$ac_cv_prog_cc_cross
  5084.  
  5085. ac_save_LIBS="$LIBS"
  5086. LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
  5087. ac_save_CFLAGS="$CFLAGS"
  5088. CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
  5089. cat > conftest.$ac_ext <<EOF
  5090. #line 5091 "configure"
  5091. #include "confdefs.h"
  5092. /* Override any gcc2 internal prototype to avoid an error.  */
  5093. struct jpeg_decompress_struct;
  5094. typedef struct jpeg_decompress_struct * j_decompress_ptr;
  5095. typedef int size_t;
  5096. #ifdef __cplusplus
  5097. extern "C" {
  5098. #endif
  5099.     void jpeg_CreateDecompress(j_decompress_ptr cinfo,
  5100.                                     int version, size_t structsize);
  5101. #ifdef __cplusplus
  5102. }
  5103. #endif
  5104. /* We use char because int might match the return type of a gcc2
  5105.     builtin and then its argument prototype would still apply.  */
  5106.  
  5107. int main() {
  5108. jpeg_CreateDecompress(0L, 0, 0);
  5109. ; return 0; }
  5110. EOF
  5111. if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5112.   rm -rf conftest*
  5113.   eval "ac_cv_lib_jpeg_normal=-ljpeg"
  5114. else
  5115.   echo "configure: failed program was:" >&5
  5116.   cat conftest.$ac_ext >&5
  5117.   rm -rf conftest*
  5118.   eval "ac_cv_lib_jpeg_normal=no"
  5119. fi
  5120. rm -f conftest*
  5121. LIBS="$ac_save_LIBS"
  5122. CFLAGS="$ac_save_CFLAGS"
  5123.  
  5124. fi
  5125.  
  5126.  
  5127. if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
  5128.   LIBJPEG="$ac_cv_lib_jpeg_normal"
  5129.   echo "$ac_t""$ac_cv_lib_jpeg_normal" 1>&6
  5130. else
  5131.   echo "$ac_t""no" 1>&6
  5132.   
  5133.     if test -f "$kde_libraries/libjpeg.so"; then
  5134.        test -f ./libjpegkde.so || $LN_S $kde_libraries/libjpeg.so ./libjpegkde.so
  5135.        ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
  5136.     else if test -f "$kde_libraries/libjpeg.sl"; then
  5137.        test -f ./libjpegkde.sl ||$LN_S $kde_libraries/libjpeg.sl ./libjpegkde.sl
  5138.        ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"    
  5139.     else if test -f "$kde_libraries/libjpeg.a"; then
  5140.        test -f ./libjpegkde.a || $LN_S $kde_libraries/libjpeg.a ./libjpegkde.a
  5141.        ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
  5142.         else
  5143.       ac_cv_lib_jpeg=
  5144.     fi
  5145.       fi
  5146.    fi
  5147.  
  5148.    LIBJPEG=$ac_cv_lib_jpeg
  5149.  
  5150. fi
  5151.  
  5152.  
  5153. fi
  5154.  
  5155.  
  5156.  
  5157. jpeg_incdirs="/usr/include /usr/local/include $kde_extra_includes"
  5158.  
  5159. jpeg_incdir=NO
  5160. for i in $jpeg_incdirs;
  5161. do
  5162.   for j in jpeglib.h;
  5163.   do
  5164.     if test -r "$i/$j"; then
  5165.       jpeg_incdir=$i
  5166.       break 2
  5167.     fi
  5168.   done
  5169. done
  5170.  
  5171. test "x$jpeg_incdir" = xNO && jpeg_incdir=
  5172.  
  5173. if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
  5174.   cat >> confdefs.h <<EOF
  5175. #define HAVE_LIBJPEG 1
  5176. EOF
  5177.  
  5178. else
  5179.   if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
  5180.     echo "configure: warning: 
  5181. There is an installation error in jpeg support. You seem to have only one
  5182. of either the headers _or_ the libraries installed. You may need to either
  5183. provide correct --with-extra-... options, or the development package of
  5184. libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
  5185. Disabling JPEG support.
  5186. " 1>&2
  5187.   else
  5188.     echo "configure: warning: libjpeg not found. disable JPEG support." 1>&2
  5189.   fi
  5190.   jpeg_incdir=
  5191.   LIBJPEG=
  5192. fi
  5193.  
  5194.  
  5195.  
  5196.  
  5197.  
  5198.  
  5199.  
  5200.  
  5201.  
  5202. # Check whether --enable-mt or --disable-mt was given.
  5203. if test "${enable_mt+set}" = set; then
  5204.   enableval="$enable_mt"
  5205.   kde_use_qt_mt=$enableval
  5206. else
  5207.   kde_use_qt_mt=no
  5208.  
  5209. fi
  5210.  
  5211.  
  5212. USING_QT_MT=""
  5213.  
  5214.  
  5215. if test "x$kde_use_qt_mt" = "xyes"; then
  5216.  
  5217.   case $host in
  5218.   *-*-linux-*)
  5219.     if test "x$GCC" = "xyes"; then
  5220.       CPPFLAGS="$CPPFLAGS -DQT_THREAD_SUPPORT -pthread"
  5221.       X_EXTRA_LIBS="$X_EXTRA_LIBS -pthread"
  5222.     else
  5223.       echo "configure: warning: Compiler is not gcc. MT support disabled." 1>&2
  5224.     fi
  5225.     ;;
  5226.   *)
  5227.     echo "configure: warning: MT not yet supported on $host - disabled." 1>&2
  5228.     ;;
  5229.   esac
  5230.  
  5231. fi
  5232.  
  5233. kde_qt_was_given=yes
  5234.  
  5235.  
  5236. if test -z "$LIBQT_GLOB"; then
  5237.  
  5238.   LIBQT_GLOB="libqt.*"
  5239.  
  5240. fi
  5241.  
  5242. if test -z "$LIBQT"; then
  5243.  
  5244.   LIBQT="-lqt"
  5245.   kde_int_qt="-lqt"
  5246.  
  5247.  
  5248.   if test "x$kde_use_qt_mt" = "xyes"; then
  5249.  
  5250.       case $host in
  5251.       *-*-linux-*)
  5252.         if test "x$GCC" = "xyes"; then
  5253.           LIBQT="-lqt-mt"
  5254.           kde_int_qt="-lqt-mt"
  5255.           LIBQT_GLOB="libqt-mt.*"
  5256.           USING_QT_MT="using -mt"
  5257.         fi
  5258.       ;;
  5259.       esac
  5260.   fi
  5261.  
  5262.   kde_qt_was_given=no
  5263.  
  5264. else
  5265.   kde_int_qt="$LIBQT"
  5266. fi
  5267.  
  5268. if test $kde_qtver = 2; then
  5269.  
  5270.   
  5271.   
  5272.   LIBQT="$LIBQT $LIBPNG $LIBJPEG"
  5273. fi
  5274.  
  5275. echo $ac_n "checking for Qt""... $ac_c" 1>&6
  5276. echo "configure:5277: checking for Qt" >&5
  5277.  
  5278. LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
  5279. ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
  5280. qt_libraries=""
  5281. qt_includes=""
  5282. # Check whether --with-qt-dir or --without-qt-dir was given.
  5283. if test "${with_qt_dir+set}" = set; then
  5284.   withval="$with_qt_dir"
  5285.     ac_qt_includes="$withval"/include
  5286.        ac_qt_libraries="$withval"/lib
  5287.        ac_qt_bindir="$withval"/bin
  5288.     
  5289. fi
  5290.  
  5291.  
  5292. # Check whether --with-qt-includes or --without-qt-includes was given.
  5293. if test "${with_qt_includes+set}" = set; then
  5294.   withval="$with_qt_includes"
  5295.   
  5296.        ac_qt_includes="$withval"
  5297.     
  5298. fi
  5299.  
  5300.  
  5301. kde_qt_libs_given=no
  5302.  
  5303. # Check whether --with-qt-libraries or --without-qt-libraries was given.
  5304. if test "${with_qt_libraries+set}" = set; then
  5305.   withval="$with_qt_libraries"
  5306.     ac_qt_libraries="$withval"
  5307.        kde_qt_libs_given=yes
  5308.     
  5309. fi
  5310.  
  5311.  
  5312. if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then
  5313.   echo $ac_n "(cached) $ac_c" 1>&6
  5314. else
  5315.   #try to guess Qt locations
  5316.  
  5317. qt_incdirs=""
  5318. for dir in $kde_qt_dirs; do
  5319.    qt_incdirs="$qt_incdirs $dir/include $dir"
  5320. done
  5321. qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 $x_includes"
  5322. if test ! "$ac_qt_includes" = "NO"; then
  5323.    qt_incdirs="$ac_qt_includes $qt_incdirs"
  5324. fi
  5325.  
  5326. if test "$kde_qtver" = "2"; then
  5327.   kde_qt_header=qstyle.h
  5328. else
  5329.   kde_qt_header=qglobal.h
  5330. fi
  5331.  
  5332.  
  5333. qt_incdir=NO
  5334. for i in $qt_incdirs;
  5335. do
  5336.   for j in $kde_qt_header;
  5337.   do
  5338.     if test -r "$i/$j"; then
  5339.       qt_incdir=$i
  5340.       break 2
  5341.     fi
  5342.   done
  5343. done
  5344.  
  5345. ac_qt_includes="$qt_incdir"
  5346.  
  5347. qt_libdirs=""
  5348. for dir in $kde_qt_dirs; do
  5349.    qt_libdirs="$qt_libdirs $dir/lib $dir"
  5350. done
  5351. qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
  5352. if test ! "$ac_qt_libraries" = "NO"; then
  5353.   qt_libdir=$ac_qt_libraries
  5354. else
  5355.   qt_libdirs="$ac_qt_libraries $qt_libdirs"
  5356.   # if the Qt was given, the chance is too big that libqt.* doesn't exist
  5357.   qt_libdir=NONE
  5358.   for dir in $qt_libdirs; do
  5359.     try="ls -1 $dir/${LIBQT_GLOB}"
  5360.     if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
  5361.   done
  5362. fi
  5363.  
  5364. ac_qt_libraries="$qt_libdir"
  5365.  
  5366.  
  5367.  ac_ext=C
  5368. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5369. ac_cpp='$CXXCPP $CPPFLAGS'
  5370. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5371. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5372. cross_compiling=$ac_cv_prog_cxx_cross
  5373.  
  5374. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5375.  
  5376.  
  5377.  
  5378. ac_cxxflags_safe="$CXXFLAGS"
  5379. ac_ldflags_safe="$LDFLAGS"
  5380. ac_libs_safe="$LIBS"
  5381.  
  5382. CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
  5383. LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS"
  5384. LIBS="$LIBS $LIBQT"
  5385.  
  5386.  
  5387.  
  5388. cat > conftest.$ac_ext <<EOF
  5389. #include "confdefs.h"
  5390. #include <qglobal.h>
  5391. #include <qapplication.h>
  5392. EOF
  5393. if test "$kde_qtver" = "2"; then
  5394. cat >> conftest.$ac_ext <<EOF
  5395. #include <qevent.h>
  5396. #include <qstring.h>
  5397. #include <qstyle.h>
  5398. EOF
  5399.  
  5400. if test $kde_qtsubver -gt 0; then
  5401. cat >> conftest.$ac_ext <<EOF
  5402. #include <qiconview.h>
  5403. EOF
  5404. fi
  5405.  
  5406. fi
  5407.  
  5408. echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
  5409. cat >> conftest.$ac_ext <<EOF
  5410. #error 1
  5411. #endif
  5412.  
  5413. int main() {
  5414. EOF
  5415. if test "$kde_qtver" = "2"; then
  5416. cat >> conftest.$ac_ext <<EOF
  5417.     QStringList *t = new QStringList();
  5418. EOF
  5419. if test $kde_qtsubver -gt 0; then
  5420. cat >> conftest.$ac_ext <<EOF
  5421.     QIconView iv(0);
  5422.     iv.setWordWrapIconText(false);
  5423.     QString s;
  5424.     s.setLatin1("Elvis is alive", 14);
  5425.     int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
  5426. EOF
  5427. fi
  5428. fi
  5429. cat >> conftest.$ac_ext <<EOF
  5430.     return 0;
  5431. }
  5432. EOF
  5433.  
  5434.  
  5435. if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5436.   rm -f conftest*
  5437. else
  5438.   echo "configure: failed program was:" >&5
  5439.   cat conftest.$ac_ext >&5
  5440.   ac_qt_libraries="NO"
  5441. fi
  5442. rm -f conftest*
  5443. CXXFLAGS="$ac_cxxflags_safe"
  5444. LDFLAGS="$ac_ldflags_safe"
  5445. LIBS="$ac_libs_safe"
  5446.  
  5447. ac_ext=c
  5448. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5449. ac_cpp='$CPP $CPPFLAGS'
  5450. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5451. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5452. cross_compiling=$ac_cv_prog_cc_cross
  5453.  
  5454. if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
  5455.   ac_cv_have_qt="have_qt=no"
  5456.   ac_qt_notfound=""
  5457.   if test "$ac_qt_includes" = NO; then
  5458.     if test "$ac_qt_libraries" = NO; then
  5459.       ac_qt_notfound="(headers and libraries)";
  5460.     else
  5461.       ac_qt_notfound="(headers)";
  5462.     fi
  5463.   else
  5464.     ac_qt_notfound="(libraries)";
  5465.   fi
  5466.  
  5467.   { echo "configure: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
  5468. For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
  5469. else
  5470.   have_qt="yes"
  5471. fi
  5472.  
  5473. fi
  5474.  
  5475.  
  5476. eval "$ac_cv_have_qt"
  5477.  
  5478. if test "$have_qt" != yes; then
  5479.   echo "$ac_t""$have_qt" 1>&6;
  5480. else
  5481.   ac_cv_have_qt="have_qt=yes \
  5482.     ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
  5483.   echo "$ac_t""libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" 1>&6
  5484.  
  5485.   qt_libraries="$ac_qt_libraries"
  5486.   qt_includes="$ac_qt_includes"
  5487. fi
  5488.  
  5489. if test ! "$kde_qt_libs_given" = "yes"; then
  5490.  
  5491.  
  5492. echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6
  5493. echo "configure:5494: checking if Qt compiles without flags" >&5
  5494. if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then
  5495.   echo $ac_n "(cached) $ac_c" 1>&6
  5496. else
  5497.   
  5498.  
  5499.  ac_ext=C
  5500. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5501. ac_cpp='$CXXCPP $CPPFLAGS'
  5502. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5503. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5504. cross_compiling=$ac_cv_prog_cxx_cross
  5505.  
  5506. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5507.  
  5508.  
  5509. ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
  5510. ac_LIBRARY_PATH="$LIBRARY_PATH"
  5511. ac_cxxflags_safe="$CXXFLAGS"
  5512. ac_ldflags_safe="$LDFLAGS"
  5513. ac_libs_safe="$LIBS"
  5514.  
  5515. CXXFLAGS="$CXXFLAGS -I$qt_includes"
  5516. LDFLAGS="$LDFLAGS $X_LDFLAGS"
  5517. LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
  5518. LD_LIBRARY_PATH=
  5519. export LD_LIBRARY_PATH
  5520. LIBRARY_PATH=
  5521. export LIBRARY_PATH
  5522.  
  5523.  
  5524.  
  5525. cat > conftest.$ac_ext <<EOF
  5526. #include "confdefs.h"
  5527. #include <qglobal.h>
  5528. #include <qapplication.h>
  5529. EOF
  5530. if test "$kde_qtver" = "2"; then
  5531. cat >> conftest.$ac_ext <<EOF
  5532. #include <qevent.h>
  5533. #include <qstring.h>
  5534. #include <qstyle.h>
  5535. EOF
  5536.  
  5537. if test $kde_qtsubver -gt 0; then
  5538. cat >> conftest.$ac_ext <<EOF
  5539. #include <qiconview.h>
  5540. EOF
  5541. fi
  5542.  
  5543. fi
  5544.  
  5545. echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
  5546. cat >> conftest.$ac_ext <<EOF
  5547. #error 1
  5548. #endif
  5549.  
  5550. int main() {
  5551. EOF
  5552. if test "$kde_qtver" = "2"; then
  5553. cat >> conftest.$ac_ext <<EOF
  5554.     QStringList *t = new QStringList();
  5555. EOF
  5556. if test $kde_qtsubver -gt 0; then
  5557. cat >> conftest.$ac_ext <<EOF
  5558.     QIconView iv(0);
  5559.     iv.setWordWrapIconText(false);
  5560.     QString s;
  5561.     s.setLatin1("Elvis is alive", 14);
  5562.     int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
  5563. EOF
  5564. fi
  5565. fi
  5566. cat >> conftest.$ac_ext <<EOF
  5567.     return 0;
  5568. }
  5569. EOF
  5570.  
  5571.  
  5572. if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  5573.   kde_cv_qt_direct="yes"
  5574. else
  5575.   kde_cv_qt_direct="no"
  5576.   echo "configure: failed program was:" >&5
  5577.   cat conftest.$ac_ext >&5
  5578. fi
  5579.  
  5580. rm -f conftest*
  5581. CXXFLAGS="$ac_cxxflags_safe"
  5582. LDFLAGS="$ac_ldflags_safe"
  5583. LIBS="$ac_libs_safe"
  5584.  
  5585. LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
  5586. export LD_LIBRARY_PATH
  5587. LIBRARY_PATH="$ac_LIBRARY_PATH"
  5588. export LIBRARY_PATH
  5589. ac_ext=c
  5590. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5591. ac_cpp='$CPP $CPPFLAGS'
  5592. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5593. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5594. cross_compiling=$ac_cv_prog_cc_cross
  5595.  
  5596.  
  5597. fi
  5598.  
  5599.  
  5600. if test "$kde_cv_qt_direct" = "yes"; then
  5601.   echo "$ac_t""yes" 1>&6
  5602.   qt_libraries= 
  5603. else
  5604.   echo "$ac_t""no" 1>&6
  5605.   
  5606. fi
  5607.  
  5608. fi
  5609.  
  5610.  
  5611.  
  5612.  
  5613. if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
  5614.  QT_INCLUDES="";
  5615. else
  5616.  QT_INCLUDES="-I$qt_includes"
  5617.  all_includes="$QT_INCLUDES $all_includes"
  5618. fi
  5619.  
  5620. if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
  5621.  QT_LDFLAGS=""
  5622. else
  5623.  QT_LDFLAGS="-L$qt_libraries"
  5624.  all_libraries="$all_libraries $QT_LDFLAGS"
  5625. fi
  5626.  
  5627.  
  5628.  
  5629.  
  5630.    qt_bindirs=""
  5631.    for dir in $kde_qt_dirs; do
  5632.       qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
  5633.    done
  5634.    qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
  5635.    if test ! "$ac_qt_bindir" = "NO"; then
  5636.       qt_bindirs="$ac_qt_bindir $qt_bindirs"
  5637.    fi
  5638.  
  5639.    
  5640.    echo $ac_n "checking for moc""... $ac_c" 1>&6
  5641. echo "configure:5642: checking for moc" >&5
  5642.    if test -n "$MOC"; then
  5643.         kde_cv_path="$MOC";
  5644.    else
  5645.         kde_cache=`echo moc | sed 'y%./+-%__p_%'`
  5646.  
  5647.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  5648.   echo $ac_n "(cached) $ac_c" 1>&6
  5649. else
  5650.   
  5651.         kde_cv_path="NONE"
  5652.     dirs="$qt_bindirs"
  5653.     kde_save_IFS=$IFS
  5654.     IFS=':'
  5655.     for dir in $PATH; do
  5656.       dirs="$dirs $dir"
  5657.         done
  5658.     IFS=$kde_save_IFS
  5659.  
  5660.         for dir in $dirs; do
  5661.       if test -x "$dir/moc"; then
  5662.         if test -n ""
  5663.         then
  5664.               evalstr="$dir/moc  2>&1 "
  5665.           if eval $evalstr; then
  5666.                 kde_cv_path="$dir/moc"
  5667.                 break
  5668.           fi
  5669.             else
  5670.         kde_cv_path="$dir/moc"
  5671.                 break
  5672.         fi
  5673.           fi
  5674.         done
  5675.  
  5676.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  5677.  
  5678.         
  5679. fi
  5680.  
  5681.  
  5682.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  5683.  
  5684.    fi
  5685.  
  5686.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  5687.       echo "$ac_t""not found" 1>&6
  5688.       
  5689.     { echo "configure: error: No Qt meta object compiler (moc) found!
  5690. Please check whether you installed Qt correctly.
  5691. You need to have a running moc binary.
  5692. configure tried to run $ac_cv_path_moc and the test didn't
  5693. succeed. If configure shouldn't have tried this one, set
  5694. the environment variable MOC to the right one before running
  5695. configure.
  5696. " 1>&2; exit 1; }
  5697.  
  5698.    else
  5699.       echo "$ac_t""$kde_cv_path" 1>&6
  5700.       MOC=$kde_cv_path
  5701.  
  5702.    fi
  5703.  
  5704.    if test -z "$UIC_NOT_NEEDED"; then
  5705.      
  5706.    echo $ac_n "checking for uic""... $ac_c" 1>&6
  5707. echo "configure:5708: checking for uic" >&5
  5708.    if test -n "$UIC"; then
  5709.         kde_cv_path="$UIC";
  5710.    else
  5711.         kde_cache=`echo uic | sed 'y%./+-%__p_%'`
  5712.  
  5713.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  5714.   echo $ac_n "(cached) $ac_c" 1>&6
  5715. else
  5716.   
  5717.         kde_cv_path="NONE"
  5718.     dirs="$qt_bindirs"
  5719.     kde_save_IFS=$IFS
  5720.     IFS=':'
  5721.     for dir in $PATH; do
  5722.       dirs="$dirs $dir"
  5723.         done
  5724.     IFS=$kde_save_IFS
  5725.  
  5726.         for dir in $dirs; do
  5727.       if test -x "$dir/uic"; then
  5728.         if test -n ""
  5729.         then
  5730.               evalstr="$dir/uic  2>&1 "
  5731.           if eval $evalstr; then
  5732.                 kde_cv_path="$dir/uic"
  5733.                 break
  5734.           fi
  5735.             else
  5736.         kde_cv_path="$dir/uic"
  5737.                 break
  5738.         fi
  5739.           fi
  5740.         done
  5741.  
  5742.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  5743.  
  5744.         
  5745. fi
  5746.  
  5747.  
  5748.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  5749.  
  5750.    fi
  5751.  
  5752.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  5753.       echo "$ac_t""not found" 1>&6
  5754.       UIC=""
  5755.    else
  5756.       echo "$ac_t""$kde_cv_path" 1>&6
  5757.       UIC=$kde_cv_path
  5758.  
  5759.    fi
  5760.  
  5761.      if test -z "$UIC" ; then
  5762.        
  5763.     echo "configure: warning: No Qt ui compiler (uic) found!
  5764. Please check whether you installed Qt correctly.
  5765. You need to have a running uic binary.
  5766. configure tried to run $ac_cv_path_uic and the test didn't
  5767. succeed. If configure shouldn't have tried this one, set
  5768. the environment variable UIC to the right one before running
  5769. configure.
  5770. " 1>&2
  5771.  
  5772.        exit 1
  5773.      fi
  5774.    else
  5775.      UIC="echo uic not available: "
  5776.    fi
  5777.  
  5778.    
  5779.    
  5780.  
  5781.  
  5782. LIB_QT="$kde_int_qt "'$(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)'
  5783.  
  5784.  
  5785.  
  5786.  
  5787.  
  5788.   
  5789.  
  5790.  
  5791. echo $ac_n "checking for rpath""... $ac_c" 1>&6
  5792. echo "configure:5793: checking for rpath" >&5
  5793. # Check whether --enable-rpath or --disable-rpath was given.
  5794. if test "${enable_rpath+set}" = set; then
  5795.   enableval="$enable_rpath"
  5796.   USE_RPATH=$enableval
  5797. else
  5798.   USE_RPATH=yes
  5799. fi
  5800.  
  5801.  
  5802. if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
  5803.  
  5804.   KDE_RPATH="-R \$(kde_libraries)"
  5805.  
  5806.   if test -n "$qt_libraries"; then
  5807.     KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
  5808.   fi
  5809.     if test -n "$X_LDFLAGS"; then
  5810.     KDE_RPATH="$KDE_RPATH -R \$(x_libraries)"
  5811.   fi
  5812.   if test -n "$KDE_EXTRA_RPATH"; then
  5813.     KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
  5814.   fi
  5815. fi
  5816.  
  5817.  
  5818. echo "$ac_t""$USE_RPATH" 1>&6
  5819.  
  5820. echo $ac_n "checking for KDE""... $ac_c" 1>&6
  5821. echo "configure:5822: checking for KDE" >&5
  5822.  
  5823. if test "${prefix}" != NONE; then
  5824.   kde_includes=${prefix}/include
  5825.   ac_kde_includes=$prefix/include
  5826.  
  5827.   if test "${exec_prefix}" != NONE; then
  5828.     kde_libraries=${exec_prefix}/lib
  5829.     ac_kde_libraries=$exec_prefix/lib
  5830.   else
  5831.     kde_libraries=${prefix}/lib
  5832.     ac_kde_libraries=$prefix/lib
  5833.   fi
  5834. else
  5835.   ac_kde_includes=
  5836.   ac_kde_libraries=
  5837.   kde_libraries=""
  5838.   kde_includes=""
  5839. fi
  5840.  
  5841. if eval "test \"`echo '$''{'ac_cv_have_kde'+set}'`\" = set"; then
  5842.   echo $ac_n "(cached) $ac_c" 1>&6
  5843. else
  5844.   #try to guess kde locations
  5845.  
  5846. if test "$kde_qtver" = 1; then
  5847.   kde_check_header="ksock.h"
  5848.   kde_check_lib="libkdecore.la"
  5849. else
  5850.   kde_check_header="ksharedptr.h"
  5851.   kde_check_lib="libkio.la"
  5852. fi
  5853.  
  5854. if test -z ""; then
  5855.  
  5856. kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde2/include /opt/kde/include $x_includes $qt_includes"
  5857. test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
  5858. kde_incdirs="$ac_kde_includes $kde_incdirs"
  5859.  
  5860. kde_incdir=NO
  5861. for i in $kde_incdirs;
  5862. do
  5863.   for j in $kde_check_header;
  5864.   do
  5865.     if test -r "$i/$j"; then
  5866.       kde_incdir=$i
  5867.       break 2
  5868.     fi
  5869.   done
  5870. done
  5871.  
  5872. ac_kde_includes="$kde_incdir"
  5873.  
  5874. if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
  5875.   { echo "configure: error: 
  5876. in the prefix, you've chosen, are no KDE headers installed. This will fail.
  5877. So, check this please and use another prefix!" 1>&2; exit 1; }
  5878. fi
  5879.  
  5880. kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde2/lib /opt/kde/lib /usr/X11R6/kde/lib"
  5881. test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs"
  5882. kde_libdirs="$ac_kde_libraries $kde_libdirs"
  5883.  
  5884. kde_libdir=NO
  5885. for i in $kde_libdirs;
  5886. do
  5887.   for j in $kde_check_lib;
  5888.   do
  5889.     if test -r "$i/$j"; then
  5890.       kde_libdir=$i
  5891.       break 2
  5892.     fi
  5893.   done
  5894. done
  5895.  
  5896. ac_kde_libraries="$kde_libdir"
  5897.  
  5898. if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
  5899. { echo "configure: error: 
  5900. in the prefix, you've chosen, are no KDE libraries installed. This will fail.
  5901. So, check this please and use another prefix!" 1>&2; exit 1; }
  5902. fi
  5903. ac_kde_libraries="$kde_libdir"
  5904.  
  5905. if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO; then
  5906.   ac_cv_have_kde="have_kde=no"
  5907. else
  5908.   ac_cv_have_kde="have_kde=yes \
  5909.     ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
  5910. fi
  5911.  
  5912. else 
  5913.   ac_cv_have_kde="have_kde=no"
  5914.  
  5915. fi
  5916.  
  5917. fi
  5918.  
  5919. eval "$ac_cv_have_kde"
  5920.  
  5921. if test "$have_kde" != "yes"; then
  5922.  if test "${prefix}" = NONE; then
  5923.   ac_kde_prefix="$ac_default_prefix"
  5924.  else
  5925.   ac_kde_prefix="$prefix"
  5926.  fi
  5927.  if test "$exec_prefix" = NONE; then
  5928.   ac_kde_exec_prefix="$ac_kde_prefix"
  5929.   echo "$ac_t""will be installed in $ac_kde_prefix" 1>&6
  5930.  else
  5931.   ac_kde_exec_prefix="$exec_prefix"
  5932.   echo "$ac_t""will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" 1>&6
  5933.  fi
  5934.  
  5935.  kde_libraries="${ac_kde_exec_prefix}/lib"
  5936.  kde_includes=${ac_kde_prefix}/include
  5937.  
  5938. else
  5939.   ac_cv_have_kde="have_kde=yes \
  5940.     ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
  5941.   echo "$ac_t""libraries $ac_kde_libraries, headers $ac_kde_includes" 1>&6
  5942.  
  5943.   kde_libraries="$ac_kde_libraries"
  5944.   kde_includes="$ac_kde_includes"
  5945. fi
  5946.  
  5947.  
  5948.  
  5949. if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" ; then
  5950.  KDE_INCLUDES=""
  5951. else
  5952.  KDE_INCLUDES="-I$kde_includes"
  5953.  all_includes="$KDE_INCLUDES $all_includes"
  5954. fi
  5955.  
  5956. KDE_LDFLAGS="-L$kde_libraries"
  5957. if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then 
  5958.  all_libraries="$all_libraries $KDE_LDFLAGS"
  5959. fi
  5960.  
  5961.  
  5962.  
  5963.  
  5964.  
  5965.  
  5966. all_libraries="$all_libraries $USER_LDFLAGS"
  5967. all_includes="$all_includes $USER_INCLUDES"
  5968.  
  5969.  
  5970.  
  5971.  
  5972.  
  5973.   # Check whether --enable-path-check or --disable-path-check was given.
  5974. if test "${enable_path_check+set}" = set; then
  5975.   enableval="$enable_path_check"
  5976.   
  5977.   if test "$enableval" = "no";
  5978.     then ac_use_path_checking="default"
  5979.     else ac_use_path_checking=""
  5980.   fi
  5981.   
  5982. else
  5983.   
  5984.   if test "$kde_qtver" = 1;
  5985.     then ac_use_path_checking=""
  5986.     else ac_use_path_checking="default"
  5987.   fi
  5988.   
  5989.   
  5990. fi
  5991.  
  5992.  
  5993.   
  5994.  
  5995.  
  5996. echo $ac_n "checking for KDE paths""... $ac_c" 1>&6
  5997. echo "configure:5998: checking for KDE paths" >&5
  5998. kde_result=""
  5999. kde_cached_paths=yes
  6000. if eval "test \"`echo '$''{'kde_cv_all_paths'+set}'`\" = set"; then
  6001.   echo $ac_n "(cached) $ac_c" 1>&6
  6002. else
  6003.   
  6004.   
  6005. if test "$ac_use_path_checking" = "default"; then
  6006.  
  6007.   if test -z "$kde_htmldir"; then
  6008.     kde_htmldir='\${prefix}/share/doc/HTML'
  6009.   fi
  6010.   if test -z "$kde_appsdir"; then
  6011.     kde_appsdir='\${prefix}/share/applnk'
  6012.   fi
  6013.   if test -z "$kde_icondir"; then
  6014.     kde_icondir='\${prefix}/share/icons'
  6015.   fi
  6016.   if test -z "$kde_sounddir"; then
  6017.     kde_sounddir='\${prefix}/share/sounds'
  6018.   fi
  6019.   if test -z "$kde_datadir"; then
  6020.     kde_datadir='\${prefix}/share/apps'
  6021.   fi
  6022.   if test -z "$kde_locale"; then
  6023.     kde_locale='\${prefix}/share/locale'
  6024.   fi
  6025.   if test -z "$kde_cgidir"; then
  6026.     kde_cgidir='\${exec_prefix}/cgi-bin'
  6027.   fi
  6028.   if test -z "$kde_confdir"; then
  6029.     kde_confdir='\${prefix}/share/config'
  6030.   fi
  6031.   if test -z "$kde_mimedir"; then
  6032.     kde_mimedir='\${prefix}/share/mimelnk'
  6033.   fi
  6034.   if test -z "$kde_toolbardir"; then
  6035.     kde_toolbardir='\${prefix}/share/toolbar'
  6036.   fi
  6037.   if test -z "$kde_wallpaperdir"; then
  6038.     kde_wallpaperdir='\${prefix}/share/wallpapers'
  6039.   fi
  6040.   if test -z "$kde_templatesdir"; then
  6041.     kde_templatesdir='\${prefix}/share/templates'
  6042.   fi
  6043.   if test -z "$kde_bindir"; then
  6044.     kde_bindir='\${exec_prefix}/bin'
  6045.   fi
  6046.   if test -z "$kde_servicesdir"; then
  6047.     kde_servicesdir='\${prefix}/share/services'
  6048.   fi
  6049.   if test -z "$kde_servicetypesdir"; then
  6050.     kde_servicetypesdir='\${prefix}/share/servicetypes'
  6051.   fi
  6052.   if test -z "$kde_moduledir"; then
  6053.     kde_moduledir='\${exec_prefix}/lib/kde2'
  6054.   fi
  6055.  
  6056.   
  6057.   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  6058.     kde_htmldir=\"$kde_htmldir\" \
  6059.     kde_appsdir=\"$kde_appsdir\" \
  6060.     kde_icondir=\"$kde_icondir\" \
  6061.     kde_sounddir=\"$kde_sounddir\" \
  6062.     kde_datadir=\"$kde_datadir\" \
  6063.     kde_locale=\"$kde_locale\" \
  6064.     kde_cgidir=\"$kde_cgidir\" \
  6065.     kde_confdir=\"$kde_confdir\" \
  6066.     kde_mimedir=\"$kde_mimedir\" \
  6067.     kde_toolbardir=\"$kde_toolbardir\" \
  6068.     kde_wallpaperdir=\"$kde_wallpaperdir\" \
  6069.     kde_templatesdir=\"$kde_templatesdir\" \
  6070.     kde_bindir=\"$kde_bindir\" \
  6071.     kde_servicesdir=\"$kde_servicesdir\" \
  6072.     kde_servicetypesdir=\"$kde_servicetypesdir\" \
  6073.     kde_moduledir=\"$kde_moduledir\" \
  6074.     kde_result=defaults"
  6075.  
  6076.  
  6077. else
  6078.  
  6079.   if test $kde_qtver = 1; then
  6080.      echo "$ac_t""compiling" 1>&6
  6081.      
  6082.   
  6083.     echo $ac_n "checking for KDE headers installed""... $ac_c" 1>&6
  6084. echo "configure:6085: checking for KDE headers installed" >&5
  6085.     
  6086.      ac_ext=C
  6087. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6088. ac_cpp='$CXXCPP $CPPFLAGS'
  6089. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6090. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6091. cross_compiling=$ac_cv_prog_cxx_cross
  6092.  
  6093. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6094.  
  6095.  
  6096. cat > conftest.$ac_ext <<EOF
  6097. #include <stdio.h>
  6098. #include "confdefs.h"
  6099. #include <kapp.h>
  6100.  
  6101. int main() {
  6102.     printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
  6103.     printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
  6104.     printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
  6105.     printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
  6106.     printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
  6107.     printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
  6108.     printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
  6109.     printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
  6110.     printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
  6111.     printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
  6112.     printf("kde_wallpaperdir=\\"%s\\"\n",
  6113.     KApplication::kde_wallpaperdir().data());
  6114.     printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
  6115.     printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
  6116.     printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
  6117.     printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
  6118.     printf("kde_moduledir=\\"/tmp/dummy\\"\n");
  6119.     return 0;
  6120.     }
  6121. EOF
  6122.  
  6123.  ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
  6124.  if { (eval echo configure:6125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6125.    echo "$ac_t""yes" 1>&6
  6126.  else
  6127.    { echo "configure: error: your system is not able to compile a small KDE application!
  6128. Check, if you installed the KDE header files correctly.
  6129. For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
  6130.   fi
  6131.  
  6132.   ac_ext=c
  6133. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6134. ac_cpp='$CPP $CPPFLAGS'
  6135. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6136. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6137. cross_compiling=$ac_cv_prog_cc_cross
  6138.  
  6139.  
  6140.  
  6141.   KDE_TEST_RPATH=
  6142.  
  6143.   if test -n "$USE_RPATH"; then
  6144.  
  6145.      if test -n "$kde_libraries"; then
  6146.        KDE_TEST_RPATH="-R $kde_libraries"
  6147.      fi
  6148.  
  6149.      if test -n "$qt_libraries"; then
  6150.        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
  6151.      fi
  6152.  
  6153.      if test -n "$x_libraries"; then
  6154.        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
  6155.      fi
  6156.  
  6157.      KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
  6158.   fi
  6159.  
  6160. echo $ac_n "checking for KDE libraries installed""... $ac_c" 1>&6
  6161. echo "configure:6162: checking for KDE libraries installed" >&5
  6162. ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
  6163.  
  6164. if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  6165.   echo "$ac_t""yes" 1>&6
  6166. else
  6167.   { echo "configure: error: your system fails at linking a small KDE application!
  6168. Check, if your compiler is installed correctly and if you have used the
  6169. same compiler to compile Qt and kdelibs as you did use now.
  6170. For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
  6171. fi
  6172.  
  6173. if eval `KDEDIR= ./conftest 2>&5`; then
  6174.   kde_result=done
  6175. else
  6176.   kde_result=problems
  6177. fi
  6178.  
  6179. KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
  6180. kde_have_all_paths=yes
  6181.  
  6182.  
  6183.   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  6184.     kde_htmldir=\"$kde_htmldir\" \
  6185.     kde_appsdir=\"$kde_appsdir\" \
  6186.     kde_icondir=\"$kde_icondir\" \
  6187.     kde_sounddir=\"$kde_sounddir\" \
  6188.     kde_datadir=\"$kde_datadir\" \
  6189.     kde_locale=\"$kde_locale\" \
  6190.     kde_cgidir=\"$kde_cgidir\" \
  6191.     kde_confdir=\"$kde_confdir\" \
  6192.     kde_mimedir=\"$kde_mimedir\" \
  6193.     kde_toolbardir=\"$kde_toolbardir\" \
  6194.     kde_wallpaperdir=\"$kde_wallpaperdir\" \
  6195.     kde_templatesdir=\"$kde_templatesdir\" \
  6196.     kde_bindir=\"$kde_bindir\" \
  6197.     kde_servicesdir=\"$kde_servicesdir\" \
  6198.     kde_servicetypesdir=\"$kde_servicetypesdir\" \
  6199.     kde_moduledir=\"$kde_moduledir\" \
  6200.     kde_result=$kde_result"
  6201.  
  6202.  
  6203.  
  6204.   else
  6205.      { echo "configure: error: path checking not yet supported for KDE 2" 1>&2; exit 1; }
  6206.   fi
  6207.  
  6208. fi
  6209.  
  6210.   kde_cached_paths=no
  6211.  
  6212. fi
  6213.  
  6214. eval "$kde_cv_all_paths"
  6215.  if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
  6216.    test -z "$kde_icondir" || test -z "$kde_sounddir" ||
  6217.    test -z "$kde_datadir" || test -z "$kde_locale"  ||
  6218.    test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
  6219.    test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
  6220.    test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
  6221.    test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
  6222.    test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
  6223.    test "$kde_have_all_paths" != "yes"; then
  6224.      kde_have_all_paths=no
  6225.   fi
  6226.  
  6227. if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
  6228.   # wrong values were cached, may be, we can set better ones
  6229.   kde_result=
  6230.   kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
  6231.   kde_datadir= kde_locale=  kde_cgidir=  kde_confdir=
  6232.   kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
  6233.   kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
  6234.   kde_have_all_paths=
  6235.   
  6236. if test "$ac_use_path_checking" = "default"; then
  6237.  
  6238.   if test -z "$kde_htmldir"; then
  6239.     kde_htmldir='\${prefix}/share/doc/HTML'
  6240.   fi
  6241.   if test -z "$kde_appsdir"; then
  6242.     kde_appsdir='\${prefix}/share/applnk'
  6243.   fi
  6244.   if test -z "$kde_icondir"; then
  6245.     kde_icondir='\${prefix}/share/icons'
  6246.   fi
  6247.   if test -z "$kde_sounddir"; then
  6248.     kde_sounddir='\${prefix}/share/sounds'
  6249.   fi
  6250.   if test -z "$kde_datadir"; then
  6251.     kde_datadir='\${prefix}/share/apps'
  6252.   fi
  6253.   if test -z "$kde_locale"; then
  6254.     kde_locale='\${prefix}/share/locale'
  6255.   fi
  6256.   if test -z "$kde_cgidir"; then
  6257.     kde_cgidir='\${exec_prefix}/cgi-bin'
  6258.   fi
  6259.   if test -z "$kde_confdir"; then
  6260.     kde_confdir='\${prefix}/share/config'
  6261.   fi
  6262.   if test -z "$kde_mimedir"; then
  6263.     kde_mimedir='\${prefix}/share/mimelnk'
  6264.   fi
  6265.   if test -z "$kde_toolbardir"; then
  6266.     kde_toolbardir='\${prefix}/share/toolbar'
  6267.   fi
  6268.   if test -z "$kde_wallpaperdir"; then
  6269.     kde_wallpaperdir='\${prefix}/share/wallpapers'
  6270.   fi
  6271.   if test -z "$kde_templatesdir"; then
  6272.     kde_templatesdir='\${prefix}/share/templates'
  6273.   fi
  6274.   if test -z "$kde_bindir"; then
  6275.     kde_bindir='\${exec_prefix}/bin'
  6276.   fi
  6277.   if test -z "$kde_servicesdir"; then
  6278.     kde_servicesdir='\${prefix}/share/services'
  6279.   fi
  6280.   if test -z "$kde_servicetypesdir"; then
  6281.     kde_servicetypesdir='\${prefix}/share/servicetypes'
  6282.   fi
  6283.   if test -z "$kde_moduledir"; then
  6284.     kde_moduledir='\${exec_prefix}/lib/kde2'
  6285.   fi
  6286.  
  6287.   
  6288.   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  6289.     kde_htmldir=\"$kde_htmldir\" \
  6290.     kde_appsdir=\"$kde_appsdir\" \
  6291.     kde_icondir=\"$kde_icondir\" \
  6292.     kde_sounddir=\"$kde_sounddir\" \
  6293.     kde_datadir=\"$kde_datadir\" \
  6294.     kde_locale=\"$kde_locale\" \
  6295.     kde_cgidir=\"$kde_cgidir\" \
  6296.     kde_confdir=\"$kde_confdir\" \
  6297.     kde_mimedir=\"$kde_mimedir\" \
  6298.     kde_toolbardir=\"$kde_toolbardir\" \
  6299.     kde_wallpaperdir=\"$kde_wallpaperdir\" \
  6300.     kde_templatesdir=\"$kde_templatesdir\" \
  6301.     kde_bindir=\"$kde_bindir\" \
  6302.     kde_servicesdir=\"$kde_servicesdir\" \
  6303.     kde_servicetypesdir=\"$kde_servicetypesdir\" \
  6304.     kde_moduledir=\"$kde_moduledir\" \
  6305.     kde_result=defaults"
  6306.  
  6307.  
  6308. else
  6309.  
  6310.   if test $kde_qtver = 1; then
  6311.      echo "$ac_t""compiling" 1>&6
  6312.      
  6313.   
  6314.     echo $ac_n "checking for KDE headers installed""... $ac_c" 1>&6
  6315. echo "configure:6316: checking for KDE headers installed" >&5
  6316.     
  6317.      ac_ext=C
  6318. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6319. ac_cpp='$CXXCPP $CPPFLAGS'
  6320. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6321. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6322. cross_compiling=$ac_cv_prog_cxx_cross
  6323.  
  6324. ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6325.  
  6326.  
  6327. cat > conftest.$ac_ext <<EOF
  6328. #include <stdio.h>
  6329. #include "confdefs.h"
  6330. #include <kapp.h>
  6331.  
  6332. int main() {
  6333.     printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
  6334.     printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
  6335.     printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
  6336.     printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
  6337.     printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
  6338.     printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
  6339.     printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
  6340.     printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
  6341.     printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
  6342.     printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
  6343.     printf("kde_wallpaperdir=\\"%s\\"\n",
  6344.     KApplication::kde_wallpaperdir().data());
  6345.     printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
  6346.     printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
  6347.     printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
  6348.     printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
  6349.     printf("kde_moduledir=\\"/tmp/dummy\\"\n");
  6350.     return 0;
  6351.     }
  6352. EOF
  6353.  
  6354.  ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
  6355.  if { (eval echo configure:6356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6356.    echo "$ac_t""yes" 1>&6
  6357.  else
  6358.    { echo "configure: error: your system is not able to compile a small KDE application!
  6359. Check, if you installed the KDE header files correctly.
  6360. For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
  6361.   fi
  6362.  
  6363.   ac_ext=c
  6364. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  6365. ac_cpp='$CPP $CPPFLAGS'
  6366. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  6367. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  6368. cross_compiling=$ac_cv_prog_cc_cross
  6369.  
  6370.  
  6371.  
  6372.   KDE_TEST_RPATH=
  6373.  
  6374.   if test -n "$USE_RPATH"; then
  6375.  
  6376.      if test -n "$kde_libraries"; then
  6377.        KDE_TEST_RPATH="-R $kde_libraries"
  6378.      fi
  6379.  
  6380.      if test -n "$qt_libraries"; then
  6381.        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
  6382.      fi
  6383.  
  6384.      if test -n "$x_libraries"; then
  6385.        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
  6386.      fi
  6387.  
  6388.      KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
  6389.   fi
  6390.  
  6391. echo $ac_n "checking for KDE libraries installed""... $ac_c" 1>&6
  6392. echo "configure:6393: checking for KDE libraries installed" >&5
  6393. ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
  6394.  
  6395. if { (eval echo configure:6396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  6396.   echo "$ac_t""yes" 1>&6
  6397. else
  6398.   { echo "configure: error: your system fails at linking a small KDE application!
  6399. Check, if your compiler is installed correctly and if you have used the
  6400. same compiler to compile Qt and kdelibs as you did use now.
  6401. For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
  6402. fi
  6403.  
  6404. if eval `KDEDIR= ./conftest 2>&5`; then
  6405.   kde_result=done
  6406. else
  6407.   kde_result=problems
  6408. fi
  6409.  
  6410. KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
  6411. kde_have_all_paths=yes
  6412.  
  6413.  
  6414.   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
  6415.     kde_htmldir=\"$kde_htmldir\" \
  6416.     kde_appsdir=\"$kde_appsdir\" \
  6417.     kde_icondir=\"$kde_icondir\" \
  6418.     kde_sounddir=\"$kde_sounddir\" \
  6419.     kde_datadir=\"$kde_datadir\" \
  6420.     kde_locale=\"$kde_locale\" \
  6421.     kde_cgidir=\"$kde_cgidir\" \
  6422.     kde_confdir=\"$kde_confdir\" \
  6423.     kde_mimedir=\"$kde_mimedir\" \
  6424.     kde_toolbardir=\"$kde_toolbardir\" \
  6425.     kde_wallpaperdir=\"$kde_wallpaperdir\" \
  6426.     kde_templatesdir=\"$kde_templatesdir\" \
  6427.     kde_bindir=\"$kde_bindir\" \
  6428.     kde_servicesdir=\"$kde_servicesdir\" \
  6429.     kde_servicetypesdir=\"$kde_servicetypesdir\" \
  6430.     kde_moduledir=\"$kde_moduledir\" \
  6431.     kde_result=$kde_result"
  6432.  
  6433.  
  6434.  
  6435.   else
  6436.      { echo "configure: error: path checking not yet supported for KDE 2" 1>&2; exit 1; }
  6437.   fi
  6438.  
  6439. fi
  6440.  
  6441.   eval "$kde_cv_all_paths"
  6442.    if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
  6443.    test -z "$kde_icondir" || test -z "$kde_sounddir" ||
  6444.    test -z "$kde_datadir" || test -z "$kde_locale"  ||
  6445.    test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
  6446.    test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
  6447.    test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
  6448.    test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
  6449.    test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
  6450.    test "$kde_have_all_paths" != "yes"; then
  6451.      kde_have_all_paths=no
  6452.   fi
  6453.  
  6454.   kde_result="$kde_result (cache overridden)"
  6455. fi
  6456. if test "$kde_have_all_paths" = "no"; then
  6457.   { echo "configure: error: configure could not run a little KDE program to test the environment.
  6458. Since it had compiled and linked before, it must be a strange problem on your system.
  6459. Look at config.log for details. If you are not able to fix this, look at
  6460. http://www.kde.org/faq/installation.html or any www.kde.org mirror.
  6461. (If you're using an egcs version on Linux, you may update binutils!)
  6462. " 1>&2; exit 1; }
  6463. else
  6464.   rm -f conftest*
  6465.   echo "$ac_t""$kde_result" 1>&6
  6466. fi
  6467.  
  6468. bindir=$kde_bindir
  6469.  
  6470.  
  6471.         kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde2/bin /usr/kde/bin /usr/local/kde/bin"
  6472.         if test -n "$KDEDIRS"; then
  6473.            kde_save_IFS=$IFS
  6474.            IFS=:
  6475.            for dir in $KDEDIRS; do
  6476.                 kde_default_bindirs="$dir/bin $kde_default_bindirs "
  6477.            done
  6478.            IFS=$kde_save_IFS
  6479.         fi
  6480.         kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_default_bindirs"
  6481.         
  6482.    echo $ac_n "checking for dcopidl""... $ac_c" 1>&6
  6483. echo "configure:6484: checking for dcopidl" >&5
  6484.    if test -n "$DCOPIDL"; then
  6485.         kde_cv_path="$DCOPIDL";
  6486.    else
  6487.         kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
  6488.  
  6489.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  6490.   echo $ac_n "(cached) $ac_c" 1>&6
  6491. else
  6492.   
  6493.         kde_cv_path="NONE"
  6494.     dirs="$kde_default_bindirs"
  6495.     kde_save_IFS=$IFS
  6496.     IFS=':'
  6497.     for dir in $PATH; do
  6498.       dirs="$dirs $dir"
  6499.         done
  6500.     IFS=$kde_save_IFS
  6501.  
  6502.         for dir in $dirs; do
  6503.       if test -x "$dir/dcopidl"; then
  6504.         if test -n ""
  6505.         then
  6506.               evalstr="$dir/dcopidl  2>&1 "
  6507.           if eval $evalstr; then
  6508.                 kde_cv_path="$dir/dcopidl"
  6509.                 break
  6510.           fi
  6511.             else
  6512.         kde_cv_path="$dir/dcopidl"
  6513.                 break
  6514.         fi
  6515.           fi
  6516.         done
  6517.  
  6518.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  6519.  
  6520.         
  6521. fi
  6522.  
  6523.  
  6524.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  6525.  
  6526.    fi
  6527.  
  6528.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  6529.       echo "$ac_t""not found" 1>&6
  6530.       
  6531.     { echo "configure: error: The important program dcopidl was not found!
  6532. Please check whether you installed KDE correctly.
  6533. " 1>&2; exit 1; }
  6534.  
  6535.    else
  6536.       echo "$ac_t""$kde_cv_path" 1>&6
  6537.       DCOPIDL=$kde_cv_path
  6538.  
  6539.    fi
  6540.  
  6541.         
  6542.    echo $ac_n "checking for dcopidl2cpp""... $ac_c" 1>&6
  6543. echo "configure:6544: checking for dcopidl2cpp" >&5
  6544.    if test -n "$DCOPIDL2CPP"; then
  6545.         kde_cv_path="$DCOPIDL2CPP";
  6546.    else
  6547.         kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
  6548.  
  6549.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  6550.   echo $ac_n "(cached) $ac_c" 1>&6
  6551. else
  6552.   
  6553.         kde_cv_path="NONE"
  6554.     dirs="$kde_default_bindirs"
  6555.     kde_save_IFS=$IFS
  6556.     IFS=':'
  6557.     for dir in $PATH; do
  6558.       dirs="$dirs $dir"
  6559.         done
  6560.     IFS=$kde_save_IFS
  6561.  
  6562.         for dir in $dirs; do
  6563.       if test -x "$dir/dcopidl2cpp"; then
  6564.         if test -n ""
  6565.         then
  6566.               evalstr="$dir/dcopidl2cpp  2>&1 "
  6567.           if eval $evalstr; then
  6568.                 kde_cv_path="$dir/dcopidl2cpp"
  6569.                 break
  6570.           fi
  6571.             else
  6572.         kde_cv_path="$dir/dcopidl2cpp"
  6573.                 break
  6574.         fi
  6575.           fi
  6576.         done
  6577.  
  6578.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  6579.  
  6580.         
  6581. fi
  6582.  
  6583.  
  6584.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  6585.  
  6586.    fi
  6587.  
  6588.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  6589.       echo "$ac_t""not found" 1>&6
  6590.       
  6591.     { echo "configure: error: The important program dcopidl2cpp was not found!
  6592. Please check whether you installed KDE correctly.
  6593. " 1>&2; exit 1; }
  6594.  
  6595.    else
  6596.       echo "$ac_t""$kde_cv_path" 1>&6
  6597.       DCOPIDL2CPP=$kde_cv_path
  6598.  
  6599.    fi
  6600.  
  6601.         
  6602.    echo $ac_n "checking for mcopidl""... $ac_c" 1>&6
  6603. echo "configure:6604: checking for mcopidl" >&5
  6604.    if test -n "$MCOPIDL"; then
  6605.         kde_cv_path="$MCOPIDL";
  6606.    else
  6607.         kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
  6608.  
  6609.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  6610.   echo $ac_n "(cached) $ac_c" 1>&6
  6611. else
  6612.   
  6613.         kde_cv_path="NONE"
  6614.     dirs="$kde_default_bindirs"
  6615.     kde_save_IFS=$IFS
  6616.     IFS=':'
  6617.     for dir in $PATH; do
  6618.       dirs="$dirs $dir"
  6619.         done
  6620.     IFS=$kde_save_IFS
  6621.  
  6622.         for dir in $dirs; do
  6623.       if test -x "$dir/mcopidl"; then
  6624.         if test -n ""
  6625.         then
  6626.               evalstr="$dir/mcopidl  2>&1 "
  6627.           if eval $evalstr; then
  6628.                 kde_cv_path="$dir/mcopidl"
  6629.                 break
  6630.           fi
  6631.             else
  6632.         kde_cv_path="$dir/mcopidl"
  6633.                 break
  6634.         fi
  6635.           fi
  6636.         done
  6637.  
  6638.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  6639.  
  6640.         
  6641. fi
  6642.  
  6643.  
  6644.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  6645.  
  6646.    fi
  6647.  
  6648.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  6649.       echo "$ac_t""not found" 1>&6
  6650.       
  6651.     { echo "configure: error: The important program mcopidl was not found!
  6652. Please check whether you installed KDE correctly.
  6653. " 1>&2; exit 1; }
  6654.  
  6655.    else
  6656.       echo "$ac_t""$kde_cv_path" 1>&6
  6657.       MCOPIDL=$kde_cv_path
  6658.  
  6659.    fi
  6660.  
  6661.         
  6662.    echo $ac_n "checking for kdb2html""... $ac_c" 1>&6
  6663. echo "configure:6664: checking for kdb2html" >&5
  6664.    if test -n "$KDB2HTML"; then
  6665.         kde_cv_path="$KDB2HTML";
  6666.    else
  6667.         kde_cache=`echo kdb2html | sed 'y%./+-%__p_%'`
  6668.  
  6669.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  6670.   echo $ac_n "(cached) $ac_c" 1>&6
  6671. else
  6672.   
  6673.         kde_cv_path="NONE"
  6674.     dirs="$kde_default_bindirs"
  6675.     kde_save_IFS=$IFS
  6676.     IFS=':'
  6677.     for dir in $PATH; do
  6678.       dirs="$dirs $dir"
  6679.         done
  6680.     IFS=$kde_save_IFS
  6681.  
  6682.         for dir in $dirs; do
  6683.       if test -x "$dir/kdb2html"; then
  6684.         if test -n ""
  6685.         then
  6686.               evalstr="$dir/kdb2html  2>&1 "
  6687.           if eval $evalstr; then
  6688.                 kde_cv_path="$dir/kdb2html"
  6689.                 break
  6690.           fi
  6691.             else
  6692.         kde_cv_path="$dir/kdb2html"
  6693.                 break
  6694.         fi
  6695.           fi
  6696.         done
  6697.  
  6698.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  6699.  
  6700.         
  6701. fi
  6702.  
  6703.  
  6704.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  6705.  
  6706.    fi
  6707.  
  6708.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  6709.       echo "$ac_t""not found" 1>&6
  6710.       
  6711.     { echo "configure: error: The important program kdb2html was not found!
  6712. Please check whether you installed KDE correctly.
  6713. " 1>&2; exit 1; }
  6714.  
  6715.    else
  6716.       echo "$ac_t""$kde_cv_path" 1>&6
  6717.       KDB2HTML=$kde_cv_path
  6718.  
  6719.    fi
  6720.  
  6721.         
  6722.    echo $ac_n "checking for artsc-config""... $ac_c" 1>&6
  6723. echo "configure:6724: checking for artsc-config" >&5
  6724.    if test -n "$ARTSCCONFIG"; then
  6725.         kde_cv_path="$ARTSCCONFIG";
  6726.    else
  6727.         kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
  6728.  
  6729.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  6730.   echo $ac_n "(cached) $ac_c" 1>&6
  6731. else
  6732.   
  6733.         kde_cv_path="NONE"
  6734.     dirs="$kde_default_bindirs"
  6735.     kde_save_IFS=$IFS
  6736.     IFS=':'
  6737.     for dir in $PATH; do
  6738.       dirs="$dirs $dir"
  6739.         done
  6740.     IFS=$kde_save_IFS
  6741.  
  6742.         for dir in $dirs; do
  6743.       if test -x "$dir/artsc-config"; then
  6744.         if test -n ""
  6745.         then
  6746.               evalstr="$dir/artsc-config  2>&1 "
  6747.           if eval $evalstr; then
  6748.                 kde_cv_path="$dir/artsc-config"
  6749.                 break
  6750.           fi
  6751.             else
  6752.         kde_cv_path="$dir/artsc-config"
  6753.                 break
  6754.         fi
  6755.           fi
  6756.         done
  6757.  
  6758.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  6759.  
  6760.         
  6761. fi
  6762.  
  6763.  
  6764.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  6765.  
  6766.    fi
  6767.  
  6768.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  6769.       echo "$ac_t""not found" 1>&6
  6770.       
  6771.     { echo "configure: error: The important program artsc-config was not found!
  6772. Please check whether you installed KDE correctly.
  6773. " 1>&2; exit 1; }
  6774.  
  6775.    else
  6776.       echo "$ac_t""$kde_cv_path" 1>&6
  6777.       ARTSCCONFIG=$kde_cv_path
  6778.  
  6779.    fi
  6780.  
  6781.         
  6782.    echo $ac_n "checking for kde-config""... $ac_c" 1>&6
  6783. echo "configure:6784: checking for kde-config" >&5
  6784.    if test -n "$KDECONFIG"; then
  6785.         kde_cv_path="$KDECONFIG";
  6786.    else
  6787.         kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
  6788.  
  6789.         if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
  6790.   echo $ac_n "(cached) $ac_c" 1>&6
  6791. else
  6792.   
  6793.         kde_cv_path="NONE"
  6794.     dirs="$kde_default_bindirs"
  6795.     kde_save_IFS=$IFS
  6796.     IFS=':'
  6797.     for dir in $PATH; do
  6798.       dirs="$dirs $dir"
  6799.         done
  6800.     IFS=$kde_save_IFS
  6801.  
  6802.         for dir in $dirs; do
  6803.       if test -x "$dir/kde-config"; then
  6804.         if test -n ""
  6805.         then
  6806.               evalstr="$dir/kde-config  2>&1 "
  6807.           if eval $evalstr; then
  6808.                 kde_cv_path="$dir/kde-config"
  6809.                 break
  6810.           fi
  6811.             else
  6812.         kde_cv_path="$dir/kde-config"
  6813.                 break
  6814.         fi
  6815.           fi
  6816.         done
  6817.  
  6818.         eval "kde_cv_path_$kde_cache=$kde_cv_path"
  6819.  
  6820.         
  6821. fi
  6822.  
  6823.  
  6824.       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
  6825.  
  6826.    fi
  6827.  
  6828.    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
  6829.       echo "$ac_t""not found" 1>&6
  6830.       
  6831.    else
  6832.       echo "$ac_t""$kde_cv_path" 1>&6
  6833.       KDECONFIG=$kde_cv_path
  6834.  
  6835.    fi
  6836.  
  6837.  
  6838.         DCOP_DEPENDENCIES='$(DCOPIDL)'
  6839.         
  6840.         
  6841.         
  6842.         
  6843.         
  6844.         
  6845.         
  6846.  
  6847.         if test -x "$KDECONFIG"; then # it can be "compiled"
  6848.           kde_libs_prefix=`$KDECONFIG --prefix`
  6849.           if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
  6850.                { echo "configure: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
  6851.                           This means it has been moved since you installed it.
  6852.                           This won't work. Please recompile kdelibs for the new prefix.
  6853.                           " 1>&2; exit 1; }
  6854.            fi
  6855.            kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
  6856.         else
  6857.            kde_libs_prefix='$(prefix)'
  6858.            kde_libs_htmldir='$(kde_htmldir)'
  6859.         fi
  6860.         
  6861.         
  6862.  
  6863.  
  6864.  
  6865.  
  6866.   
  6867.  
  6868.  
  6869.  
  6870.  
  6871.  
  6872.  
  6873.  
  6874.  
  6875.  
  6876.  
  6877.  
  6878.  
  6879.  
  6880.  
  6881. if test "$kde_qtver" = 1; then
  6882.   kde_minidir="$kde_icondir/mini"
  6883. else
  6884. # for KDE 1 - this breaks KDE2 apps using minidir, but
  6885. # that's the plan ;-/
  6886.   kde_minidir="/dev/null"
  6887. fi
  6888.  
  6889.   
  6890.    
  6891.    
  6892.    
  6893.  
  6894. if test $kde_qtver = 2; then
  6895.    LIB_KDECORE='-lkdecore'
  6896.    
  6897.    LIB_KDEUI='-lkdeui'
  6898.    
  6899.    LIB_KFORMULA='-lkformula'
  6900.    
  6901.    LIB_KIO='-lkio'
  6902.    
  6903.    LIB_KSYCOCA='-lksycoca'
  6904.    
  6905.    LIB_SMB='-lsmb'
  6906.    
  6907.    LIB_KFILE='-lkfile'
  6908.    
  6909.    LIB_KAB='-lkab'
  6910.    
  6911.    LIB_KHTML='-lkhtml'
  6912.    
  6913.    LIB_KSPELL='-lkspell'
  6914.    
  6915.    LIB_KPARTS='-lkparts'
  6916.    
  6917.    LIB_KWRITE='-lkwrite'
  6918.    
  6919. else
  6920.    LIB_KDECORE='-lkdecore -lXext $(LIB_QT)'
  6921.    
  6922.    LIB_KDEUI='-lkdeui $(LIB_KDECORE)'
  6923.    
  6924.    LIB_KFM='-lkfm $(LIB_KDECORE)'
  6925.    
  6926.    LIB_KFILE='-lkfile $(LIB_KFM) $(LIB_KDEUI)'
  6927.    
  6928.    LIB_KAB='-lkab $(LIB_KIMGIO) $(LIB_KDECORE)'
  6929.    
  6930. fi
  6931.  
  6932.  
  6933.  
  6934. if test "$program_transform_name" = s,x,x,; then
  6935.   program_transform_name=
  6936. else
  6937.   # Double any \ or $.  echo might interpret backslashes.
  6938.   cat <<\EOF_SED > conftestsed
  6939. s,\\,\\\\,g; s,\$,$$,g
  6940. EOF_SED
  6941.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  6942.   rm -f conftestsed
  6943. fi
  6944. test "$program_prefix" != NONE &&
  6945.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  6946. # Use a double $ so make ignores it.
  6947. test "$program_suffix" != NONE &&
  6948.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  6949.  
  6950. # sed with no file args requires a program.
  6951. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  6952.  
  6953.  
  6954. #MIN_CONFIG
  6955.  
  6956. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  6957. echo "configure:6958: checking for ANSI C header files" >&5
  6958. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  6959.   echo $ac_n "(cached) $ac_c" 1>&6
  6960. else
  6961.   cat > conftest.$ac_ext <<EOF
  6962. #line 6963 "configure"
  6963. #include "confdefs.h"
  6964. #include <stdlib.h>
  6965. #include <stdarg.h>
  6966. #include <string.h>
  6967. #include <float.h>
  6968. EOF
  6969. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6970. { (eval echo configure:6971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6971. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6972. if test -z "$ac_err"; then
  6973.   rm -rf conftest*
  6974.   ac_cv_header_stdc=yes
  6975. else
  6976.   echo "$ac_err" >&5
  6977.   echo "configure: failed program was:" >&5
  6978.   cat conftest.$ac_ext >&5
  6979.   rm -rf conftest*
  6980.   ac_cv_header_stdc=no
  6981. fi
  6982. rm -f conftest*
  6983.  
  6984. if test $ac_cv_header_stdc = yes; then
  6985.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6986. cat > conftest.$ac_ext <<EOF
  6987. #line 6988 "configure"
  6988. #include "confdefs.h"
  6989. #include <string.h>
  6990. EOF
  6991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6992.   egrep "memchr" >/dev/null 2>&1; then
  6993.   :
  6994. else
  6995.   rm -rf conftest*
  6996.   ac_cv_header_stdc=no
  6997. fi
  6998. rm -f conftest*
  6999.  
  7000. fi
  7001.  
  7002. if test $ac_cv_header_stdc = yes; then
  7003.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7004. cat > conftest.$ac_ext <<EOF
  7005. #line 7006 "configure"
  7006. #include "confdefs.h"
  7007. #include <stdlib.h>
  7008. EOF
  7009. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7010.   egrep "free" >/dev/null 2>&1; then
  7011.   :
  7012. else
  7013.   rm -rf conftest*
  7014.   ac_cv_header_stdc=no
  7015. fi
  7016. rm -f conftest*
  7017.  
  7018. fi
  7019.  
  7020. if test $ac_cv_header_stdc = yes; then
  7021.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7022. if test "$cross_compiling" = yes; then
  7023.   :
  7024. else
  7025.   cat > conftest.$ac_ext <<EOF
  7026. #line 7027 "configure"
  7027. #include "confdefs.h"
  7028. #include <ctype.h>
  7029. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7030. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7031. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7032. int main () { int i; for (i = 0; i < 256; i++)
  7033. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  7034. exit (0); }
  7035.  
  7036. EOF
  7037. if { (eval echo configure:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7038. then
  7039.   :
  7040. else
  7041.   echo "configure: failed program was:" >&5
  7042.   cat conftest.$ac_ext >&5
  7043.   rm -fr conftest*
  7044.   ac_cv_header_stdc=no
  7045. fi
  7046. rm -fr conftest*
  7047. fi
  7048.  
  7049. fi
  7050. fi
  7051.  
  7052. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  7053. if test $ac_cv_header_stdc = yes; then
  7054.   cat >> confdefs.h <<\EOF
  7055. #define STDC_HEADERS 1
  7056. EOF
  7057.  
  7058. fi
  7059.  
  7060. for ac_hdr in math.h unistd.h stdlib.h sys/type.h regex.h
  7061. do
  7062. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7063. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7064. echo "configure:7065: checking for $ac_hdr" >&5
  7065. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7066.   echo $ac_n "(cached) $ac_c" 1>&6
  7067. else
  7068.   cat > conftest.$ac_ext <<EOF
  7069. #line 7070 "configure"
  7070. #include "confdefs.h"
  7071. #include <$ac_hdr>
  7072. EOF
  7073. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7074. { (eval echo configure:7075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7075. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7076. if test -z "$ac_err"; then
  7077.   rm -rf conftest*
  7078.   eval "ac_cv_header_$ac_safe=yes"
  7079. else
  7080.   echo "$ac_err" >&5
  7081.   echo "configure: failed program was:" >&5
  7082.   cat conftest.$ac_ext >&5
  7083.   rm -rf conftest*
  7084.   eval "ac_cv_header_$ac_safe=no"
  7085. fi
  7086. rm -f conftest*
  7087. fi
  7088. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7089.   echo "$ac_t""yes" 1>&6
  7090.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7091.   cat >> confdefs.h <<EOF
  7092. #define $ac_tr_hdr 1
  7093. EOF
  7094.  
  7095. else
  7096.   echo "$ac_t""no" 1>&6
  7097. fi
  7098. done
  7099.  
  7100.  
  7101. cat >> confdefs.h <<\EOF
  7102. #define DOC "kmago"
  7103. EOF
  7104.  
  7105.  
  7106. cat >> confdefs.h <<\EOF
  7107. #define DOCVERS "1.0"
  7108. EOF
  7109.  
  7110.  
  7111. for ac_func in setenv unsetenv
  7112. do
  7113. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7114. echo "configure:7115: checking for $ac_func" >&5
  7115. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7116.   echo $ac_n "(cached) $ac_c" 1>&6
  7117. else
  7118.   cat > conftest.$ac_ext <<EOF
  7119. #line 7120 "configure"
  7120. #include "confdefs.h"
  7121. /* System header to define __stub macros and hopefully few prototypes,
  7122.     which can conflict with char $ac_func(); below.  */
  7123. #include <assert.h>
  7124. /* Override any gcc2 internal prototype to avoid an error.  */
  7125. /* We use char because int might match the return type of a gcc2
  7126.     builtin and then its argument prototype would still apply.  */
  7127. char $ac_func();
  7128.  
  7129. int main() {
  7130.  
  7131. /* The GNU C library defines this for functions which it implements
  7132.     to always fail with ENOSYS.  Some functions are actually named
  7133.     something starting with __ and the normal name is an alias.  */
  7134. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7135. choke me
  7136. #else
  7137. $ac_func();
  7138. #endif
  7139.  
  7140. ; return 0; }
  7141. EOF
  7142. if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7143.   rm -rf conftest*
  7144.   eval "ac_cv_func_$ac_func=yes"
  7145. else
  7146.   echo "configure: failed program was:" >&5
  7147.   cat conftest.$ac_ext >&5
  7148.   rm -rf conftest*
  7149.   eval "ac_cv_func_$ac_func=no"
  7150. fi
  7151. rm -f conftest*
  7152. fi
  7153.  
  7154. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7155.   echo "$ac_t""yes" 1>&6
  7156.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7157.   cat >> confdefs.h <<EOF
  7158. #define $ac_tr_func 1
  7159. EOF
  7160.  
  7161. else
  7162.   echo "$ac_t""no" 1>&6
  7163. fi
  7164. done
  7165.  
  7166.  
  7167. # Check whether --enable-kio or --disable-kio was given.
  7168. if test "${enable_kio+set}" = set; then
  7169.   enableval="$enable_kio"
  7170.   if test "$enableval" = no; then
  7171.     echo "$ac_t""disabling kio retriever" 1>&6
  7172.     LIB_KIO=
  7173. fi
  7174. fi
  7175.  
  7176. if test -n "$LIB_KIO" ; then
  7177.     echo "$ac_t""enabling kio retriever" 1>&6
  7178.     cat >> confdefs.h <<\EOF
  7179. #define ENABLE_KIO 1
  7180. EOF
  7181.  
  7182. fi
  7183.  
  7184.  
  7185. USE_WGET=yes
  7186. # Check whether --enable-wget or --disable-wget was given.
  7187. if test "${enable_wget+set}" = set; then
  7188.   enableval="$enable_wget"
  7189.   if test "$enableval" = no; then
  7190.     echo "$ac_t""disabling wget retriever" 1>&6
  7191.     USE_WGET=
  7192. fi
  7193. fi
  7194.  
  7195. if test -n "$USE_WGET" ; then
  7196.     echo "$ac_t""enabling wget retriever" 1>&6
  7197.     cat >> confdefs.h <<\EOF
  7198. #define ENABLE_WGET 1
  7199. EOF
  7200.  
  7201. fi
  7202.  
  7203. line=$(grep "^// Revision 1.207" $kde_includes/kapp.h)
  7204. if test -n "$line" ; then
  7205.     kde_version_post_1207=1
  7206.     cat >> confdefs.h <<\EOF
  7207. #define KDE_VERSION_POST_1207 1
  7208. EOF
  7209.  
  7210. fi
  7211.  
  7212. if test "$kde_qtsubver" -lt 3; then
  7213.     if test -z "$kde_version_post_1207"; then
  7214.         echo "$ac_t""enabling KURLRequester workaround" 1>&6
  7215.         cat >> confdefs.h <<\EOF
  7216. #define KURLREQ_ERR 1
  7217. EOF
  7218.  
  7219.     else
  7220.         echo "$ac_t""enabling KURLRequester workaround for KDE version > 1207" 1>&6
  7221.     fi
  7222. fi
  7223.  
  7224. echo $ac_n "checking for dmalloc_shutdown in -ldmallocxx""... $ac_c" 1>&6
  7225. echo "configure:7226: checking for dmalloc_shutdown in -ldmallocxx" >&5
  7226. ac_lib_var=`echo dmallocxx'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
  7227. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7228.   echo $ac_n "(cached) $ac_c" 1>&6
  7229. else
  7230.   ac_save_LIBS="$LIBS"
  7231. LIBS="-ldmallocxx  $LIBS"
  7232. cat > conftest.$ac_ext <<EOF
  7233. #line 7234 "configure"
  7234. #include "confdefs.h"
  7235. /* Override any gcc2 internal prototype to avoid an error.  */
  7236. /* We use char because int might match the return type of a gcc2
  7237.     builtin and then its argument prototype would still apply.  */
  7238. char dmalloc_shutdown();
  7239.  
  7240. int main() {
  7241. dmalloc_shutdown()
  7242. ; return 0; }
  7243. EOF
  7244. if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7245.   rm -rf conftest*
  7246.   eval "ac_cv_lib_$ac_lib_var=yes"
  7247. else
  7248.   echo "configure: failed program was:" >&5
  7249.   cat conftest.$ac_ext >&5
  7250.   rm -rf conftest*
  7251.   eval "ac_cv_lib_$ac_lib_var=no"
  7252. fi
  7253. rm -f conftest*
  7254. LIBS="$ac_save_LIBS"
  7255.  
  7256. fi
  7257. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7258.   echo "$ac_t""yes" 1>&6
  7259.   sm_have_dmalloc=yes
  7260. else
  7261.   echo "$ac_t""no" 1>&6
  7262. fi
  7263.  
  7264.  
  7265. LIBDMALLOC=
  7266. # Check whether --enable-dmalloc or --disable-dmalloc was given.
  7267. if test "${enable_dmalloc+set}" = set; then
  7268.   enableval="$enable_dmalloc"
  7269.   if test "$enableval" = yes; then
  7270.    if test "$sm_have_dmalloc" = yes; then
  7271.      echo "$ac_t""enabling dmalloc" 1>&6
  7272.      cat >> confdefs.h <<\EOF
  7273. #define DMALLOC 1
  7274. EOF
  7275.  
  7276.      LIBDMALLOC=-ldmallocxx
  7277.    else
  7278.      { echo "configure: error: dmalloc not found" 1>&2; exit 1; }
  7279.    fi
  7280.  fi
  7281. fi
  7282.  
  7283.  
  7284.  
  7285.  
  7286.  
  7287. DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
  7288.  
  7289. if test ! -s $srcdir/subdirs; then
  7290.     TOPSUBDIRS=""
  7291.   files=`cd $srcdir && ls -1`
  7292.   dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
  7293.   for i in $dirs; do
  7294.     echo $i >> $srcdir/subdirs
  7295.   done
  7296. fi
  7297.  
  7298. if test -s $srcdir/inst-apps; then
  7299.   ac_topsubdirs="`cat $srcdir/inst-apps`"
  7300. else
  7301.   ac_topsubdirs="`cat $srcdir/subdirs`"
  7302. fi
  7303.  
  7304. for i in $ac_topsubdirs; do
  7305.   echo $ac_n "checking if $i should be compiled""... $ac_c" 1>&6
  7306. echo "configure:7307: checking if $i should be compiled" >&5
  7307.   if test -d $srcdir/$i; then
  7308.     install_it="yes"
  7309.     for j in $DO_NOT_COMPILE; do
  7310.       if test $i = $j; then
  7311.         install_it="no"
  7312.       fi
  7313.     done
  7314.   else
  7315.     install_it="no"
  7316.   fi
  7317.   echo "$ac_t""$install_it" 1>&6
  7318.   if test $install_it = "yes"; then
  7319.     TOPSUBDIRS="$TOPSUBDIRS $i"
  7320.   fi
  7321. done
  7322.  
  7323.  
  7324.  
  7325. trap '' 1 2 15
  7326. cat > confcache <<\EOF
  7327. # This file is a shell script that caches the results of configure
  7328. # tests run on this system so they can be shared between configure
  7329. # scripts and configure runs.  It is not useful on other systems.
  7330. # If it contains results you don't want to keep, you may remove or edit it.
  7331. #
  7332. # By default, configure uses ./config.cache as the cache file,
  7333. # creating it if it does not exist already.  You can give configure
  7334. # the --cache-file=FILE option to use a different cache file; that is
  7335. # what configure does when it calls configure scripts in
  7336. # subdirectories, so they share the cache.
  7337. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  7338. # config.status only pays attention to the cache file if you give it the
  7339. # --recheck option to rerun configure.
  7340. #
  7341. EOF
  7342. # The following way of writing the cache mishandles newlines in values,
  7343. # but we know of no workaround that is simple, portable, and efficient.
  7344. # So, don't put newlines in cache variables' values.
  7345. # Ultrix sh set writes to stderr and can't be redirected directly,
  7346. # and sets the high bit in the cache file unless we assign to the vars.
  7347. (set) 2>&1 |
  7348.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7349.   *ac_space=\ *)
  7350.     # `set' does not quote correctly, so add quotes (double-quote substitution
  7351.     # turns \\\\ into \\, and sed turns \\ into \).
  7352.     sed -n \
  7353.       -e "s/'/'\\\\''/g" \
  7354.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  7355.     ;;
  7356.   *)
  7357.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  7358.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  7359.     ;;
  7360.   esac >> confcache
  7361. if cmp -s $cache_file confcache; then
  7362.   :
  7363. else
  7364.   if test -w $cache_file; then
  7365.     echo "updating cache $cache_file"
  7366.     cat confcache > $cache_file
  7367.   else
  7368.     echo "not updating unwritable cache $cache_file"
  7369.   fi
  7370. fi
  7371. rm -f confcache
  7372.  
  7373. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  7374.  
  7375. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7376. # Let make expand exec_prefix.
  7377. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7378.  
  7379. # Any assignment to VPATH causes Sun make to only execute
  7380. # the first set of double-colon rules, so remove it if not needed.
  7381. # If there is a colon in the path, we need to keep it.
  7382. if test "x$srcdir" = x.; then
  7383.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  7384. fi
  7385.  
  7386. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  7387.  
  7388. DEFS=-DHAVE_CONFIG_H
  7389.  
  7390. # Without the "./", some shells look in PATH for config.status.
  7391. : ${CONFIG_STATUS=./config.status}
  7392.  
  7393. echo creating $CONFIG_STATUS
  7394. rm -f $CONFIG_STATUS
  7395. cat > $CONFIG_STATUS <<EOF
  7396. #! /bin/sh
  7397. # Generated automatically by configure.
  7398. # Run this file to recreate the current configuration.
  7399. # This directory was configured as follows,
  7400. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7401. #
  7402. # $0 $ac_configure_args
  7403. #
  7404. # Compiler output produced by configure, useful for debugging
  7405. # configure, is in ./config.log if it exists.
  7406.  
  7407. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  7408. for ac_option
  7409. do
  7410.   case "\$ac_option" in
  7411.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7412.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  7413.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  7414.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  7415.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  7416.     exit 0 ;;
  7417.   -help | --help | --hel | --he | --h)
  7418.     echo "\$ac_cs_usage"; exit 0 ;;
  7419.   *) echo "\$ac_cs_usage"; exit 1 ;;
  7420.   esac
  7421. done
  7422.  
  7423. ac_given_srcdir=$srcdir
  7424. ac_given_INSTALL="$INSTALL"
  7425.  
  7426. trap 'rm -fr `echo "\
  7427. ./Makefile \
  7428. kmago/Makefile \
  7429. kmago/docs/Makefile \
  7430. kmago/docs/en/Makefile \
  7431. po/Makefile \
  7432. rpm-specs/Makefile \
  7433.  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  7434. EOF
  7435. cat >> $CONFIG_STATUS <<EOF
  7436.  
  7437. # Protect against being on the right side of a sed subst in config.status.
  7438. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  7439.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  7440. $ac_vpsub
  7441. $extrasub
  7442. s%@SHELL@%$SHELL%g
  7443. s%@CFLAGS@%$CFLAGS%g
  7444. s%@CPPFLAGS@%$CPPFLAGS%g
  7445. s%@CXXFLAGS@%$CXXFLAGS%g
  7446. s%@FFLAGS@%$FFLAGS%g
  7447. s%@DEFS@%$DEFS%g
  7448. s%@LDFLAGS@%$LDFLAGS%g
  7449. s%@LIBS@%$LIBS%g
  7450. s%@exec_prefix@%$exec_prefix%g
  7451. s%@prefix@%$prefix%g
  7452. s%@program_transform_name@%$program_transform_name%g
  7453. s%@bindir@%$bindir%g
  7454. s%@sbindir@%$sbindir%g
  7455. s%@libexecdir@%$libexecdir%g
  7456. s%@datadir@%$datadir%g
  7457. s%@sysconfdir@%$sysconfdir%g
  7458. s%@sharedstatedir@%$sharedstatedir%g
  7459. s%@localstatedir@%$localstatedir%g
  7460. s%@libdir@%$libdir%g
  7461. s%@includedir@%$includedir%g
  7462. s%@oldincludedir@%$oldincludedir%g
  7463. s%@infodir@%$infodir%g
  7464. s%@mandir@%$mandir%g
  7465. s%@host@%$host%g
  7466. s%@host_alias@%$host_alias%g
  7467. s%@host_cpu@%$host_cpu%g
  7468. s%@host_vendor@%$host_vendor%g
  7469. s%@host_os@%$host_os%g
  7470. s%@target@%$target%g
  7471. s%@target_alias@%$target_alias%g
  7472. s%@target_cpu@%$target_cpu%g
  7473. s%@target_vendor@%$target_vendor%g
  7474. s%@target_os@%$target_os%g
  7475. s%@build@%$build%g
  7476. s%@build_alias@%$build_alias%g
  7477. s%@build_cpu@%$build_cpu%g
  7478. s%@build_vendor@%$build_vendor%g
  7479. s%@build_os@%$build_os%g
  7480. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  7481. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  7482. s%@INSTALL_DATA@%$INSTALL_DATA%g
  7483. s%@PACKAGE@%$PACKAGE%g
  7484. s%@VERSION@%$VERSION%g
  7485. s%@ACLOCAL@%$ACLOCAL%g
  7486. s%@AUTOCONF@%$AUTOCONF%g
  7487. s%@AUTOMAKE@%$AUTOMAKE%g
  7488. s%@AUTOHEADER@%$AUTOHEADER%g
  7489. s%@MAKEINFO@%$MAKEINFO%g
  7490. s%@SET_MAKE@%$SET_MAKE%g
  7491. s%@CONF_FILES@%$CONF_FILES%g
  7492. s%@CC@%$CC%g
  7493. s%@CPP@%$CPP%g
  7494. s%@CXX@%$CXX%g
  7495. s%@USE_EXCEPTIONS@%$USE_EXCEPTIONS%g
  7496. s%@USE_RTTI@%$USE_RTTI%g
  7497. s%@CXXCPP@%$CXXCPP%g
  7498. s%@NOOPT_CXXFLAGS@%$NOOPT_CXXFLAGS%g
  7499. s%@REPO@%$REPO%g
  7500. s%@NOREPO@%$NOREPO%g
  7501. s%@KDE_USE_FINAL_TRUE@%$KDE_USE_FINAL_TRUE%g
  7502. s%@KDE_USE_FINAL_FALSE@%$KDE_USE_FINAL_FALSE%g
  7503. s%@KDE_USE_CLOSURE_TRUE@%$KDE_USE_CLOSURE_TRUE%g
  7504. s%@KDE_USE_CLOSURE_FALSE@%$KDE_USE_CLOSURE_FALSE%g
  7505. s%@KDE_CXXFLAGS@%$KDE_CXXFLAGS%g
  7506. s%@OBJEXT@%$OBJEXT%g
  7507. s%@EXEEXT@%$EXEEXT%g
  7508. s%@LN_S@%$LN_S%g
  7509. s%@RANLIB@%$RANLIB%g
  7510. s%@STRIP@%$STRIP%g
  7511. s%@LIBTOOL@%$LIBTOOL%g
  7512. s%@KDE_PLUGIN@%$KDE_PLUGIN%g
  7513. s%@MSGFMT@%$MSGFMT%g
  7514. s%@GMSGFMT@%$GMSGFMT%g
  7515. s%@XGETTEXT@%$XGETTEXT%g
  7516. s%@LIBCOMPAT@%$LIBCOMPAT%g
  7517. s%@LIBCRYPT@%$LIBCRYPT%g
  7518. s%@LIBSOCKET@%$LIBSOCKET%g
  7519. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  7520. s%@LIBUCB@%$LIBUCB%g
  7521. s%@LIBDL@%$LIBDL%g
  7522. s%@X_INCLUDES@%$X_INCLUDES%g
  7523. s%@X_LDFLAGS@%$X_LDFLAGS%g
  7524. s%@x_libraries@%$x_libraries%g
  7525. s%@x_includes@%$x_includes%g
  7526. s%@LIBSM@%$LIBSM%g
  7527. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  7528. s%@LIB_X11@%$LIB_X11%g
  7529. s%@USER_INCLUDES@%$USER_INCLUDES%g
  7530. s%@USER_LDFLAGS@%$USER_LDFLAGS%g
  7531. s%@LIBZ@%$LIBZ%g
  7532. s%@LIBPNG@%$LIBPNG%g
  7533. s%@LIBJPEG@%$LIBJPEG%g
  7534. s%@qt_libraries@%$qt_libraries%g
  7535. s%@qt_includes@%$qt_includes%g
  7536. s%@QT_INCLUDES@%$QT_INCLUDES%g
  7537. s%@QT_LDFLAGS@%$QT_LDFLAGS%g
  7538. s%@MOC@%$MOC%g
  7539. s%@UIC@%$UIC%g
  7540. s%@LIB_QT@%$LIB_QT%g
  7541. s%@KDE_EXTRA_RPATH@%$KDE_EXTRA_RPATH%g
  7542. s%@KDE_RPATH@%$KDE_RPATH%g
  7543. s%@kde_libraries@%$kde_libraries%g
  7544. s%@kde_includes@%$kde_includes%g
  7545. s%@KDE_LDFLAGS@%$KDE_LDFLAGS%g
  7546. s%@KDE_INCLUDES@%$KDE_INCLUDES%g
  7547. s%@all_includes@%$all_includes%g
  7548. s%@all_libraries@%$all_libraries%g
  7549. s%@AUTODIRS@%$AUTODIRS%g
  7550. s%@DCOPIDL@%$DCOPIDL%g
  7551. s%@DCOPIDL2CPP@%$DCOPIDL2CPP%g
  7552. s%@DCOP_DEPENDENCIES@%$DCOP_DEPENDENCIES%g
  7553. s%@MCOPIDL@%$MCOPIDL%g
  7554. s%@KDB2HTML@%$KDB2HTML%g
  7555. s%@ARTSCCONFIG@%$ARTSCCONFIG%g
  7556. s%@KDECONFIG@%$KDECONFIG%g
  7557. s%@kde_libs_prefix@%$kde_libs_prefix%g
  7558. s%@kde_libs_htmldir@%$kde_libs_htmldir%g
  7559. s%@kde_htmldir@%$kde_htmldir%g
  7560. s%@kde_appsdir@%$kde_appsdir%g
  7561. s%@kde_icondir@%$kde_icondir%g
  7562. s%@kde_sounddir@%$kde_sounddir%g
  7563. s%@kde_datadir@%$kde_datadir%g
  7564. s%@kde_locale@%$kde_locale%g
  7565. s%@kde_confdir@%$kde_confdir%g
  7566. s%@kde_mimedir@%$kde_mimedir%g
  7567. s%@kde_wallpaperdir@%$kde_wallpaperdir%g
  7568. s%@kde_bindir@%$kde_bindir%g
  7569. s%@kde_templatesdir@%$kde_templatesdir%g
  7570. s%@kde_servicesdir@%$kde_servicesdir%g
  7571. s%@kde_servicetypesdir@%$kde_servicetypesdir%g
  7572. s%@kde_moduledir@%$kde_moduledir%g
  7573. s%@LIB_KDECORE@%$LIB_KDECORE%g
  7574. s%@LIB_KDEUI@%$LIB_KDEUI%g
  7575. s%@LIB_KFORMULA@%$LIB_KFORMULA%g
  7576. s%@LIB_KIO@%$LIB_KIO%g
  7577. s%@LIB_KSYCOCA@%$LIB_KSYCOCA%g
  7578. s%@LIB_SMB@%$LIB_SMB%g
  7579. s%@LIB_KFILE@%$LIB_KFILE%g
  7580. s%@LIB_KAB@%$LIB_KAB%g
  7581. s%@LIB_KHTML@%$LIB_KHTML%g
  7582. s%@LIB_KSPELL@%$LIB_KSPELL%g
  7583. s%@LIB_KPARTS@%$LIB_KPARTS%g
  7584. s%@LIB_KWRITE@%$LIB_KWRITE%g
  7585. s%@LIB_KFM@%$LIB_KFM%g
  7586. s%@LIBDMALLOC@%$LIBDMALLOC%g
  7587. s%@TOPSUBDIRS@%$TOPSUBDIRS%g
  7588.  
  7589. CEOF
  7590. EOF
  7591.  
  7592. cat >> $CONFIG_STATUS <<\EOF
  7593.  
  7594. # Split the substitutions into bite-sized pieces for seds with
  7595. # small command number limits, like on Digital OSF/1 and HP-UX.
  7596. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  7597. ac_file=1 # Number of current file.
  7598. ac_beg=1 # First line for current file.
  7599. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  7600. ac_more_lines=:
  7601. ac_sed_cmds=""
  7602. while $ac_more_lines; do
  7603.   if test $ac_beg -gt 1; then
  7604.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  7605.   else
  7606.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  7607.   fi
  7608.   if test ! -s conftest.s$ac_file; then
  7609.     ac_more_lines=false
  7610.     rm -f conftest.s$ac_file
  7611.   else
  7612.     if test -z "$ac_sed_cmds"; then
  7613.       ac_sed_cmds="sed -f conftest.s$ac_file"
  7614.     else
  7615.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  7616.     fi
  7617.     ac_file=`expr $ac_file + 1`
  7618.     ac_beg=$ac_end
  7619.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  7620.   fi
  7621. done
  7622. if test -z "$ac_sed_cmds"; then
  7623.   ac_sed_cmds=cat
  7624. fi
  7625. EOF
  7626.  
  7627. cat >> $CONFIG_STATUS <<EOF
  7628.  
  7629. CONFIG_FILES=\${CONFIG_FILES-"\
  7630. ./Makefile \
  7631. kmago/Makefile \
  7632. kmago/docs/Makefile \
  7633. kmago/docs/en/Makefile \
  7634. po/Makefile \
  7635. rpm-specs/Makefile \
  7636. "}
  7637. EOF
  7638. cat >> $CONFIG_STATUS <<\EOF
  7639. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  7640.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7641.   case "$ac_file" in
  7642.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  7643.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  7644.   *) ac_file_in="${ac_file}.in" ;;
  7645.   esac
  7646.  
  7647.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  7648.  
  7649.   # Remove last slash and all that follows it.  Not all systems have dirname.
  7650.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  7651.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  7652.     # The file is in a subdirectory.
  7653.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  7654.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  7655.     # A "../" for each directory in $ac_dir_suffix.
  7656.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  7657.   else
  7658.     ac_dir_suffix= ac_dots=
  7659.   fi
  7660.  
  7661.   case "$ac_given_srcdir" in
  7662.   .)  srcdir=.
  7663.       if test -z "$ac_dots"; then top_srcdir=.
  7664.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  7665.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  7666.   *) # Relative path.
  7667.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  7668.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  7669.   esac
  7670.  
  7671.   case "$ac_given_INSTALL" in
  7672.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  7673. "") ;;
  7674.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  7675.   esac
  7676.  
  7677.   echo creating "$ac_file"
  7678.   rm -f "$ac_file"
  7679.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  7680.   case "$ac_file" in
  7681.   *Makefile*) ac_comsub="1i\\
  7682. # $configure_input" ;;
  7683.   *) ac_comsub= ;;
  7684.   esac
  7685.  
  7686.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  7687.   sed -e "$ac_comsub
  7688. s%@configure_input@%$configure_input%g
  7689. s%@srcdir@%$srcdir%g
  7690. s%@top_srcdir@%$top_srcdir%g
  7691. s%@INSTALL@%$INSTALL%g
  7692. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  7693. fi; done
  7694. rm -f conftest.s*
  7695.  
  7696. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  7697. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  7698. #
  7699. # ac_d sets the value in "#define NAME VALUE" lines.
  7700. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  7701. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  7702. ac_dC='\3'
  7703. ac_dD='%g'
  7704. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  7705. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  7706. ac_uB='\([     ]\)%\1#\2define\3'
  7707. ac_uC=' '
  7708. ac_uD='\4%g'
  7709. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  7710. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  7711. ac_eB='$%\1#\2define\3'
  7712. ac_eC=' '
  7713. ac_eD='%g'
  7714.  
  7715. if test "${CONFIG_HEADERS+set}" != set; then
  7716. EOF
  7717. cat >> $CONFIG_STATUS <<EOF
  7718.   CONFIG_HEADERS="config.h"
  7719. EOF
  7720. cat >> $CONFIG_STATUS <<\EOF
  7721. fi
  7722. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  7723.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7724.   case "$ac_file" in
  7725.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  7726.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  7727.   *) ac_file_in="${ac_file}.in" ;;
  7728.   esac
  7729.  
  7730.   echo creating $ac_file
  7731.  
  7732.   rm -f conftest.frag conftest.in conftest.out
  7733.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  7734.   cat $ac_file_inputs > conftest.in
  7735.  
  7736. EOF
  7737.  
  7738. # Transform confdefs.h into a sed script conftest.vals that substitutes
  7739. # the proper values into config.h.in to produce config.h.  And first:
  7740. # Protect against being on the right side of a sed subst in config.status.
  7741. # Protect against being in an unquoted here document in config.status.
  7742. rm -f conftest.vals
  7743. cat > conftest.hdr <<\EOF
  7744. s/[\\&%]/\\&/g
  7745. s%[\\$`]%\\&%g
  7746. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  7747. s%ac_d%ac_u%gp
  7748. s%ac_u%ac_e%gp
  7749. EOF
  7750. sed -n -f conftest.hdr confdefs.h > conftest.vals
  7751. rm -f conftest.hdr
  7752.  
  7753. # This sed command replaces #undef with comments.  This is necessary, for
  7754. # example, in the case of _POSIX_SOURCE, which is predefined and required
  7755. # on some systems where configure will not decide to define it.
  7756. cat >> conftest.vals <<\EOF
  7757. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  7758. EOF
  7759.  
  7760. # Break up conftest.vals because some shells have a limit on
  7761. # the size of here documents, and old seds have small limits too.
  7762.  
  7763. rm -f conftest.tail
  7764. while :
  7765. do
  7766.   ac_lines=`grep -c . conftest.vals`
  7767.   # grep -c gives empty output for an empty file on some AIX systems.
  7768.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  7769.   # Write a limited-size here document to conftest.frag.
  7770.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  7771.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  7772.   echo 'CEOF
  7773.   sed -f conftest.frag conftest.in > conftest.out
  7774.   rm -f conftest.in
  7775.   mv conftest.out conftest.in
  7776. ' >> $CONFIG_STATUS
  7777.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  7778.   rm -f conftest.vals
  7779.   mv conftest.tail conftest.vals
  7780. done
  7781. rm -f conftest.vals
  7782.  
  7783. cat >> $CONFIG_STATUS <<\EOF
  7784.   rm -f conftest.frag conftest.h
  7785.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  7786.   cat conftest.in >> conftest.h
  7787.   rm -f conftest.in
  7788.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  7789.     echo "$ac_file is unchanged"
  7790.     rm -f conftest.h
  7791.   else
  7792.     # Remove last slash and all that follows it.  Not all systems have dirname.
  7793.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  7794.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  7795.       # The file is in a subdirectory.
  7796.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  7797.     fi
  7798.     rm -f $ac_file
  7799.     mv conftest.h $ac_file
  7800.   fi
  7801. fi; done
  7802.  
  7803. EOF
  7804. cat >> $CONFIG_STATUS <<EOF
  7805.  
  7806.  
  7807. EOF
  7808. cat >> $CONFIG_STATUS <<\EOF
  7809. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  7810.  
  7811. exit 0
  7812. EOF
  7813. if test "x$with_fast_perl" = "xyes" ; then
  7814.   perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS || mv $CONFIG_STATUS.bak $CONFIG_STATUS; 
  7815.   rm -f $CONFIG_STATUS.bak;
  7816. fi 
  7817. chmod +x $CONFIG_STATUS
  7818. rm -fr confdefs* $ac_clean_files
  7819. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  7820.  
  7821.