iodbc-config.1.in 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .nh
  2. .TH iodbc\-config 1 "16 June 2004" "@VERSION@" "@PACKAGE_NAME@"
  3. .SH NAME
  4. iodbc-config - script to get information about the installed version of iODBC
  5. .SH SYNOPSIS
  6. .B iodbc-config
  7. .RB [ \-\-prefix\fI[=DIR]\fR ]
  8. .RB [ \-\-exec\-prefix\fI[=DIR]\fR ]
  9. .RB [ \-\-version ]
  10. .RB [ \-\-cflags ]
  11. .RB [ \-\-libs ]
  12. .RB [ \-\-static\-libs ]
  13. .RB [ \-\-libtool\-libs ]
  14. .RB [ \-\-odbcini ]
  15. .RB [ \-\-odbcinstini ]
  16. .SH DESCRIPTION
  17. \fBiodbc-config\fR is a tool that is used to configure to determine
  18. the compiler and linker flags that should be used to compile
  19. and link programs that use \fRiODBC\fR.
  20. .
  21. .SH OPTIONS
  22. \fBiodbc-config\fR accepts the following options:
  23. .TP 8
  24. .B \-\-version
  25. Print the currently installed version of \fBiODBC\fR on the standard output.
  26. .TP 8
  27. .B \-\-cflags
  28. Print the compiler flags that are necessary to compile an \fBiODBC\fR program.
  29. .TP 8
  30. .B \-\-libs
  31. Print the linker flags that are necessary to link an \fBiODBC\fR program using
  32. dynamic libraries (if supported).
  33. .TP 8
  34. .B \-\-static\-libs
  35. Print the linker flags that are necessary to link an \fBiODBC\fR program using
  36. static libraries.
  37. .TP 8
  38. .B \-\-libtool\-libs
  39. Print the linker flags that are necessary to link an \fBiODBC\fR program in a
  40. libtool environment.
  41. .TP 8
  42. .B \-\-odbcini
  43. Print the path of the system wide odbc.ini file.
  44. .TP 8
  45. .B \-\-odbcinstini
  46. Print the path of the system wide odbcinst.ini file.
  47. .TP 8
  48. .B \-\-prefix\fI[=PREFIX]\fR
  49. If specified, use PREFIX instead of the installation prefix that \fBiODBC\fR
  50. was built with when computing the output for the \-\-cflags and
  51. \-\-libs options. This option is also used for the exec prefix
  52. if \-\-exec\-prefix was not specified. This option must be specified
  53. before any \-\-libs or \-\-cflags options.
  54. If PREFIX is not specified, the \fB\-\-prefix\fR flag shows where \fBiODBC\fR
  55. is currently installed.
  56. .TP 8
  57. .B \-\-exec\-prefix=PREFIX
  58. If specified, use PREFIX instead of the installation exec prefix that
  59. \fBiODBC\fR was built with when computing the output for the \-\-cflags
  60. and \-\-libs options. This option must be specified before any
  61. \-\-libs or \-\-cflags options.
  62. .SH EXAMPLES
  63. To compile a program that calls the \fBiODBC\fR API, make sure the
  64. \fBiodbc\-config\fR program can be found in the \fBPATH\fR environment
  65. variable, before using the following Makefile fragment:
  66. .nf
  67. CFLAGS=\`iodbc-config \-\-cflags\`
  68. LDLIBS=\`iodbc-config \-\-libs\`
  69. iodbctest: iodbctest.c
  70. cc $(CFLAGS) \-o iodbctest iodbctest.c $(LDLIBS)
  71. .fi
  72. .SH COPYRIGHT
  73. Copyright \(co 1996-2021 OpenLink Software
  74. .SH AUTHOR
  75. iODBC Administrator <[email protected]>