diff --git a/Common/Defs.h.in b/Common/Defs.h.in
new file mode 100644
index 0000000000000000000000000000000000000000..774b30400c82c1f469c9619ed9fad367c7bd176a
--- /dev/null
+++ b/Common/Defs.h.in
@@ -0,0 +1,11 @@
+// Gmsh - Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
+//
+// See the LICENSE.txt file for license information. Please report all
+// bugs and problems to <gmsh@geuz.org>.
+#ifndef _DEFS_H_
+#define _DEFS_H_
+
+// Partitioning (0x01 = Chaco, 0x10 = Metis)
+#define @USE_PARTITION@ @USE_PARTITION_PROG@
+
+#endif