1AC_PREREQ(2.59) 2AC_REVISION($Id$) 3# 4# configure.ac 5# 6# The iODBC driver manager. 7# 8# Copyright (C) 1995 Ke Jin <kejin@empress.com> 9# Copyright (C) 1996-2021 OpenLink Software <iodbc@openlinksw.com> 10# All Rights Reserved. 11# 12# This software is released under the terms of either of the following 13# licenses: 14# 15# - GNU Library General Public License (see LICENSE.LGPL) 16# - The BSD License (see LICENSE.BSD). 17# 18# Note that the only valid version of the LGPL license as far as this 19# project is concerned is the original GNU Library General Public License 20# Version 2, dated June 1991. 21# 22# While not mandated by the BSD license, any patches you make to the 23# iODBC source code may be contributed back into the iODBC project 24# at your discretion. Contributions will benefit the Open Source and 25# Data Access community as a whole. Submissions may be made at: 26# 27# http://www.iodbc.org 28# 29# 30# GNU Library Generic Public License Version 2 31# ============================================ 32# This library is free software; you can redistribute it and/or 33# modify it under the terms of the GNU Library General Public 34# License as published by the Free Software Foundation; only 35# Version 2 of the License dated June 1991. 36# 37# This library is distributed in the hope that it will be useful, 38# but WITHOUT ANY WARRANTY; without even the implied warranty of 39# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 40# Library General Public License for more details. 41# 42# You should have received a copy of the GNU Library General Public 43# License along with this library; if not, write to the Free 44# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 45# 46# 47# The BSD License 48# =============== 49# Redistribution and use in source and binary forms, with or without 50# modification, are permitted provided that the following conditions 51# are met: 52# 53# 1. Redistributions of source code must retain the above copyright 54# notice, this list of conditions and the following disclaimer. 55# 2. Redistributions in binary form must reproduce the above copyright 56# notice, this list of conditions and the following disclaimer in 57# the documentation and/or other materials provided with the 58# distribution. 59# 3. Neither the name of OpenLink Software Inc. nor the names of its 60# contributors may be used to endorse or promote products derived 61# from this software without specific prior written permission. 62# 63# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 64# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 65# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 66# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OPENLINK OR 67# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 68# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 69# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 70# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 71# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 72# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 73# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 74# 75 76 77########################################################################## 78## ## 79## Version info ## 80## ## 81########################################################################## 82m4_define(V_iodbc_major, [3]) # ODBC Major version 83m4_define(V_iodbc_minor, [52]) # ODBC Minor version 84m4_define(V_iodbc_patch, [15]) # Increase every release 85m4_define(V_iodbc_devel, []) # -dev, -rc1 or empty for stable 86 87m4_define(V_iodbc_date, [210607]) # YYMMDD of release 88m4_define(V_iodbc_shlib, [30]) # Increase every change 89 90 91########################################################################## 92## ## 93## Initialization ## 94## ## 95########################################################################## 96AC_INIT([iODBC Driver Manager], 97 V_iodbc_major.V_iodbc_minor.V_iodbc_patch[]V_iodbc_devel, 98 [iodbc@openlinksw.com], 99 [libiodbc]) 100AC_CONFIG_SRCDIR([include/isql.h]) 101AC_CONFIG_AUX_DIR(admin) 102AC_CONFIG_MACRO_DIR(admin) 103AC_CONFIG_HEADERS(include/config.h) 104AM_INIT_AUTOMAKE 105AC_CANONICAL_HOST 106AM_MAINTAINER_MODE 107 108 109########################################################################## 110## ## 111## Version information ## 112## ## 113######################################################################### 114 115# 116# Version information for SQLGetInfo(SQL_DM_VER) call 117# 118BUILD_MAJOR="V_iodbc_patch" # last digit of version number 119BUILD_MINOR="V_iodbc_date" # year/month/day of release 120BUILD_VER="${BUILD_MAJOR}${BUILD_MINOR}" 121 122# 123# Library version numbers 124# 125lib3_version=3:V_iodbc_shlib:1 # ODBC 3.x mode 126lib2_version=2:55:0 # ODBC 2.x mode (do not change) 127 128 129########################################################################## 130## ## 131## Check whether config.cache belongs to this machine ## 132## ## 133########################################################################## 134AC_MSG_CHECKING(cached information) 135hostcheck="$host" 136AC_CACHE_VAL(ac_cv_hostcheck, [ ac_cv_hostcheck="$hostcheck" ]) 137if test "$ac_cv_hostcheck" != "$hostcheck"; then 138 AC_MSG_RESULT(changed) 139 140 AC_MSG_WARN([Running on a different architecture.]) 141 AC_MSG_WARN([Can't use cached values.]) 142 AC_MSG_ERROR([Please remove the invalid config.cache file, then try again.]) 143else 144 AC_MSG_RESULT(ok) 145fi 146 147 148########################################################################## 149## ## 150## Save configuration for later reuse ## 151## ## 152########################################################################## 153 154OPL_CONFIG_NICE([config.nice]) 155 156 157########################################################################## 158## ## 159## Set Layout for iODBC ## 160## ## 161########################################################################## 162AC_PREFIX_DEFAULT(/usr/local) 163 164AC_MSG_CHECKING(for iODBC installation layout) 165AC_ARG_WITH(layout, [dnl 166AS_HELP_STRING([--with-layout=LAYOUT], [Choose installation layout])dnl 167], 168[ case "${withval}" in 169 yes|no) IODBC_LAYOUT=unset ;; 170 *) IODBC_LAYOUT=${withval} ;; 171 esac 172], [IODBC_LAYOUT=unset]) 173 174 175# 176# Defaults for Layout 177# 178install_libodbc=true 179 180case ${IODBC_LAYOUT} in 181 unset) # No Layout set 182 iodbc_layout="default" 183 inidir=/etc 184 ;; 185 186 [[Gg]][[Nn]][[Uu]]) # GNU 187 iodbc_layout="GNU" 188 test "x$prefix" = xNONE && prefix=/usr/local 189 inidir=${prefix}/etc/iodbc 190 ;; 191 192 [[Dd]][[Ee]][[Bb]][[Ii]][[Aa]][[Nn]]) # Debian 193 iodbc_layout="Debian" 194 test "x$prefix" = xNONE && prefix=/usr 195 inidir=/etc 196 install_libodbc=false 197 ;; 198 199 [[Gg]][[Ee]][[Nn]][[Tt]][[Oo]][[Oo]]) # Gentoo 200 iodbc_layout="Gentoo" 201 test "x$prefix" = xNONE && prefix=/usr 202 includedir='${prefix}/include/iodbc' 203 inidir=/etc/iodbc 204 install_libodbc=false 205 ;; 206 207 [[Rr]][[Ee]][[Dd]][[Hh]][[Aa]][[Tt]]) # RedHat 208 iodbc_layout=RedHat 209 test "x$prefix" = xNONE && prefix=/usr 210 inidir=/etc 211 ;; 212 213 [[Ff]][[Rr]][[Ee]][[Ee]][[Bb]][[Ss]][[Dd]]) # FreeBSD 214 iodbc_layout=FreeBSD 215 test "x$prefix" = xNONE && prefix=/usr 216 inidir=/etc 217 ;; 218 219 [[Oo]][[Pp]][[Tt]]) # /opt 220 iodbc_layout=opt 221 test "x$prefix" = xNONE && prefix=/opt/iodbc 222 inidir=/etc 223 ;; 224 225 [[Oo]][[Pp]][[Ee]][[Nn]][[Ll]][[Ii]][[Nn]][[Kk]]) # OpenLink 226 iodbc_layout=openlink 227 prefix=/usr/local/iODBC 228 inidir=/etc 229 ;; 230 231 *) # UNKNOWN 232 AC_MSG_RESULT(unknown) 233 echo "" 234 echo "Supported layouts: Debian FreeBSD GNU OpenLink opt RedHat" 235 echo "" 236 AC_MSG_ERROR([unable to continue]) 237 ;; 238esac 239AC_MSG_RESULT([${iodbc_layout}]) 240 241 242########################################################################## 243## ## 244## Check for C compiler ## 245## ## 246########################################################################## 247AC_PROG_CC 248AM_PROG_CC_C_O 249AC_PROG_CC_STDC 250AC_PROG_CPP 251AC_LANG([C]) 252AC_C_CONST 253 254 255########################################################################## 256## ## 257## Check for standard programs ## 258## ## 259########################################################################## 260AC_PROG_INSTALL 261AC_PROG_LN_S 262AC_PROG_MAKE_SET 263 264LT_INIT 265 266 267########################################################################## 268## ## 269## Check for standard header files ## 270## ## 271########################################################################## 272AC_HEADER_STDC 273AC_HEADER_TIME 274AC_CHECK_HEADERS(wchar.h) 275 276 277########################################################################## 278## ## 279## Check for specific library functions ## 280## ## 281########################################################################## 282AC_CHECK_FUNCS(strerror setenv asprintf snprintf gettimeofday localtime_r) 283 284dnl Unicode 285AC_CHECK_FUNCS(wcslen wcscpy wcsncpy wcschr wcscat wcscmp towlower wcsncasecmp) 286 287 288########################################################################## 289## ## 290## Check if we want to build the GUI applications and libraries ## 291## ## 292########################################################################## 293AC_ARG_ENABLE(gui, [dnl 294AS_HELP_STRING([--enable-gui], [build GUI applications (default)]) 295AS_HELP_STRING([--disable-gui], [build GUI applications])dnl 296], 297[ case "${enableval}" in 298 yes) USE_GUI=true ;; 299 no) USE_GUI=false ;; 300 *) AC_MSG_ERROR(bad value ${enableval} for --enable-gui) ;; 301 esac 302],[USE_GUI=true]) 303 304 305########################################################################## 306## ## 307## Check for GTK library functions ## 308## ## 309########################################################################## 310USE_GTK=false 311if test x$USE_GUI = xtrue 312then 313 no_gtk="" 314 # Check for GTK+ 2.x 315 AM_PATH_GTK_2_0(2.0.0) 316 if test x$no_gtk != x 317 then 318 # Try GTK 1.2.x instead 319 no_gtk="" 320 AM_PATH_GTK(1.2.3) 321 fi 322 if test x$no_gtk = x 323 then 324 USE_GTK=true 325 fi 326fi 327 328########################################################################## 329## ## 330## Now make the final checks whether we can use GUI extensions ## 331## ## 332########################################################################## 333if test x$USE_GTK = xfalse 334then 335 USE_GUI=false 336fi 337 338if test x$USE_GUI = xtrue 339then 340 AC_DEFINE(GUI, 1, [Define if we detected a GUI library we can use]) 341fi 342 343AM_CONDITIONAL(GUI, [test x$USE_GUI = xtrue]) 344AM_CONDITIONAL(GTK, [test x$USE_GTK = xtrue]) 345 346 347########################################################################## 348## ## 349## Check for dynamic load module ## 350## ## 351########################################################################## 352 353AC_CHECK_HEADERS(dlfcn.h dl.h dld.h) 354 355save_LIBS="$LIBS" 356LIBADD_DL="" 357 358AC_CHECK_LIB(dl, dlopen, 359 [ 360 AC_DEFINE(HAVE_LIBDL, 1, [Define if you have the -ldl library]) 361 LIBADD_DL="-ldl" 362 LIBS="$LIBS -ldl" 363 ] 364) 365 366AC_CHECK_FUNCS(dlopen _dlopen dlsym dladdr) 367 368AC_MSG_CHECKING([whether dlsym() requires a leading underscore in symbol names]) 369_LT_TRY_DLOPEN_SELF([ 370 AC_MSG_RESULT(no) 371], [ 372 AC_MSG_RESULT(yes) 373 AC_DEFINE(NEED_USCORE, 1, [Define if dlsym() requires a leading underscore in symbol names. ]) 374], [ 375 AC_MSG_RESULT(no) 376], []) 377 378########################################################################## 379## Check if the dl library has the Dl_info structure ## 380########################################################################## 381AC_MSG_CHECKING([for Dl_info]) 382AC_TRY_COMPILE([ 383#ifndef _GNU_SOURCE 384#define _GNU_SOURCE 1 385#endif 386#include <dlfcn.h> 387 ],[ 388Dl_info* info = 0; 389dladdr(0, info); 390 ],[ 391 AC_DEFINE(HAVE_DL_INFO, 1, [Define to 1 if you have the Dl_info structure]) 392 AC_MSG_RESULT(yes) 393 ],[ 394 AC_MSG_RESULT(no) 395]) 396 397########################################################################## 398## Check for dynamic load module (hpux) ## 399########################################################################## 400AC_CHECK_FUNC(shl_load, 401 [AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if you have the shl_load function])], 402 [AC_CHECK_LIB(dld, shl_load, 403 [AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if you have the shl_load function]) LIBADD_DL="-ldld"])] 404 ) 405 406########################################################################## 407## Check for dynamic load module (hpux) ## 408########################################################################## 409AC_CHECK_LIB(dld, dld_link, 410 [AC_DEFINE(HAVE_DLD, 1, [Define if you have the -ldld library])dnl 411 test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="-ldld"]) 412 413########################################################################## 414## Check for dynamic load module (macos) ## 415########################################################################## 416AC_CHECK_FUNC(NSCreateObjectFileImageFromFile, 417 [AC_DEFINE(HAVE_DYLD, 1, [Define if you have the DYLD library])]) 418 419AC_SUBST(LIBADD_DL) 420 421LIBS="$save_LIBS" 422 423########################################################################## 424## ## 425## Set version information ## 426## ## 427########################################################################## 428 429AC_MSG_CHECKING(for iODBC mode) 430AC_ARG_ENABLE(odbc3, [dnl 431AS_HELP_STRING([--enable-odbc3], [build ODBC 3.x compatible driver manager (default)]) 432AS_HELP_STRING([--disable-odbc3], [build ODBC 2.x compatible driver manager])dnl 433], 434[ 435 case "${enableval}" in 436 yes) odbcmode=3 ;; 437 no) odbcmode=2 438 AC_MSG_ERROR(--disable-odbc3 temporarily disabled) 439 ;; 440 *) AC_MSG_ERROR(bad value ${enableval} for --enable-odbc3) ;; 441 esac 442], 443[ 444 odbcmode=3 # set default to ODBC 3.x mode 445]) 446 447if test "x$odbcmode" = "x3" 448then 449 lib_version=$lib3_version 450 CFLAGS="$CFLAGS -DODBCVER=0x0350 -DIODBC_BUILD=$BUILD_VER" 451 AC_MSG_RESULT(ODBC 3.x compatible mode) 452else 453 lib_version=$lib2_version 454 CFLAGS="$CFLAGS -DODBCVER=0x0250 -DIODBC_BUILD=$BUILD_VER" 455 AC_MSG_RESULT(ODBC 2.x compatible mode) 456fi 457AC_SUBST(odbcmode) 458AC_SUBST(lib_version) 459 460 461########################################################################## 462## ## 463## Where to find the system odbc.ini file ** 464## ## 465########################################################################## 466 467# 468# First determine the systemwide default directory according 469# to GNU specifications 470# 471AC_MSG_CHECKING(system config directory) 472sysinidir=`eval echo $sysconfdir` 473case "$sysinidir" in 474NONE*) 475 sysinidir=$ac_default_prefix/etc 476 ;; 477/usr/etc) 478 sysinidir=/etc 479 ;; 480*) 481 sysinidir=`eval echo $sysconfdir` 482 ;; 483esac 484AC_MSG_RESULT($sysinidir) 485 486# 487# Now allow to overrule this directory with a custom setting 488# 489AC_MSG_CHECKING(for iODBC ini directory) 490AC_ARG_WITH(iodbc-inidir, [dnl 491AS_HELP_STRING([--with-iodbc-inidir=DIR], [where the system odbc.ini file should be located]) 492AS_HELP_STRING([ ], [(default is /etc)])dnl 493], 494[ 495 case "$withval" in 496 yes|no) 497 inidir=$sysinidir 498 ;; 499 *) 500 inidir=$withval 501 ;; 502 esac 503]) 504AC_MSG_RESULT($inidir) 505 506AC_SUBST(inidir) 507AC_DEFINE_UNQUOTED(SYS_ODBC_INI, "$inidir/odbc.ini", 508 [Define path to systemwide odbc.ini file]) 509AC_DEFINE_UNQUOTED(SYS_ODBCINST_INI, "$inidir/odbcinst.ini", 510 [Define path to systemwide odbcinst.ini file]) 511 512# 513# Now allow to override default FileDSN directory with a custom setting 514# 515filedsnpath=$inidir/ODBCDataSources 516AC_MSG_CHECKING(for FILEDSN default directory) 517AC_ARG_WITH(iodbc-filedsnpath, [dnl 518AS_HELP_STRING([--with-iodbc-filedsnpath=DIR], [default location for FILEDSN data sources]) 519AS_HELP_STRING([ ], [(default is $inidir/ODBCDataSources)])dnl 520], 521[ 522 case "$withval" in 523 yes|no) 524 filedsnpath=$inidir/ODBCDataSources 525 ;; 526 *) 527 filedsnpath=$withval 528 ;; 529 esac 530]) 531AC_MSG_RESULT($filedsnpath) 532 533AC_SUBST(filedsnpath) 534AC_DEFINE_UNQUOTED(DEFAULT_FILEDSNPATH, "$filedsnpath", 535 [Default location for FILEDSN data sources]) 536 537 538########################################################################## 539## ## 540## Create libodbc.so if requested ## 541## ## 542########################################################################## 543 544AC_MSG_CHECKING(for libodbc.so link) 545AC_ARG_ENABLE(libodbc, [dnl 546AS_HELP_STRING([--enable-libodbc], [install extra libodbc.so library (default)]) 547AS_HELP_STRING([--disable-libodbc], [do not install extra libodbc.so library ])dnl 548], 549[ case "${enableval}" in 550 yes) install_libodbc=true ;; 551 no) install_libodbc=false ;; 552 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libodbc) ;; 553 esac 554],[]) 555AC_MSG_RESULT([$install_libodbc]) 556 557AM_CONDITIONAL(INSTALL_LIBODBC, [test x$install_libodbc = xtrue]) 558 559 560########################################################################## 561## ## 562## Checkout pthread situation ## 563## ## 564########################################################################## 565 566# for backward compatibility 567AC_ARG_WITH(pthreads,[], 568[ 569 AC_MSG_WARN([--with-pthreads flag is deprecated, use --enable-pthreads]) 570],[]) 571 572 573AC_MSG_CHECKING(for thread model) 574AC_ARG_ENABLE(pthreads, [dnl 575AS_HELP_STRING([--enable-pthreads], [build threaded libraries and applications (default)]) 576AS_HELP_STRING([--disable-pthreads], [build non-threaded libraries and applications])dnl 577], 578[ case "${enableval}" in 579 yes) USE_PTHREADS=true ;; 580 no) USE_PTHREADS=false ;; 581 *) AC_MSG_ERROR(bad value ${enableval} for --enable-pthreads) ;; 582 esac 583],[USE_PTHREADS=true]) 584 585if test x$USE_PTHREADS = xtrue 586then 587 AC_MSG_RESULT(enabled pthread support) 588 CPPFLAGS="$CPPFLAGS -DWITH_PTHREADS -D_REENTRANT" 589 found_lib=false 590 591 AC_MSG_CHECKING(for OS dependent thread flags) 592 case $host in 593 *-aix*) 594 # Unless overruled by the user, we prefer this compiler 595 if test "x$CC" = "xcc" 596 then 597 CC=cc_r7 598 fi 599 AC_MSG_RESULT([using $CC for AIX]) 600 ;; 601 602 *UnixWare*) 603 CFLAGS="$CFLAGS -Kthread" 604 AC_MSG_RESULT([use -Kthread for UnixWare]) 605 ;; 606 607 i[3456]86-dg-dgux*) 608 CFLAGS="$CFLAGS -D_POSIX4A_DRAFT6_SOURCE" 609 LIBS="$LIBS -lthread" 610 AC_MSG_RESULT([use -lthread for DG/UX]) 611 ;; 612 613 *-freebsd*) 614 CFLAGS="$CFLAGS -pthread" 615 AC_MSG_RESULT([use -pthread for FreeBSD]) 616 ;; 617 618 *-hpux*) 619 LIBS="$LIBS -lpthread -lcl" 620 AC_MSG_RESULT([use -lpthread for HP/UX]) 621 ;; 622 623 *-osf3.*) 624 CPPFLAGS="$CPPFLAGS -DOLD_PTHREADS" 625 LIBS="$LIBS -lpthreads -lmach -lc_r" 626 AC_MSG_RESULT([use -lpthreads for OSF 3.2]) 627 ;; 628 629 *-osf4.*) 630 LIBS="$LIBS -lpthread" 631 AC_MSG_RESULT([use -lpthread for OSF 4.x]) 632 ;; 633 634 *) 635 AC_MSG_RESULT([none]) 636 ;; 637 esac 638 639 # 640 # Check headers 641 # 642 AC_CHECK_HEADER([pthread.h], , [AC_MSG_ERROR([pthreads header not found])]) 643 644 # 645 # If mutex functions are in C library, we should not need to link 646 # with -lpthread 647 # 648 AC_CHECK_FUNC(pthread_mutex_lock, [found_lib=true]) 649 650 # 651 # Check out the various libraries 652 # 653 if test x$found_lib = xfalse 654 then 655 IODBC_CHECK_PTHREAD_LIB(pthreads, pthread_mutex_lock, 656 [ 657 LIBS="$LIBS -lpthreads" 658 found_lib=true 659 ]) 660 fi 661 if test x$found_lib = xfalse 662 then 663 IODBC_CHECK_PTHREAD_LIB(pthread, pthread_mutex_lock, 664 [ 665 LIBS="$LIBS -lpthread" 666 found_lib=true 667 ]) 668 fi 669else 670 AC_MSG_RESULT(no thread support) 671fi 672 673 674########################################################################## 675## ## 676## OS dependent libraries ## 677## ## 678########################################################################## 679LIBADD_OS="" 680AC_MSG_CHECKING(for OS dependent libraries and link flags) 681AM_CONDITIONAL(DARWIN, false) 682case $host in 683 *-hpux*) 684 LDFLAGS="$LDFLAGS -Wl,+s" 685 AC_MSG_RESULT([use -Wl,+s for HP/UX]) 686 ;; 687 *-darwin*) 688 AM_CONDITIONAL(DARWIN, true) 689 CFLAGS="$CFLAGS -DNO_FRAMEWORKS" 690 LIBADD_OS="-Wl,-framework,Carbon" 691 AC_MSG_RESULT([$LIBADD_OS]) 692 ;; 693 *) 694 AC_MSG_RESULT(none) 695 ;; 696esac 697AC_SUBST(LIBADD_OS) 698 699 700########################################################################## 701## ## 702## Generate Makefiles etc. ## 703## ## 704########################################################################## 705AC_CONFIG_FILES([ 706 Makefile 707 admin/Makefile 708 admin/libiodbc.spec 709 admin/libiodbc.pc 710 bin/Makefile 711 bin/iodbc-config 712 etc/Makefile 713 man/Makefile 714 man/iodbc-config.1 715 man/iodbctest.1 716 man/iodbctestw.1 717 man/iodbcadm-gtk.1 718 include/Makefile 719 iodbc/Makefile 720 iodbc/trace/Makefile 721 iodbcinst/Makefile 722 iodbcadm/Makefile 723 iodbcadm/gtk/Makefile 724 drvproxy/Makefile 725 drvproxy/gtk/Makefile 726 samples/Makefile 727]) 728AC_CONFIG_COMMANDS([default],[ 729 chmod 755 bin/iodbc-config 730]) 731AC_OUTPUT 732 733 734########################################################################## 735## ## 736## Display configuration information ## 737## ## 738########################################################################## 739 740# ---------------------------------------------------------------------- 741# Color settings 742# ---------------------------------------------------------------------- 743B=`tput bold 2>/dev/null` 744N=`tput sgr0 2>/dev/null` 745 746cat <<EOF 747 748 749${B}${PACKAGE_STRING} configuration summary${N} 750`echo "${PACKAGE_STRING} configuration summary" | sed 's/./=/g'` 751 752${B}Installation variables${N} 753 layout ${iodbc_layout} 754 prefix ${prefix} 755 exec_prefix ${exec_prefix} 756 757${B}Installation paths${N} 758 programs ${bindir} 759 include files ${includedir} 760 libraries ${libdir} 761 manual pages ${mandir} 762 763${B}Configuration files${N} 764 odbc.ini ${inidir}/odbc.ini 765 odbcinst.ini ${inidir}/odbcinst.ini 766 default FILEDSN path ${filedsnpath} 767 768${B}Extensions${N} 769 ODBC Version ${odbcmode} 770 GUI Extensions ${USE_GUI} 771 ThreadSafe ${USE_PTHREADS} 772 Install libodbc.so ${install_libodbc} 773 774EOF 775